From 039d01c3ee6217e18ef3bcaec263fd2ad59e6f68 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 20 九月 2023 16:19:51 +0800
Subject: [PATCH] modified: src/components/view/equipmentmaintain.vue modified: src/components/view/standard-table/material.vue modified: src/components/view/standard-table/product.vue modified: src/components/view/standard-table/target.vue modified: src/components/view/standard-table/technology.vue
---
src/components/view/laboratoryManagement.vue | 44 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 38 insertions(+), 6 deletions(-)
diff --git a/src/components/view/laboratoryManagement.vue b/src/components/view/laboratoryManagement.vue
index f00b04d..c29f494 100644
--- a/src/components/view/laboratoryManagement.vue
+++ b/src/components/view/laboratoryManagement.vue
@@ -53,6 +53,9 @@
<el-form-item label="璁惧缁�" prop="name">
<el-select
v-model="ruleForm.equr"
+ allow-create
+ filterable
+ @create=""
placeholder="璇烽�夋嫨璁惧缁�"
>
<el-option
@@ -63,6 +66,12 @@
>
</el-option>
</el-select>
+ <!-- <el-autocomplete
+ class="inline-input"
+ v-model="ruleForm.equr"
+ :fetch-suggestions="querySearch"
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ ></el-autocomplete> -->
</el-form-item>
</el-col>
<el-col :span="12">
@@ -414,7 +423,7 @@
// BOM鏍戞暟鎹粨鏋�
towTree: [],
equipment: '1',
- equaip:'',
+ equaip:[],
ruleForm: {
// 鏂板浠櫒琛ㄥ崟
code: "",
@@ -484,7 +493,21 @@
console.log(this.checkTreeNode);
this.selectDevice()
},
-
+ selectInput(){
+
+ },
+ // querySearch(queryString, cb) {
+ // console.log(this.equaip);
+ // var restaurants = this.equaip;
+ // var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
+ // // 璋冪敤 callback 杩斿洖寤鸿鍒楄〃鐨勬暟鎹�
+ // cb(results);
+ // },
+ // createFilter(queryString) {
+ // return (restaurant) => {
+ // return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
+ // };
+ // },
staueValueChange() {
this.selectDevice()
// this.tableData = [];
@@ -556,9 +579,17 @@
params:{
type:this.equip
}
- }).then(res =>{
- this.equaip = res.data
- console.log(this.equip);
+ })
+ .then(res =>{
+ this.equaip = res.data
+ // res.data.forEach(item=>{
+ // let obj={
+ // id: item,
+ // value: item
+ // }
+ // this.equaip.push(obj)
+ console.log(this.equaip);
+ // })
})
},
RadioChange(val){
@@ -588,6 +619,7 @@
let one=this.towTree[0]
console.log(one);
let name =one.father
+ this.checkTreeNode.father = name
console.log(name);
this.selectDeviceStart(name)
});
@@ -639,9 +671,9 @@
type:this.ruleForm.type,
}, {headers: {"Content-Type": "application/json"}
}).then(res =>{
+ this.selectDevice()
this.$message.success('鏂板鎴愬姛')
this.ruleForm = {}
- this.selectDevice()
})
},
// tableDataApi() {
--
Gitblit v1.9.3