fix
Showing
1 changed file
with
66 additions
and
62 deletions
| ... | @@ -1323,6 +1323,9 @@ onBeforeMount(async () => { | ... | @@ -1323,6 +1323,9 @@ onBeforeMount(async () => { |
| 1323 | }) | 1323 | }) |
| 1324 | } | 1324 | } |
| 1325 | if (detailType && detailType != 'add') { | 1325 | if (detailType && detailType != 'add') { |
| 1326 | getProductDetail(); | ||
| 1327 | } | ||
| 1328 | if (detailType == 'detail') { | ||
| 1326 | getParamsList({ | 1329 | getParamsList({ |
| 1327 | dictType: "数据产品上架审批合规信息", | 1330 | dictType: "数据产品上架审批合规信息", |
| 1328 | }).then((res: any) => { | 1331 | }).then((res: any) => { |
| ... | @@ -1332,23 +1335,22 @@ onBeforeMount(async () => { | ... | @@ -1332,23 +1335,22 @@ onBeforeMount(async () => { |
| 1332 | proxy.$ElMessage.error(res.msg); | 1335 | proxy.$ElMessage.error(res.msg); |
| 1333 | } | 1336 | } |
| 1334 | }) | 1337 | }) |
| 1335 | getProductDetail(); | 1338 | // return; //详情不需要调用以下接口 |
| 1336 | } | ||
| 1337 | if (detailType == 'detail') { | ||
| 1338 | return; //详情不需要调用以下接口 | ||
| 1339 | } | ||
| 1340 | await getTableData(); | ||
| 1341 | if (route.query.exchangeGuid) { | ||
| 1342 | getTableInfo(); | ||
| 1343 | } else { | ||
| 1344 | getProducts(); | ||
| 1345 | } | 1339 | } |
| 1346 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { | 1340 | if (detailType != 'detail') { |
| 1347 | if (res?.code == proxy.$passCode) { | 1341 | await getTableData(); |
| 1348 | parentAreaData.value = res.data ?? []; | 1342 | if (route.query.exchangeGuid) { |
| 1349 | return parentAreaData.value; | 1343 | getTableInfo(); |
| 1344 | } else { | ||
| 1345 | getProducts(); | ||
| 1350 | } | 1346 | } |
| 1351 | }) | 1347 | getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { |
| 1348 | if (res?.code == proxy.$passCode) { | ||
| 1349 | parentAreaData.value = res.data ?? []; | ||
| 1350 | return parentAreaData.value; | ||
| 1351 | } | ||
| 1352 | }) | ||
| 1353 | } | ||
| 1352 | // getApproveData(); | 1354 | // getApproveData(); |
| 1353 | getParamsDataList({ dictType: '资产类型' }).then((res: any) => { | 1355 | getParamsDataList({ dictType: '资产类型' }).then((res: any) => { |
| 1354 | if (res.code == proxy.$passCode) { | 1356 | if (res.code == proxy.$passCode) { |
| ... | @@ -1386,56 +1388,58 @@ onBeforeMount(async () => { | ... | @@ -1386,56 +1388,58 @@ onBeforeMount(async () => { |
| 1386 | proxy.$ElMessage.error(res.msg); | 1388 | proxy.$ElMessage.error(res.msg); |
| 1387 | } | 1389 | } |
| 1388 | }) | 1390 | }) |
| 1389 | getParamsList({ | 1391 | if (detailType != 'detail') { |
| 1390 | dictType: "数据资产目录主题名称", | 1392 | getParamsList({ |
| 1391 | }).then((res: any) => { | 1393 | dictType: "数据资产目录主题名称", |
| 1392 | if (res.code == proxy.$passCode) { | 1394 | }).then((res: any) => { |
| 1393 | subjectDomainListData.value = res.data || []; | 1395 | if (res.code == proxy.$passCode) { |
| 1394 | let item = formInfo.value.items.find(item => item.field == 'subjectDomain'); | 1396 | subjectDomainListData.value = res.data || []; |
| 1395 | item && (item.options = subjectDomainListData.value); | 1397 | let item = formInfo.value.items.find(item => item.field == 'subjectDomain'); |
| 1396 | } else { | 1398 | item && (item.options = subjectDomainListData.value); |
| 1397 | proxy.$ElMessage.error(res.msg); | 1399 | } else { |
| 1398 | } | 1400 | proxy.$ElMessage.error(res.msg); |
| 1399 | }) | 1401 | } |
| 1402 | }) | ||
| 1400 | 1403 | ||
| 1401 | getCamundaDeploymentId('10016', userData.tenantGuid, userData.staffGuid).then((res: any) => { | 1404 | getCamundaDeploymentId('10016', userData.tenantGuid, userData.staffGuid).then((res: any) => { |
| 1402 | if (res.code == proxy.$passCode) { | 1405 | if (res.code == proxy.$passCode) { |
| 1403 | deploymentId.value = res.data; | 1406 | deploymentId.value = res.data; |
| 1404 | } else { | 1407 | } else { |
| 1405 | ElMessage.error(res.msg); | 1408 | ElMessage.error(res.msg); |
| 1406 | } | 1409 | } |
| 1407 | }) | 1410 | }) |
| 1408 | // 获取质量评估机构 | 1411 | // 获取质量评估机构 |
| 1409 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => { | 1412 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12505" }).then((res: any) => { |
| 1410 | if (res.code == proxy.$passCode) { | 1413 | if (res.code == proxy.$passCode) { |
| 1411 | qualityEvaluationData.value = res.data.records || []; | 1414 | qualityEvaluationData.value = res.data.records || []; |
| 1412 | let item = formInfo.value.items.find(item => item.field == 'qualityEvaluationInstitution'); | 1415 | let item = formInfo.value.items.find(item => item.field == 'qualityEvaluationInstitution'); |
| 1413 | item && (item.options = qualityEvaluationData.value); | 1416 | item && (item.options = qualityEvaluationData.value); |
| 1414 | } else { | 1417 | } else { |
| 1415 | proxy.$ElMessage.error(res.msg); | 1418 | proxy.$ElMessage.error(res.msg); |
| 1419 | } | ||
| 1420 | }) | ||
| 1421 | // 获取价值评估机构 | ||
| 1422 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => { | ||
| 1423 | if (res.code == proxy.$passCode) { | ||
| 1424 | costAssessmentData.value = res.data.records || []; | ||
| 1425 | let item = formInfo.value.items.find(item => item.field == 'costAssessmentInstitution'); | ||
| 1426 | item && (item.options = costAssessmentData.value); | ||
| 1427 | } else { | ||
| 1428 | proxy.$ElMessage.error(res.msg); | ||
| 1429 | } | ||
| 1430 | }) | ||
| 1431 | if (route.query.exchangeGuid) { | ||
| 1432 | getTemplateInfo(); | ||
| 1416 | } | 1433 | } |
| 1417 | }) | 1434 | if (detailType && detailType != 'redit' && detailType != 'edit') { |
| 1418 | // 获取价值评估机构 | 1435 | setTimeout(() => { |
| 1419 | getSingleList({ pageIndex: -1, pageSize: -1, tenantType: "12504" }).then((res: any) => { | 1436 | formInfo.value.items.forEach(item => { |
| 1420 | if (res.code == proxy.$passCode) { | 1437 | if (item.field == 'coverageAreas') { |
| 1421 | costAssessmentData.value = res.data.records || []; | 1438 | item.children[0].visible = true |
| 1422 | let item = formInfo.value.items.find(item => item.field == 'costAssessmentInstitution'); | 1439 | } |
| 1423 | item && (item.options = costAssessmentData.value); | 1440 | }) |
| 1424 | } else { | 1441 | }, 0); |
| 1425 | proxy.$ElMessage.error(res.msg); | ||
| 1426 | } | 1442 | } |
| 1427 | }) | ||
| 1428 | if (route.query.exchangeGuid) { | ||
| 1429 | getTemplateInfo(); | ||
| 1430 | } | ||
| 1431 | if (detailType && detailType != 'redit' && detailType != 'edit') { | ||
| 1432 | setTimeout(() => { | ||
| 1433 | formInfo.value.items.forEach(item => { | ||
| 1434 | if (item.field == 'coverageAreas') { | ||
| 1435 | item.children[0].visible = true | ||
| 1436 | } | ||
| 1437 | }) | ||
| 1438 | }, 0); | ||
| 1439 | } | 1443 | } |
| 1440 | 1444 | ||
| 1441 | }) | 1445 | }) | ... | ... |
-
Please register or sign in to post a comment