c0182976 by lihua

Merge commit '9c0e648f' into release-test

2 parents f1a6ae1a 9c0e648f
...@@ -5,7 +5,7 @@ export const useValidator = () => { ...@@ -5,7 +5,7 @@ export const useValidator = () => {
5 const required = (message?: string): FormItemRule => { 5 const required = (message?: string): FormItemRule => {
6 return { 6 return {
7 required: true, 7 required: true,
8 message: message || '该项为必填项' 8 message: message || '该项为必填项',
9 } 9 }
10 } 10 }
11 11
......
...@@ -106,7 +106,7 @@ const systemRoutes: RouteRecordRaw[] = [ ...@@ -106,7 +106,7 @@ const systemRoutes: RouteRecordRaw[] = [
106 const asyncRoutes: Route.recordMainRaw[] = [ 106 const asyncRoutes: Route.recordMainRaw[] = [
107 { 107 {
108 meta:{ 108 meta:{
109 title: '首页', 109 title: '数据资产看板',
110 }, 110 },
111 children: [ 111 children: [
112 ...AssetIndex, 112 ...AssetIndex,
......
...@@ -237,12 +237,10 @@ const useUserStore = defineStore( ...@@ -237,12 +237,10 @@ const useUserStore = defineStore(
237 mark = 'data-quality' 237 mark = 'data-quality'
238 } else if (item.meta.title == '数据盘点') { 238 } else if (item.meta.title == '数据盘点') {
239 mark = 'data-inventory' 239 mark = 'data-inventory'
240 } else if (item.meta.title == '首页') { 240 } else if (item.meta.title == '数据资产看板') {
241 mark = 'data-asset-index' 241 mark = 'data-asset-index'
242 } else if (item.meta.title == '数据资产登记') { 242 } else if (item.meta.title == '数据资产登记') {
243 mark = 'data-asset-register' 243 mark = 'data-asset-register'
244 } else if (item.meta.title == '首页') {
245 mark = 'data-asset-index'
246 } else if (item.meta.title == '数据产品管理') { 244 } else if (item.meta.title == '数据产品管理') {
247 mark = 'data-asset' 245 mark = 'data-asset'
248 } else if (item.meta.title == '入表交易融资') { 246 } else if (item.meta.title == '入表交易融资') {
......
...@@ -298,6 +298,8 @@ const baseInfoFormRules = ref({ ...@@ -298,6 +298,8 @@ const baseInfoFormRules = ref({
298 sceneDescription: [required('请填写应用场景描述')], 298 sceneDescription: [required('请填写应用场景描述')],
299 sceneLimit: [required('请填写应用场景限制')], 299 sceneLimit: [required('请填写应用场景限制')],
300 rightMain: [required('请填写权利主体')], 300 rightMain: [required('请填写权利主体')],
301 dataSources: [required('请选择数据来源')],
302 isPublicData: [required('请选择是否公共数据')],
301 }); 303 });
302 304
303 const getTableFieldPromise: any = ref({}); 305 const getTableFieldPromise: any = ref({});
...@@ -520,12 +522,13 @@ onBeforeMount(() => { ...@@ -520,12 +522,13 @@ onBeforeMount(() => {
520 }) 522 })
521 if (damGuid.value) { 523 if (damGuid.value) {
522 fullscreenLoading.value = true; 524 fullscreenLoading.value = true;
525
523 getRegisterCatalogDetail(damGuid.value).then((res: any) => { 526 getRegisterCatalogDetail(damGuid.value).then((res: any) => {
524 fullscreenLoading.value = false; 527 fullscreenLoading.value = false;
525 if (res.code == proxy.$passCode) { 528 if (res.code == proxy.$passCode) {
526 detailInfo.value = res.data || {}; 529 detailInfo.value = res.data || {};
527 baseInfoFormItems.value.forEach((item: any) => { 530 baseInfoFormItems.value.forEach((item: any) => {
528 item.default = detailInfo.value[item.field] || ''; 531 item.default = detailInfo.value[item.field] == null ? '' : detailInfo.value[item.field];
529 if (item.field == 'subjectDomain') { 532 if (item.field == 'subjectDomain') {
530 let tree = detailInfo.value.subjectDomainTree?.[0]; 533 let tree = detailInfo.value.subjectDomainTree?.[0];
531 if (tree) { 534 if (tree) {
...@@ -582,9 +585,13 @@ onBeforeMount(() => { ...@@ -582,9 +585,13 @@ onBeforeMount(() => {
582 } 585 }
583 } 586 }
584 checkedInfo.value = {}; 587 checkedInfo.value = {};
588 console.log(baseInfoFormRef.value, 'baseInfoFormRules');
585 nextTick(() => { 589 nextTick(() => {
586 baseInfoFormRules.value.damName[1] = checkExistName(checkedInfo.value, existDamName, detailInfo.value, 'damName'); 590 baseInfoFormRules.value.damName[1] = checkExistName(checkedInfo.value, existDamName, detailInfo.value, 'damName');
587 }) 591 })
592 setTimeout(() => {
593 baseInfoFormRef.value.ruleFormRef.clearValidate(['sceneDescription', 'subjectDomain', 'coverageAreas', 'isPublicData', 'dataSources', 'propertyDescription', 'sceneLimit']);
594 }, 0);
588 assetDataTableInfo.value.data = detailInfo.value.damCatalogTableInfo; 595 assetDataTableInfo.value.data = detailInfo.value.damCatalogTableInfo;
589 } else { 596 } else {
590 proxy.$ElMessage.error(res.msg); 597 proxy.$ElMessage.error(res.msg);
......
...@@ -550,8 +550,8 @@ const formItems = ref<any>([ ...@@ -550,8 +550,8 @@ const formItems = ref<any>([
550 templateUrl: 'auto', 550 templateUrl: 'auto',
551 templateClick: () => { 551 templateClick: () => {
552 const link = document.createElement('a'); 552 const link = document.createElement('a');
553 link.href = "/files/数据质量评价.docx"; 553 link.href = "/files/数据价值评估.docx";
554 link.download = '数据质量评价.docx'; 554 link.download = '数据价值评估.docx';
555 document.body.appendChild(link); 555 document.body.appendChild(link);
556 link.click(); 556 link.click();
557 link.remove(); 557 link.remove();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!