forked from verdnatura/salix-front
refactor: refs #7553 changed isScanned field & fixed cardDescriptor warning
This commit is contained in:
parent
2ab7d48b0c
commit
1dace39882
|
@ -47,6 +47,7 @@ let store;
|
|||
let entity;
|
||||
const isLoading = ref(false);
|
||||
const isSameDataKey = computed(() => $props.dataKey === route.meta.moduleName);
|
||||
const menuRef = ref();
|
||||
defineExpose({ getData });
|
||||
|
||||
onBeforeMount(async () => {
|
||||
|
@ -170,7 +171,7 @@ const toModule = computed(() =>
|
|||
<QTooltip>
|
||||
{{ t('components.cardDescriptor.moreOptions') }}
|
||||
</QTooltip>
|
||||
<QMenu ref="menuRef">
|
||||
<QMenu :ref="menuRef">
|
||||
<QList>
|
||||
<slot name="menu" :entity="entity" :menu-ref="menuRef" />
|
||||
</QList>
|
||||
|
|
|
@ -98,14 +98,6 @@ const columns = computed(() => [
|
|||
isTitle: true,
|
||||
columnFilter: {
|
||||
inWhere: true,
|
||||
// component: 'select',
|
||||
// attrs: {
|
||||
// url: 'Items',
|
||||
// useLike: false,
|
||||
// fields: ['id', 'name'],
|
||||
// optionLabel: 'name',
|
||||
// optionValue: 'id',
|
||||
// },
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -181,7 +173,6 @@ const logTableColumns = computed(() => [
|
|||
name: 'created',
|
||||
field: 'created',
|
||||
align: 'center',
|
||||
columnFilter: null,
|
||||
format: (value) => toDateTimeFormat(value),
|
||||
},
|
||||
{
|
||||
|
@ -189,11 +180,6 @@ const logTableColumns = computed(() => [
|
|||
name: 'isScanned',
|
||||
field: 'isScanned',
|
||||
align: 'center',
|
||||
columnFilter: null,
|
||||
format: (value) => {
|
||||
if (value === true) return t('expedition.yes');
|
||||
else return t('expedition.no');
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
|
@ -365,6 +351,15 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
</span>
|
||||
</QTd>
|
||||
</template>
|
||||
<template #body-cell-isScanned="{ row }">
|
||||
<QTd style="text-align: center">
|
||||
<QCheckbox disable v-model="row.isScanned">
|
||||
{{
|
||||
row.isScanned === 1 ? t('expedition.yes') : t('expedition.no')
|
||||
}}
|
||||
</QCheckbox>
|
||||
</QTd>
|
||||
</template>
|
||||
</QTable>
|
||||
</QDialog>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue