|
@@ -144,8 +144,12 @@ const nameFilter: Ref<string | null> = ref(null)
|
|
|
const query: ComputedRef<AnyJson> = computed(() => {
|
|
const query: ComputedRef<AnyJson> = computed(() => {
|
|
|
let q: AnyJson = {'groups[]': 'access_people_ref'}
|
|
let q: AnyJson = {'groups[]': 'access_people_ref'}
|
|
|
|
|
|
|
|
- if (!initialized.value) {
|
|
|
|
|
- q['id[in]'] = Array.isArray(props.modelValue) ? props.modelValue.join(',') : props.modelValue
|
|
|
|
|
|
|
+ if (!initialized.value && props.modelValue) {
|
|
|
|
|
+ if (Array.isArray(props.modelValue) && props.modelValue.length > 0) {
|
|
|
|
|
+ q['id[in]'] = props.modelValue.join(',')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ q['id[in]'] = props.modelValue
|
|
|
|
|
+ }
|
|
|
return q
|
|
return q
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -220,5 +224,7 @@ const onUpdateModelValue = (event: Array<number>) => {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
-
|
|
|
|
|
|
|
+ .v-autocomplete {
|
|
|
|
|
+ min-width: 350px;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|