| | |
| | | <BaseContentLayout asideWidth="0"> |
| | | <template #header> |
| | | <div class="task-switcher"> |
| | | <el-button @click="switchTask(-1)" icon="ArrowLeft">前一个</el-button> |
| | | <el-button @click="switchTask(-1)" icon="ArrowLeft">上一期</el-button> |
| | | <el-select |
| | | v-model="curTaskTitle" |
| | | @change="(t) => chooseTask(tasks.find((e) => e.title == t))" |
| | |
| | | > |
| | | <el-option v-for="s in tasks" :key="s.title" :label="s.title" :value="s.title" /> |
| | | </el-select> |
| | | <el-button @click="switchTask(1)" icon="ArrowRight">后一个</el-button> |
| | | <el-button @click="switchTask(1)" icon="ArrowRight">下一期</el-button> |
| | | </div> |
| | | </template> |
| | | <template #aside> |
| | |
| | | }) |
| | | this.tasks = list.filter((e) => { |
| | | return ( |
| | | e.data.districtname == '徐汇区' && dayjs(e.data.starttime).isBefore(dayjs('2023-12-31')) |
| | | e.data.districtname == '徐汇区' && dayjs(e.data.starttime).isBefore(dayjs('2025-12-31')) |
| | | ) |
| | | }) |
| | | if (list.length == 0) { |