ab2f71b2 by xukangle

Merge branch 'develop' into release-test

2 parents 63a98ad6 4fb866e2
......@@ -272,3 +272,13 @@ export const filterVal = (val, type) => {
}
}
/***
* 根据guid查询评估文件
* @param {Object} params
* path: /product-grounding/get-file-by-dam-guid
* method get
*/
export const getFileByDamGuid = (params) => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/get-file-by-dam-guid?damGuid=${params.damGuid}`,
method: 'get',
})
......
......@@ -15,11 +15,11 @@ import { changeNum } from '@/utils/common';
import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common';
import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService";
import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getParamsList, getServiceDetail } from "@/api/modules/dataAsset";
import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList } from "@/api/modules/dataProduct";
import { getProductList, getFileByDamGuid, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList } from "@/api/modules/dataProduct";
import { getMatchDetail } from "@/api/modules/dataFinance";
import { useValidator } from '@/hooks/useValidator';
import { getCamundaDeploymentId } from "@/api/modules/workFlowService";
import { da } from "element-plus/es/locale";
const { required } = useValidator();
const route = useRoute();
......@@ -1192,9 +1192,27 @@ const setFormItems = (row: any = null, isDetail = false) => {
const selectChange = async (val, row, info) => {
if (row.field == 'damName') {
const data = row.options.filter(o => o.damName == val);
console.log(data, '-------123----------');
let coverageArea = (data.length && data[0].coverageArea) ? data[0].coverageArea : [];
await setFormItems({ ...info, coverageArea: coverageArea });
const res: any = await getFileByDamGuid({ damGuid: data[0].damGuid });
if (res.code == proxy.$passCode) {
formInfo.value.items.forEach((item: any) => {
// if (item.field == 'qualityEvaluationInstitution') {
// item.default = res.data.qualityEvaluationInstitution || [];
// }
// if (item.field == 'costAssessmentInstitution') {
// item.default = res.data.costAssessmentInstitution || [];
// }
if (item.field == 'costAssessmentFileInfo') {
item.default = res.data.assessmentFile || [];
}
if (item.field == 'qualityEvaluationFileInfo') {
item.default = res.data.evaluationFile || [];
}
});
}
formInfo.value.items.at(0).default = val;
formInfo.value.items.at(1).default = data.length ? data[0].damType : '';
// formInfo.value.items.at(2).default = data.length ? data[0].subjectDomain : '';
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!