fix(Filter): 更新年报过滤条件的年份限制

- 将年报过滤条件从2025年更新为2026年
- 同步修改临时重置方法中的年份判断逻辑
This commit is contained in:
傅光孟 2026-04-08 17:15:15 +08:00
parent 260c9d7edc
commit 23304eccab
2 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
<el-select v-model="headFilter.reportType" placeholder="请选择类型" size="default" style="width: 160px" <el-select v-model="headFilter.reportType" placeholder="请选择类型" size="default" style="width: 160px"
@change="handleChange"> @change="handleChange">
<el-option v-if="headFilter.year != 2025" label="年报" :value="0" /> <el-option v-if="headFilter.year != 2026" label="年报" :value="0" />
<el-option label="半年报" :value="1" /> <el-option label="半年报" :value="1" />
<el-option label="一季报" :value="2" /> <el-option label="一季报" :value="2" />
<el-option v-if="headFilter.year != 2026" label="三季报" :value="3" /> <el-option v-if="headFilter.year != 2026" label="三季报" :value="3" />
@ -54,9 +54,9 @@ const handleChange = () => {
}, 100); }, 100);
}; };
// ---- 2025 // ---- 2026
const handleChange2 = (value: any) => { const handleChange2 = (value: any) => {
if (value == 2025) { if (value == 2026) {
const reportType = [2]; //2025 0123 const reportType = [2]; //2025 0123
if (!reportType.includes(headFilter.value.reportType)) { if (!reportType.includes(headFilter.value.reportType)) {
headFilter.value.reportType = 2; headFilter.value.reportType = 2;

View File

@ -103,15 +103,15 @@
<div class="line"></div> <div class="line"></div>
</div> </div>
<div class="right_tabs"> <!-- <div class="right_tabs">
<div :class="['tab_item', { active: tabIndex === 0 }]" @click="tabIndexChange(0)">H5</div> <div :class="['tab_item', { active: tabIndex === 0 }]" @click="tabIndexChange(0)">H5</div>
<div :class="['tab_item', { active: tabIndex === 1 }]" @click="tabIndexChange(1)">视频</div> <div :class="['tab_item', { active: tabIndex === 1 }]" @click="tabIndexChange(1)">视频</div>
</div> </div> -->
<el-input <el-input
v-if="!isCommon" v-if="!isCommon"
:style="{ marginTop: isCommon ? '0px' : '20px' }" :style="{ marginTop: isCommon ? '0px' : '40px' }"
:prefix-icon="Search" :prefix-icon="Search"
placeholder="请输入公司证券代码或公司简称搜索" placeholder="请输入公司证券代码或公司简称搜索"
class="input" class="input"