fix bug & แก้คำผิด
This commit is contained in:
parent
2590fb1142
commit
ad09bd908a
15 changed files with 45 additions and 47 deletions
|
|
@ -158,15 +158,15 @@ function clickAdd() {
|
|||
router.push({ name: "roundAdd" });
|
||||
}
|
||||
|
||||
/** Fnction คำนวณราชชื่อผู้ได้รับเครื่องราช */
|
||||
/** Fnction คำนวณรายชื่อผู้ได้รับเครื่องราช */
|
||||
async function clickListInsignia(propsId: string) {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
await getRequest(propsId);
|
||||
},
|
||||
"ยืนยันการคำนวณราชชื่อผู้ได้รับเครื่องราชฯ",
|
||||
"ต้องการยืนยันการคำนวณราชชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่ ?"
|
||||
"ยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯ",
|
||||
"ต้องการยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่?"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ function changtypeOc() {
|
|||
DataStore.typeOc = organization.value;
|
||||
}
|
||||
|
||||
/** function เพิ่มราชชื่อ*/
|
||||
/** function เพิ่มรายชื่อ*/
|
||||
async function clickmodalAdd() {
|
||||
let ocId = DataStore.typeOc ? DataStore.typeOc : DataStore.agency;
|
||||
showLoader();
|
||||
|
|
@ -321,7 +321,7 @@ async function fecthlistperson(id: string) {
|
|||
});
|
||||
}
|
||||
|
||||
/** function ยืนยันการเพิ่มราชชื่อ*/
|
||||
/** function ยืนยันการเพิ่มรายชื่อ*/
|
||||
async function clickAdd() {
|
||||
dataPerson.id
|
||||
? await myForm.value!.validate().then((result: boolean) => {
|
||||
|
|
@ -336,7 +336,7 @@ async function clickAdd() {
|
|||
);
|
||||
}
|
||||
})
|
||||
: dialogMessageNotify($q, "กรุณาเลือกราชชื่อที่ต้องการเพิ่ม");
|
||||
: dialogMessageNotify($q, "กรุณาเลือกรายชื่อที่ต้องการเพิ่ม");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ const props = defineProps({
|
|||
},
|
||||
});
|
||||
|
||||
/** callback function จำทำงานเมื่อ props.modal = true เปิด popup เพิ่มราชชื่อบันทึกผล*/
|
||||
/** callback function จำทำงานเมื่อ props.modal = true เปิด popup เพิ่มรายชื่อบันทึกผล*/
|
||||
watch(props, () => {
|
||||
if (props.modal === true) {
|
||||
employeeClass.value = "";
|
||||
|
|
@ -158,7 +158,7 @@ async function fecthlistPerson() {
|
|||
.then((res) => {
|
||||
const id = res.data.result[0].id;
|
||||
if (id !== "") {
|
||||
findlist(id); // id หน่วยงานไปเรียกราชชื่อ
|
||||
findlist(id); // id หน่วยงานไปเรียกรายชื่อ
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -167,7 +167,7 @@ async function fecthlistPerson() {
|
|||
}
|
||||
|
||||
/**
|
||||
* function เรียกราชชื่อลูกจ้างตาม id หน่วยงาน
|
||||
* function เรียกรายชื่อลูกจ้างตาม id หน่วยงาน
|
||||
* @param id id หน่วยงาน
|
||||
*/
|
||||
async function findlist(id: string) {
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ async function selectorRound(round: number) {
|
|||
await fecthlistInsignia();
|
||||
}
|
||||
|
||||
/** function เรียกราชชื่อการเสนอขอเครื่องราชฯ */
|
||||
/** function เรียกรายชื่อการเสนอขอเครื่องราชฯ */
|
||||
async function fecthlistInsignia() {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -372,7 +372,7 @@ function close() {
|
|||
modal.value = false;
|
||||
}
|
||||
|
||||
/** function closePopup และเเรียกข้อมูลราชชื่อการเสนอขอเครื่องราชฯ */
|
||||
/** function closePopup และเเรียกข้อมูลรายชื่อการเสนอขอเครื่องราชฯ */
|
||||
function closeAndFecth() {
|
||||
modal.value = false;
|
||||
fecthlistInsignia();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue