fix label แก้ไขการจัดสรรเครื่องราชฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-08-19 16:56:29 +07:00
parent e83504d451
commit 652bc4066b

View file

@ -1,6 +1,7 @@
<script setup lang="ts">
import { ref, watch } from "vue";
import { QForm, useQuasar } from "quasar";
import { useRouter } from "vue-router";
/** impotrComponents */
import DialogHeader from "@/components/DialogHeader.vue";
@ -9,9 +10,12 @@ import DialogHeader from "@/components/DialogHeader.vue";
import { useCounterMixin } from "@/stores/mixin";
const $q = useQuasar();
const router = useRouter();
const mixin = useCounterMixin();
const { dialogConfirm } = mixin;
const routeName = router.currentRoute.value.name;
/**
* props
*/
@ -106,7 +110,11 @@ watch(props, () => {
dense
lazy-rules
type="text"
label="เครื่องราชฯ"
:label="
routeName == 'insigniaAllocate'
? `เครื่องราชฯ`
: `เลือกหน่วยงาน`
"
:class="classInput(true)"
readonly
/>