diff --git a/fuintAdmin/src/views/shopowner.vue b/fuintAdmin/src/views/shopowner.vue
index 4fbc262e9..c0ef95a0e 100644
--- a/fuintAdmin/src/views/shopowner.vue
+++ b/fuintAdmin/src/views/shopowner.vue
@@ -76,28 +76,28 @@
油品销售金额(元)/交易笔数
- {{ storeAmount.oilAmount || 0 }}/{{ storeAmount.oilNum || 0 }}
+ {{ storeAmount.s1 || 0 }}/{{ storeAmount.s2 || 0 }}
-
{{ storeAmount.userRechargeAmount || 0 }}/{{ storeAmount.userRechargeNum || 0 }}
+
{{ storeAmount.s5 || 0 }}/{{ storeAmount.s6 || 0 }}
-
{{ storeAmount.minimartAmount || 0 }}/{{ storeAmount.minimartNum || 0 }}
+
{{ storeAmount.s3 || 0 }}/{{ storeAmount.s4 || 0 }}
-
{{ storeAmount.pointMallAmount || 0 }}/{{ storeAmount.pointMallNum || 0 }}
+
{{ storeAmount.s7 || 0 }}/{{ storeAmount.s8 || 0 }}
@@ -262,8 +262,7 @@ import {getBannerListApi} from "@/api/sys/banner";
import {getNotificationlogList} from "@/api/sys/sysNotificationlog";
import {employeeSalesApi} from "@/api/indexStatistics";
import {
- getDataAnalysis,
- getDataBoard,
+ getDataBoardNew,
getDataCount,
getDataShow,
getTotalAmount,
@@ -630,6 +629,8 @@ export default
this.dataAnalysisAllList = res.data
console.log("饼状图三数据",this.dataAnalysisAllList )
})
+ //
+ // this.initChart()
},
//油站首页数据展示
getDataShow() {
@@ -713,11 +714,16 @@ export default
})
},
getStoreAmount() {
- getDataBoard(this.addDateRange(this.queryParams, this.value1)).then(res => {
+ let data = {
+ startTime: this.value1[0],
+ endTime: this.value1[1]
+ }
+ getDataBoardNew(data).then(res => {
this.storeAmount = res.data
this.getDataAnalysis()
this.initChart()
})
+
},
countPercentage(upNum, downNum) {
let percentage = 0;
@@ -784,21 +790,16 @@ export default
let cshow = ['product', ...this.dataShows.oilNames]
showCount.push(cshow)
let showCountType = []
- console.log("看看执行")
this.dataShows.oilNames.forEach(item => {
let type = {
type: 'bar'
}
showCountType.push(type)
})
- console.log(this.dataShows.oilData)
this.dataShows.oilData.forEach(item => {
let a = [item.day, ...item.oilPrices]
showCount.push(a)
- console.log("showCount", a)
})
- console.log("showCount", showCount)
- console.log("showCountType", showCountType)
const option = {
color: [
@@ -922,7 +923,6 @@ export default
]
};
-
const option3 = {
tooltip: {
trigger: 'axis',
@@ -1024,13 +1024,15 @@ export default
containLabel: true
}
};
+
chart.setOption(option)
chart1.setOption(option1)
chart2.setOption(option2)
chart3.setOption(option3)
chart4.setOption(option4)
- }
+ },
+
}