提交 67fd0306 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 339fae5f
......@@ -3,6 +3,10 @@ import type { ContestItem } from '../types'
import { CirclePlus } from '@element-plus/icons-vue'
import AppList from '@/components/base/AppList.vue'
import { getContestItemList } from '../api'
import { useMapStore } from '@/stores/map'
// 赛项类型
const types = useMapStore().getMapValuesByKey('competition_type')
const FormDialog = defineAsyncComponent(() => import('../components/FormDialog.vue'))
......@@ -25,7 +29,13 @@ const listOptions = {
}
},
{ label: '技术支持单位', prop: 'technical_support_unit.label' },
{ label: '赛项类型', prop: 'type' },
{
label: '赛项类型',
prop: 'type',
computed({ row }: { row: ContestItem }) {
return types.find(item => item.value === row.type)?.label
}
},
{
label: '指导老师',
prop: 'teachers',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论