|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="main-box"> |
|
|
|
<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="filter-search"> |
|
|
|
<div class="left"> |
|
|
|
<div class="left"> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
@ -18,7 +18,7 @@ |
|
|
|
<div class="race-box"> |
|
|
|
<div class="race-box"> |
|
|
|
<div class="add-race item" @click="handleAdd"> |
|
|
|
<div class="add-race item" @click="handleAdd"> |
|
|
|
<PlusOutlined style="font-size: 22px" /> |
|
|
|
<PlusOutlined style="font-size: 22px" /> |
|
|
|
<div>点击添加比赛</div> |
|
|
|
<div>点击添加项目</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<cardItem |
|
|
|
<cardItem |
|
|
|
v-for="item in raceList" |
|
|
|
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 getDictItemsEvent = async () => { |
|
|
|
const date = new Date().getTime(); |
|
|
|
const date = new Date().getTime(); |
|
|
|
const res = await getDictItems('annual,annual_name,id?_t=' + date); |
|
|
|
const res = await getDictItems('annual,annual_name,id?_t=' + date); |
|
|
|
yearList.value = res.reverse(); |
|
|
|
yearList.value = res.reverse(); |
|
|
|
yearList.value.unshift({ title: '全部比赛', value: '' }); |
|
|
|
yearList.value.unshift({ title: '全部项目', value: '' }); |
|
|
|
}; |
|
|
|
}; |
|
|
|
getDictItemsEvent(); |
|
|
|
getDictItemsEvent(); |
|
|
|
|
|
|
|
|
|
|
|