diff --git a/src/modules/02_organizationalNew/components/DialogHistoryPos.vue b/src/modules/02_organizationalNew/components/DialogHistoryPos.vue index ee1a5f692..8a8e5885d 100644 --- a/src/modules/02_organizationalNew/components/DialogHistoryPos.vue +++ b/src/modules/02_organizationalNew/components/DialogHistoryPos.vue @@ -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("modal", { required: true }); @@ -140,7 +142,15 @@ watch(
- {{ 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 + }}