From 7d3abf8ef0ca35f431e74f8282d80beda40e535d Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期四, 14 九月 2023 11:53:09 +0800 Subject: [PATCH] 改bug --- src/components/view/technology.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/view/technology.vue b/src/components/view/technology.vue index 014791f..a6c319a 100644 --- a/src/components/view/technology.vue +++ b/src/components/view/technology.vue @@ -518,9 +518,9 @@ elementId: "", deviceGroup: "", }, - search: { - type: "", - }, + // search: { + // type: "", + // }, delete: [], treetrunk: [], process: [], @@ -624,8 +624,9 @@ ) .then((res) => { console.log(res); - this.selectAllTechNam(); + /* this.selectAllTechNam(); */ this.form = {}; + this.$parent.removeAllTab() }); }, @@ -664,6 +665,8 @@ console.log(this.delete); this.$axios.post(this.$api.url.delAllTech, { ids: this.delete, + }).then(res=>{ + this.$parent.removeAllTab() }); }, //鍒犻櫎 @@ -671,6 +674,8 @@ console.log(this.$api.url.delTechById, this.upData.id); this.$axios.post(this.$api.url.delTechById, { id: this.upData.id, + }).then(res=>{ + this.$parent.removeAllTab() }); }, //缂栬緫 @@ -699,14 +704,15 @@ } ) .then((res) => { - this.selectAllTechNam() + /* this.selectAllTechNam(), */ + this.$parent.removeAllTab() }); }, query(val) { this.selectAllTechTem(); }, - selectAllTechTem() { + selectAllTechTem() { this.$axios .get(this.$api.url.selectAllTechTem, { params: { type: this.typeselect, message: this.search.technology }, @@ -720,7 +726,8 @@ let one=this.towTree.filter(item=>{ return item.children.length>0 })[0] - let name=one.children[0].name + let name=one.children[0].name + this.checkTreeNode.name=name this.selectAllTechNamStart(name) this.selectDataList(); }); @@ -861,4 +868,4 @@ }, }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3