From 7c86df822b4b8d06ee89388ea75ad5f47a89373e Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 14 九月 2023 17:38:43 +0800 Subject: [PATCH] modified: src/App.vue modified: src/assets/api/controller.js modified: src/components/view/rawInsDetail.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 modified: src/components/view/standard.vue modified: src/components/view/rawInsDetail.vue --- 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 c75c027..b6a6201 100644 --- a/src/components/view/standard.vue +++ b/src/components/view/standard.vue @@ -56,7 +56,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> @@ -391,6 +391,7 @@ return { //瀛愮粍浠朵紶鐨刬d鍒楄〃 childIds:[], + isUpdateDevice:false, //宸ュ簭鍒楄〃 fatherList:[], deviceList:[], @@ -505,6 +506,9 @@ this.selectVersion() }, methods: { + updateDevice(val){ + this.isUpdateDevice = val; + }, changeLeftAdd(){ if(this.leftAdd.type.length===2){ this.leftAdd.father=null @@ -730,6 +734,7 @@ this.materialVisible = false; this.productVisible = false; }, + //娓呯┖鏂板bom琛ㄥ崟 clearBomAddModel(){ if(this.typeselect == 0){ this.deviceList=[]; @@ -740,6 +745,7 @@ this.$refs["targetForm"].resetFields(); }else if(this.typeselect == 2){ this.mIdList = []; + this.materialForm.tableList = []; this.$refs["materialForm"].resetFields(); }else{ this.productDeviceList=[]; @@ -999,7 +1005,6 @@ let arr = res.data; this.formatData(arr) this.tableData = arr; - console.log("arr--",arr); }) }, formatData(data){ @@ -1119,6 +1124,11 @@ } }, watch:{ + isUpdateDevice(val){ + if(val){ + this.selectAll(); + } + }, search(val) { this.$refs.tree.filter(val); }, -- Gitblit v1.9.3