Merge branch 'Nice' into develop

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-15 13:31:06 +07:00
commit d4bbe9ad50
2 changed files with 11 additions and 2 deletions

View file

@ -63,6 +63,7 @@ const dialogTitle = ref<string>("อนุญาต"); // Title ของ Dialog
const dialogLabel = ref<string>("เหตุผล"); // Label Dialog
const modalAdd = ref<boolean>(false); // Modal
const typeAdd = ref<string>(""); // COMMANDER, APPROVER
const isRules = ref<boolean>(true); //
/** Form รายละเอียดข้อมูล*/
const formData = reactive<FormData>({
id: "", //Id
@ -446,14 +447,17 @@ async function checkLeaveType(leaveTypeId: string, formData: FormData) {
async function openModal(data: string) {
if (data === "approve") {
modalApprove.value = true;
isRules.value = false;
dialogTitle.value = "อนุญาต";
}
if (data === "UnApprove") {
modalApprove.value = true;
dialogTitle.value = "ไม่อนุญาต";
isRules.value = true;
}
if (data === "authority") {
modalApprove.value = true;
isRules.value = true;
dialogTitle.value = "ความคิดเห็นของผู้บังคับบัญชา";
dialogLabel.value = "ความคิดเห็น";
}
@ -1229,7 +1233,8 @@ onMounted(async () => {
v-model:modal="modalApprove"
:title="dialogTitle"
:label="dialogLabel"
:savaForm="clickSave"
:sava-form="clickSave"
:is-rules="isRules"
/>
<DialogAddCommander