From 5c76f242b20281b51d01ce2266e8beaafe8ae5a6 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期五, 15 九月 2023 10:00:34 +0800 Subject: [PATCH] 改bug --- src/components/view/standard.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue index de29f7f..abef430 100644 --- a/src/components/view/standard.vue +++ b/src/components/view/standard.vue @@ -58,7 +58,7 @@ </div> <div class="contentTable" v-if="this.typeselect == 0"> - <technology @childData="getChildData" :tableType="tableType" :tableData="tableData"></technology> + <technology @childData="getChildData" @updateDevice="updateDevice" :tableType="tableType" :tableData="tableData"></technology> </div> <div class="contentTable" v-if="this.typeselect == 1"> <target @childData="getChildData" :tableType="tableType" :tableData="tableData"></target> @@ -393,6 +393,7 @@ return { //瀛愮粍浠朵紶鐨刬d鍒楄〃 childIds:[], + isUpdateDevice:false, //宸ュ簭鍒楄〃 fatherList:[], deviceList:[], @@ -507,6 +508,9 @@ this.selectVersion() }, methods: { + updateDevice(val){ + this.isUpdateDevice = val; + }, changeLeftAdd(){ if(this.leftAdd.type.length===2){ this.leftAdd.father=null @@ -778,6 +782,7 @@ this.materialVisible = false; this.productVisible = false; }, + //娓呯┖鏂板bom琛ㄥ崟 clearBomAddModel(){ if(this.typeselect == 0){ this.deviceList=[]; @@ -788,6 +793,7 @@ this.$refs["targetForm"].resetFields(); }else if(this.typeselect == 2){ this.mIdList = []; + this.materialForm.tableList = []; this.$refs["materialForm"].resetFields(); }else{ this.productDeviceList=[]; @@ -1047,7 +1053,6 @@ let arr = res.data; this.formatData(arr) this.tableData = arr; - console.log("arr--",arr); }) }, formatData(data){ @@ -1190,6 +1195,11 @@ } }, watch:{ + isUpdateDevice(val){ + if(val){ + this.selectAll(); + } + }, search(val) { this.$refs.tree.filter(val); }, -- Gitblit v1.9.3