#7136 - Enable paginate event in VnSelectFilter #255
|
@ -21,6 +21,10 @@ const $props = defineProps({
|
|||
type: String,
|
||||
default: 'id',
|
||||
},
|
||||
dataKey: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
optionFilter: {
|
||||
type: String,
|
||||
default: null,
|
||||
|
@ -89,7 +93,7 @@ const useURL = computed(() => $props.url);
|
|||
import { useAttrs } from 'vue';
|
||||
|
||||
|
||||
const $attrs = useAttrs();
|
||||
const arrayDataKey = $props.url !== '' ? $props.url : $attrs.label;
|
||||
const arrayDataKey = $props.dataKey ?? ($props.url !== '' ? $props.url : $attrs.label);
|
||||
const arrayDataOptions = {
|
||||
url: $props.url,
|
||||
jsegarra marked this conversation as resolved
Outdated
alexm
commented
Si lo estas definiendo no puede ser null no? Si lo estas definiendo no puede ser null no?
|
||||
where: $props.where,
|
||||
|
|
|
@ -13,7 +13,6 @@ import VnSelect from 'src/components/common/VnSelect.vue';
|
|||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
|
||||
const workers = ref([]);
|
||||
const businessTypes = ref([]);
|
||||
const contactChannels = ref([]);
|
||||
</script>
|
||||
|
@ -99,10 +98,11 @@ const contactChannels = ref([]);
|
|||
<VnSelect
|
||||
alexm
commented
He probado este y se vuelve loco el descriptor He probado este y se vuelve loco el descriptor
jsegarra
commented
Me tendrás que mostrar, please Me tendrás que mostrar, please
|
||||
:input-debounce="0"
|
||||
:label="t('customer.basicData.salesPerson')"
|
||||
:options="workers"
|
||||
:rules="validate('client.salesPersonFk')"
|
||||
url="Workers/activeWithInheritedRole"
|
||||
hide-selected
|
||||
:where="{ role: 'salesPerson' }"
|
||||
dense
|
||||
emit-value
|
||||
map-options
|
||||
option-label="name"
|
||||
|
|
|
@ -57,8 +57,7 @@ const props = defineProps({
|
|||
<QItem class="q-mb-sm">
|
||||
<QItemSection>
|
||||
<VnSelect
|
||||
:where="{ role: 'salesPerson' }"
|
||||
option-filter="firstName"
|
||||
data-key="salesperson"
|
||||
url="Workers/activeWithInheritedRole"
|
||||
:input-debounce="0"
|
||||
:label="t('Salesperson')"
|
||||
|
@ -68,6 +67,8 @@ const props = defineProps({
|
|||
map-options
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
:where="{ role: 'salesPerson' }"
|
||||
option-filter="firstName"
|
||||
outlined
|
||||
rounded
|
||||
use-input
|
||||
|
@ -142,6 +143,7 @@ const props = defineProps({
|
|||
<QItem class="q-mb-sm">
|
||||
<QItemSection>
|
||||
<VnSelect
|
||||
data-key="author"
|
||||
:input-debounce="0"
|
||||
:label="t('Author')"
|
||||
url="Workers/activeWithInheritedRole"
|
||||
|
|
Loading…
Reference in New Issue
'' es false
$props.url ? $props.url : $attrs.label