From 5d53bf5f9241454dd28900e9b7e53e781025f7f1 Mon Sep 17 00:00:00 2001 From: 86134 <aa> Date: 星期三, 15 十一月 2023 10:18:04 +0800 Subject: [PATCH] 11 --- src/views/quality/rawMaterial/rawMaterial-form.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/quality/rawMaterial/rawMaterial-form.vue b/src/views/quality/rawMaterial/rawMaterial-form.vue index 7b80424..17494d7 100644 --- a/src/views/quality/rawMaterial/rawMaterial-form.vue +++ b/src/views/quality/rawMaterial/rawMaterial-form.vue @@ -164,13 +164,20 @@ :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 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-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"> @@ -276,6 +283,13 @@ }, data(){ return{ + dataVal: [{ + label: '1', + value: '1' + }, { + label: '0', + value: '0' + }], userdata:[], currentRow:[], userlist:[], @@ -584,6 +598,7 @@ if(obj.testValue){ arr = obj.testValue.split(",") + console.log(arr); } let o = { @@ -603,6 +618,7 @@ ele.children.push(o) }) this.list.push(ele) + console.log(this.list,111111111111); } }) this.conclusionTable = [{ -- Gitblit v1.9.3