รายการเลื่อนเงินเดือนข้าราชการ => ปรับ body filter รายชื่อราชการที่เลื่อนเงินเดือ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-11 14:58:20 +07:00
parent 799cd7ce08
commit e35edfeed7
4 changed files with 31 additions and 17 deletions

View file

@ -4,7 +4,7 @@ import { useQuasar } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
import ProcessStep from "@/modules/13_salary/components/SalaryLists/ProcessStep.vue";
import PageDashBoard from '@/modules/13_salary/components/SalaryLists/Dashboard.vue'
import PageDashBoard from "@/modules/13_salary/components/SalaryLists/Dashboard.vue";
/** importType*/
import type {
DataOption,
@ -63,6 +63,7 @@ function getRound() {
revisionId: x.revisionId,
shortCode: x.period,
isClose: x.isClose,
year: x.year,
name:
(x.period === "OCT"
? "รอบตุลาคม "
@ -78,6 +79,7 @@ function getRound() {
: "");
store.roundMainCode = roundFilter.value.shortCode;
store.roundYear = roundFilter.value.year;
store.isClosedRound = roundFilter.value.isClose;
await getSnap(roundFilter.value.shortCode);
@ -239,6 +241,7 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
async function onChangeRound() {
// isClosedRound
store.isClosedRound = roundFilter.value.isClose;
console.log(roundFilter.value);
await getSnap(roundFilter.value.shortCode);
await getAgency(roundFilter.value.revisionId);
@ -251,6 +254,7 @@ async function onChangeRound() {
// );
store.tabType = "PENDING";
store.roundMainCode = roundFilter.value.shortCode;
store.roundYear = roundFilter.value.year;
} else {
isLoad.value = false;
}
@ -271,7 +275,11 @@ async function onChangeSnap() {
async function onChangeAgency() {
store.rootId = agencyFilter.value;
if (agencyFilter.value !== 'ALL' && roundFilter.value.id && snapFilter.value) {
if (
agencyFilter.value !== "ALL" &&
roundFilter.value.id &&
snapFilter.value
) {
await fetchSalalyPeriod(
agencyFilter.value,
roundFilter.value.id,
@ -394,20 +402,18 @@ onMounted(async () => {
<q-separator /> -->
<q-card flat bordered>
<div v-if="agencyFilter !== 'ALL'">
<TabGroup v-if="isLoad" :periodLatest="periodLatest" />
<q-card v-else class="q-pa-sm">
<div class="q-pa-sm">
<q-banner inline-actions rounded class="bg-grey-1 text-center">
ไมอม
</q-banner>
</div>
</q-card>
</div>
<div v-else>
<PageDashBoard/>
</div>
<TabGroup v-if="isLoad" :periodLatest="periodLatest" />
<q-card v-else class="q-pa-sm">
<div class="q-pa-sm">
<q-banner inline-actions rounded class="bg-grey-1 text-center">
ไมอม
</q-banner>
</div>
</q-card>
</div>
<div v-else>
<PageDashBoard />
</div>
</q-card>
<q-card