fix:代码类目编辑模块输入框笼罩层逻辑不正确bug修复

This commit is contained in:
xjh 2023-07-07 17:00:21 +08:00
parent b972a1a8ea
commit 76fc0e9d2c

View File

@ -129,17 +129,16 @@ async function completeInfo() {
formData.value.code_module_category_global_mode = data.code_module_category_global_mode formData.value.code_module_category_global_mode = data.code_module_category_global_mode
formData.value.code_module_category_library_type = data.code_module_category_library_type formData.value.code_module_category_library_type = data.code_module_category_library_type
formData.value.customer_guid = data.customer_guid formData.value.customer_guid = data.customer_guid
commonFiledDisabled.value = true;
ElMessage.success('父子类目共用信息补全成功!') ElMessage.success('父子类目共用信息补全成功!')
} else { } else {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
}) })
} }
// }
if (!formData.value.code_module_category_parent_guid) { //
commonFiledDisabled.value = false; function hanldCommonFiled() {
} commonFiledDisabled.value = formData.value.code_module_category_parent_guid != '0' && formData.value.code_module_category_parent_guid != null
} }
// -- // --
@ -168,8 +167,7 @@ const uoloadData = ref({
// -- // --
watch(props, (v) => { watch(props, (v) => {
formData.value = v.data; formData.value = v.data;
hanldCommonFiled();
}); });
// //
@ -228,9 +226,9 @@ const handleEditClick = async (formEl) => {
props.done(); props.done();
ElMessage.success(msg); ElMessage.success(msg);
} else { } else {
isBtnLod.value = false;
ElMessage.error(msg); ElMessage.error(msg);
} }
isBtnLod.value = false;
}); });
}; };
const handleResetClick = async (formEl) => { const handleResetClick = async (formEl) => {