2024-05-22 08:44:08 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { testGet } from "@/api";
|
|
|
|
const test = () => {
|
|
|
|
testGet().then((res: any) => {
|
|
|
|
console.log("test", res);
|
|
|
|
})
|
|
|
|
};
|
2024-05-24 17:42:14 +08:00
|
|
|
// const returnHome = () => {
|
|
|
|
// history.go(-1)
|
|
|
|
// };
|
|
|
|
const yearOptions = ref([{ label: '2024年', value: 2024 }, { label: '2023年', value: 2023 }, { label: '2022年', value: 2022 }, { label: '2021年', value: 2021 }, { label: '2020年', value: 2020 }])
|
|
|
|
const monthOptions = ref([
|
|
|
|
{ label: '/', value: null },
|
|
|
|
{ label: '1月', value: 1 },
|
|
|
|
{ label: '2月', value: 2 },
|
|
|
|
{ label: '3月', value: 3 },
|
|
|
|
{ label: '4月', value: 4 },
|
|
|
|
{ label: '5月', value: 5 },
|
|
|
|
{ label: '6月', value: 6 },
|
|
|
|
{ label: '7月', value: 7 },
|
|
|
|
{ label: '8月', value: 8 },
|
|
|
|
{ label: '9月', value: 9 },
|
|
|
|
{ label: '10月', value: 10 },
|
|
|
|
{ label: '11月', value: 11 },
|
|
|
|
{ label: '12月', value: 12 },
|
|
|
|
])
|
|
|
|
// 获取选择的年
|
|
|
|
const getYear = (val: any) => {
|
|
|
|
console.log(val)
|
|
|
|
}
|
|
|
|
// 获取选择的月
|
|
|
|
const getMonth = (val: any) => {
|
|
|
|
console.log(val)
|
|
|
|
}
|
|
|
|
const selectYear = ref(null)
|
|
|
|
const selectMonth = ref(null)
|
|
|
|
const clearSelect = () => {
|
|
|
|
if (selectYear.value) {
|
|
|
|
selectYear.value.clearOption()
|
|
|
|
}
|
|
|
|
if (selectMonth.value) {
|
|
|
|
selectMonth.value.clearOption()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2024-05-22 08:44:08 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-05-23 15:47:12 +08:00
|
|
|
<div class="d-flex">
|
|
|
|
<div class="top-left">
|
2024-05-22 08:44:08 +08:00
|
|
|
<div class="title">
|
2024-05-22 09:32:42 +08:00
|
|
|
<span class="title-text" @click="test()">新生报道情况</span>
|
2024-05-24 17:42:14 +08:00
|
|
|
<!-- <span style="color: yellow;" @click="returnHome()">返回</span> -->
|
2024-05-22 08:44:08 +08:00
|
|
|
</div>
|
2024-05-23 15:47:12 +08:00
|
|
|
<div class="en-title">
|
|
|
|
<div class="en-line"></div>
|
|
|
|
<span>New student registration status</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="change-time">
|
2024-05-24 17:42:14 +08:00
|
|
|
<div class="change-year">
|
|
|
|
<Dropdown :options="yearOptions" title="切换年份" @getOption="getYear" ref="selectYear"></Dropdown>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="change-year">
|
|
|
|
<Dropdown :options="monthOptions" title="切换月份" @getOption="getMonth" ref="selectMonth"></Dropdown>
|
|
|
|
</div>
|
|
|
|
<div class="change-year" @click="clearSelect">选择今日</div>
|
2024-05-22 08:44:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-05-23 15:47:12 +08:00
|
|
|
.d-flex {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
z-index: 999;
|
2024-05-22 08:44:08 +08:00
|
|
|
height: 60px;
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2024-05-24 17:42:14 +08:00
|
|
|
.top-left {
|
2024-05-23 15:47:12 +08:00
|
|
|
display: flex;
|
|
|
|
}
|
2024-05-24 17:42:14 +08:00
|
|
|
|
2024-05-22 08:44:08 +08:00
|
|
|
.title {
|
2024-05-23 15:47:12 +08:00
|
|
|
// position: relative;
|
|
|
|
width: 300px;
|
|
|
|
text-align: left;
|
|
|
|
// color: transparent;
|
2024-05-22 08:44:08 +08:00
|
|
|
height: 60px;
|
|
|
|
line-height: 46px;
|
2024-05-24 17:42:14 +08:00
|
|
|
|
2024-05-22 08:44:08 +08:00
|
|
|
.title-text {
|
2024-05-22 10:52:34 +08:00
|
|
|
font-family: 'YouSheBiaoTiHei';
|
2024-05-22 08:44:08 +08:00
|
|
|
font-size: 38px;
|
2024-05-22 10:52:34 +08:00
|
|
|
font-weight: 400;
|
2024-05-22 08:44:08 +08:00
|
|
|
letter-spacing: 6px;
|
|
|
|
width: 100%;
|
2024-05-22 09:54:45 +08:00
|
|
|
color: #ECEDEE;
|
2024-05-23 15:47:12 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.en-title {
|
|
|
|
width: 300px;
|
|
|
|
height: 40px;
|
|
|
|
font-family: 'YouSheBiaoTiHei';
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 14px;
|
|
|
|
color: #ADC0DE;
|
|
|
|
opacity: 0.2;
|
|
|
|
// line-height: 40px;
|
|
|
|
padding-top: 10px;
|
|
|
|
text-align: center;
|
2024-05-24 17:42:14 +08:00
|
|
|
|
|
|
|
.en-line {
|
2024-05-23 15:47:12 +08:00
|
|
|
width: 80%;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #ADC0DE;
|
|
|
|
margin-left: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.change-time {
|
|
|
|
// position: relative;
|
|
|
|
// float: right;
|
2024-05-24 17:42:14 +08:00
|
|
|
width: 400px;
|
2024-05-23 15:47:12 +08:00
|
|
|
height: 60px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-family: 'YouSheBiaoTiHei';
|
2024-05-24 17:42:14 +08:00
|
|
|
font-size: 16px;
|
2024-05-23 15:47:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
.change-year {
|
|
|
|
width: 125px;
|
|
|
|
height: 35px;
|
|
|
|
line-height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
background-image: url("@/assets/img/zheke/top_change.png");
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
2024-05-22 08:44:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|