fix
Showing
3 changed files
with
8 additions
and
4 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 若是编辑状态时,传递当前编辑信息,若是与编辑相等的内容,则不调用接口检查。 | ... | ... |
| ... | @@ -522,6 +522,7 @@ onBeforeMount(() => { | ... | @@ -522,6 +522,7 @@ onBeforeMount(() => { |
| 522 | }) | 522 | }) |
| 523 | if (damGuid.value) { | 523 | if (damGuid.value) { |
| 524 | fullscreenLoading.value = true; | 524 | fullscreenLoading.value = true; |
| 525 | |||
| 525 | getRegisterCatalogDetail(damGuid.value).then((res: any) => { | 526 | getRegisterCatalogDetail(damGuid.value).then((res: any) => { |
| 526 | fullscreenLoading.value = false; | 527 | fullscreenLoading.value = false; |
| 527 | if (res.code == proxy.$passCode) { | 528 | if (res.code == proxy.$passCode) { |
| ... | @@ -583,11 +584,14 @@ onBeforeMount(() => { | ... | @@ -583,11 +584,14 @@ onBeforeMount(() => { |
| 583 | baseInfoFormItems.value[5].disabled = true; | 584 | baseInfoFormItems.value[5].disabled = true; |
| 584 | } | 585 | } |
| 585 | } | 586 | } |
| 586 | console.log(baseInfoFormRef.value, baseInfoFormRef.value.ruleFormRef, 'ruleFormRefbaseInfoFormRef'); | ||
| 587 | checkedInfo.value = {}; | 587 | checkedInfo.value = {}; |
| 588 | console.log(baseInfoFormRef.value, 'baseInfoFormRules'); | ||
| 588 | nextTick(() => { | 589 | nextTick(() => { |
| 589 | baseInfoFormRules.value.damName[1] = checkExistName(checkedInfo.value, existDamName, detailInfo.value, 'damName'); | 590 | baseInfoFormRules.value.damName[1] = checkExistName(checkedInfo.value, existDamName, detailInfo.value, 'damName'); |
| 590 | }) | 591 | }) |
| 592 | setTimeout(() => { | ||
| 593 | baseInfoFormRef.value.ruleFormRef.clearValidate(['sceneDescription', 'subjectDomain', 'coverageAreas', 'isPublicData', 'dataSources', 'propertyDescription', 'sceneLimit']); | ||
| 594 | }, 0); | ||
| 591 | assetDataTableInfo.value.data = detailInfo.value.damCatalogTableInfo; | 595 | assetDataTableInfo.value.data = detailInfo.value.damCatalogTableInfo; |
| 592 | } else { | 596 | } else { |
| 593 | proxy.$ElMessage.error(res.msg); | 597 | proxy.$ElMessage.error(res.msg); | ... | ... |
| ... | @@ -550,7 +550,7 @@ const formItems = ref<any>([ | ... | @@ -550,7 +550,7 @@ 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 = encodeURI("/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(); | ... | ... |
-
Please register or sign in to post a comment