From 8b88172ca8801bf26a083098a09d637b11da9f01 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期四, 18 一月 2024 13:03:30 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before --- src/views/quality/processInspect/processInspect-form.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/quality/processInspect/processInspect-form.vue b/src/views/quality/processInspect/processInspect-form.vue index d0d066d..ba99dd7 100644 --- a/src/views/quality/processInspect/processInspect-form.vue +++ b/src/views/quality/processInspect/processInspect-form.vue @@ -124,7 +124,11 @@ default-expand-all style="width: 100%" ref="table" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> - <el-table-column type="index" label="搴忓彿" show-overflow-tooltip width="60"></el-table-column> + <el-table-column type="index" prop="parentIndex" label="搴忓彿" width="60"> + <template scope="scope"> + <span v-if="scope.row.isIndex">{{scope.row.parentIndex}}</span> + </template> + </el-table-column> <el-table-column label="椤圭洰" prop="father" show-overflow-tooltip width="140"></el-table-column> <el-table-column prop="iname" label="鎸囨爣" show-overflow-tooltip width="140"></el-table-column> <el-table-column prop="iunit" label="鍗曚綅" show-overflow-tooltip width="140"></el-table-column> @@ -345,7 +349,6 @@ }, methods: { queryCode(){ - console.log("llll"); this.workshop = true console.log(this.workshop); // this.paramObj = { @@ -481,7 +484,9 @@ this.processInspectVo.unit = result.punit this.processInspectVo.quantity = result.quantity let userList = [] - result.children.forEach(item => { + result.children.forEach((item,index) => { + item.isIndex = true; + item.parentIndex = index + 1; item.iid = Math.random() if (item.children != undefined) { item.children.forEach(obj => { -- Gitblit v1.9.3