ต้นแบบ สำหรับลงในตำแหน่ง/เงินเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-12 18:07:33 +07:00
parent 3399f14823
commit 82a8fc155a
3 changed files with 11 additions and 5 deletions

View file

@ -13,6 +13,6 @@ export default {
commandSysId: string, commandSysId: string,
search: string search: string
) => ) =>
`${commandSalary}/admin?page=${page}&pageSize=${pageSize}&isActive=${isActive}&commandSysId=${commandSysId}&search=${search}`, `${commandSalary}/admin?page=${page}&pageSize=${pageSize}&isActive=${isActive}&commandSysId=${commandSysId}&searchKeyword=${search}`,
commandSalaryById: (id: string) => `${commandSalary}/${id}`, commandSalaryById: (id: string) => `${commandSalary}/${id}`,
}; };

View file

@ -174,6 +174,8 @@ function onSubmit() {
function selectInbox(data: CommandSysType) { function selectInbox(data: CommandSysType) {
activeOrderId.value = data.id; activeOrderId.value = data.id;
pagination.value.page = 1; pagination.value.page = 1;
filter.value = "";
fetchSalaryList(); fetchSalaryList();
} }

View file

@ -97,7 +97,7 @@ async function getDataNotification(index: number, type: string) {
minute: "2-digit", minute: "2-digit",
}; };
await http await http
.get(config.API.msgNotificate + `?page=${index}&pageSize=${10}`) .get(config.API.msgNotificate + `?page=${index}&pageSize=${15}`)
.then((res) => { .then((res) => {
const response = res.data.result.data; const response = res.data.result.data;
totalInbox.value = res.data.result.total; totalInbox.value = res.data.result.total;
@ -286,9 +286,9 @@ function onLoad(index: any, done: Function) {
(notiList.value.length === 0 && totalInbox.value === 0) (notiList.value.length === 0 && totalInbox.value === 0)
) { ) {
page.value++; page.value++;
setTimeout(() => { setTimeout(async () => {
await getDataNotification(page.value, "NOMAL");
done(); done();
getDataNotification(page.value, "NOMAL");
}, 1500); }, 1500);
} }
} }
@ -443,7 +443,11 @@ onUnmounted(() => {
v-if="totalNoti !== 0" v-if="totalNoti !== 0"
>{{ totalNoti }}</q-badge >{{ totalNoti }}</q-badge
> >
<q-menu v-model="notiTrigger" :offset="[0, 8]" style="width: 480px"> <q-menu
v-model="notiTrigger"
:offset="[0, 8]"
style="width: 480px; height: 60vh"
>
<div class="q-px-md q-py-sm row col-12 items-center"> <div class="q-px-md q-py-sm row col-12 items-center">
<div class="text-subtitle1 text-weight-medium">การแจงเตอน</div> <div class="text-subtitle1 text-weight-medium">การแจงเตอน</div>
<q-space /> <q-space />