This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-28 14:25:45 +07:00
parent c2188b81cd
commit 69d39eb9dd
2 changed files with 13 additions and 5 deletions

View file

@ -75,7 +75,7 @@ const optionsResult = ref<any>([
},
{
value: 2,
label: "ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้ออกจากราชการ",
label: "ต่ำกว่ามาตรฐานที่กำหนดเห็นควรให้ออกจากราชการ",
type: "save2",
},
{
@ -195,9 +195,11 @@ const fecthResult = async (id: string) => {
async function savaForm() {
await myForm.value.validate().then((result: boolean) => {
if (result) {
dialogConfirm($q, async () => await postData("post"));
} else {
dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
if (authority_name.value === "") {
dialogMessageNotify($q, "กรุณาเลือกผู้มีอำนาจ");
} else {
dialogConfirm($q, async () => await postData("post"));
}
}
});
}