เครื่องราช

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-06 14:03:54 +07:00
parent db8280d1bb
commit 04a345e6f5
5 changed files with 11 additions and 8 deletions

View file

@ -359,7 +359,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
flat
round
color="primary"
@click="clickListInsignia(props.row.id)"
@click="clickListInsignia(props.row.period_id)"
icon="mdi-account-check"
>
<q-tooltip>ไดบเครองราชฯ</q-tooltip>

View file

@ -169,13 +169,12 @@ const fecthInsigniaByOc = async (
if (res.data.result.items !== null) {
if (res.data.result.items.length !== 0) {
hideBottom.value = true;
}
} else hideBottom.value = false;
}
// if (res.data.result.items.length !== 0) {
// hideBottom.value = true;
// }
// DataStore.isLock = await res.data.result.isLock;
// DataStore.requestId = await res.data.result.requestId;
})
@ -281,6 +280,9 @@ const directorApproved = async () => {
};
const requestSendNote = async () => {
var organization = await (DataStore.agency != null
? DataStore.agency
: DataStore.typeOc);
dialogConfirm($q, async () => {
showLoader();
await http
@ -291,7 +293,7 @@ const requestSendNote = async () => {
success($q, "บันทึกสำเร็จ");
await fecthInsigniaByOc(
round.value,
DataStore.agency,
organization,
"officer",
tab.value
);