diff --git a/src/components/08_request-list/DataDisplay.vue b/src/components/08_request-list/DataDisplay.vue index a52060f3..916897bb 100644 --- a/src/components/08_request-list/DataDisplay.vue +++ b/src/components/08_request-list/DataDisplay.vue @@ -37,6 +37,8 @@ withDefaults( :class="{ 'link cursor-pointer': clickable }" v-if="typeof value === 'string'" @click="clickable ? $emit('labelClick', value, null) : undefined" + :id="`link-${value}`" + :for="`link-${value}`" > {{ value }} {{ value }} @@ -47,6 +49,8 @@ withDefaults( :key="index" @click="$emit('labelClick', item, index)" class="link cursor-pointer" + :id="`link-${item}`" + :for="`link-${item}`" > {{ item }} diff --git a/src/components/shared/SelectInput.vue b/src/components/shared/SelectInput.vue index 690b8642..2a89b919 100644 --- a/src/components/shared/SelectInput.vue +++ b/src/components/shared/SelectInput.vue @@ -13,6 +13,7 @@ let defaultFilter: ( const props = withDefaults( defineProps<{ + prefix?: string; id?: string; label?: string; option: T[]; diff --git a/src/components/shared/select/SelectUser.vue b/src/components/shared/select/SelectUser.vue index b931d07e..5a8b89e3 100644 --- a/src/components/shared/select/SelectUser.vue +++ b/src/components/shared/select/SelectUser.vue @@ -26,6 +26,7 @@ defineEmits<{ type ExclusiveProps = { selectFirstValue?: boolean; + prefix?: string; }; const props = defineProps & ExclusiveProps>(); @@ -71,6 +72,7 @@ function setDefaultValue() { (), { listDocument: () => [], @@ -244,14 +245,14 @@ function changeCustomerTab(opts: { tab: 'customer' | 'employee' }) {