星油云站更新
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<analysis-card @showModal="showModal" :basicData="basicData" />
|
||||
</view>
|
||||
<view class="margin bg-white radius">
|
||||
<view class="margin">
|
||||
<view class="margin">
|
||||
<area-time :chartData="detailData" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -54,6 +54,7 @@
|
||||
import areaTime from '../../area-time.vue'
|
||||
import analysisCard from '../../analysis-card.vue'
|
||||
import cloudSiteApi from '@/api/cloud-site.js'
|
||||
import oliSiteApi from '@/api/oli-site.js'
|
||||
export default {
|
||||
components: {
|
||||
areaTime,
|
||||
@@ -93,7 +94,8 @@
|
||||
totalAccount: 0,
|
||||
totalAmout: 0,
|
||||
totalCount: 0
|
||||
}
|
||||
},
|
||||
channelId:uni.getStorageSync('channelId')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -108,11 +110,26 @@
|
||||
},
|
||||
methods: {
|
||||
getDaily() {
|
||||
cloudSiteApi.getAnyDay(this.selDate).then(res => {
|
||||
let timeObj = {
|
||||
day : this.selDate ,
|
||||
channelId : this.channelId
|
||||
}
|
||||
oliSiteApi.getOrderInfoByDay(timeObj).then(res => {
|
||||
console.log(res)
|
||||
uni.stopPullDownRefresh();
|
||||
if (res.code === 20000) {
|
||||
this.basicData = res.data.basicData
|
||||
this.detailData = res.data.detailData
|
||||
this.basicData = res.data.info
|
||||
let obj = {
|
||||
customerCountList: res.data.piecewise.customerCountList.map(Number),
|
||||
dateList: res.data.piecewise.dateList.map(Number),
|
||||
totalCountList: res.data.piecewise.totalCountList.map(Number),
|
||||
totalMoneyList: res.data.piecewise.totalMoneyList.map(Number),
|
||||
totalVolumeList: res.data.piecewise.totalVolumeList.map(Number),
|
||||
}
|
||||
console.log(obj)
|
||||
this.detailData = res.data.piecewise.totalMoneyList.map(Number)
|
||||
// console.log(totalList )
|
||||
// console.log(totalList.map(Number))
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
import areaMonth from '../../area-month.vue'
|
||||
import analysisCard from '../../analysis-card.vue'
|
||||
import cloudSiteApi from '@/api/cloud-site.js'
|
||||
import oliSiteApi from '@/api/oli-site.js'
|
||||
export default {
|
||||
components: {
|
||||
areaMonth,
|
||||
@@ -109,17 +110,24 @@
|
||||
},
|
||||
methods: {
|
||||
getMonthly() {
|
||||
cloudSiteApi.getAnyMonth(this.selDate+'-5').then(res => {
|
||||
let obj ={
|
||||
month :this.selDate ,
|
||||
channelId:uni.getStorageSync('channelId')
|
||||
}
|
||||
oliSiteApi.getOrderInfoByMonth(obj).then(res => {
|
||||
console.log(res)
|
||||
uni.stopPullDownRefresh()
|
||||
if (res.code === 20000) {
|
||||
this.basicData = res.data.basicData
|
||||
res.data.detailData.forEach(item => {
|
||||
var date = item[0]
|
||||
date = date.substring(0, 19);
|
||||
date = date.replace(/-/g, '/');
|
||||
item[0] = new Date(date).getTime();
|
||||
})
|
||||
this.detailData = res.data.detailData
|
||||
this.basicData = res.data.info
|
||||
// this.basicData = res.data.basicData
|
||||
// res.data.detailData.forEach(item => {
|
||||
// var date = item[0]
|
||||
// date = date.substring(0, 19);
|
||||
// date = date.replace(/-/g, '/');
|
||||
// item[0] = new Date(date).getTime();
|
||||
// })
|
||||
this.detailData = res.data.piecewise.totalMoneyList.map(Number)
|
||||
// this.detailData = res.data.detailData
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user