refactor: refs #8118 simplify dropdown change event handling in ClaimSummary and TicketSummary components
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Benjamin Esteve 2025-03-24 12:24:49 +01:00
parent 3c980a311a
commit 43701bd586
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import axios from 'axios'; import axios from 'axios';
import { ref, computed, onMounted } from 'vue'; import { ref, computed } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { toDate, toCurrency } from 'src/filters'; import { toDate, toCurrency } from 'src/filters';
@ -212,8 +212,7 @@ function claimUrl(section) {
<VnDropdown <VnDropdown
:options="claimStates" :options="claimStates"
option-label="description" option-label="description"
option-value="id" @change-state="changeState"
@change-state="changeState($event)"
/> />
</template> </template>
<template #menu="{ entity }"> <template #menu="{ entity }">

View File

@ -116,9 +116,8 @@ onMounted(async () => {
<VnDropdown <VnDropdown
:disable="!isEditable()" :disable="!isEditable()"
:options="editableStates" :options="editableStates"
:option-label="'name'" option-value="code"
:option-value="'code'" @change-state="changeState"
@change-state="changeState($event)"
/> />
</template> </template>
<template #menu="{ entity }"> <template #menu="{ entity }">