3ce663e6 by xukangle

Merge branch 'dev_20241202_xukangle' into develop

2 parents 720e5ba4 e3e7540e
...@@ -70,7 +70,11 @@ VITE_APP_COMMON_URL = 'ms-daop-common-service' ...@@ -70,7 +70,11 @@ VITE_APP_COMMON_URL = 'ms-daop-common-service'
70 70
71 #门户接口 71 #门户接口
72 VITE_API_PORTALURL = https://swzl-test.zgsjzc.com/portal 72 VITE_API_PORTALURL = https://swzl-test.zgsjzc.com/portal
73 #新门户接口
74 VITE_API_NEW_PORTAL = ms-daop-zcgl-asset-dam-service
73 75
76 #人员服务
77 VITE_APP_PERSONAL_URL = 'ms-daop-personel-service'
74 #数据资产接口地址 78 #数据资产接口地址
75 VITE_API_ASSET_BASEURL = ms-swzl-data-dam-service 79 VITE_API_ASSET_BASEURL = ms-swzl-data-dam-service
76 #数据同步接口地址 80 #数据同步接口地址
......
...@@ -13,7 +13,7 @@ export const getProductList = (params) => request({ ...@@ -13,7 +13,7 @@ export const getProductList = (params) => request({
13 13
14 /** 获取已添加的数据产品列表 */ 14 /** 获取已添加的数据产品列表 */
15 export const getAddedProductList = (params) => request({ 15 export const getAddedProductList = (params) => request({
16 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/list-select`, 16 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/list-select`,
17 method: 'post', 17 method: 'post',
18 data: params 18 data: params
19 }) 19 })
...@@ -27,35 +27,43 @@ export const getListingList = (params) => request({ ...@@ -27,35 +27,43 @@ export const getListingList = (params) => request({
27 27
28 /** 获取数据产品上架详情 */ 28 /** 获取数据产品上架详情 */
29 export const getListingDetail = (params) => request({ 29 export const getListingDetail = (params) => request({
30 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/detail`, 30 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/detail`,
31 method: 'get', 31 method: 'get',
32 params 32 params
33 }) 33 })
34 34
35 /** 新增数据产品上架信息 */ 35 /** 新增数据产品上架信息 */
36 export const listingSave = (params) => request({ 36 export const listingSave = (params) => request({
37 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/save`, 37 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/save`,
38 method: 'post',
39 data: params
40 });
41
42 /**数据产品上架新增门户/product-grounding/save-gateway */
43
44 export const listingSavePortal = (params) => request({
45 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/save-gateway`,
38 method: 'post', 46 method: 'post',
39 data: params 47 data: params
40 }); 48 });
41 49
42 /** 更新数据产品上架信息 */ 50 /** 更新数据产品上架信息 */
43 export const listingUpdate = (params) => request({ 51 export const listingUpdate = (params) => request({
44 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/update`, 52 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/update`,
45 method: 'post', 53 method: 'post',
46 data: params 54 data: params
47 }); 55 });
48 56
49 /** 删除数据产品上架信息 */ 57 /** 删除数据产品上架信息 */
50 export const listingDelete = (params) => request({ 58 export const listingDelete = (params) => request({
51 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/delete`, 59 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/delete`,
52 method: 'delete', 60 method: 'delete',
53 data: params 61 data: params
54 }); 62 });
55 63
56 /** 更新数据产品上架状态及上架平台 */ 64 /** 更新数据产品上架状态及上架平台 */
57 export const listingUpdateStatus = (params) => request({ 65 export const listingUpdateStatus = (params) => request({
58 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/product-grounding/update-grounding-pick`, 66 url: `${import.meta.env.VITE_API_NEW_PORTAL}/product-grounding/update-grounding-pick`,
59 method: 'post', 67 method: 'post',
60 data: params 68 data: params
61 }); 69 });
...@@ -65,75 +73,75 @@ export const listingUpdateStatus = (params) => request({ ...@@ -65,75 +73,75 @@ export const listingUpdateStatus = (params) => request({
65 **/ 73 **/
66 /** 获取数据需求列表。 */ 74 /** 获取数据需求列表。 */
67 export const getDemandList = (params) => request({ 75 export const getDemandList = (params) => request({
68 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/page-list`, 76 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/page-list`,
69 method: 'post', 77 method: 'post',
70 data: params 78 data: params
71 }) 79 })
72 80
73 /** 获取数据需求发布详情 */ 81 /** 获取数据需求发布详情 */
74 export const getDemandDetail = (params) => request({ 82 export const getDemandDetail = (params) => request({
75 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/detail`, 83 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/detail`,
76 method: 'get', 84 method: 'get',
77 params 85 params
78 }) 86 })
79 87
80 /** 新增数据需求发布信息 */ 88 /** 新增数据需求发布信息 */
81 export const demandSave = (params) => request({ 89 export const demandSave = (params) => request({
82 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/save`, 90 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/save`,
83 method: 'post', 91 method: 'post',
84 data: params 92 data: params
85 }); 93 });
86 94
87 /** 新增竞赛需求发布 */ 95 /** 新增竞赛需求发布 */
88 export const competitionSave = (params) => request({ 96 export const competitionSave = (params) => request({
89 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/competition-save`, 97 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/competition-save`,
90 method: 'post', 98 method: 'post',
91 data: params 99 data: params
92 }); 100 });
93 101
94 /** 新增要素市场需求发布 */ 102 /** 新增要素市场需求发布 */
95 export const marketSave = (params) => request({ 103 export const marketSave = (params) => request({
96 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/market-save`, 104 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/market-save`,
97 method: 'post', 105 method: 'post',
98 data: params 106 data: params
99 }); 107 });
100 108
101 /** 更新数据需求发布信息 */ 109 /** 更新数据需求发布信息 */
102 export const demandUpdate = (params) => request({ 110 export const demandUpdate = (params) => request({
103 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/update`, 111 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/update`,
104 method: 'post', 112 method: 'post',
105 data: params 113 data: params
106 }); 114 });
107 115
108 /** 更新竞赛发布信息 */ 116 /** 更新竞赛发布信息 */
109 export const competitionUpdate = (params) => request({ 117 export const competitionUpdate = (params) => request({
110 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/competition-update`, 118 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/competition-update`,
111 method: 'post', 119 method: 'post',
112 data: params 120 data: params
113 }); 121 });
114 /** 更新数据要素市场发布信息 */ 122 /** 更新数据要素市场发布信息 */
115 export const marketUpdate = (params) => request({ 123 export const marketUpdate = (params) => request({
116 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/market-update`, 124 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/market-update`,
117 method: 'post', 125 method: 'post',
118 data: params 126 data: params
119 }); 127 });
120 /** 删除数据需求发布信息 */ 128 /** 删除数据需求发布信息 */
121 export const demandDelete = (params) => request({ 129 export const demandDelete = (params) => request({
122 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/delete`, 130 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/delete`,
123 method: 'delete', 131 method: 'delete',
124 data: params 132 data: params
125 }); 133 });
126 134
127 /** 更新数据需求发布状态及上架平台 */ 135 /** 更新数据需求发布状态及上架平台 */
128 export const demandUpdateStatus = (params) => request({ 136 export const demandUpdateStatus = (params) => request({
129 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/update-listing-Status`, 137 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/update-listing-Status`,
130 method: 'post', 138 method: 'post',
131 data: params 139 data: params
132 }); 140 });
133 141
134 /** 验证数据需求名称唯一性 */ 142 /** 验证数据需求名称唯一性 */
135 export const checkDemandName = (params) => request({ 143 export const checkDemandName = (params) => request({
136 url: `${import.meta.env.VITE_API_ASSET_BASEURL}/demand-release/verify-data-name?dataName=${params}`, 144 url: `${import.meta.env.VITE_API_NEW_PORTAL}/demand-release/verify-data-name?dataName=${params}`,
137 method: 'get' 145 method: 'get'
138 }) 146 })
139 147
......
...@@ -1087,7 +1087,7 @@ onActivated(() => { ...@@ -1087,7 +1087,7 @@ onActivated(() => {
1087 </el-select> 1087 </el-select>
1088 </div> 1088 </div>
1089 <div v-else> 1089 <div v-else>
1090 {{ fieldData ? fieldData.find(item => item.value === scope.row.fieldType)?.label : '--' }} 1090 {{ fieldData ? (fieldData.find(item => item.value === scope.row.fieldType)?.label || '--') : '--' }}
1091 </div> 1091 </div>
1092 </template> 1092 </template>
1093 </el-table-column> 1093 </el-table-column>
...@@ -1096,7 +1096,8 @@ onActivated(() => { ...@@ -1096,7 +1096,8 @@ onActivated(() => {
1096 <el-table-column prop="fieldLength" label="长度" width="100" align="left"> 1096 <el-table-column prop="fieldLength" label="长度" width="100" align="left">
1097 <template #default="scope"> 1097 <template #default="scope">
1098 <!-- 非编辑状态 --> 1098 <!-- 非编辑状态 -->
1099 <span v-if="!scope.row.isEdit || (scope.row.isPrimary === 'Y' && route.query.editOpt === '1')"> 1099 <span
1100 v-if="!scope.row.isEdit || (scope.row.isPrimary === 'Y' && route.query.editOpt === '1' && route.query.state != '0')">
1100 {{ ['varchar', 'decimal', 'char'].includes(scope.row.fieldType) ? scope.row.fieldLength || '--' : '--' 1101 {{ ['varchar', 'decimal', 'char'].includes(scope.row.fieldType) ? scope.row.fieldLength || '--' : '--'
1101 }} 1102 }}
1102 </span> 1103 </span>
......
...@@ -215,7 +215,8 @@ const toPatn = (type) => { ...@@ -215,7 +215,8 @@ const toPatn = (type) => {
215 router.push({ 215 router.push({
216 name: "productListingDetail", 216 name: "productListingDetail",
217 query: { 217 query: {
218 type 218 type,
219 groundingPick: '门户数据专区'
219 }, 220 },
220 }); 221 });
221 } else { 222 } else {
......
...@@ -15,7 +15,7 @@ import { changeNum } from '@/utils/common'; ...@@ -15,7 +15,7 @@ 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 } from "@/api/modules/queryService"; 16 import { getAreaData, getServiceTenants } from "@/api/modules/queryService";
17 import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getSubjectDoaminList, getServiceDetail } from "@/api/modules/dataAsset"; 17 import { getApproveList, getTenantApprove, registerApproveAllow, registerApproveBackup, getSubjectDoaminList, getServiceDetail } from "@/api/modules/dataAsset";
18 import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, getParamsDataList } from "@/api/modules/dataProduct"; 18 import { getProductList, getAddedProductList, getListingDetail, listingSave, listingUpdate, listingSavePortal, getParamsDataList } 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 21
...@@ -153,15 +153,15 @@ const formInfo = ref({ ...@@ -153,15 +153,15 @@ const formInfo = ref({
153 clearable: true, 153 clearable: true,
154 required: true, 154 required: true,
155 }, { 155 }, {
156 label: "产品类型", 156 label: "资产类型",
157 type: "select", 157 type: "select",
158 placeholder: "请选择", 158 placeholder: "请选择",
159 field: "damType", 159 field: "damType",
160 default: '', 160 default: '',
161 options: damTypes.value, 161 options: damTypes.value,
162 props: { 162 props: {
163 value: 'paramValue', 163 value: 'value',
164 label: 'paramName' 164 label: 'label'
165 }, 165 },
166 disabled: true, 166 disabled: true,
167 required: true, 167 required: true,
...@@ -214,7 +214,7 @@ const formInfo = ref({ ...@@ -214,7 +214,7 @@ const formInfo = ref({
214 maxlength: 19, 214 maxlength: 19,
215 regexp: /\D/g, 215 regexp: /\D/g,
216 default: '', 216 default: '',
217 disabled: true, 217 disabled: false,
218 required: true 218 required: true
219 }, { 219 }, {
220 label: '病例总数(例)', 220 label: '病例总数(例)',
...@@ -222,7 +222,7 @@ const formInfo = ref({ ...@@ -222,7 +222,7 @@ const formInfo = ref({
222 placeholder: '请输入', 222 placeholder: '请输入',
223 field: 'caseNumber', 223 field: 'caseNumber',
224 default: '', 224 default: '',
225 disabled: true, 225 disabled: false,
226 required: false 226 required: false
227 }, { 227 }, {
228 label: '数据覆盖地域', 228 label: '数据覆盖地域',
...@@ -300,6 +300,7 @@ const formInfo = ref({ ...@@ -300,6 +300,7 @@ const formInfo = ref({
300 field: 'productPrice', 300 field: 'productPrice',
301 default: '', 301 default: '',
302 disabled: false, 302 disabled: false,
303 inputType: 'moneyNumber',
303 required: true 304 required: true
304 }, 305 },
305 { 306 {
...@@ -788,11 +789,17 @@ const submitForm = (btn, formEl, tosub = false) => { ...@@ -788,11 +789,17 @@ const submitForm = (btn, formEl, tosub = false) => {
788 // if (params.content) { 789 // if (params.content) {
789 // params.productDesc = truncateHTML(params.content, 400); 790 // params.productDesc = truncateHTML(params.content, 400);
790 // } 791 // }
791 params.dataScale = formInfo.value.items.at(4).defaultValue; 792 console.log(params, formInfo.value.items.at(4).defaultValue, formInfo.value, '-----------------');
792 params.caseNumber = formInfo.value.items.at(5).defaultValue; 793 params.dataScale = formInfo.value.items.at(4).defaultValue || formInfo.value.items.at(4).default;
794 params.caseNumber = formInfo.value.items.at(5).defaultValue || formInfo.value.items.at(4).default;
795 params.timeAreaStart = params.dateRange ? params.dateRange[0] : '';
796 params.timeAreaEnd = params.dateRange ? params.dateRange[1] : '';
797 params.groundingPick = [route.query.groundingPick];
798 // 删除dateRange字段
799 delete params.dateRange;
793 flowDetailLoading.value = true; 800 flowDetailLoading.value = true;
794 if (detailType == 'add') { 801 if (detailType == 'add') {
795 listingSave(params).then((res: any) => { 802 listingSavePortal(params).then((res: any) => {
796 if (res.code == proxy.$passCode) { 803 if (res.code == proxy.$passCode) {
797 ElMessage({ 804 ElMessage({
798 type: "success", 805 type: "success",
...@@ -1136,7 +1143,7 @@ onBeforeMount(() => { ...@@ -1136,7 +1143,7 @@ onBeforeMount(() => {
1136 } 1143 }
1137 } 1144 }
1138 getApproveData(); 1145 getApproveData();
1139 getParamsDataList({ dictType: '字段类型' }).then((res: any) => { 1146 getParamsDataList({ dictType: '资产类型' }).then((res: any) => {
1140 if (res.code == proxy.$passCode) { 1147 if (res.code == proxy.$passCode) {
1141 damTypes.value = res.data || []; 1148 damTypes.value = res.data || [];
1142 let item = formInfo.value.items.find(item => item.field == 'damType'); 1149 let item = formInfo.value.items.find(item => item.field == 'damType');
...@@ -1148,9 +1155,8 @@ onBeforeMount(() => { ...@@ -1148,9 +1155,8 @@ onBeforeMount(() => {
1148 getParamsDataList({ dictType: '交付方式' }).then((res: any) => { 1155 getParamsDataList({ dictType: '交付方式' }).then((res: any) => {
1149 if (res.code == proxy.$passCode) { 1156 if (res.code == proxy.$passCode) {
1150 deliveryWayList.value = res.data || []; 1157 deliveryWayList.value = res.data || [];
1151 // let item = formInfo.value.items.find(item => item.field == 'deliveryWay'); 1158 let item = formInfo.value.items.find(item => item.field == 'deliveryWay');
1152 // item && (item.options = deliveryWayList.value); 1159 item && (item.options = deliveryWayList.value);
1153 formInfo.value.items[6].options = res.data || [];
1154 } else { 1160 } else {
1155 proxy.$ElMessage.error(res.msg); 1161 proxy.$ElMessage.error(res.msg);
1156 } 1162 }
...@@ -1158,10 +1164,8 @@ onBeforeMount(() => { ...@@ -1158,10 +1164,8 @@ onBeforeMount(() => {
1158 getParamsDataList({ dictType: '定价方式' }).then((res: any) => { 1164 getParamsDataList({ dictType: '定价方式' }).then((res: any) => {
1159 if (res.code == proxy.$passCode) { 1165 if (res.code == proxy.$passCode) {
1160 pricingMethodList.value = res.data || []; 1166 pricingMethodList.value = res.data || [];
1161 formInfo.value.items[7].options = res.data || []; 1167 let item = formInfo.value.items.find(item => item.field == 'pricingWay');
1162 // let item = formInfo.value.items.find(item => item.field == 'deliveryWay'); 1168 item && (item.options = pricingMethodList.value);
1163 // item && (item.options = deliveryWayList.value);
1164 // formInfo.value.items[7].options = res.data || [];
1165 } else { 1169 } else {
1166 proxy.$ElMessage.error(res.msg); 1170 proxy.$ElMessage.error(res.msg);
1167 } 1171 }
...@@ -1169,10 +1173,8 @@ onBeforeMount(() => { ...@@ -1169,10 +1173,8 @@ onBeforeMount(() => {
1169 getParamsDataList({ dictType: '价格单位' }).then((res: any) => { 1173 getParamsDataList({ dictType: '价格单位' }).then((res: any) => {
1170 if (res.code == proxy.$passCode) { 1174 if (res.code == proxy.$passCode) {
1171 priceUnitList.value = res.data || []; 1175 priceUnitList.value = res.data || [];
1172 formInfo.value.items[9].options = res.data || []; 1176 let item = formInfo.value.items.find(item => item.field == 'priceUnit');
1173 // let item = formInfo.value.items.find(item => item.field == 'deliveryWay'); 1177 item && (item.options = priceUnitList.value);
1174 // item && (item.options = deliveryWayList.value);
1175 // formInfo.value.items[7].options = res.data || [];
1176 } else { 1178 } else {
1177 proxy.$ElMessage.error(res.msg); 1179 proxy.$ElMessage.error(res.msg);
1178 } 1180 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!