fix:修复bug
This commit is contained in:
parent
c4c357092f
commit
708396aae9
@ -92,16 +92,21 @@ export default {
|
|||||||
beforeMount () { },
|
beforeMount () { },
|
||||||
created () {
|
created () {
|
||||||
this.handleGetMenuList()
|
this.handleGetMenuList()
|
||||||
|
this.handleChangeData({
|
||||||
|
Month: 3,
|
||||||
|
title: '近三个月'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
mounted () { },
|
mounted () { },
|
||||||
methods: {
|
methods: {
|
||||||
handleChangeData (data) {
|
async handleChangeData (data) {
|
||||||
this.index = data.Month
|
this.index = data.Month
|
||||||
this.title = data.title
|
this.title = data.title
|
||||||
let dataList = getDataForMonth(data.Month)
|
let dataList = getDataForMonth(data.Month)
|
||||||
this.formInline.value = dataList
|
this.formInline.value = dataList
|
||||||
this.formInline.beginDate = data[0]
|
this.formInline.beginDate = dataList[0]
|
||||||
this.formInline.endDate = data[1]
|
this.formInline.endDate = dataList[1]
|
||||||
|
this.onSubmit()
|
||||||
},
|
},
|
||||||
changeData (data) {
|
changeData (data) {
|
||||||
this.index = null
|
this.index = null
|
||||||
@ -119,7 +124,6 @@ export default {
|
|||||||
departmentId: this.formInline.departmentId,
|
departmentId: this.formInline.departmentId,
|
||||||
beginDate: this.formInline.beginDate,
|
beginDate: this.formInline.beginDate,
|
||||||
endDate: this.formInline.endDate
|
endDate: this.formInline.endDate
|
||||||
|
|
||||||
}
|
}
|
||||||
let monthLetter = {
|
let monthLetter = {
|
||||||
index: this.index,
|
index: this.index,
|
||||||
|
|||||||
@ -48,7 +48,6 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
beforeMount () { },
|
beforeMount () { },
|
||||||
mounted () {
|
mounted () {
|
||||||
this.initData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async handleGetEmployeessItuation (data = {}) {
|
async handleGetEmployeessItuation (data = {}) {
|
||||||
@ -68,10 +67,6 @@ export default {
|
|||||||
this.$message.error(result.mgs)
|
this.$message.error(result.mgs)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取页面数据
|
|
||||||
async initData () {
|
|
||||||
await this.handleGetEmployeessItuation()
|
|
||||||
},
|
|
||||||
submit (data, monthLetter) {
|
submit (data, monthLetter) {
|
||||||
this.monthLetter = monthLetter
|
this.monthLetter = monthLetter
|
||||||
this.handleGetEmployeessItuation(data)
|
this.handleGetEmployeessItuation(data)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user