refactor: refs #7566 fix customer summary
This commit is contained in:
parent
fa55e33b54
commit
546b43ffcf
|
@ -162,6 +162,7 @@ const navigateToticketSummary = (id) => {
|
||||||
params: { id },
|
params: { id },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const commonColumns = (col) => ['date', 'state', 'total'].includes(col);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -189,27 +190,16 @@ const navigateToticketSummary = (id) => {
|
||||||
class="rounded-borders"
|
class="rounded-borders"
|
||||||
v-bind="tableColumnComponents[props.col.name].props(props)"
|
v-bind="tableColumnComponents[props.col.name].props(props)"
|
||||||
>
|
>
|
||||||
<template
|
<template v-if="!commonColumns(props.col.name)">
|
||||||
v-if="
|
|
||||||
props.col.name === 'id' ||
|
|
||||||
props.col.name === 'nickname' ||
|
|
||||||
props.col.name === 'agency' ||
|
|
||||||
props.col.name === 'route' ||
|
|
||||||
props.col.name === 'packages'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<span
|
<span
|
||||||
v-if="
|
:class="{
|
||||||
props.col.name === 'nickname' ||
|
link:
|
||||||
props.col.name === 'route'
|
props.col.name === 'route' ||
|
||||||
"
|
props.col.name === 'nickname',
|
||||||
class="link"
|
}"
|
||||||
>
|
>
|
||||||
{{ props.value }}
|
{{ props.value }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
|
||||||
{{ props.value }}
|
|
||||||
</span>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-if="props.col.name === 'date'">
|
<template v-if="props.col.name === 'date'">
|
||||||
<QBadge class="q-pa-sm" color="warning">
|
<QBadge class="q-pa-sm" color="warning">
|
||||||
|
|
Loading…
Reference in New Issue