update bug修复1554 编号、名称同名时,窗口后方的界面会刷新
This commit is contained in:
@@ -98,6 +98,7 @@ const editRowInfo = ref<any>({});
|
||||
|
||||
const addOrEditProject = async () => {
|
||||
if (await tableFormRef.value.validateFun()) {
|
||||
console.log('validateFun');
|
||||
loadingInterface.value = true;
|
||||
const projectForm = tableFormRef.value.getFormDataFun();
|
||||
|
||||
@@ -106,7 +107,6 @@ const addOrEditProject = async () => {
|
||||
projectForm.beginTime = projectForm.planTime[0];
|
||||
projectForm.endTime = projectForm.planTime[1];
|
||||
}
|
||||
|
||||
if (!props?.projectId) {
|
||||
result = await createProject(projectForm);
|
||||
} else {
|
||||
@@ -114,9 +114,9 @@ const addOrEditProject = async () => {
|
||||
emits('update:currentProjectBaseInfo', { ...tableFormRef.value.getFormDataFun() });
|
||||
}
|
||||
loadingInterface.value = false;
|
||||
emits('completeFun', 'projectBasePage');
|
||||
|
||||
if (result?.code === 200) {
|
||||
emits('completeFun', 'projectBasePage');
|
||||
closeFun();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user