Forráskód Böngészése

内作业进度classtype更改

duy 2 éve
szülő
commit
63ee24b637

+ 1 - 1
src/views/ledger/components/table-form.vue

@@ -387,7 +387,7 @@ const ElTreeLoadNode = async (node, resolve) => {
             contractIdRelation: contractIdRelation,
             primaryKeyId: id,
             parentId: contractIdRelation ? primaryKeyId : id,
-            classifyType: classifyType,
+            classifyType: classifyType.value,
         })
         //处理数据
         if (!error && code === 200) {

+ 4 - 2
src/views/schedule/write.vue

@@ -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