no message

This commit is contained in:
setthawutttty 2024-01-10 17:13:23 +07:00
parent ad745a9160
commit 0a8e91965d
8 changed files with 9 additions and 60 deletions

View file

@ -138,12 +138,13 @@ function onSubmit() {
.then(() => {
isSave.value = false;
success($q, "บันทึกข้อมูลสำเร็จ");
props.fetchData();
})
.catch((err) => {
messageError($q, err);
})
.finally(async () => {
await props.fetchData();
});
},
"ยืนยันการบันทึกข้อมูล",

View file

@ -26,7 +26,7 @@ const page = ref<number>(1);
const pageSize = ref<number>(10);
const maxPage = ref<number>(1);
const filter = ref<string>("");
const status = ref<string>("ALL");
const status = ref<string>("DONE");
/** function เรียกรายการสรุปผลการพิจารณาทางวินัย*/
async function fetchListResult() {
showLoader();

View file

@ -7,7 +7,7 @@ const table = ref<any>(null);
const filterRef = ref<any>(null);
const attrs = ref<any>(useAttrs());
const paging = ref<boolean>(true);
const statusFilter = ref<string>("ALL");
const statusFilter = ref<string>("DONE");
/** รับ props มาจากหน้าหลัก */
const props = defineProps({
count: Number,