Merge commit '9c0e648f' into release-test
Showing
5 changed files
with
15 additions
and
10 deletions
| ... | @@ -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 | ||
| ... | @@ -64,7 +64,7 @@ export const useValidator = () => { | ... | @@ -64,7 +64,7 @@ export const useValidator = () => { |
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | /** | 67 | /** |
| 68 | * 调用接口检查名称是否重复 | 68 | * 调用接口检查名称是否重复 |
| 69 | * @param checkedInfo 已检查过的名称,防止重复调用接口, | 69 | * @param checkedInfo 已检查过的名称,防止重复调用接口, |
| 70 | * @param editCurrInfo 若是编辑状态时,传递当前编辑信息,若是与编辑相等的内容,则不调用接口检查。 | 70 | * @param editCurrInfo 若是编辑状态时,传递当前编辑信息,若是与编辑相等的内容,则不调用接口检查。 | ... | ... |
| ... | @@ -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,13 +237,11 @@ const useUserStore = defineStore( | ... | @@ -237,13 +237,11 @@ 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 == '首页') { | 244 | } else if (item.meta.title == '数据产品管理') { |
| 245 | mark = 'data-asset-index' | ||
| 246 | } 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 == '入表交易融资') { |
| 249 | mark = 'data-transaction' | 247 | mark = 'data-transaction' | ... | ... |
| ... | @@ -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(); | ... | ... |
-
Please register or sign in to post a comment