This commit is contained in:
2025-09-06 15:38:55 +08:00
parent c76c913df4
commit 8e5b8a3523
@@ -8,7 +8,7 @@ layout("/layouts/platform_h5.html"){
<van-nav-bar title="我的申报" left-text="返回" left-arrow
@click-left="pjaxReplace('/platform/home')"></van-nav-bar>
<van-dropdown-menu :close-on-click-outside="false" :close-on-click-overlay="false">
<van-dropdown-item :options="yearList" @change="doSearch" v-model="pageForm.year"></van-dropdown-item>
<year-van-dropdown-item :num="5" @change="doSearch" v-model="pageForm.year"></year-van-dropdown-item>
</van-dropdown-menu>
</van-sticky>
@@ -62,7 +62,7 @@ layout("/layouts/platform_h5.html"){
pageNumber: 1,
pageSize: 10,
totalCount: 0,
year: "",
year: new Date().getFullYear(),
},
}
},
@@ -111,16 +111,9 @@ layout("/layouts/platform_h5.html"){
this.pageForm.totalCount = 0
this.$refs.tableListRef.doSearch()
},
initData() {
for (let i = new Date().getFullYear() - 10; i <= new Date().getFullYear(); i++) {
this.yearList.unshift({value: i, text: i + "年"})
}
this.$set(this.pageForm, "year", this.yearList[0].value)
},
},
created() {
this.initData()
}
})
</script>