|
@@ -148,6 +148,7 @@ import HTableForm from "~src/plugins/HTableForm"
|
|
|
import DateCalendar from "./dateCalendar/index.vue"
|
|
|
import {getObjValue, getObjNullValue, isString, getArrValue, isValueNull} from "vue-utils-plus"
|
|
|
import HcTableForm from "~com/table-form/index.vue";
|
|
|
+import {useAppStore} from "~src/store";
|
|
|
|
|
|
//参数
|
|
|
const props = defineProps({
|
|
@@ -177,7 +178,10 @@ const userName = ref(props.userName);
|
|
|
const excelIdVal = ref('');
|
|
|
const statusDesc = ref('');
|
|
|
const tableFormRef = ref(null);
|
|
|
-
|
|
|
+const useAppState = useAppStore()
|
|
|
+const contractInfo = ref(useAppState.getContractInfo);
|
|
|
+const { contractType } = contractInfo.value;
|
|
|
+const classifyType = ref(contractType === 2 ? '2' : '1')
|
|
|
//监听
|
|
|
watch(() => [
|
|
|
props.projectId,
|
|
@@ -382,7 +386,8 @@ const ElTreeLoadNode = async (node, resolve) => {
|
|
|
contractId: contractId.value || '',
|
|
|
contractIdRelation: '',
|
|
|
primaryKeyId: '',
|
|
|
- parentId: ''
|
|
|
+ parentId: '',
|
|
|
+ classifyType:classifyType.value,
|
|
|
})
|
|
|
//处理数据
|
|
|
if (!error && code === 200) {
|
|
@@ -398,7 +403,9 @@ const ElTreeLoadNode = async (node, resolve) => {
|
|
|
contractId: contractId.value || '',
|
|
|
contractIdRelation: contractIdRelation,
|
|
|
primaryKeyId: id,
|
|
|
- parentId: contractIdRelation ? primaryKeyId : id
|
|
|
+ parentId: contractIdRelation ? primaryKeyId : id,
|
|
|
+ classifyType:classifyType,
|
|
|
+
|
|
|
})
|
|
|
//处理数据
|
|
|
if (!error && code === 200) {
|