zsk 10 months ago
parent e7fce454be
commit 7034509e16

@ -9,6 +9,9 @@
{{ formatScheduleJson(record.scheduleJson) }}
</span>
</template>
<template v-if="column.key === 'today'">
<span>{{ record.today }}</span>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a-button type="link" @click="editItem(record)"></a-button>
@ -95,7 +98,7 @@ const modalVisible = ref(false);
const modalMode = ref('add');
const columns = [
{ title: '日期', dataIndex: 'todayStr', key: 'todayStr' },
{ title: '日期', dataIndex: 'today', key: 'today' },
{ title: '比赛内容', key: 'scheduleJson' },
{ title: '赔率', dataIndex: 'odds', key: 'odds' },
{ title: '结果', dataIndex: 'fruit', key: 'fruit' },
@ -121,7 +124,10 @@ const formState = reactive({
});
const filteredData = computed(() => {
return data.filter(item => item.classify === activeTab.value);
return data.map(item => ({
...item,
today: dayjs(item.todayStr).format('YYYY-MM-DD')
})).filter(item => item.classify === activeTab.value);
});
const currentNoteType = computed(() => {
@ -251,5 +257,4 @@ onMounted(() => {
.today-notes {
padding: 24px;
}
</style>
</style>
Loading…
Cancel
Save