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