From f1cbb246ff9b997e4d3d5bae061da374a3e0f398 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期四, 14 九月 2023 13:44:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/view/technology.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/components/view/technology.vue b/src/components/view/technology.vue
index 014791f..93e60ed 100644
--- a/src/components/view/technology.vue
+++ b/src/components/view/technology.vue
@@ -361,6 +361,7 @@
                 v-model="form.father"
                 allow-create
                 filterable
+                @create=""
                 placeholder="璇烽�夋嫨"
                 style="width: 480px"
               >
@@ -518,9 +519,9 @@
         elementId: "",
         deviceGroup: "",
       },
-      search: {
-        type: "",
-      },
+      // search: {
+      //   type: "",
+      // },
       delete: [],
       treetrunk: [],
       process: [],
@@ -624,8 +625,9 @@
         )
         .then((res) => {
           console.log(res);
-          this.selectAllTechNam();
+          /* this.selectAllTechNam(); */
           this.form = {};
+          this.$parent.removeAllTab()
         });
     },
 
@@ -664,6 +666,8 @@
       console.log(this.delete);
       this.$axios.post(this.$api.url.delAllTech, {
         ids: this.delete,
+      }).then(res=>{
+        this.$parent.removeAllTab()
       });
     },
     //鍒犻櫎
@@ -671,6 +675,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 +705,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 +727,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 +869,4 @@
     },
   },
 };
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3