fix ระยะเวลาดำรงตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-28 09:45:45 +07:00
parent 9ee003c913
commit f9bdb3a523
3 changed files with 4 additions and 5 deletions

View file

@ -755,12 +755,12 @@ async function fetchDataTenure() {
/** ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
onMounted(() => {
fetchListSalary();
fetchDataTenure();
empType.value === "" && fetchDataTenure();
});
</script>
<template>
<div class="row q-col-gutter-sm q-pb-sm">
<div class="row q-col-gutter-sm q-pb-sm" v-if="empType === ''">
<div class="col" v-for="(item, index) in cardData" :key="index">
<q-card bordered class="col-12" style="border: 1px solid #d6dee1">
<div class="col-12 text-weight-medium bg-grey-1 q-py-xs q-px-md">

View file

@ -6,7 +6,7 @@ import * as XLSX from "xlsx";
import http from "@/plugins/http";
import config from "@/app.config";
import { useRoute } from "vue-router";
import { checkPermission, checkPermissionGet } from "@/utils/permissions";
import { checkPermission } from "@/utils/permissions";
import { useCounterMixin } from "@/stores/mixin";
import { useReportStore } from "@/modules/21_report/store";
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
@ -45,7 +45,6 @@ const employeeClassOption = ref<OptionData[]>([
]);
const rows = ref<any[]>([]);
const detailReport = ref<any>();
/** ช่วงเวลา */
const dateStart = ref<Date | null>(null); //