forked from verdnatura/salix-front
refs #6111 fix trad remove logs
This commit is contained in:
parent
a78e86a0b9
commit
2eaa184fe0
|
@ -43,7 +43,6 @@ const setUserConfigViewData = (data) => {
|
||||||
name: col,
|
name: col,
|
||||||
active: data[col] == undefined ? true : data[col],
|
active: data[col] == undefined ? true : data[col],
|
||||||
}));
|
}));
|
||||||
console.log('formattedCols: ', formattedCols.value);
|
|
||||||
emitSavedConfig();
|
emitSavedConfig();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,7 +63,6 @@ const fetchViewConfigData = async () => {
|
||||||
where: { tableCode: $props.tableCode, userFk: user.id },
|
where: { tableCode: $props.tableCode, userFk: user.id },
|
||||||
};
|
};
|
||||||
const userConfig = await getConfig('UserConfigViews', userConfigFilter);
|
const userConfig = await getConfig('UserConfigViews', userConfigFilter);
|
||||||
console.log('userConfig: ', userConfig);
|
|
||||||
|
|
||||||
if (userConfig) {
|
if (userConfig) {
|
||||||
initialUserConfigViewData.value = userConfig;
|
initialUserConfigViewData.value = userConfig;
|
||||||
|
@ -74,7 +72,6 @@ const fetchViewConfigData = async () => {
|
||||||
|
|
||||||
const defaultConfigFilter = { where: { tableCode: $props.tableCode } };
|
const defaultConfigFilter = { where: { tableCode: $props.tableCode } };
|
||||||
const defaultConfig = await getConfig('DefaultViewConfigs', defaultConfigFilter);
|
const defaultConfig = await getConfig('DefaultViewConfigs', defaultConfigFilter);
|
||||||
console.log('defaultConfig: ', defaultConfig);
|
|
||||||
|
|
||||||
if (defaultConfig) {
|
if (defaultConfig) {
|
||||||
setUserConfigViewData(defaultConfig.columns);
|
setUserConfigViewData(defaultConfig.columns);
|
||||||
|
@ -134,7 +131,6 @@ const emitSavedConfig = () => {
|
||||||
const activeColumns = formattedCols.value
|
const activeColumns = formattedCols.value
|
||||||
.filter((col) => col.active)
|
.filter((col) => col.active)
|
||||||
.map((col) => col.name);
|
.map((col) => col.name);
|
||||||
console.log('activeColumns: ', activeColumns);
|
|
||||||
emit('onConfigSaved', activeColumns);
|
emit('onConfigSaved', activeColumns);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ import { useSession } from 'composables/useSession';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import RouteListTicketsDialog from 'pages/Route/Card/RouteListTicketsDialog.vue';
|
import RouteListTicketsDialog from 'pages/Route/Card/RouteListTicketsDialog.vue';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import { useRouter } from 'vue-router';
|
|
||||||
import { useArrayData } from 'composables/useArrayData';
|
import { useArrayData } from 'composables/useArrayData';
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
|
@ -385,27 +384,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
hide-pagination
|
hide-pagination
|
||||||
:no-data-label="t('globals.noResults')"
|
:no-data-label="t('globals.noResults')"
|
||||||
>
|
>
|
||||||
<!-- <template #top-row="{ cols }">
|
|
||||||
<QTr>
|
|
||||||
<QTd />
|
|
||||||
<QTd
|
|
||||||
v-for="(col, index) in cols"
|
|
||||||
:key="index"
|
|
||||||
style="max-width: 100px"
|
|
||||||
>
|
|
||||||
<component
|
|
||||||
:is="col?.columnFilter?.component"
|
|
||||||
v-if="
|
|
||||||
col.columnFilter && col.name !== 'actions'
|
|
||||||
"
|
|
||||||
v-model="col.columnFilter.filterValue"
|
|
||||||
v-bind="col.columnFilter.attrs"
|
|
||||||
v-on="col.columnFilter.event(col)"
|
|
||||||
dense
|
|
||||||
/>
|
|
||||||
</QTd>
|
|
||||||
</QTr>
|
|
||||||
</template> -->
|
|
||||||
<template #body-cell-worker="{ row }">
|
<template #body-cell-worker="{ row }">
|
||||||
<QTd>
|
<QTd>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
@ -502,7 +480,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
<QTd class="table-input-cell">
|
<QTd class="table-input-cell">
|
||||||
<VnInputTime
|
<VnInputTime
|
||||||
v-model="row.started"
|
v-model="row.started"
|
||||||
:label="t('Hour started')"
|
:label="t('hourStarted')"
|
||||||
:rules="validate('route.started')"
|
:rules="validate('route.started')"
|
||||||
:is-clearable="false"
|
:is-clearable="false"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
@ -512,6 +490,18 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-finished="{ row }">
|
<template #body-cell-finished="{ row }">
|
||||||
|
<QTd class="table-input-cell">
|
||||||
|
<VnInputTime
|
||||||
|
v-model="row.finished"
|
||||||
|
autofocus
|
||||||
|
:label="t('hourFinished')"
|
||||||
|
:rules="validate('route.finished')"
|
||||||
|
:is-clearable="false"
|
||||||
|
hide-bottom-space
|
||||||
|
dense
|
||||||
|
@update:model-value="updateRoute(row)"
|
||||||
|
/>
|
||||||
|
</QTd>
|
||||||
<QTd class="table-input-cell">
|
<QTd class="table-input-cell">
|
||||||
<VnInputTime
|
<VnInputTime
|
||||||
v-model="row.finished"
|
v-model="row.finished"
|
||||||
|
@ -617,8 +607,8 @@ es:
|
||||||
Vehicle: Vehículo
|
Vehicle: Vehículo
|
||||||
Date: Fecha
|
Date: Fecha
|
||||||
Description: Descripción
|
Description: Descripción
|
||||||
Hour started: Hora inicio
|
hourStarted: Hora inicio
|
||||||
Hour finished: Hora fin
|
hourFinished: Hora fin
|
||||||
newRoute: Nueva Ruta
|
newRoute: Nueva Ruta
|
||||||
Clone Selected Routes: Clonar rutas seleccionadas
|
Clone Selected Routes: Clonar rutas seleccionadas
|
||||||
Select the starting date: Seleccione la fecha de inicio
|
Select the starting date: Seleccione la fecha de inicio
|
||||||
|
|
Loading…
Reference in New Issue