forked from verdnatura/salix-front
refactor: refs #8118 simplify dropdown change event handling in ClaimSummary and TicketSummary components
This commit is contained in:
parent
3c980a311a
commit
43701bd586
|
@ -1,6 +1,6 @@
|
|||
<script setup>
|
||||
import axios from 'axios';
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import { ref, computed } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { toDate, toCurrency } from 'src/filters';
|
||||
|
@ -212,8 +212,7 @@ function claimUrl(section) {
|
|||
<VnDropdown
|
||||
:options="claimStates"
|
||||
option-label="description"
|
||||
option-value="id"
|
||||
@change-state="changeState($event)"
|
||||
@change-state="changeState"
|
||||
/>
|
||||
</template>
|
||||
<template #menu="{ entity }">
|
||||
|
|
|
@ -116,9 +116,8 @@ onMounted(async () => {
|
|||
<VnDropdown
|
||||
:disable="!isEditable()"
|
||||
:options="editableStates"
|
||||
:option-label="'name'"
|
||||
:option-value="'code'"
|
||||
@change-state="changeState($event)"
|
||||
option-value="code"
|
||||
@change-state="changeState"
|
||||
/>
|
||||
</template>
|
||||
<template #menu="{ entity }">
|
||||
|
|
Loading…
Reference in New Issue