fix(command):queryParams.year :newDate().getFullYear()
This commit is contained in:
parent
74de61a809
commit
7ecf76701a
1 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,6 @@ import { checkPermission } from "@/utils/permissions";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useCommandListStore } from "@/modules/18_command/store/ListStore";
|
import { useCommandListStore } from "@/modules/18_command/store/ListStore";
|
||||||
import { usePagination } from "@/composables/usePagination";
|
import { usePagination } from "@/composables/usePagination";
|
||||||
import { calculateFiscalYear } from "@/utils/function";
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
|
|
@ -37,7 +36,7 @@ const tabsManu = ref<ItemTabs[]>([
|
||||||
]);
|
]);
|
||||||
//ฟอร์มช้อมูลการค้นหา
|
//ฟอร์มช้อมูลการค้นหา
|
||||||
const queryParams = reactive<FormQuery>({
|
const queryParams = reactive<FormQuery>({
|
||||||
year: calculateFiscalYear(new Date()), //ปีงบประมาณ
|
year: new Date().getFullYear(), //พ.ศ.
|
||||||
keyword: "", //คำค้นหา
|
keyword: "", //คำค้นหา
|
||||||
commandTypeId: "",
|
commandTypeId: "",
|
||||||
});
|
});
|
||||||
|
|
@ -126,7 +125,7 @@ onMounted(async () => {
|
||||||
:model-value="
|
:model-value="
|
||||||
queryParams.year == null ? null : queryParams.year + 543
|
queryParams.year == null ? null : queryParams.year + 543
|
||||||
"
|
"
|
||||||
:label="`${'ปีงบประมาณ'}`"
|
:label="`${'พ.ศ.'}`"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue