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

@ -56,7 +56,7 @@ const $q = useQuasar();
const store = useDevelopmentDataStore();
const route = useRoute();
const projectId = ref<string>(route.params.id.toLocaleString());
const { showLoader, hideLoader, messageError, date2Thai, diffDay } =
const { showLoader, hideLoader, messageError, date2Thai, diffDay, success } =
useCounterMixin();
const checkRoutePermission = ref<boolean>(
route.name == "developmentDetailPage"
@ -322,7 +322,9 @@ function onSubmit() {
reasonActual20: reasonActual20.value,
reasonActual10: reasonActual10.value,
})
.then(() => {})
.then(() => {
success($q, "บันทึกข้อมูลแล้ว");
})
.catch((err) => {
messageError($q, err);
hideLoader();
@ -567,7 +569,7 @@ defineExpose({
<div
class="col-xs-12 col-sm-12 text-weight-medium bg-grey-1 q-py-xs q-px-md"
>
ระยะเวลาและสถานทดำเนนการ
ระยะเวลาและสถานทดำเนนการ
</div>
<q-separator />
<q-card-section>