|
@@ -10,9 +10,6 @@
|
|
|
|
|
|
</el-menu>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
<div class="boxswai" style="width: 30%; padding-left: 0px">
|
|
|
<div class="boxnei" style="display: flex; flex-direction: column">
|
|
@@ -24,7 +21,7 @@
|
|
|
</el-input>
|
|
|
<el-button size="small" class="mg-l-10" @click="treeFilter">搜索</el-button>
|
|
|
</div>
|
|
|
- <el-tree style="display: inline-block;min-width: 100%;" class="filter-tree" :data="treeData"
|
|
|
+ <el-tree style="display: inline-block;min-width: 100%;" class="filter-tree" :data="treeData" v-loading="treeloading"
|
|
|
:default-expanded-keys="defaultExpanded" @node-click="getNodeDetail" :props="defaultProps"
|
|
|
:expand-on-click-node="false" highlight-current node-key="id" ref="tree" lazy :load="treeLoadNode"
|
|
|
v-show="!allTreeShow">
|
|
@@ -145,16 +142,23 @@ export default {
|
|
|
this.treeloading = true;
|
|
|
this.allTreeShow = false;
|
|
|
this.activeIndex=item
|
|
|
+ this.curData={}
|
|
|
+ this.treeData=[]
|
|
|
+ this.editEleListFilter=[]
|
|
|
+ this.editEleListAll=[]
|
|
|
let parentId=''
|
|
|
+ if (this.$refs.tree) {
|
|
|
+ this.$refs.tree.setCurrentKey(null);
|
|
|
+ }
|
|
|
if(this.curData.hasChildren){
|
|
|
parentId=this.curData.id
|
|
|
}else{
|
|
|
// parentId=this.curData.parentId
|
|
|
- parentId=''
|
|
|
+ parentId='12345678910'
|
|
|
}
|
|
|
- tabTypeLazyTree({parentId:parentId,projectId:this.projectid,pcurrent:1,size:1000,titleName:this.filterText,majorDataType:this.activeIndex}).then((res) => {
|
|
|
+ tabTypeLazyTree({parentId:parentId,projectId:this.projectid,current:1,size:1000,titleName:this.filterText,majorDataType:this.activeIndex}).then((res) => {
|
|
|
this.treeloading = false;
|
|
|
- this.allTreeData = res.data.data.records;
|
|
|
+ this.treeData = res.data.data.records;
|
|
|
});
|
|
|
},
|
|
|
clearfiltertext() {
|