|
@@ -281,8 +281,8 @@ export default {
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.queryParam.queryType = 'year'
|
|
|
- const lastYear = moment().year()
|
|
|
- this.queryParam.queryDate = lastYear
|
|
|
+ const nowYear = moment().year()
|
|
|
+ this.queryParam.queryDate = nowYear
|
|
|
this.queryParam.dealerEntity.provinceSn = undefined
|
|
|
this.queryParam.dealerEntity.citySn = undefined
|
|
|
this.queryParam.dealerEntity.districtSn = undefined
|
|
@@ -329,26 +329,13 @@ export default {
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
this.setTableH()
|
|
|
})
|
|
|
+ this.resetSearchForm()
|
|
|
},
|
|
|
// 计算表格高度
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
this.tableHeight = window.innerHeight - tableSearchH - 280
|
|
|
}
|
|
|
- },
|
|
|
- mounted () {
|
|
|
- if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
|
- this.pageInit()
|
|
|
- }
|
|
|
- },
|
|
|
- activated () {
|
|
|
- // 如果是新页签打开,则重置当前页面
|
|
|
- if (this.$store.state.app.isNewTab) {
|
|
|
- this.pageInit()
|
|
|
- }
|
|
|
- },
|
|
|
- beforeRouteEnter (to, from, next) {
|
|
|
- next(vm => {})
|
|
|
}
|
|
|
}
|
|
|
</script>
|