瀏覽代碼

月报汇总classtype修改

duy 2 年之前
父節點
當前提交
fca9cbc2c5
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/tentative/collect/components/TestTree.vue

+ 7 - 1
src/views/tentative/collect/components/TestTree.vue

@@ -8,6 +8,7 @@
 import {ref,watch} from "vue";
 import dataFillQuery from '~api/data-fill/query';
 import {getArrValue,getObjValue} from "vue-utils-plus"
+import {useAppStore} from "~src/store";
 
 //参数
 const props = defineProps({
@@ -34,6 +35,10 @@ const ElTreeProps = ref({
 })
 const projectId = ref(props.projectId);
 const contractId = ref(props.contractId);
+const useAppState = useAppStore()
+const contractInfo = ref(useAppState.getContractInfo);
+const { contractType } = contractInfo.value;
+const classifyType  = ref(contractType === 2 ? '2' : '1')
 
 //监听
 watch(() => [
@@ -63,7 +68,8 @@ const ElTreeLoadNode = async (node, resolve) => {
         contractId: contractId.value || '',
         contractIdRelation,
         primaryKeyId,
-        parentId
+        parentId,
+        classifyType:classifyType.value
     })
     const resData = getArrValue(data)
     if (resData.length > 0 && node.level === 0) {