设计管理
This commit is contained in:
@ -510,7 +510,6 @@ const submitForm = async () => {
|
||||
try {
|
||||
// 1. 基础表单验证
|
||||
await leaveFormRef.value.validate();
|
||||
|
||||
// 2. 提交前二次校验:「专业+人员」组合唯一性
|
||||
let hasDuplicate = false;
|
||||
const allKeys: string[] = [];
|
||||
@ -568,7 +567,6 @@ const submitForm = async () => {
|
||||
)
|
||||
]
|
||||
};
|
||||
|
||||
// 4. 数据处理(保持原有逻辑不变)
|
||||
const arr = [];
|
||||
userList.value.forEach((item) => {
|
||||
@ -596,6 +594,7 @@ const submitForm = async () => {
|
||||
});
|
||||
if (res.code == 200) {
|
||||
disabledForm.value = true;
|
||||
loading.close();
|
||||
ElMessage.success('提交成功');
|
||||
} else {
|
||||
ElMessage.error(res.msg || '提交失败');
|
||||
@ -603,7 +602,7 @@ const submitForm = async () => {
|
||||
} catch (error) {
|
||||
ElMessage.error('请完善表单信息后再提交');
|
||||
} finally {
|
||||
ElLoading.service().close();
|
||||
// ElLoading.service().close();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user