feat: remove vnsleect url inside column

This commit is contained in:
Javier Segarra 2025-05-14 12:55:53 +02:00
parent e1be86774b
commit 9f7994319b
2 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,6 @@ import ItemProposalProxy from 'src/pages/Item/components/ItemProposalProxy.vue';
import { useQuasar } from 'quasar';
const quasar = useQuasar();
const { t } = useI18n();
const editableStates = ref([]);
const stateStore = useStateStore();
const tableRef = ref();
const changeItemDialogRef = ref(null);
@ -73,11 +72,6 @@ const showItemProposal = () => {
</script>
<template>
<FetchData
url="States/editableStates"
@on-fetch="(data) => (editableStates = data)"
auto-load
/>
<FetchData
:url="`Items/${entityId}/getCard`"
:fields="['longName']"

View File

@ -35,6 +35,7 @@ const filterLack = ref({
order: 'ts.alertLevelCode ASC',
});
const editableStates = ref([]);
const selectedRows = ref([]);
const { t } = useI18n();
const { notify } = useNotify();
@ -160,6 +161,11 @@ function onBuysFetched(data) {
</script>
<template>
<FetchData
url="States/editableStates"
@on-fetch="(data) => (editableStates = data)"
auto-load
/>
<FetchData
ref="fetchItemLack"
:url="`Tickets/itemLack`"
@ -309,7 +315,7 @@ function onBuysFetched(data) {
</template>
<template #column-alertLevelCode="props">
<VnSelect
url="States/editableStates"
:options="editableStates"
auto-load
hide-selected
option-value="id"