fix bug & แก้คำผิด

This commit is contained in:
Warunee Tamkoo 2024-03-28 16:29:44 +07:00
parent 2590fb1142
commit ad09bd908a
15 changed files with 45 additions and 47 deletions

View file

@ -314,7 +314,7 @@ async function getTable() {
rowsAll.value.push(rowData);
});
//
//
rows.value = roleAdmin.value
? rowsAll.value
: rowsAll.value.filter((x: any) => x.statusId !== "CONTAIN");
@ -550,7 +550,7 @@ async function clickClose() {
}
}
/** ยืนยันส่งราชื่อไปหน่วยงาน */
/** ยืนยันส่งราชื่อไปหน่วยงาน */
function savelist() {
selected.value.map((e: any) => {
personal_selected.value.push(e.personalId);

View file

@ -452,7 +452,7 @@ const openModalCalendar = (rows: any) => {
</q-td>
<q-td auto-width>
<q-btn
v-if="props.row.appointDate == null"
v-if="!props.row.appointDate"
icon="mdi-calendar"
size="12px"
color="blue-7"
@ -481,7 +481,7 @@ const openModalCalendar = (rows: any) => {
:close="closeModal"
/>
<q-separator />
<q-card-section class="q-p-sm q-gutter-md bg-grey-1">
<q-card-section class="q-p-sm q-gutter-md">
<div class="col-xs-12 col-sm-12 col-md-12">
<datepicker
menu-class-name="modalfix"

View file

@ -158,15 +158,15 @@ function clickAdd() {
router.push({ name: "roundAdd" });
}
/** Fnction คำนวณราชื่อผู้ได้รับเครื่องราช */
/** Fnction คำนวณราชื่อผู้ได้รับเครื่องราช */
async function clickListInsignia(propsId: string) {
dialogConfirm(
$q,
async () => {
await getRequest(propsId);
},
"ยืนยันการคำนวณราชื่อผู้ได้รับเครื่องราชฯ",
"ต้องการยืนยันการคำนวณราชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่ ?"
"ยืนยันการคำนวณราชื่อผู้ได้รับเครื่องราชฯ",
"ต้องการยืนยันการคำนวณราชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่?"
);
}

View file

@ -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, "กรุณาเลือกราชื่อที่ต้องการเพิ่ม");
}
/**

View file

@ -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) {

View file

@ -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();

View file

@ -161,7 +161,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
}
/**
* function
* function
* @param type
* @param employeeClasstype
*/

View file

@ -31,7 +31,7 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
const type = ref<any[]>([]);
/**
* function
* function
* @param data
*/
async function fetchDataInsignia(data: any) {

View file

@ -313,7 +313,7 @@ watch(modal, () => {
}
});
/** function เรียกราชื่อบันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ */
/** function เรียกราชื่อบันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ */
async function fecthlistInsignia() {
showLoader();
let data = {

View file

@ -779,7 +779,7 @@ const openDialog = (action: string) => {
clickAction.value = action;
selectedModal.value = [];
};
//
//
const clickSavelist = () => {
if (selectedModal.value.length > 0) {
if (clickAction.value === "chairman") {

View file

@ -189,11 +189,11 @@ const checkNote = computed(() => {
}
return false;
});
//
//
const dialogDeleteData = async (id: string) => {
dialogRemove($q, () => deleteData(id));
};
// API
// API
const deleteData = async (id: string) => {
await http
.delete(config.API.personsOrder(id))
@ -208,7 +208,7 @@ const deleteData = async (id: string) => {
await conditionData();
});
};
//
//
const swapUp = async (id: string) => {
await http
.put(config.API.swapUpOrder(id))
@ -220,7 +220,7 @@ const swapUp = async (id: string) => {
hideLoader();
});
};
//
//
const swapDown = async (id: string) => {
await http
.put(config.API.swapDownOrder(id))
@ -332,7 +332,7 @@ const putSalary = async (salary: any) => {
});
});
};
// popup
// popup
const modalAddChange = async () => {
modalAdd.value = !modalAdd.value;
if (modalAdd.value == true) {
@ -392,7 +392,7 @@ const saveModalAdd = () => {
});
}
};
// API
// API
const addlist = async (data: Object) => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -620,7 +620,7 @@ const pagination = ref({
@click="save"
class="q-px-md"
>
<q-tooltip>นทกขอม</q-tooltip>
<q-tooltip>นทกขอม</q-tooltip>
</q-btn>
</div>
</div>

View file

@ -243,7 +243,7 @@ const getData = async (id: string) => {
hideLoader();
});
};
//
//
const saveData = async () => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -319,7 +319,7 @@ const nodeTree = async () => {
const onSelected = async (id: string) => {
await listModal(id);
};
//
//
const deleteData = async (id: string) => {
await http
.delete(config.API.copyOrderId(id))

View file

@ -189,11 +189,11 @@ const checkNote = computed(() => {
}
return false;
});
//
//
const dialogDeleteData = async (id: string) => {
dialogRemove($q, () => deleteData(id));
};
// API
// API
const deleteData = async (id: string) => {
await http
.delete(config.API.personsOrder(id))
@ -208,7 +208,7 @@ const deleteData = async (id: string) => {
await conditionData();
});
};
//
//
const swapUp = async (id: string) => {
await http
.put(config.API.swapUpOrder(id))
@ -220,7 +220,7 @@ const swapUp = async (id: string) => {
hideLoader();
});
};
//
//
const swapDown = async (id: string) => {
await http
.put(config.API.swapDownOrder(id))
@ -332,7 +332,7 @@ const putSalary = async (salary: any) => {
});
});
};
// popup
// popup
const modalAddChange = async () => {
modalAdd.value = !modalAdd.value;
if (modalAdd.value == true) {
@ -392,7 +392,7 @@ const saveModalAdd = () => {
});
}
};
// API
// API
const addlist = async (data: Object) => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -620,7 +620,7 @@ const pagination = ref({
@click="save"
class="q-px-md"
>
<q-tooltip>นทกขอม</q-tooltip>
<q-tooltip>นทกขอม</q-tooltip>
</q-btn>
</div>
</div>
@ -718,7 +718,7 @@ const pagination = ref({
:visible-columns="visibleColumns"
:filter="filter"
row-key="name"
:selection="'multiple' "
:selection="'multiple'"
v-model:selected="selected"
>
<template v-slot:header="props">

View file

@ -243,7 +243,7 @@ const getData = async (id: string) => {
hideLoader();
});
};
//
//
const saveData = async () => {
const id = route.params.orderid
? route.params.orderid.toString()
@ -319,7 +319,7 @@ const nodeTree = async () => {
const onSelected = async (id: string) => {
await listModal(id);
};
//
//
const deleteData = async (id: string) => {
await http
.delete(config.API.copyOrderId(id))

View file

@ -35,6 +35,7 @@ const {
success,
messageError,
date2Thai,
dialogConfirm,
} = mixin;
const DataStore = useroleUserDataStore();
const { fetchroleUser } = DataStore;
@ -406,15 +407,12 @@ const tagClickPlacement = (tag: string) => {
* confirm อนออกจากระบบ
*/
const doLogout = () => {
$q.dialog({
title: "ยืนยันการออกจากระบบ",
message: `ต้องการออกจากระบบใช้หรือไม่?`,
cancel: "ยกเลิก",
ok: "ยืนยัน",
persistent: true,
}).onOk(() => {
keycloak.logout();
});
dialogConfirm(
$q,
() => keycloak.logout(),
"ยืนยันการออกจากระบบ",
"ต้องการออกจากระบบใช่หรือไม่?"
);
};
/**