From ea477103772ab46e9a1770ca245bca1b73f156a5 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期三, 30 八月 2023 18:01:21 +0800 Subject: [PATCH] 新增 --- src/views/experiment/inspectionApplication/Viewdetails/index.vue | 27 ++++++++++++++++----------- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/views/experiment/inspectionApplication/Viewdetails/index.vue b/src/views/experiment/inspectionApplication/Viewdetails/index.vue index 8e0fb3c..04d49ea 100644 --- a/src/views/experiment/inspectionApplication/Viewdetails/index.vue +++ b/src/views/experiment/inspectionApplication/Viewdetails/index.vue @@ -1,7 +1,7 @@ <template> <div> <div style="overflow: hidden;"> - <el-card style="margin: 10px;" v-model="searchData" > + <el-card style="margin: 10px;" > <div slot="header" class="clearfix"> <span> <i slot="prefix" class="el-icon-s-home" /> @@ -116,7 +116,7 @@ <el-table-column prop="userName" label="缁忛獙浜�"> <template slot-scope="scope"> <el-select v-model="value" size="small" slot="append" style="width: 220px;"> - <el-option v-for="item in ZERENren" :key="item.id" :label="item.name" :value="item.name"></el-option> + <el-option v-for="(item,indxe) in ZERENren" :key="indxe" :label="item.name" :value="item.name"></el-option> </el-select> </template> </el-table-column> @@ -125,7 +125,7 @@ label="瀹為獙璁惧"> <template slot-scope="scope"> <el-select v-model="SHEbei" size="small" slot="append" style="width: 220px;"> - <el-option v-for="item in getDevices" :key="item.id" :label="item.name"></el-option> + <el-option v-for="(item,index) in getDevices" :key="index" :label="item.name"></el-option> </el-select> </template> </el-table-column> @@ -141,10 +141,20 @@ export default { data(){ return { - searchData:{ }, + searchData:{ + formTime: '', + supplier: '', + code: '', + name: '', + specifications: '', + unit: '', + num: '', + endTime: '', + userName: '', + }, insProducts:[], value:'', - SHEbei:'', + SHEbei:[], aaa:{}, ZERENren:[], // getDevices:[] @@ -175,12 +185,7 @@ this.ZERENren = res.data console.log(this.ZERENren); }, - //璁惧 - // getDevices() { - // get(this.$url.chooseinstum).then(res => { - // this.devices = res.data - // }) - // }, + async chooseinstum(){ const res = await chooseinstum() this.getDevices = res.data -- Gitblit v1.9.3