#7353 fine tunning monitors #624
|
@ -18,17 +18,13 @@ const filter = computed(() => {
|
|||
const obj = {};
|
||||
const formatFrom = setHours(from.value, 'from');
|
||||
const formatTo = setHours(to.value, 'to');
|
||||
let stamp;
|
||||
|
||||
jorgep marked this conversation as resolved
Outdated
|
||||
if (!formatFrom && formatTo)
|
||||
Object.assign(obj, { where: { 'v.stamp': { lte: formatTo } } });
|
||||
else if (formatFrom && !formatTo)
|
||||
Object.assign(obj, { where: { 'v.stamp': { gte: formatFrom } } });
|
||||
else if (formatFrom && formatTo)
|
||||
Object.assign(obj, {
|
||||
where: { 'v.stamp': { between: [formatFrom, formatTo] } },
|
||||
});
|
||||
if (!formatFrom && formatTo) stamp = { lte: formatTo };
|
||||
else if (formatFrom && !formatTo) stamp = { gte: formatFrom };
|
||||
else if (formatFrom && formatTo) stamp = { between: [formatFrom, formatTo] };
|
||||
|
||||
return obj;
|
||||
return Object.assign(obj, { where: { 'v.stamp': stamp } });
|
||||
});
|
||||
|
||||
function exprBuilder(param, value) {
|
||||
|
@ -84,6 +80,7 @@ const columns = computed(() => [
|
|||
useLike: false,
|
||||
},
|
||||
},
|
||||
columnClass: 'no-padding',
|
||||
},
|
||||
{
|
||||
label: t('salesClientsTable.client'),
|
||||
|
@ -102,6 +99,7 @@ const columns = computed(() => [
|
|||
sortBy: 'name ASC',
|
||||
},
|
||||
},
|
||||
columnClass: 'no-padding',
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
|
@ -131,16 +129,12 @@ const columns = computed(() => [
|
|||
</VnRow>
|
||||
jorgep marked this conversation as resolved
Outdated
jsegarra
commented
Traducir Traducir
|
||||
</template>
|
||||
jorgep marked this conversation as resolved
Outdated
jsegarra
commented
Traducir Traducir
|
||||
<template #column-salesPersonFk="{ row }">
|
||||
<QTd class="no-padding">
|
||||
<span class="link" :title="row.salesPerson" v-text="row.salesPerson" />
|
||||
<WorkerDescriptorProxy :id="row.salesPersonFk" dense />
|
||||
</QTd>
|
||||
<span class="link" :title="row.salesPerson" v-text="row.salesPerson" />
|
||||
<WorkerDescriptorProxy :id="row.salesPersonFk" dense />
|
||||
</template>
|
||||
jorgep marked this conversation as resolved
Outdated
jsegarra
commented
Revisa porque creo que le sobre el Qtd y le falta el @click.stop Revisa porque creo que le sobre el Qtd y le falta el @click.stop
O pones Qtd por el .no-padding?
jorgep
commented
Esta tabla no redirige a ningún sitio, no le hace falta el click.stop. El qTd lo quito. Esta tabla no redirige a ningún sitio, no le hace falta el click.stop. El qTd lo quito.
|
||||
<template #column-clientFk="{ row }">
|
||||
<QTd class="no-padding">
|
||||
<span class="link" :title="row.clientName" v-text="row.clientName" />
|
||||
<CustomerDescriptorProxy :id="row.clientFk" />
|
||||
</QTd>
|
||||
<span class="link" :title="row.clientName" v-text="row.clientName" />
|
||||
<CustomerDescriptorProxy :id="row.clientFk" />
|
||||
</template>
|
||||
</VnTable>
|
||||
</template>
|
||||
jsegarra
commented
El texto no aparece completo El texto no aparece completo
"Bruce Way..." es lo que se ve
jorgep
commented
Le he quitado el padding, con el espacio que hay poco más se puede hacer. la tabla tiene el ancho que toca. Ahora los nombre de esa longitud y un poco más se ven. Le he quitado el padding, con el espacio que hay poco más se puede hacer. la tabla tiene el ancho que toca. Ahora los nombre de esa longitud y un poco más se ven.
|
||||
|
|
Loading…
Reference in New Issue
Veo mucho Object.assign.
Crees que podemos dejar esto debajo del if...else..if y que el valor de v.stamp sea una variable?