73b16ac8 by xukangle

Merge branch 'develop' into dev_20241202_xukangle

2 parents a04a7e36 6181cbd2
...@@ -19,9 +19,9 @@ VITE_SERVE_BASE = / ...@@ -19,9 +19,9 @@ VITE_SERVE_BASE = /
19 # 流程设计访问地址 19 # 流程设计访问地址
20 VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn 20 VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn
21 # 数据标准、元数据、数据目录 接口地址 21 # 数据标准、元数据、数据目录 接口地址
22 VITE_APP_PLAN_BASEURL = ms-daop-zcgl-data-plan-service 22 VITE_APP_PLAN_BASEURL = ms-daop-jgjf-data-plan-service
23 #数据质量接口地址 23 #数据质量接口地址
24 VITE_APP_QUALITY_BASEURL = ms-daop-zcgl-data-quality-service 24 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service
25 25
26 #数据盘点接口地址 26 #数据盘点接口地址
27 VITE_APP_CHECK_BASEURL = ms-daop-zcgl-data-inventory 27 VITE_APP_CHECK_BASEURL = ms-daop-zcgl-data-inventory
......
...@@ -18,9 +18,9 @@ VITE_SERVE_BASE = / ...@@ -18,9 +18,9 @@ VITE_SERVE_BASE = /
18 # 流程设计访问地址 18 # 流程设计访问地址
19 VITE_BPMN_URL = https://workflow.zgsjzc.com 19 VITE_BPMN_URL = https://workflow.zgsjzc.com
20 # 数据标准、元数据、数据目录 接口地址 20 # 数据标准、元数据、数据目录 接口地址
21 VITE_APP_PLAN_BASEURL = ms-daop-zcgl-data-plan-service 21 VITE_APP_PLAN_BASEURL = ms-daop-jgjf-data-plan-service
22 #数据质量接口地址 22 #数据质量接口地址
23 VITE_APP_QUALITY_BASEURL = ms-daop-zcgl-data-quality-service 23 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service
24 24
25 #门户接口 25 #门户接口
26 VITE_API_PORTALURL = https://www.zgsjzc.com/portal 26 VITE_API_PORTALURL = https://www.zgsjzc.com/portal
......
...@@ -175,28 +175,23 @@ export const deleteImportData = (params) => request({ ...@@ -175,28 +175,23 @@ export const deleteImportData = (params) => request({
175 }) 175 })
176 // 数据导入-分页查询 176 // 数据导入-分页查询
177 export const getImportData = (params) => request({ 177 export const getImportData = (params) => request({
178 url: `${import.meta.env.VITE_APP_ADD_FILE}/import-data/list`, 178 url: `${import.meta.env.VITE_APP_ADD_FILE}/import-data/page-list`,
179 method: 'post', 179 method: 'post',
180 data: params, 180 data: params,
181 }) 181 })
182 182
183 // 导出采集任务分类模板。
184 export const exportCollectTask = (params) => request({
185 url: `${import.meta.env.VITE_APP_ADD_FILE}/import-config/export-more-sheet-template`,
186 method: 'post',
187 data: params,
188 responseType: 'blob'
189 })
190
183 // 导出数据字典模板 191 // 导出数据字典模板
184 export const exportDictionary = (params) => request({ 192 export const exportDictionary = (params) => request({
185 url: `${import.meta.env.VITE_APP_PLAN_BASEURL}/export/data-dictionary/schema`, 193 url: `${import.meta.env.VITE_APP_PLAN_BASEURL}/export/data-dictionary/schema`,
186 method: 'post', 194 method: 'post',
187 data: params, 195 data: params,
188 responseType: 'blob' 196 responseType: 'blob'
189 })
190
191 /** 获取树形结构的标准集列表 */
192 export const getStandardSetTree = () => request({
193 url: `${import.meta.env.VITE_APP_PLAN_BASEURL}/data-standard-set/list-tree`,
194 method: 'get'
195 })
196
197 // 数据字典树形数据
198 export const getDictionaryTree = (params) => request({
199 url: `${import.meta.env.VITE_APP_PLAN_BASEURL}/data-dictionary-general/tree-list`,
200 method: 'post',
201 params
202 }) 197 })
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -304,6 +304,34 @@ const transformRulesInfo = (info: any) => { ...@@ -304,6 +304,34 @@ const transformRulesInfo = (info: any) => {
304 })] 304 })]
305 })); 305 }));
306 }) 306 })
307 } else if (info.ruleCode == 'value_of_range') {
308 let subjectTables = toSubjectTables.value;
309 for (const ds in info.ruleFields) {
310 let fields = info.ruleFields[ds];
311 let tableInfo = subjectTables.find(t => t.enName === ds);
312 modelRules.push(Object.assign({}, {
313 modelGroupGuid: modelGroupGuid.value,
314 name: tableInfo.chName,
315 subjectName: tableInfo.enName,
316 subjectGuid: tableInfo.guid,
317 dataSourceGuid: tableInfo.dataSourceGuid,
318 databaseName: tableInfo.dataServerName,
319 modelRuleConfList: [Object.assign({}, info, {
320 ruleField: fields.map(f => {
321 return {
322 guid: f.guid,
323 enName: f.enName,
324 chName: f.chName,
325 dataType: f.dataType,
326 startValue: f.startValue,
327 endValue: f.endValue,
328 dataRange: f.dataRange
329 }
330 }),
331 ruleFields: ''
332 })]
333 }));
334 }
307 } 335 }
308 return modelRules; 336 return modelRules;
309 } 337 }
......
...@@ -120,6 +120,26 @@ const transformRulesInfo = (info: any) => { ...@@ -120,6 +120,26 @@ const transformRulesInfo = (info: any) => {
120 differenceRange: info.rows[0].differenceRange, 120 differenceRange: info.rows[0].differenceRange,
121 rows: '' 121 rows: ''
122 }); 122 });
123 } else if (info.ruleCode == 'value_of_range') {
124 let subjectName = detailInfo.value.subjectName;
125 let fields = info.ruleFields[subjectName];
126 return Object.assign({}, info, {
127 guid: ruleGuid,
128 qualityModelGuid: detailInfo.value.qualityModelGuid,
129 ruleCode: detailInfo.value.ruleCode,
130 ruleField: fields.map(f => {
131 return {
132 guid: f.guid,
133 enName: f.enName,
134 chName: f.chName,
135 dataType: f.dataType,
136 startValue: f.startValue,
137 endValue: f.endValue,
138 dataRange: f.dataRange
139 }
140 }),
141 ruleFields: ''
142 });
123 } 143 }
124 } 144 }
125 145
......
...@@ -116,6 +116,25 @@ const transformRulesInfo = (info) => { ...@@ -116,6 +116,25 @@ const transformRulesInfo = (info) => {
116 differenceRange: info.rows[0].differenceRange, 116 differenceRange: info.rows[0].differenceRange,
117 rows: '' 117 rows: ''
118 }); 118 });
119 } else if (info.ruleCode === 'value_of_range') {
120 let subjectName = modelDetailInfo.value.subjectName;
121 let fields = info.ruleFields[subjectName];
122 return Object.assign({}, info, {
123 qualityModelGuid: modelGuid,
124 ruleCode: info.ruleCode,
125 ruleField: fields.map(f => {
126 return {
127 guid: f.guid,
128 enName: f.enName,
129 chName: f.chName,
130 dataType: f.dataType,
131 startValue: f.startValue,
132 endValue: f.endValue,
133 dataRange: f.dataRange
134 }
135 }),
136 ruleFields: ''
137 });
119 } 138 }
120 } 139 }
121 140
......
...@@ -17,8 +17,7 @@ import { ...@@ -17,8 +17,7 @@ import {
17 deleteImportData, 17 deleteImportData,
18 getImportData, 18 getImportData,
19 exportDictionary, 19 exportDictionary,
20 getStandardSetTree, 20 exportCollectTask,
21 getDictionaryTree,
22 getImageContent 21 getImageContent
23 } from '@/api/modules/queryService'; 22 } from '@/api/modules/queryService';
24 import { commonPageConfig } from '@/utils/enum'; 23 import { commonPageConfig } from '@/utils/enum';
...@@ -347,6 +346,14 @@ const exportData = (ids: any = null) => { ...@@ -347,6 +346,14 @@ const exportData = (ids: any = null) => {
347 exportDictionary(params).then((res: any) => { 346 exportDictionary(params).then((res: any) => {
348 download(res, '数据字典模板.xlsx', 'excel') 347 download(res, '数据字典模板.xlsx', 'excel')
349 }); 348 });
349 } else if (tabsActiveName.value == 'importFile' && isfileImport == '4') {
350 exportCollectTask({
351 importTypes: [
352 "0042"
353 ]
354 }).then((res: any) => {
355 download(res, '元数据模板.xlsx', 'excel')
356 });
350 } 357 }
351 } 358 }
352 359
...@@ -360,13 +367,28 @@ const importData = (info) => { ...@@ -360,13 +367,28 @@ const importData = (info) => {
360 // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled) 367 // dialogInfo.value.footer.btns.map((item: any) => delete item.disabled)
361 return 368 return
362 } 369 }
363 uploadFiles.value.forEach((item: any, index: number) => {
364 params.append("file", item.raw);
365 });
366 let paramUrl = ''; 370 let paramUrl = '';
367 if (isfileImport == '2') { 371 if (isfileImport == '2') {
372 uploadFiles.value.forEach((item: any, index: number) => {
373 params.append("file", item.raw);
374 });
368 paramUrl = `${import.meta.env.VITE_API_ASSET_BASEURL}/dam-catalog-table/excel-by-subject-guid?staffGuid=${userData.staffGuid}&subjectGuid=${route.query.bizGuid}` 375 paramUrl = `${import.meta.env.VITE_API_ASSET_BASEURL}/dam-catalog-table/excel-by-subject-guid?staffGuid=${userData.staffGuid}&subjectGuid=${route.query.bizGuid}`
376 } else if (isfileImport == '4') {
377 if (!info.collectTaskName) {
378 ElMessage({
379 type: 'error',
380 message: '请填写采集任务名称'
381 })
382 return;
383 }
384 uploadFiles.value.forEach((item: any, index: number) => {
385 params.append("uploadFile", item.raw);
386 });
387 paramUrl = `${import.meta.env.VITE_APP_PLAN_BASEURL}/meta-collect-task/meta-collect-import?staffGuid=${userData.staffGuid}&collectTaskName=${info.collectTaskName}`
369 } else { 388 } else {
389 uploadFiles.value.forEach((item: any, index: number) => {
390 params.append("file", item.raw);
391 });
370 paramUrl = `${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&dataType=2` 392 paramUrl = `${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&dataType=2`
371 if (info && Object.keys(info).length) { 393 if (info && Object.keys(info).length) {
372 paramUrl += `&extendFields=${JSON.stringify(info)}` 394 paramUrl += `&extendFields=${JSON.stringify(info)}`
...@@ -424,7 +446,9 @@ const setUploadInfo = () => { ...@@ -424,7 +446,9 @@ const setUploadInfo = () => {
424 } else { 446 } else {
425 if (isfileImport == '2') { 447 if (isfileImport == '2') {
426 importType.value = '0034'; 448 importType.value = '0034';
427 } else { 449 } else if (isfileImport == '4') {
450 importType.value = '0042';
451 } else {
428 importType.value = '0033'; 452 importType.value = '0033';
429 } 453 }
430 } 454 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!