From 0818becbf021341ce369d4f92b2ade3a2648a953 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期五, 15 九月 2023 13:45:48 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.22:9001/r/mom-before --- src/components/view/laboratoryManagement.vue | 48 +++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 41 insertions(+), 7 deletions(-) diff --git a/src/components/view/laboratoryManagement.vue b/src/components/view/laboratoryManagement.vue index 38548d3..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() { @@ -696,7 +728,9 @@ delDeviceById() { this.$axios.post(this.$api.url.delDeviceById,{ id:this.delete.id - }) + }).then(res=>{ + this.$parent.removeAllTab() + }); }, handleClick(row) { console.log(row); -- Gitblit v1.9.3