|
@@ -64,7 +64,7 @@
|
|
|
<div class="flex flex-d-c flex1 ov-hidden">
|
|
|
<el-row :gutter="20" class="flex1 ov-hidden">
|
|
|
<el-col :span="8" class="h-100p">
|
|
|
- <el-card shadow="never" class="h-100p ov-auto">
|
|
|
+ <el-card shadow="never" v-loading="treeLoad" class="h-100p ov-auto">
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
<!-- <el-tree
|
|
|
class="filter-tree"
|
|
@@ -377,6 +377,7 @@ export default {
|
|
|
formulaid:'',
|
|
|
|
|
|
treeData:[],//树节点
|
|
|
+ treeLoad:false,
|
|
|
defaultExpanded:[],//默认展开节点
|
|
|
|
|
|
isRetain: false, //是否保留小数
|
|
@@ -488,13 +489,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
geTreeData(){
|
|
|
+ this.treeLoad = true;
|
|
|
if(this.pid){
|
|
|
findProjectTree(this.pid, this.wbsid).then((res) => {
|
|
|
+ this.treeLoad = false;
|
|
|
this.treeData = res.data.data;
|
|
|
this.defaultExpanded = [this.nodeid];
|
|
|
})
|
|
|
}else{
|
|
|
getAlltree(this.userInfo.tenant_id, 1, this.wbsid).then((res) => {
|
|
|
+ this.treeLoad = false;
|
|
|
this.treeData = res.data.data;
|
|
|
this.defaultExpanded = [this.nodeid];
|
|
|
})
|