From 5651ee8cec90cce413eb6b25f29cef47f13b19fc Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期六, 09 九月 2023 15:50:34 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.22:9001/r/mom-before --- src/components/view/laboratoryManagement.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/view/laboratoryManagement.vue b/src/components/view/laboratoryManagement.vue index ab70c08..9cbf45d 100644 --- a/src/components/view/laboratoryManagement.vue +++ b/src/components/view/laboratoryManagement.vue @@ -427,7 +427,7 @@ equr:1, }, delete:{}, - equip:[], + equip:1, rules: { name: [ { required: true, message: "璇疯緭鍏ヤ华鍣ㄨ澶囩紪鍙�", trigger: "blur" }, @@ -465,12 +465,20 @@ } }; }, + mounted() { + // 鍒濆鍖栬皟鐢ㄤ簩绾ф爲 + this.twoTreeApi(); + // 鍒濆鍖栬皟鐢ㄨ〃鏍兼暟鎹� + // this.tableDataApi(); + this.selectDevice()//鍙宠竟 + }, methods: { selectDevice() {//鍙宠竟鏁版嵁 - console.log(this.$api.url.selectDevice); + console.log(this.ruleForm.treedata.father); + console.log(this.equip); this.$axios.get(this.$api.url.selectDevice,{ params:{ - father:this.treedata.father, + father:this.ruleForm.treedata.father, type:this.equip, } }).then(res =>{ @@ -582,7 +590,7 @@ }, handleNodeClick(data) { console.log(data); - this.treedata = data + // this.treedata = data this.selectDevice() }, handlerDeptList() { @@ -720,13 +728,7 @@ }); } }, - mounted() { - // 鍒濆鍖栬皟鐢ㄤ簩绾ф爲 - this.twoTreeApi(); - // 鍒濆鍖栬皟鐢ㄨ〃鏍兼暟鎹� - this.tableDataApi(); - this.selectDevice()//鍙宠竟 - }, + watch: { "ruleForm.rawInsProductId": { //鐩戝惉ruleForm.rawInsProductId -- Gitblit v1.9.3