|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="main-box"> |
|
|
|
|
<a-card title="年度比赛管理" :bordered="false" style="height: 100%"> |
|
|
|
|
<a-card title="年度比赛项目管理" :bordered="false" style="height: 100%"> |
|
|
|
|
<div class="filter-search"> |
|
|
|
|
<div class="left"> |
|
|
|
|
<ul> |
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
|
<div class="race-box"> |
|
|
|
|
<div class="add-race item" @click="handleAdd"> |
|
|
|
|
<PlusOutlined style="font-size: 22px" /> |
|
|
|
|
<div>点击添加比赛</div> |
|
|
|
|
<div>点击添加项目</div> |
|
|
|
|
</div> |
|
|
|
|
<cardItem |
|
|
|
|
v-for="item in raceList" |
|
|
|
@ -106,12 +106,12 @@ |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 获取年度 |
|
|
|
|
const yearList = ref<any>([{ title: '全部比赛', value: '' }]); |
|
|
|
|
const yearList = ref<any>([{ title: '全部项目', value: '' }]); |
|
|
|
|
const getDictItemsEvent = async () => { |
|
|
|
|
const date = new Date().getTime(); |
|
|
|
|
const res = await getDictItems('annual,annual_name,id?_t=' + date); |
|
|
|
|
yearList.value = res.reverse(); |
|
|
|
|
yearList.value.unshift({ title: '全部比赛', value: '' }); |
|
|
|
|
yearList.value.unshift({ title: '全部项目', value: '' }); |
|
|
|
|
}; |
|
|
|
|
getDictItemsEvent(); |
|
|
|
|
|
|
|
|
|