โครงสร้างอัตรากำลัง => ประวัติตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-19 11:52:12 +07:00
parent 8e9f80b158
commit 16d9e3cf38

View file

@ -10,6 +10,8 @@ import type { HistoryPos } from "@/modules/02_organizationalNew/interface/respon
import Header from "@/components/DialogHeader.vue";
import { useCounterMixin } from "@/stores/mixin";
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
const store = useOrganizational();
const { showLoader, hideLoader, messageError, date2Thai } = useCounterMixin();
const $q = useQuasar();
const modal = defineModel<boolean>("modal", { required: true });
@ -140,7 +142,15 @@ watch(
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 == 1 ? "1 (แบบร่าง)":props.rowIndex + 1 == 2 ? "2 (ปัจจุบัน)":props.rowIndex + 1 }}
{{
store.typeOrganizational === "current"
? props.rowIndex + 1
: props.rowIndex + 1 == 1
? "1 (แบบร่าง)"
: props.rowIndex + 1 == 2
? "2 (ปัจจุบัน)"
: props.rowIndex + 1
}}
</div>
<div v-else>