fix: #347390 ticketWeekly
This commit is contained in:
parent
1f4b36ea68
commit
5a54debbc0
|
@ -13,12 +13,14 @@ import { useArrayData } from 'composables/useArrayData';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||||
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const { openConfirmationModal } = useVnConfirm();
|
const { openConfirmationModal } = useVnConfirm();
|
||||||
const allColumnNames = ref([]);
|
const allColumnNames = ref([]);
|
||||||
|
const agencies = ref([]);
|
||||||
|
|
||||||
const arrayData = useArrayData('WeeklyTickets');
|
const arrayData = useArrayData('WeeklyTickets');
|
||||||
const { store } = arrayData;
|
const { store } = arrayData;
|
||||||
|
@ -51,11 +53,16 @@ const columns = computed(() => [
|
||||||
isTitle: true,
|
isTitle: true,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
columnFilter: {
|
||||||
url: 'Clients',
|
name: 'id',
|
||||||
optionLabel: 'name',
|
component: 'select',
|
||||||
optionValue: 'id',
|
alias: 'c',
|
||||||
isWhere: true,
|
attrs: {
|
||||||
|
url: 'Clients',
|
||||||
|
optionLabel: 'name',
|
||||||
|
optionValue: 'id',
|
||||||
|
inWhere: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
columnField: {
|
columnField: {
|
||||||
component: null,
|
component: null,
|
||||||
|
@ -167,6 +174,11 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<FetchData
|
||||||
|
url="AgencyModes/isActive"
|
||||||
|
@on-fetch="(data) => (agencies = data)"
|
||||||
|
auto-load
|
||||||
|
/>
|
||||||
<VnSearchbar
|
<VnSearchbar
|
||||||
data-key="WeeklyTickets"
|
data-key="WeeklyTickets"
|
||||||
:label="t('weeklyTickets.search')"
|
:label="t('weeklyTickets.search')"
|
||||||
|
@ -200,7 +212,7 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #column-agencyModeFk="{ row }">
|
<template #column-agencyModeFk="{ row }">
|
||||||
<VnSelectCache
|
<VnSelectCache
|
||||||
url="AgencyModes/isActive"
|
:options="agencies"
|
||||||
:row="row"
|
:row="row"
|
||||||
:find="['agencyModeFk', 'agencyModeName']"
|
:find="['agencyModeFk', 'agencyModeName']"
|
||||||
v-model="row.agencyModeFk"
|
v-model="row.agencyModeFk"
|
||||||
|
|
Loading…
Reference in New Issue