แก้ สืบ สอบ

This commit is contained in:
setthawutttty 2023-12-15 17:29:47 +07:00
parent 749113a3cc
commit 480393efe3
8 changed files with 375 additions and 31 deletions

View file

@ -28,7 +28,7 @@ const { showLoader, hideLoader, messageError } = mixin;
const router = useRouter();
const route = useRoute();
const id = ref<string>(route.params.id as string);
const titlePopup = ref<string>('')
/**
* นทกขอมลทเเกไข
@ -48,8 +48,9 @@ function closeModal() {
/** ยืนยัน ส่งไปออกคำสั่ง */
function sentIssue() {
function sentIssue(title:string) {
modal.value = true;
titlePopup.value = title
}
const idInvestigate = ref<string>("");
@ -279,9 +280,15 @@ watch(
<div class="q-gutter-x-sm">
<q-btn
v-if="status === 'DONE'"
label="ส่งไปออกคำสั่ง"
label="ส่งไปออกคำสั่งลงโทษทางวินัย"
color="public"
@click="sentIssue"
@click="sentIssue('ส่งไปออกคำสั่งลงโทษทางวินัย')"
/>
<q-btn
v-if="status === 'DONE'"
label="ส่งไปออกคำสั่งงดโทษ/เพิ่มโทษ"
color="public"
@click="sentIssue('ส่งไปออกคำสั่งงดโทษ/เพิ่มโทษ')"
/>
</div>
</div>
@ -328,6 +335,7 @@ watch(
</div>
<DialogSendToCommand
:title="titlePopup"
v-model:Modal="modal"
:closeModal="closeModal"
:rows2="[]"