fix label แก้ไขการจัดสรรเครื่องราชฯ
This commit is contained in:
parent
e83504d451
commit
652bc4066b
1 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { QForm, useQuasar } from "quasar";
|
import { QForm, useQuasar } from "quasar";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
/** impotrComponents */
|
/** impotrComponents */
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
@ -9,9 +10,12 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
const router = useRouter();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { dialogConfirm } = mixin;
|
const { dialogConfirm } = mixin;
|
||||||
|
|
||||||
|
const routeName = router.currentRoute.value.name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* props
|
* props
|
||||||
*/
|
*/
|
||||||
|
|
@ -106,7 +110,11 @@ watch(props, () => {
|
||||||
dense
|
dense
|
||||||
lazy-rules
|
lazy-rules
|
||||||
type="text"
|
type="text"
|
||||||
label="เครื่องราชฯ"
|
:label="
|
||||||
|
routeName == 'insigniaAllocate'
|
||||||
|
? `เครื่องราชฯ`
|
||||||
|
: `เลือกหน่วยงาน`
|
||||||
|
"
|
||||||
:class="classInput(true)"
|
:class="classInput(true)"
|
||||||
readonly
|
readonly
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue