เเก้ วินัย

This commit is contained in:
setthawutttty 2023-12-06 10:46:52 +07:00
parent eb08a9f209
commit c4a3415316
6 changed files with 27 additions and 23 deletions

View file

@ -9,7 +9,7 @@ import { useComplainstDataStore } from "@/modules/11_discipline/store/Complaints
const mixin = useCounterMixin();
const $q = useQuasar();
const { dialogConfirm } = mixin;
const { dialogConfirm,dialogMessageNotify } = mixin;
const props = defineProps({
title: {
@ -60,6 +60,9 @@ const initialPagination = ref<any>({
});
function onclickSend() {
if(selected.value.length === 0){
dialogMessageNotify($q,'กรุณาเลือกอย่างน้อย 1 บุคคล')
}else{
dialogConfirm(
$q,
async () => {
@ -70,7 +73,7 @@ function onclickSend() {
`ยืนยันการ${props.title}`,
`ต้องการยืนยันการ${props.title}หรือไม่`
);
}
}}
function onClickClose() {
props.close?.();