From 5710f6d9a5ac5998d8368bec99b41c58fa3c4ab2 Mon Sep 17 00:00:00 2001 From: 86134 <aa> Date: 星期四, 09 十一月 2023 09:21:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/quality/processInspect/processInspect-form.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/quality/processInspect/processInspect-form.vue b/src/views/quality/processInspect/processInspect-form.vue index f5ef7f3..2f5837d 100644 --- a/src/views/quality/processInspect/processInspect-form.vue +++ b/src/views/quality/processInspect/processInspect-form.vue @@ -86,10 +86,15 @@ </el-row> <el-row style="width:100%;"> <el-col :span="24"> - <el-table border :data="inspectionItems" height="400" + <el-table border + :data="inspectionItems" + height="400" :header-cell-style="{ textAlign: 'center', color: 'black', backgroundColor: '#fafafa' }" - :cell-style="{ textAlign: 'center' }" row-key="iid" default-expand-all style="width: 100%" - ref="table" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> + :cell-style="{ textAlign: 'center' }" + row-key="iid" + default-expand-all style="width: 100%" + ref="table" + :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> <el-table-column type="index" label="搴忓彿" width="60"></el-table-column> <el-table-column label="椤圭洰" prop="father" width="240"></el-table-column> <el-table-column prop="iname" label="鎸囨爣" width="240"></el-table-column> @@ -278,7 +283,7 @@ methods: { submitSave() { let pro = 0 - console.log(this.inspectionItems); + console.log(this.inspectionItems); this.inspectionItems.forEach(item => { if (item.children) { let arr = item.children.filter(obj => { @@ -377,6 +382,7 @@ } }) this.inspectionItems = result.children + console.log(this.inspectionItems); this.inspectionResultForm = [{ materialCode: result.materialCode, material: result.material, -- Gitblit v1.9.3