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,
|
||||
active: data[col] == undefined ? true : data[col],
|
||||
}));
|
||||
console.log('formattedCols: ', formattedCols.value);
|
||||
emitSavedConfig();
|
||||
};
|
||||
|
||||
|
@ -64,7 +63,6 @@ const fetchViewConfigData = async () => {
|
|||
where: { tableCode: $props.tableCode, userFk: user.id },
|
||||
};
|
||||
const userConfig = await getConfig('UserConfigViews', userConfigFilter);
|
||||
console.log('userConfig: ', userConfig);
|
||||
|
||||
if (userConfig) {
|
||||
initialUserConfigViewData.value = userConfig;
|
||||
|
@ -74,7 +72,6 @@ const fetchViewConfigData = async () => {
|
|||
|
||||
const defaultConfigFilter = { where: { tableCode: $props.tableCode } };
|
||||
const defaultConfig = await getConfig('DefaultViewConfigs', defaultConfigFilter);
|
||||
console.log('defaultConfig: ', defaultConfig);
|
||||
|
||||
if (defaultConfig) {
|
||||
setUserConfigViewData(defaultConfig.columns);
|
||||
|
@ -134,7 +131,6 @@ const emitSavedConfig = () => {
|
|||
const activeColumns = formattedCols.value
|
||||
.filter((col) => col.active)
|
||||
.map((col) => col.name);
|
||||
console.log('activeColumns: ', activeColumns);
|
||||
emit('onConfigSaved', activeColumns);
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ import { useSession } from 'composables/useSession';
|
|||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||
import RouteListTicketsDialog from 'pages/Route/Card/RouteListTicketsDialog.vue';
|
||||
import { useQuasar } from 'quasar';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useArrayData } from 'composables/useArrayData';
|
||||
|
||||
const stateStore = useStateStore();
|
||||
|
@ -385,27 +384,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
hide-pagination
|
||||
: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 }">
|
||||
<QTd>
|
||||
<VnSelectFilter
|
||||
|
@ -502,7 +480,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
<QTd class="table-input-cell">
|
||||
<VnInputTime
|
||||
v-model="row.started"
|
||||
:label="t('Hour started')"
|
||||
:label="t('hourStarted')"
|
||||
:rules="validate('route.started')"
|
||||
:is-clearable="false"
|
||||
hide-bottom-space
|
||||
|
@ -512,6 +490,18 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
</QTd>
|
||||
</template>
|
||||
<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">
|
||||
<VnInputTime
|
||||
v-model="row.finished"
|
||||
|
@ -617,8 +607,8 @@ es:
|
|||
Vehicle: Vehículo
|
||||
Date: Fecha
|
||||
Description: Descripción
|
||||
Hour started: Hora inicio
|
||||
Hour finished: Hora fin
|
||||
hourStarted: Hora inicio
|
||||
hourFinished: Hora fin
|
||||
newRoute: Nueva Ruta
|
||||
Clone Selected Routes: Clonar rutas seleccionadas
|
||||
Select the starting date: Seleccione la fecha de inicio
|
||||
|
|
Loading…
Reference in New Issue