fix bug
This commit is contained in:
parent
abddd04570
commit
2899af3c5d
2 changed files with 12 additions and 4 deletions
|
|
@ -231,9 +231,9 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:model-value="!!year ? year + 543 : null"
|
:model-value="year === null ? 'ทั้งหมด' : Number(year) + 543"
|
||||||
:label="`${'ปีงบประมาณ'}`"
|
:label="`${'ปีงบประมาณ'}`"
|
||||||
clearable
|
:clearable="year !== null"
|
||||||
@clear="clearYear"
|
@clear="clearYear"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
|
|
@ -260,6 +260,7 @@ onMounted(async () => {
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
@update:model-value="changRound"
|
@update:model-value="changRound"
|
||||||
|
:disable="year === null"
|
||||||
/>
|
/>
|
||||||
<q-btn round color="primary" flat icon="add" @click="onDialog()">
|
<q-btn round color="primary" flat icon="add" @click="onDialog()">
|
||||||
<q-tooltip>เพิ่มผู้ประเมิน</q-tooltip>
|
<q-tooltip>เพิ่มผู้ประเมิน</q-tooltip>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, watch } from "vue";
|
import { ref, reactive, onMounted, watch, nextTick } from "vue";
|
||||||
import { useQuasar, type QTableProps } from "quasar";
|
import { useQuasar, type QTableProps } from "quasar";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
|
|
@ -352,6 +352,13 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function test() {
|
||||||
|
nextTick(() => {
|
||||||
|
formQuery.page = 1;
|
||||||
|
fetchList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchList();
|
fetchList();
|
||||||
});
|
});
|
||||||
|
|
@ -371,7 +378,7 @@ onMounted(() => {
|
||||||
autoApply
|
autoApply
|
||||||
year-picker
|
year-picker
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
@update:model-value="(formQuery.page = 1), fetchList()"
|
@update:model-value="test"
|
||||||
>
|
>
|
||||||
<template #year="{ year }">{{ year + 543 }}</template>
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
<template #year-overlay-value="{ value }">{{
|
<template #year-overlay-value="{ value }">{{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue