9fbd7335 by xukangle

Merge branch 'develop' into dev_20241202_xukangle

2 parents fc2f9600 e12d0c17
...@@ -37,7 +37,7 @@ VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn ...@@ -37,7 +37,7 @@ VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn
37 VITE_APP_WORK_FLOW_URL = 'ms-daop-workflow-service' 37 VITE_APP_WORK_FLOW_URL = 'ms-daop-workflow-service'
38 38
39 # 数据标准、元数据、数据目录 接口地址 39 # 数据标准、元数据、数据目录 接口地址
40 VITE_APP_PLAN_BASEURL = ms-daop-zcgl-data-plan-service 40 VITE_APP_PLAN_BASEURL = ms-daop-data-plan-service
41 41
42 #数据质量接口地址 42 #数据质量接口地址
43 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service 43 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service
......
...@@ -71,7 +71,7 @@ VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn ...@@ -71,7 +71,7 @@ VITE_BPMN_URL = https://workflow-swzl-test.csbr.cn
71 VITE_APP_WORK_FLOW_URL = 'ms-daop-workflow-service' 71 VITE_APP_WORK_FLOW_URL = 'ms-daop-workflow-service'
72 72
73 # 数据标准、元数据、数据目录 接口地址 73 # 数据标准、元数据、数据目录 接口地址
74 VITE_APP_PLAN_BASEURL = ms-daop-zcgl-data-plan-service 74 VITE_APP_PLAN_BASEURL = ms-daop-data-plan-service
75 75
76 #数据质量接口地址 76 #数据质量接口地址
77 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service 77 VITE_APP_QUALITY_BASEURL = ms-daop-data-quality-service
......
...@@ -84,9 +84,8 @@ export const getProduct = (params) => request({ ...@@ -84,9 +84,8 @@ export const getProduct = (params) => request({
84 }) 84 })
85 // 查看平台会员详情 85 // 查看平台会员详情
86 export const getTenantDetailInfo = (params) => request({ 86 export const getTenantDetailInfo = (params) => request({
87 url: `${import.meta.env.VITE_APP_API_BASEURL}/tenant/data/detail`, 87 url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
88 method: 'get', 88 method: 'get'
89 params
90 }) 89 })
91 90
92 91
...@@ -123,7 +122,7 @@ export const getServiceTenants = (params) => request({ ...@@ -123,7 +122,7 @@ export const getServiceTenants = (params) => request({
123 122
124 /** 获取会员的附件模板 */ 123 /** 获取会员的附件模板 */
125 export const getTenantAttach = (params) => request({ 124 export const getTenantAttach = (params) => request({
126 url: `${import.meta.env.VITE_APP_API_BASEURL}/attachment-template/list-attachment?tenantGuid=${params}`, 125 url: `${import.meta.env.VITE_APP_PERSONAL_URL}/attachment-template/list-attachment?tenantGuid=${params}`,
127 method: 'get' 126 method: 'get'
128 }) 127 })
129 128
......
...@@ -35,7 +35,7 @@ const routes: RouteRecordRaw[] = [ ...@@ -35,7 +35,7 @@ const routes: RouteRecordRaw[] = [
35 reuse: true 35 reuse: true
36 }, 36 },
37 beforeEnter: (to, from) => { 37 beforeEnter: (to, from) => {
38 to.meta.title = to.query.type == 'edit' ? `编辑-${to.query.name}` : '新建资产登记'; 38 to.meta.title = to.query.type == 'create' ? '新建资产登记' : `编辑-${to.query.name}`;
39 to.meta.editPage = true; 39 to.meta.editPage = true;
40 } 40 }
41 }, 41 },
......
...@@ -4,7 +4,7 @@ import router from '@/router' ...@@ -4,7 +4,7 @@ import router from '@/router'
4 import { ElMessage } from 'element-plus' 4 import { ElMessage } from 'element-plus'
5 import apiUser from '@/api/modules/user' 5 import apiUser from '@/api/modules/user'
6 import { getCurrentTime } from '@/utils/common' 6 import { getCurrentTime } from '@/utils/common'
7 import { getSystemMenu, getUserInfo, getTokenByCode, loginOut, refreshToken, editPasswordInterface, getCurrentUserInfo, getCurrentUserInfo } from '@/api/modules/queryService' 7 import { getSystemMenu, getUserInfo, getTokenByCode, loginOut, refreshToken, editPasswordInterface, getCurrentUserInfo } from '@/api/modules/queryService'
8 8
9 const useUserStore = defineStore( 9 const useUserStore = defineStore(
10 // 唯一ID 10 // 唯一ID
......
...@@ -515,13 +515,11 @@ const tabChange = (val) => { ...@@ -515,13 +515,11 @@ const tabChange = (val) => {
515 515
516 const nodeClick = (data, node) => { 516 const nodeClick = (data, node) => {
517 if (data.classifyDetailGuid == 'all') { 517 if (data.classifyDetailGuid == 'all') {
518 fieldItemList.value[4].default = '';
519 fieldItemList.value[5].default = []; 518 fieldItemList.value[5].default = [];
520 } else { 519 } else {
521 const nodeData = JSON.parse(JSON.stringify(data)); 520 const nodeData = JSON.parse(JSON.stringify(data));
522 let parentGuids = nodeData.parentGuids || []; 521 let parentGuids = nodeData.parentGuids || [];
523 parentGuids.push(nodeData.guid) 522 parentGuids.push(nodeData.guid)
524 fieldItemList.value[4].default = 'Y';
525 fieldItemList.value[5].default = parentGuids; 523 fieldItemList.value[5].default = parentGuids;
526 } 524 }
527 nextTick(() => { 525 nextTick(() => {
...@@ -822,7 +820,6 @@ const cascaderChange = (val, info) => { ...@@ -822,7 +820,6 @@ const cascaderChange = (val, info) => {
822 } else { 820 } else {
823 treeInfoRef.value.expandedKey = val || ['all']; 821 treeInfoRef.value.expandedKey = val || ['all'];
824 treeInfoRef.value.setCurrentKey(val?.at(-1) || 'all'); 822 treeInfoRef.value.setCurrentKey(val?.at(-1) || 'all');
825 val && (fieldItemList.value[4].default = 'Y');
826 promiseList( 823 promiseList(
827 getFieldTableData() 824 getFieldTableData()
828 ) 825 )
...@@ -904,18 +901,12 @@ const selectChange = (val, item, scope = null) => { ...@@ -904,18 +901,12 @@ const selectChange = (val, item, scope = null) => {
904 } 901 }
905 } 902 }
906 } else if (item.field == 'isClassify') { 903 } else if (item.field == 'isClassify') {
907 fieldItemList.value[5].default = [];
908 fieldItemList.value[6].default = '';
909 treeInfo.value.expandedKey = ['all'];
910 treeInfoRef.value.setCurrentKey('all');
911 fieldItemList.value[4].default = val || ''; 904 fieldItemList.value[4].default = val || '';
905 fieldItemList.value[5].default = scope.classifyName;
912 nextTick(() => { 906 nextTick(() => {
913 promiseList( 907 promiseList(
914 getFieldTableData() 908 getFieldTableData()
915 ) 909 )
916 const treeRef = treeInfoRef.value.treeRef;
917 const container = treeRef.$el;
918 container.scrollTo({ top: 0, behavior: 'smooth' });
919 }) 910 })
920 911
921 } 912 }
......
...@@ -382,7 +382,7 @@ const getQueryTreeData = ()=>{ ...@@ -382,7 +382,7 @@ const getQueryTreeData = ()=>{
382 currNodeInfo.value = {type:2,guid:dataSourceGuid,name:datasourceName} 382 currNodeInfo.value = {type:2,guid:dataSourceGuid,name:datasourceName}
383 } 383 }
384 nextTick(() => { 384 nextTick(() => {
385 treeInfo.value.currentNodeKey = currentNodeKey.value 385 treeInfo.value.currentNodeKey = <string>route.query.tableGuid || currentNodeKey.value;
386 treeInfo.value.expandedKey = expandedKey.value 386 treeInfo.value.expandedKey = expandedKey.value
387 }) 387 })
388 nodeClick({type:2,guid:dataSourceGuid,name:datasourceName}) 388 nodeClick({type:2,guid:dataSourceGuid,name:datasourceName})
......
...@@ -683,7 +683,6 @@ const download = () => { ...@@ -683,7 +683,6 @@ const download = () => {
683 <div v-show="!isWordStyle" class="header-detail"> 683 <div v-show="!isWordStyle" class="header-detail">
684 <template v-if="detailInfo.analysisReportType == 1"> 684 <template v-if="detailInfo.analysisReportType == 1">
685 <span>{{ '表名称:' + (detailInfo.qualityModelName ?? '--') }}</span> 685 <span>{{ '表名称:' + (detailInfo.qualityModelName ?? '--') }}</span>
686 <span style="margin-left: 40px;">{{ '所属主题:' + (detailInfo.subjectDomainName ?? '--') }}</span>
687 <span style="margin-left: 40px;">{{ '所属数据源:' + (detailInfo.dataSourceName ?? '--') }}</span> 686 <span style="margin-left: 40px;">{{ '所属数据源:' + (detailInfo.dataSourceName ?? '--') }}</span>
688 </template> 687 </template>
689 <span v-else-if="detailInfo.analysisReportType == 3">{{ '分组名称:' + (detailInfo.qualityModelGroupName ?? '--') 688 <span v-else-if="detailInfo.analysisReportType == 3">{{ '分组名称:' + (detailInfo.qualityModelGroupName ?? '--')
...@@ -787,7 +786,6 @@ const download = () => { ...@@ -787,7 +786,6 @@ const download = () => {
787 <div style=" height: 40px;line-height: 40px;font-size: 14px;color: #666666;"> 786 <div style=" height: 40px;line-height: 40px;font-size: 14px;color: #666666;">
788 <template v-if="detailInfo.analysisReportType == 1"> 787 <template v-if="detailInfo.analysisReportType == 1">
789 <span>{{ '表名称:' + (detailInfo.qualityModelName ?? '--') }}</span> 788 <span>{{ '表名称:' + (detailInfo.qualityModelName ?? '--') }}</span>
790 <span style="margin-left: 40px;">{{ '所属主题:' + (detailInfo.subjectDomainName ?? '--') }}</span>
791 <span style="margin-left: 40px;">{{ '所属数据源:' + (detailInfo.dataSourceName ?? '--') }}</span> 789 <span style="margin-left: 40px;">{{ '所属数据源:' + (detailInfo.dataSourceName ?? '--') }}</span>
792 </template> 790 </template>
793 <span v-else-if="detailInfo.analysisReportType == 3">{{ '分组名称:' + (detailInfo.qualityModelGroupName ?? '--') 791 <span v-else-if="detailInfo.analysisReportType == 3">{{ '分组名称:' + (detailInfo.qualityModelGroupName ?? '--')
......
...@@ -226,6 +226,7 @@ const rulesDetailTableBtnClick = (scope, btn) => { ...@@ -226,6 +226,7 @@ const rulesDetailTableBtnClick = (scope, btn) => {
226 if (type == 'ruleDetail') { 226 if (type == 'ruleDetail') {
227 detailLoading.value = true; 227 detailLoading.value = true;
228 if (detailJson.value[row.ruleConfGuid]) { 228 if (detailJson.value[row.ruleConfGuid]) {
229 detailInfo.value = detailJson.value[row.ruleConfGuid];
229 ruleType.value = detailInfo.value.ruleCode; 230 ruleType.value = detailInfo.value.ruleCode;
230 toSubjectTables.value = [{ 231 toSubjectTables.value = [{
231 guid: detailInfo.value.subjectGuid, 232 guid: detailInfo.value.subjectGuid,
......
...@@ -331,7 +331,7 @@ onActivated(() => { ...@@ -331,7 +331,7 @@ onActivated(() => {
331 let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath); 331 let tab: any = userStore.tabbar.find((tab: any) => tab.fullPath === fullPath);
332 if (tab) { 332 if (tab) {
333 if (route.query.detail) { 333 if (route.query.detail) {
334 tab.meta.title = `新建规则(${route.query.planName})`; 334 tab.meta.title = `方案详情-${route.query.planName}`;
335 if (fullPath === route.fullPath) { 335 if (fullPath === route.fullPath) {
336 document.title = tab.meta.title; 336 document.title = tab.meta.title;
337 } 337 }
......
...@@ -28,10 +28,8 @@ import { ...@@ -28,10 +28,8 @@ import {
28 import useDataQualityStore from "@/store/modules/dataQuality"; 28 import useDataQualityStore from "@/store/modules/dataQuality";
29 import { useValidator } from '@/hooks/useValidator'; 29 import { useValidator } from '@/hooks/useValidator';
30 import { TableColumnWidth } from '@/utils/enum'; 30 import { TableColumnWidth } from '@/utils/enum';
31 import useDataCatalogStore from "@/store/modules/dataCatalog";
32 31
33 const dataQualityStore = useDataQualityStore(); 32 const dataQualityStore = useDataQualityStore();
34 const dataCatalogStore = useDataCatalogStore();
35 33
36 const { proxy } = getCurrentInstance() as any; 34 const { proxy } = getCurrentInstance() as any;
37 const { orderNum, description } = useValidator(); 35 const { orderNum, description } = useValidator();
...@@ -411,10 +409,27 @@ const tableBtnClick = (scope, btn) => { ...@@ -411,10 +409,27 @@ const tableBtnClick = (scope, btn) => {
411 } else if (type == "delete") { 409 } else if (type == "delete") {
412 open("此操作将永久删除, 是否继续?", "warning"); 410 open("此操作将永久删除, 是否继续?", "warning");
413 } else if (type == 'locateDataCatalog') { 411 } else if (type == 'locateDataCatalog') {
414 dataCatalogStore.setLocateSubjectName(row.name); 412 // dataCatalogStore.setLocateSubjectName(row.name);
413 // router.push({
414 // name: 'dataWarehouse'
415 // });
416 if (row.dataSource == '4') {
415 router.push({ 417 router.push({
416 name: 'dataWarehouse' 418 name: 'classifyGradeCatalogue',
419 query: {
420 databaseGuid: row.dataSourceGuid,
421 tableGuid: row.subjectGuid
422 }
417 }); 423 });
424 } else {
425 router.push({
426 name: 'metaSheet',
427 query: {
428 id: row.subjectGuid,
429 name: row.name
430 }
431 });
432 }
418 } 433 }
419 }; 434 };
420 435
......
...@@ -94,7 +94,7 @@ const getSubjectTableTreeData = () => { ...@@ -94,7 +94,7 @@ const getSubjectTableTreeData = () => {
94 d.label = d.name; 94 d.label = d.name;
95 d.children = d.children?.map(child => { 95 d.children = d.children?.map(child => {
96 child.label = child.name + `(${child.tableName})`; 96 child.label = child.name + `(${child.tableName})`;
97 child.dataServerName = d.name; 97 child.dataServerName = child.databaseName;
98 child.dataSourceGuid = d.guid; 98 child.dataSourceGuid = d.guid;
99 return child; 99 return child;
100 }) 100 })
......
...@@ -253,20 +253,24 @@ onBeforeMount(() => { ...@@ -253,20 +253,24 @@ onBeforeMount(() => {
253 ElMessage.error(res.msg); 253 ElMessage.error(res.msg);
254 } 254 }
255 }) 255 })
256 getSmallCategoryList().then((res: any) => { 256 let ps1 = getLargeCategoryList().then((res: any) => {
257 if (res.code == proxy.$passCode) { 257 if (res.code == proxy.$passCode) {
258 smallCategoryList.value = res.data || []; 258 return res.data || [];
259 } else { 259 } else {
260 ElMessage.error(res.msg); 260 ElMessage.error(res.msg);
261 } 261 }
262 }) 262 });
263 getLargeCategoryList().then((res: any) => { 263 let ps2 = getSmallCategoryList().then((res: any) => {
264 if (res.code == proxy.$passCode) { 264 if (res.code == proxy.$passCode) {
265 largeCategoryList.value = res.data || []; 265 return res.data || [];
266 } else { 266 } else {
267 ElMessage.error(res.msg); 267 ElMessage.error(res.msg);
268 } 268 }
269 }) 269 })
270 Promise.all([ps1, ps2]).then((res: any[]) => {
271 largeCategoryList.value = res[0];
272 smallCategoryList.value = res[1];
273 })
270 }) 274 })
271 275
272 onActivated(() => { 276 onActivated(() => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!