|
@@ -12,7 +12,7 @@
|
|
|
</div>
|
|
|
<div class="hc-tree-box">
|
|
|
<el-scrollbar>
|
|
|
- <WbsTree :autoExpandKeys="treeAutoExpandKeys" :projectId="projectId" :contractId="contractId" @nodeTap="wbsElTreeClick"/>
|
|
|
+ <WbsTree :autoExpandKeys="treeAutoExpandKeys" :projectId="projectId" :contractId="contractId" @nodeTap="wbsElTreeClick" :classifyType="classifyType"/>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<!--左右拖动-->
|
|
@@ -39,7 +39,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(() => [
|
|
|
useAppState.getCollapse
|