|
|
|
|
@ -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(() => {
|
|
|
|
|
@ -252,4 +258,3 @@ onMounted(() => {
|
|
|
|
|
padding: 24px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|