Commit 6e5c92df by lichengming

修改了统计分析的默认日期

parent cfd98058
......@@ -66,7 +66,7 @@ export default {
},
data() {
const date = this.$dateformat(new Date(), 'yyyy-mm')
const date2 = this.$dateformat(
const nextMonth = this.$dateformat(
new Date().setMonth(new Date().getMonth() + 1),
'yyyy-mm'
)
......@@ -77,13 +77,13 @@ export default {
},
tempData: {
beginDate: date,
endDate: date2
endDate: nextMonth
},
pieData: {
beginDate: date,
endDate: date
},
queryDate: [date, date2]
queryDate: [date, nextMonth]
}
},
mounted() {
......
......@@ -79,7 +79,7 @@ export default {
},
data() {
const date = this.$dateformat(new Date(), 'yyyy-mm')
const date2 = this.$dateformat(
const nextMonth = this.$dateformat(
new Date().setMonth(new Date().getMonth() + 1),
'yyyy-mm'
)
......@@ -107,10 +107,10 @@ export default {
groupId: '',
groupName: '',
beginDate: date,
endDate: date2
endDate: nextMonth
},
testerData: [],
queryDate: [date, date2],
queryDate: [date, nextMonth],
serviceType: '',
serviceTypeList: []
}
......
......@@ -89,7 +89,7 @@ export default {
},
data() {
const date = this.$dateformat(new Date(), 'yyyy-mm')
const date2 = this.$dateformat(
const nextMonth = this.$dateformat(
new Date().setMonth(new Date().getMonth() + 1),
'yyyy-mm'
)
......@@ -133,14 +133,14 @@ export default {
groupId: '',
groupName: '',
beginDate: date,
endDate: date2
endDate: nextMonth
},
formObj: {
edateBegin: undefined,
edateEnd: undefined
},
testerData: [],
queryDate: [date, date2],
queryDate: [date, nextMonth],
serviceType: '',
serviceTypeList: []
}
......
......@@ -79,7 +79,7 @@ export default {
},
data() {
const date = this.$dateformat(new Date(), 'yyyy-mm')
const date2 = this.$dateformat(
const nextMonth = this.$dateformat(
new Date().setMonth(new Date().getMonth() + 1),
'yyyy-mm'
)
......@@ -123,10 +123,10 @@ export default {
groupId: '',
groupName: '',
beginDate: date,
endDate: date2
endDate: nextMonth
},
testerData: [],
queryDate: [date, date2],
queryDate: [date, nextMonth],
serviceType: '',
serviceTypeList: []
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment