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 { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { isRoleInclude } from 'src/stores/utils';
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
@ -100,6 +101,7 @@ onMounted(async () => {
|
||||||
map-options
|
map-options
|
||||||
hide-selected
|
hide-selected
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
:disable="isRoleInclude(['branch_manager']) && !readonly"
|
||||||
v-model="hqId"
|
v-model="hqId"
|
||||||
for="select-hq-id"
|
for="select-hq-id"
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
|
|
@ -148,6 +150,7 @@ onMounted(async () => {
|
||||||
option-value="value"
|
option-value="value"
|
||||||
lazy-rules="ondemand"
|
lazy-rules="ondemand"
|
||||||
class="col-md-2 col-12"
|
class="col-md-2 col-12"
|
||||||
|
:disable="isRoleInclude(['branch_manager']) && !readonly"
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:hide-dropdown-icon="readonly"
|
:hide-dropdown-icon="readonly"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue