From 02ec46f12e8df202391727da8f80e14d66e3642c Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 30 八月 2023 15:16:06 +0800
Subject: [PATCH] 搜索
---
src/views/experiment/inspectionApplication/Viewdetails/index.vue | 50 ++++++++++++++++++++++++++++++++++++--------------
1 files changed, 36 insertions(+), 14 deletions(-)
diff --git a/src/views/experiment/inspectionApplication/Viewdetails/index.vue b/src/views/experiment/inspectionApplication/Viewdetails/index.vue
index 3bd61b2..244a2d7 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,17 +116,17 @@
<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>
<el-table-column
prop="inspectionMaterialId"
label="瀹為獙璁惧">
- <template>
- <!-- <el-select v-model="scope.row.checker" size="small" slot="append" style="width: 260px;">
- <el-option v-for="item in checkeroptions" :key="item.value" :label="item.label">{{ item.label }}</el-option>
- </el-select> -->
+ <template slot-scope="scope">
+ <el-select v-model="SHEbei" size="small" slot="append" style="width: 220px;">
+ <el-option v-for="(item,index) in getDevices" :key="index" :label="item.name"></el-option>
+ </el-select>
</template>
</el-table-column>
</el-table>
@@ -137,15 +137,27 @@
</div>
</template>
<script>
- import { selectInspectsListById} from '@/api/experiment/planAssignments'
+ import { selectInspectsListById,selectUser,chooseinstum} from '@/api/experiment/planAssignments'
export default {
data(){
return {
- searchData:{ },
+ searchData:{
+ formTime: '',
+ supplier: '',
+ code: '',
+ name: '',
+ specifications: '',
+ unit: '',
+ num: '',
+ endTime: '',
+ userName: '',
+ },
insProducts:[],
- uu:'',
value:'',
- aaa:{}
+ SHEbei:[],
+ aaa:{},
+ ZERENren:[],
+ // getDevices:[]
}
},
created(){
@@ -159,8 +171,8 @@
// }
console.log(this.aaa);
this.selectInspectsListById()
- // this.selectUser()
-
+ this.selectUser()
+ this.chooseinstum()
},
methods: {
//杩斿洖
@@ -171,9 +183,19 @@
async selectUser(){
const res = await selectUser()
this.ZERENren = res.data
- // console.log(this.ZERENren);
+ 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
+ console.log(this.getDevices);
+ },
//妫�楠屽崟琛�
async selectInspectsListById() {
const res = await selectInspectsListById({id:this.aaa.id})
--
Gitblit v1.9.3