zsk 10 months ago
parent e7fce454be
commit 7034509e16

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