更新10.15
This commit is contained in:
parent
f4aa1c2685
commit
2285d94d08
@ -324,6 +324,8 @@ export default {
|
|||||||
let nowDate = new Date();
|
let nowDate = new Date();
|
||||||
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
this.value1 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
this.value1 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
this.countValue = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
this.showValue = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
this.getStoreTotal()
|
this.getStoreTotal()
|
||||||
// this.selectChildByDeptIdApi()
|
// this.selectChildByDeptIdApi()
|
||||||
this.getStoreAmount()
|
this.getStoreAmount()
|
||||||
@ -461,8 +463,8 @@ export default {
|
|||||||
//油站首页数据展示
|
//油站首页数据展示
|
||||||
getDataShow() {
|
getDataShow() {
|
||||||
const data = {
|
const data = {
|
||||||
"startTime": this.value1[0].split(' ')[0],
|
"startTime": this.showValue[0].split(' ')[0],
|
||||||
"endTime": this.value1[1].split(' ')[0]
|
"endTime": this.showValue[1].split(' ')[0]
|
||||||
}
|
}
|
||||||
getDataShow(data).then(res => {
|
getDataShow(data).then(res => {
|
||||||
// console.log('首页数据展示', res.data)
|
// console.log('首页数据展示', res.data)
|
||||||
@ -473,8 +475,8 @@ export default {
|
|||||||
//油站首页数据统计
|
//油站首页数据统计
|
||||||
getDataCount() {
|
getDataCount() {
|
||||||
const data = {
|
const data = {
|
||||||
"startTime": this.value1[0].split(' ')[0],
|
"startTime": this.countValue[0].split(' ')[0],
|
||||||
"endTime": this.value1[1].split(' ')[0]
|
"endTime": this.countValue[1].split(' ')[0]
|
||||||
}
|
}
|
||||||
getDataCount(data).then(res => {
|
getDataCount(data).then(res => {
|
||||||
// console.log('首页数据统计', res.data)
|
// console.log('首页数据统计', res.data)
|
||||||
|
Loading…
Reference in New Issue
Block a user