Bladeren bron

权要树优化

zhuliu 2 jaren geleden
bovenliggende
commit
a792373426

+ 5 - 0
RMS-FrontEnd/src/utils/model/tree/index.vue

@@ -81,7 +81,12 @@
    },
    watch:{
     expends(val){
+      if(val.length == 0){
+            this.openArr = []
+            return false
+        }
         var data = [...new Set(this.openArr.concat(val))]
+        this.openArr = data
         this.openNode(data)
     },
     list(){

+ 17 - 2
RMS-FrontEnd/src/views/components/articles/components/PatentRight.vue

@@ -84,12 +84,27 @@ export default {
     // },
     patentId() {
       this.initData()
-      this.handleClick()
+      if(this.name == 2){
+        this.show = false
+        this.expends = []
+        this.isClickId  = ''
+        this.$nextTick(()=>{
+           this.handleClick()
+        })
+      }
+     
     },
     patentNo(){
       if(!this.patentId){
          this.initData()
-         this.handleClick()
+         if(this.name == 2){
+          this.show = false
+          this.expends = []
+          this.isClickId  = ''
+          this.$nextTick(()=>{
+            this.handleClick()
+          })
+        }
       }
      
     },