refactor: refs #8118 simplify dropdown change event handling in ClaimSummary and TicketSummary components
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
3c980a311a
commit
43701bd586
|
@ -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 }">
|
||||||
|
|
|
@ -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 }">
|
||||||
|
|
Loading…
Reference in New Issue