updated develop project save step

This commit is contained in:
Warunee Tamkoo 2024-08-14 11:48:52 +07:00
parent f2a1d55ada
commit 8e3de78a85
6 changed files with 27 additions and 14 deletions

View file

@ -179,7 +179,9 @@ function onSubmit() {
progressTracking: progressTracking.value,
projectEvaluation: projectEvaluation.value,
})
.then(() => {})
.then(() => {
!modalDialog.value && success($q, "บันทึกข้อมูลแล้ว");
})
.catch((err) => {
messageError($q, err);
})
@ -199,6 +201,8 @@ function onClickAddIndicator(
data: DevelopmentEvaluations | null = null,
type: string = ""
) {
modalDialog.value = true;
isChangeData.value && onSubmit();
isEdit.value = statusEdit;
typeAction.value = type;
if (statusEdit) {
@ -214,7 +218,6 @@ function onClickAddIndicator(
formIndicators.suggestions = data.suggestions;
}
}
modalDialog.value = true;
}
/**