|
@@ -12,7 +12,7 @@
|
|
|
</div>
|
|
|
<div v-loading="treeLoading" class="hc-tree-box" element-loading-text="加载中...">
|
|
|
<el-scrollbar>
|
|
|
- <WbsTree :autoExpandKeys="treeAutoExpandKeys" :classifyType="1" :contractId="contractId"
|
|
|
+ <WbsTree :autoExpandKeys="treeAutoExpandKeys" :classifyType="classifyType" :contractId="contractId"
|
|
|
:menus="ElTreeMenu"
|
|
|
:projectId="projectId"
|
|
|
:submitCounts="true" isColor ui="page-division-tree" @menuTap="ElTreeMenuClick"
|
|
@@ -380,6 +380,9 @@ const projectId = ref(useAppState.getProjectId);
|
|
|
const contractId = ref(useAppState.getContractId);
|
|
|
const projectInfo = ref(useAppState.getProjectInfo);
|
|
|
const isCollapse = ref(useAppState.getCollapse)
|
|
|
+const contractInfo = ref(useAppState.getContractInfo);
|
|
|
+const { contractType } = contractInfo.value;
|
|
|
+const classifyType = ref(contractType === 2 ? '2' : '1')
|
|
|
|
|
|
//监听
|
|
|
watch(() => [
|