[update] 项目、工作组添加默认查询年份
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user