From ac1dddf5c3ad35a8645d8f393da3e2707f07a919 Mon Sep 17 00:00:00 2001 From: Net Date: Fri, 30 Aug 2024 11:42:52 +0700 Subject: [PATCH] refactor: Check the conditions --- src/components/02_personnel-management/FormInformation.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/02_personnel-management/FormInformation.vue b/src/components/02_personnel-management/FormInformation.vue index 6db19871..cb4da424 100644 --- a/src/components/02_personnel-management/FormInformation.vue +++ b/src/components/02_personnel-management/FormInformation.vue @@ -3,6 +3,7 @@ import useUserStore from 'stores/user'; import { selectFilterOptionRefMod } from 'stores/utils'; import { onMounted, ref } from 'vue'; import { useI18n } from 'vue-i18n'; +import { isRoleInclude } from 'src/stores/utils'; const userStore = useUserStore(); const { t } = useI18n(); @@ -100,6 +101,7 @@ onMounted(async () => { map-options hide-selected hide-bottom-space + :disable="isRoleInclude(['branch_manager']) && !readonly" v-model="hqId" for="select-hq-id" input-debounce="0" @@ -148,6 +150,7 @@ onMounted(async () => { option-value="value" lazy-rules="ondemand" class="col-md-2 col-12" + :disable="isRoleInclude(['branch_manager']) && !readonly" :dense="dense" :readonly="readonly" :hide-dropdown-icon="readonly"