Sfoglia il codice sorgente

公式配置全局搜索修改

duy 2 anni fa
parent
commit
3a1c2518de
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6 4
      src/views/formula/edit1.vue

+ 6 - 4
src/views/formula/edit1.vue

@@ -795,7 +795,7 @@ export default {
       this.eleTableListComp =[];
       this.eleTableId='';
       this.eleTableIdComp=''
-      if (this.filterText&&this.treeId) {
+      if (this.filterText) {
         this.allTreeShow = true;
         this.allTreeData=[]
         if (!this.allTreeData.length) {
@@ -805,7 +805,8 @@ export default {
              if(this.curData.hasChildren){
                parentId=this.curData.id
              }else{
-                parentId=this.curData.parentId
+                // parentId=this.curData.parentId
+                 parentId=''
              }
                tabTypeLazyTreeAll({parentId:parentId,current:1,size:1000,titleName:this.filterText}).then((res) => {
                   this.treeloading = false;
@@ -822,7 +823,8 @@ export default {
              if(this.curData.hasChildren){
                parentId=this.curData.id
              }else{
-                parentId=this.curData.parentId
+                // parentId=this.curData.parentId
+                 parentId=''
              }
              console.log(parentId,'parentId');
                 tabTypeLazyTree({parentId:parentId,projectId:this.projectid,pcurrent:1,size:1000,titleName:this.filterText}).then((res) => {
@@ -838,7 +840,7 @@ export default {
           this.$refs.treeall.filter(this.filterText);
         }
       } else {
-        this.$message.warning('请先选择父节点')
+        this.$message.warning('请先输入文字')
         this.allTreeShow = false;
       }
     },