ปรับ code รายชื่อผู้ถูกพักราชการ

This commit is contained in:
setthawutttty 2023-12-07 10:52:37 +07:00
parent 4068fd8b74
commit 7668b4f002
6 changed files with 125 additions and 167 deletions

View file

@ -4,12 +4,11 @@ import { useQuasar } from "quasar";
import DialogHeader from "@/components/DialogHeader.vue";
import { useCounterMixin } from "@/stores/mixin";
import { useComplainstDataStore } from "@/modules/11_discipline/store/ComplaintsStore";
const mixin = useCounterMixin();
const $q = useQuasar();
const { dialogConfirm,dialogMessageNotify } = mixin;
const { dialogConfirm, dialogMessageNotify } = mixin;
const props = defineProps({
title: {
@ -60,20 +59,21 @@ const initialPagination = ref<any>({
});
function onclickSend() {
if(selected.value.length === 0){
dialogMessageNotify($q,'กรุณาเลือกอย่างน้อย 1 บุคคล')
}else{
dialogConfirm(
$q,
async () => {
// success($q, `${props.title}`);
emit("returnPerson", selected.value);
props.close?.();
},
`ยืนยันการ${props.title}`,
`ต้องการยืนยันการ${props.title}หรือไม่`
);
}}
if (selected.value.length === 0) {
dialogMessageNotify($q, "กรุณาเลือกอย่างน้อย 1 บุคคล");
} else {
dialogConfirm(
$q,
async () => {
// success($q, `${props.title}`);
emit("returnPerson", selected.value);
props.close?.();
},
`ยืนยันการ${props.title}`,
`ต้องการยืนยันการ${props.title}หรือไม่`
);
}
}
function onClickClose() {
props.close?.();
@ -194,21 +194,6 @@ watch([() => props.modal], () => {
</q-tr>
</template>
</d-table>
<!-- <div class="col-xs-12 col-sm-12 q-mt-sm">
<q-input
for="inputInspectionResults"
ref="inputRef"
dense
outlined
hide-bottom-space
v-model="inspectionResults"
:rules="[(val) => !!val || 'กรุณากรอกผลการตรวจสอบเรื่องร้องเรียน']"
lazy-rules
label="ผลการตรวจสอบเรื่องร้องเรียน"
type="textarea"
rows="5"
/>
</div> -->
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white text-teal">