Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2023-11-23 17:02:45 +07:00
commit 418437486d
16 changed files with 821 additions and 631 deletions

View file

@ -15,6 +15,10 @@ const $q = useQuasar();
const { dialogConfirm, dialogMessageNotify, success } = mixin;
const props = defineProps({
title: {
type: String,
default: 'ส่งไปสืบสวน',
},
modal: {
type: Boolean,
require: true,
@ -128,13 +132,13 @@ function onclickSend() {
dialogConfirm(
$q,
async () => {
success($q, "ส่งข้อมูลไปสืบสวนสำเร็จ");
success($q, `ส่งข้อมูล${props.title}สำเร็จ`);
console.log(selected.value);
props.close?.();
},
"ยืนยันการส่งไปสืบสวน",
"ต้องการยืนยันการส่งไปสืบสวนหรือไม่"
`ยืนยันการส่ง${props.title}`,
`ต้องการยืนยันการส่ง${props.title}หรือไม่`
);
} else {
dialogMessageNotify($q, "กรุณาเลือกรายชื่อ");
@ -155,7 +159,7 @@ watch([() => props.modal], () => {
<template>
<q-dialog v-model="props.modal">
<q-card style="width: 820px; max-width: 80vw">
<DialogHeader tittle="มีมูลส่งไปสืบสวน" :close="onClickClose" />
<DialogHeader :tittle="props.title" :close="onClickClose" />
<q-separator />
@ -277,7 +281,7 @@ watch([() => props.modal], () => {
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white text-teal">
<q-btn label="ส่งไปสืบสวน" color="public" @click="onclickSend" />
<q-btn :label="props.title" color="public" @click="onclickSend" />
</q-card-actions>
</q-card>
</q-dialog>