fix:修复bug

This commit is contained in:
xiongchengqiang 2020-05-22 11:21:32 +08:00
parent c4c357092f
commit 708396aae9
2 changed files with 8 additions and 9 deletions

View File

@ -92,16 +92,21 @@ export default {
beforeMount () { },
created () {
this.handleGetMenuList()
this.handleChangeData({
Month: 3,
title: '近三个月'
})
},
mounted () { },
methods: {
handleChangeData (data) {
async handleChangeData (data) {
this.index = data.Month
this.title = data.title
let dataList = getDataForMonth(data.Month)
this.formInline.value = dataList
this.formInline.beginDate = data[0]
this.formInline.endDate = data[1]
this.formInline.beginDate = dataList[0]
this.formInline.endDate = dataList[1]
this.onSubmit()
},
changeData (data) {
this.index = null
@ -119,7 +124,6 @@ export default {
departmentId: this.formInline.departmentId,
beginDate: this.formInline.beginDate,
endDate: this.formInline.endDate
}
let monthLetter = {
index: this.index,

View File

@ -48,7 +48,6 @@ export default {
computed: {},
beforeMount () { },
mounted () {
this.initData()
},
methods: {
async handleGetEmployeessItuation (data = {}) {
@ -68,10 +67,6 @@ export default {
this.$message.error(result.mgs)
}
},
//
async initData () {
await this.handleGetEmployeessItuation()
},
submit (data, monthLetter) {
this.monthLetter = monthLetter
this.handleGetEmployeessItuation(data)