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