From a1ac98cf842c89083966e6228c43513b8f66e363 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期三, 22 十一月 2023 10:41:40 +0800 Subject: [PATCH] modified: src/views/quality/rawMaterial/rawMaterial-form.vue modified: src/views/quality/teststandard/standard-form.vue --- src/views/quality/rawMaterial/rawMaterial-form.vue | 34 +++++++++------------------------- 1 files changed, 9 insertions(+), 25 deletions(-) diff --git a/src/views/quality/rawMaterial/rawMaterial-form.vue b/src/views/quality/rawMaterial/rawMaterial-form.vue index 17494d7..30ddf45 100644 --- a/src/views/quality/rawMaterial/rawMaterial-form.vue +++ b/src/views/quality/rawMaterial/rawMaterial-form.vue @@ -164,20 +164,13 @@ :disabled="scope.row.deviceId == null || (dataForm.id!=null&&resultVal!=null)" v-model="scope.row.testValueList[index]" placeholder="璇疯緭鍏ユ垨閫夋嫨妫�娴嬪��" @change="updateTestValue(scope.row,scope.$index)"> - <!-- <el-option label="鏄�" value="鏄�"/> - <el-option label="鍚�" value="鍚�"/> --> - <el-option v-for="item in dataVal" :key="item.value" :label="(item.value === '1' ? '鏄�' : '鍚�')" :value="item.value"></el-option> - - + <el-option label="鏄�" value="鏄�"/> + <el-option label="鍚�" value="鍚�"/> </el-select> </el-tooltip> </div> </template> </el-table-column> - - - - <el-table-column prop="deviceName" label="璇曢獙璁惧" min-width="260"> <template slot-scope="scope"> <div v-if="!scope.row.children"> @@ -218,8 +211,6 @@ </el-col> </el-row> </div> - - <div class="rawMaterial-result"> <el-row> <el-col :span="24">妫�楠岀粨璁�</el-col> @@ -283,13 +274,6 @@ }, data(){ return{ - dataVal: [{ - label: '1', - value: '1' - }, { - label: '0', - value: '0' - }], userdata:[], currentRow:[], userlist:[], @@ -395,7 +379,6 @@ } this.showPart = true }, - updateDevice(row, index) { let rowId=JSON.stringify(row.rpId) updateDeviceById({ deviceId: row.deviceId, rpId: row.rpId }).then(res => { @@ -590,17 +573,19 @@ } ele.iid = Math.random() ele.father = item.rpFather + if (item.children != undefined) { item.children.forEach(obj => { + let arr= [] if(obj.userName){ userNameList.push(obj.userName) } - let arr= [] - + if(obj.testValue){ arr = obj.testValue.split(",") - console.log(arr); } - + if (arr.length > this.empiricalValueAdd) { + this.empiricalValueAdd = arr.length + } let o = { deviceId: obj.deviceId, deviceName: obj.deviceName, @@ -618,8 +603,7 @@ ele.children.push(o) }) this.list.push(ele) - console.log(this.list,111111111111); - } + }} }) this.conclusionTable = [{ code: data.code, -- Gitblit v1.9.3