|
@@ -9,13 +9,14 @@
|
|
|
<div class="DateUpda_area">
|
|
|
<div class="Date_left">
|
|
|
<div class="D_l_title">
|
|
|
- <img src="../assets/left_arrow.png">
|
|
|
+ <img src="../assets/left_arrow.png" @click="handleClick" style="cursor: pointer;">
|
|
|
<div class="D_l_text">更新日历</div>
|
|
|
</div>
|
|
|
<div class="D_l_content">
|
|
|
<div class="D_l_head">
|
|
|
<div class="head_left" :class="{ 'active': isSelectActive }">选择年份:
|
|
|
- <el-select v-model="value" placeholder="" style="width: 86px;" @focus="handleFocus" @blur=handleBlur>
|
|
|
+ <el-select v-model="value" placeholder="" style="width: 86px;" @focus="handleFocus"
|
|
|
+ @blur=handleBlur>
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label"
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
@@ -43,7 +44,7 @@
|
|
|
</div>
|
|
|
<div class="update_count">最高月更新频次:<div style="font-family: DIN Alternate;">
|
|
|
{{ getMostUpdatedMonth.month ? `${getMostUpdatedMonth.month} 月 (${getMostUpdatedMonth.count} 次)`
|
|
|
- : '暂无数据' }}
|
|
|
+ : '暂无数据' }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="update_number">版本数量:<div style="font-family: DIN Alternate;">{{
|
|
@@ -152,6 +153,11 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleClick() {
|
|
|
+ // 处理返回操作,例如返回到上一个页面
|
|
|
+ this.$router.go(-1);
|
|
|
+
|
|
|
+ },
|
|
|
generateYears() {
|
|
|
const currentYear = new Date().getFullYear(); // 获取当前年份
|
|
|
this.options = Array.from({ length: 5 }, (_, i) => {
|
|
@@ -229,10 +235,10 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.datesData = res.data[0];
|
|
|
// console.log("👉", this.highlightDates);
|
|
|
- const type = this.$route.query.type;
|
|
|
- console.log("我是type", type);
|
|
|
+ const versType = this.$route.query.versType;
|
|
|
+ console.log("我是type", versType);
|
|
|
|
|
|
- this.filteredData = this.datesData.filter(item => item.update_version === type);
|
|
|
+ this.filteredData = this.datesData.filter(item => item.update_version === versType);
|
|
|
console.log("filteredData", this.filteredData);
|
|
|
|
|
|
// 提取 update_at 字段并添加到 highlightDates 数组中
|
|
@@ -253,14 +259,16 @@ body {
|
|
|
overflow: hidden;
|
|
|
/* 禁止页面滚动 */
|
|
|
}
|
|
|
-.DateUpda{
|
|
|
+
|
|
|
+.DateUpda {
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
+
|
|
|
.DateUpda_area {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- height: calc(100% - 54px);
|
|
|
+ height: calc(100% - 54px);
|
|
|
}
|
|
|
|
|
|
.DateUpda_head {
|
|
@@ -425,7 +433,7 @@ body {
|
|
|
.day {
|
|
|
width: 30px;
|
|
|
height: 30px;
|
|
|
- background-color: #E2EEFF;
|
|
|
+ background-color: #f1f1f1;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|