fix
Showing
1 changed file
with
8 additions
and
4 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,11 +1335,9 @@ onBeforeMount(async () => { | ... | @@ -1332,11 +1335,9 @@ 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 | } | 1339 | } |
| 1340 | if (detailType != 'detail') { | ||
| 1340 | await getTableData(); | 1341 | await getTableData(); |
| 1341 | if (route.query.exchangeGuid) { | 1342 | if (route.query.exchangeGuid) { |
| 1342 | getTableInfo(); | 1343 | getTableInfo(); |
| ... | @@ -1349,6 +1350,7 @@ onBeforeMount(async () => { | ... | @@ -1349,6 +1350,7 @@ onBeforeMount(async () => { |
| 1349 | return parentAreaData.value; | 1350 | return parentAreaData.value; |
| 1350 | } | 1351 | } |
| 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,6 +1388,7 @@ onBeforeMount(async () => { | ... | @@ -1386,6 +1388,7 @@ onBeforeMount(async () => { |
| 1386 | proxy.$ElMessage.error(res.msg); | 1388 | proxy.$ElMessage.error(res.msg); |
| 1387 | } | 1389 | } |
| 1388 | }) | 1390 | }) |
| 1391 | if (detailType != 'detail') { | ||
| 1389 | getParamsList({ | 1392 | getParamsList({ |
| 1390 | dictType: "数据资产目录主题名称", | 1393 | dictType: "数据资产目录主题名称", |
| 1391 | }).then((res: any) => { | 1394 | }).then((res: any) => { |
| ... | @@ -1437,6 +1440,7 @@ onBeforeMount(async () => { | ... | @@ -1437,6 +1440,7 @@ onBeforeMount(async () => { |
| 1437 | }) | 1440 | }) |
| 1438 | }, 0); | 1441 | }, 0); |
| 1439 | } | 1442 | } |
| 1443 | } | ||
| 1440 | 1444 | ||
| 1441 | }) | 1445 | }) |
| 1442 | 1446 | ... | ... |
-
Please register or sign in to post a comment