066e4995 by xukangle

fix

1 parent 2eb2a94e
...@@ -15,10 +15,11 @@ import { changeNum } from '@/utils/common'; ...@@ -15,10 +15,11 @@ import { changeNum } from '@/utils/common';
15 import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; 15 import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common';
16 import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService"; 16 import { getAreaData, getServiceTenants, getSingleList } from "@/api/modules/queryService";
17 import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getParamsList, getServiceDetail } from "@/api/modules/dataAsset"; 17 import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getParamsList, getServiceDetail } from "@/api/modules/dataAsset";
18 import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile } from "@/api/modules/dataProduct"; 18 import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList, listingUpdateGateway, getDataExchangeProductList, getTemplateFile, getListingList } from "@/api/modules/dataProduct";
19 import { getMatchDetail } from "@/api/modules/dataFinance"; 19 import { getMatchDetail } from "@/api/modules/dataFinance";
20 import { useValidator } from '@/hooks/useValidator'; 20 import { useValidator } from '@/hooks/useValidator';
21 import { getCamundaDeploymentId } from "@/api/modules/workFlowService"; 21 import { getCamundaDeploymentId } from "@/api/modules/workFlowService";
22 import { da } from "element-plus/es/locale";
22 23
23 const { required } = useValidator(); 24 const { required } = useValidator();
24 const route = useRoute(); 25 const route = useRoute();
...@@ -704,6 +705,11 @@ const getTableInfo = () => { ...@@ -704,6 +705,11 @@ const getTableInfo = () => {
704 getDataExchangeProductList({}).then((res: any) => { 705 getDataExchangeProductList({}).then((res: any) => {
705 if (res.code == proxy.$passCode) { 706 if (res.code == proxy.$passCode) {
706 let data = res.data || []; 707 let data = res.data || [];
708 // 进行去重 去掉data 中在pageLIstInfo.value中已有的数据
709
710 data = data.filter((item: any) => {
711 return !pageLIstInfo.value.find((pageItem: any) => pageItem.damGuid == item.damGuid)
712 })
707 formInfo.value.items[0].options = data; 713 formInfo.value.items[0].options = data;
708 } 714 }
709 }) 715 })
...@@ -1090,7 +1096,7 @@ const btnClick = (btn) => { ...@@ -1090,7 +1096,7 @@ const btnClick = (btn) => {
1090 } else { 1096 } else {
1091 userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath)); 1097 userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath));
1092 router.push({ 1098 router.push({
1093 name: "productListingCheck", 1099 name: "productListing",
1094 query: {}, 1100 query: {},
1095 }); 1101 });
1096 } 1102 }
...@@ -1341,7 +1347,7 @@ onActivated(() => { ...@@ -1341,7 +1347,7 @@ onActivated(() => {
1341 const deploymentId = ref(''); 1347 const deploymentId = ref('');
1342 const qualityEvaluationData = ref<any>(''); 1348 const qualityEvaluationData = ref<any>('');
1343 const costAssessmentData = ref<any>(''); 1349 const costAssessmentData = ref<any>('');
1344 onBeforeMount(() => { 1350 onBeforeMount(async () => {
1345 // case 1: 数交易所 case 2: 门户 1351 // case 1: 数交易所 case 2: 门户
1346 if (route.query.case == '2') { 1352 if (route.query.case == '2') {
1347 formInfo.value.items.forEach(item => { 1353 formInfo.value.items.forEach(item => {
...@@ -1350,7 +1356,12 @@ onBeforeMount(() => { ...@@ -1350,7 +1356,12 @@ onBeforeMount(() => {
1350 } 1356 }
1351 }) 1357 })
1352 } 1358 }
1353 1359 await getTableData();
1360 if (route.query.exchangeGuid) {
1361 getTableInfo();
1362 } else {
1363 getProducts();
1364 }
1354 getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => { 1365 getParentAreaPromise.value = getAreaData({ parentId: null }).then((res: any) => {
1355 if (res?.code == proxy.$passCode) { 1366 if (res?.code == proxy.$passCode) {
1356 parentAreaData.value = res.data ?? []; 1367 parentAreaData.value = res.data ?? [];
...@@ -1452,15 +1463,27 @@ onBeforeMount(() => { ...@@ -1452,15 +1463,27 @@ onBeforeMount(() => {
1452 } 1463 }
1453 }) 1464 })
1454 if (route.query.exchangeGuid) { 1465 if (route.query.exchangeGuid) {
1455 getTableInfo();
1456 } else {
1457 getProducts();
1458 }
1459 if (route.query.exchangeGuid) {
1460 getTemplateInfo(); 1466 getTemplateInfo();
1461 } 1467 }
1468
1462 }) 1469 })
1463 1470
1471 const pageLIstInfo = ref<any>();
1472 const getTableData = async () => {
1473 const res: any = await getListingList({
1474 pageIndex: 1,
1475 pageSize: -1,
1476 });
1477 if (res.code == proxy.$passCode) {
1478 pageLIstInfo.value = res.data.records || [];
1479 } else {
1480 ElMessage({
1481 type: "error",
1482 message: res.msg,
1483 });
1484 }
1485 }
1486
1464 // 获取模板信息 1487 // 获取模板信息
1465 const getTemplateInfo = () => { 1488 const getTemplateInfo = () => {
1466 getTemplateFile({ tenantGuid: route.query.exchangeGuid }).then((res: any) => { 1489 getTemplateFile({ tenantGuid: route.query.exchangeGuid }).then((res: any) => {
...@@ -2102,12 +2125,17 @@ const prcieInfo = computed(() => { ...@@ -2102,12 +2125,17 @@ const prcieInfo = computed(() => {
2102 <div class="tool_btns" v-if="detailType == 'add' || detailType == 'edit' || detailType == 'redit'"> 2125 <div class="tool_btns" v-if="detailType == 'add' || detailType == 'edit' || detailType == 'redit'">
2103 <div class="btns"> 2126 <div class="btns">
2104 <el-button @click="btnClick({ value: 'cancel' })">返回</el-button> 2127 <el-button @click="btnClick({ value: 'cancel' })">返回</el-button>
2105 <el-button @click="btnClick({ value: 'draft' })" 2128 <!-- <el-button @click="btnClick({ value: 'draft' })"
2106 v-if="route.query.type == 'add' || route.query.type == 'edit'">保存草稿</el-button> 2129 v-if="route.query.type == 'add' || route.query.type == 'edit'">保存草稿</el-button> -->
2107 <el-button type="primary" @click="btnClick({ value: 'submit' })">提交流程</el-button> 2130 <el-button type="primary" @click="btnClick({ value: 'submit' })">提交流程</el-button>
2108 </div> 2131 </div>
2109 </div> 2132 </div>
2110 <div class="tool_btns" v-else-if="detailType == 'check'"> 2133 <div class="tool_btns" v-else-if="detailType == 'detail'">
2134 <div class="btns">
2135 <el-button @click="btnClick({ value: 'cancel' })">关闭</el-button>
2136 </div>
2137 </div>
2138 <div class=" tool_btns" v-else-if="detailType == 'check'">
2111 <div class="btns"> 2139 <div class="btns">
2112 <el-button plain @click="btnClick({ value: 'cancel' })">关闭</el-button> 2140 <el-button plain @click="btnClick({ value: 'cancel' })">关闭</el-button>
2113 <el-button type="primary" @click="btnClick({ value: 'pass' })" 2141 <el-button type="primary" @click="btnClick({ value: 'pass' })"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
6 import { onUploadFilePreview } from '@/api/modules/common'; 6 import { onUploadFilePreview } from '@/api/modules/common';
7 import { getComplianceInfoPageList, updateComplianceInfo } from '@/api/modules/securityMenu'; 7 import { getComplianceInfoPageList, updateComplianceInfo } from '@/api/modules/securityMenu';
8 import TableTools from '@/components/Tools/table_tools.vue'; 8 import TableTools from '@/components/Tools/table_tools.vue';
9 import { TableColumnWidth } from '@/utils/enum';
9 import { ElMessage } from 'element-plus'; 10 import { ElMessage } from 'element-plus';
10 const { proxy } = getCurrentInstance() as any; 11 const { proxy } = getCurrentInstance() as any;
11 const dialogLabelFormRef = ref(); 12 const dialogLabelFormRef = ref();
...@@ -68,7 +69,7 @@ const tableInfo = ref({ ...@@ -68,7 +69,7 @@ const tableInfo = ref({
68 return scope.row.entryComplianceProgram?.length > 0 ? '预览' : '--'; 69 return scope.row.entryComplianceProgram?.length > 0 ? '预览' : '--';
69 } 70 }
70 }, 71 },
71 { label: "操作时间", field: "updateTime", width: 120 }, 72 { label: "操作时间", field: "updateTime", width: TableColumnWidth.DATETIME },
72 ], 73 ],
73 data: tableDataList.value, 74 data: tableDataList.value,
74 page: { 75 page: {
...@@ -353,7 +354,7 @@ const getTableData = () => { ...@@ -353,7 +354,7 @@ const getTableData = () => {
353 354
354 .main_wrap { 355 .main_wrap {
355 height: 100%; 356 height: 100%;
356 padding: 11px 16px 0 16px; 357 padding: 11px 8px 0 8px;
357 358
358 .main_wrap-top-area { 359 .main_wrap-top-area {
359 display: flex; 360 display: flex;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!