[update] 项目、工作组添加默认查询年份

This commit is contained in:
zhaoxiao
2021-12-16 18:17:48 +08:00
parent dc1b0e12ee
commit df1b3f0a1c
2 changed files with 62 additions and 13 deletions
+23 -1
View File
@@ -153,9 +153,19 @@ export default {
contractModuleVisible: false,
url: {
list: '/project/payWorkingGroupSubitem/queryCompanyPageList'
}
},
disableMixinCreated: true
}
},
created() {
this.queryParam = {
year: this.getCurrentYear()
}
this.lastQueryParam = {
year: this.getCurrentYear()
}
this.loadData()
},
methods: {
toMeeting() {
this.$router.push({
@@ -200,6 +210,18 @@ export default {
workingGroupId: record.workingGroupId
}
})
},
searchReset() {
this.queryParam = {
year: this.getCurrentYear()
}
this.lastQueryParam = {
year: this.getCurrentYear()
}
this.loadData(1)
},
getCurrentYear() {
return new Date().getFullYear().toString()
}
}
}