From 4fa97f6b365035a1f811833b54ada53a9a1a35da Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 08 九月 2023 16:45:48 +0800
Subject: [PATCH] 设备维护,标准Bom
---
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 55d2727..aaa4a0f 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