8f87a50c by xukangle

fix

1 parent 516029e7
......@@ -5,7 +5,7 @@ export const useValidator = () => {
const required = (message?: string): FormItemRule => {
return {
required: true,
message: message || '该项为必填项'
message: message || '该项为必填项',
}
}
......
......@@ -522,6 +522,7 @@ onBeforeMount(() => {
})
if (damGuid.value) {
fullscreenLoading.value = true;
getRegisterCatalogDetail(damGuid.value).then((res: any) => {
fullscreenLoading.value = false;
if (res.code == proxy.$passCode) {
......@@ -583,11 +584,14 @@ onBeforeMount(() => {
baseInfoFormItems.value[5].disabled = true;
}
}
console.log(baseInfoFormRef.value, baseInfoFormRef.value.ruleFormRef, 'ruleFormRefbaseInfoFormRef');
checkedInfo.value = {};
console.log(baseInfoFormRef.value, 'baseInfoFormRules');
nextTick(() => {
baseInfoFormRules.value.damName[1] = checkExistName(checkedInfo.value, existDamName, detailInfo.value, 'damName');
})
setTimeout(() => {
baseInfoFormRef.value.ruleFormRef.clearValidate(['sceneDescription', 'subjectDomain', 'coverageAreas', 'isPublicData', 'dataSources', 'propertyDescription', 'sceneLimit']);
}, 0);
assetDataTableInfo.value.data = detailInfo.value.damCatalogTableInfo;
} else {
proxy.$ElMessage.error(res.msg);
......
......@@ -550,7 +550,7 @@ const formItems = ref<any>([
templateUrl: 'auto',
templateClick: () => {
const link = document.createElement('a');
link.href = "/files/数据质量评价.docx";
link.href = encodeURI("/files/数据质量评价.docx");
link.download = '数据质量评价.docx';
document.body.appendChild(link);
link.click();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!