Commit 8e5d7127 by zhangmengjie

23.4.7

parent b57580b8
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</template> </template>
<script> <script>
import { getCache } from "@/api/monitor/cache"; // import { getCache } from "@/api/monitor/cache";
import * as echarts from "echarts"; import * as echarts from "echarts";
import { reportFormsGET} from '@/api/orderform/index' import { reportFormsGET} from '@/api/orderform/index'
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
show: false show: false
}, },
data: [ data: [
{ value: 300, name: '累计成交额' } { value: this.cache.totalMoney, name: '累计成交额' }
] ]
} }
] ]
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
show: false show: false
}, },
data: [ data: [
{ value: 300, name: 'Video Ads' } { value: this.cache.accomplish, name: '已完成订单量' }
] ]
} }
] ]
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
show: false show: false
}, },
data: [ data: [
{ value: 300, name: 'Video Ads' } { value: this.cache.reject, name: '已驳回订单量' }
] ]
} }
] ]
...@@ -218,18 +218,18 @@ export default { ...@@ -218,18 +218,18 @@ export default {
show: false show: false
}, },
data: [ data: [
{ value: 300, name: 'Video Ads' } { value: this.cache.refund, name: '已退款订单量' }
] ]
} }
] ]
}); });
this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons");
this.usedmemory.setOption({ this.usedmemory.setOption({
title: { // title: {
text: 'Referer of a Website', // text: 'Referer of a Website',
subtext: 'Fake Data', // subtext: 'Fake Data',
left: 'center' // left: 'center'
}, // },
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
...@@ -243,8 +243,8 @@ export default { ...@@ -243,8 +243,8 @@ export default {
type: 'pie', type: 'pie',
radius: '50%', radius: '50%',
data: [ data: [
{ value: 1048, name: 'Search Engine' }, { value: this.cache.accomplish, name: '已完成订单' },
{ value: 735, name: 'Direct' }, { value: this.cache.contrastOrder, name: '未完成订单' },
], ],
emphasis: { emphasis: {
itemStyle: { itemStyle: {
......
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