refactor: Check the conditions
This commit is contained in:
parent
306b5d6005
commit
ac1dddf5c3
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue