feat: refs #8118 add VnDropdown component and integrate it into Claim and Ticket summaries #1517
|
@ -211,8 +211,8 @@ function claimUrl(section) {
|
|||
<template #header-right>
|
||||
<VnDropdown
|
||||
:options="claimStates"
|
||||
option-value="id"
|
||||
option-label="description"
|
||||
option-value="id"
|
||||
benjaminedc marked this conversation as resolved
Outdated
|
||||
@change-state="changeState($event)"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
@ -114,9 +114,8 @@ onMounted(async () => {
|
|||
</template>
|
||||
<template #header-right>
|
||||
<VnDropdown
|
||||
:moduleId="entityId"
|
||||
:options="editableStates"
|
||||
:disable="!isEditable()"
|
||||
:options="editableStates"
|
||||
:option-label="'name'"
|
||||
benjaminedc marked this conversation as resolved
Outdated
jorgep
commented
no hace falta usar ":" cuando es texto. no hace falta usar ":" cuando es texto.
|
||||
:option-value="'code'"
|
||||
benjaminedc marked this conversation as resolved
Outdated
jorgep
commented
Aquí tenías puesto antes el code, ahora usas el id,, pero el back espera un code. Aquí tenías puesto antes el code, ahora usas el id,, pero el back espera un code.
|
||||
@change-state="changeState($event)"
|
||||
benjaminedc marked this conversation as resolved
jorgep
commented
No hace falta poner $event, con poner changeState es suficiente. No hace falta poner $event, con poner **changeState** es suficiente.
|
||||
|
|
Loading…
Reference in New Issue
Si usas id no no hace falta pasar la propiedad, utiliza ese por defecto