fix:add function calculateFiscalYear
This commit is contained in:
parent
70be19b5c4
commit
7877f26ac6
47 changed files with 131 additions and 68 deletions
|
|
@ -394,6 +394,7 @@
|
|||
</template>
|
||||
</HistoryTable>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
|
@ -412,6 +413,7 @@ import HistoryTable from "@/components/TableHistory.vue";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import type { QTableProps } from "quasar";
|
||||
import { calculateFiscalYear } from "@/utils/function";
|
||||
|
||||
const props = defineProps({
|
||||
statusEdit: {
|
||||
|
|
@ -430,7 +432,7 @@ const route = useRoute();
|
|||
const id = ref<string>("");
|
||||
const name = ref<string>();
|
||||
const topic = ref<string>();
|
||||
const yearly = ref<number>(new Date().getFullYear());
|
||||
const yearly = ref<number>(calculateFiscalYear(new Date()));
|
||||
const place = ref<string>();
|
||||
const duration = ref<string>();
|
||||
const department = ref<string>();
|
||||
|
|
@ -1017,7 +1019,7 @@ const addData = () => {
|
|||
edit.value = true;
|
||||
name.value = "";
|
||||
topic.value = "";
|
||||
yearly.value = new Date().getFullYear();
|
||||
yearly.value = calculateFiscalYear(new Date());
|
||||
place.value = "";
|
||||
duration.value = "";
|
||||
department.value = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue