|
@@ -5,7 +5,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getPayAmtList, getPayUserCntList, getSiteIncreaseList} from "@/api/admin/index";
|
|
|
|
|
|
+import { getDailyData,getPayAmtList, getPayUserCntList, getTicketBoxTop, getTicketSiteTop} from "@/api/admin/index";
|
|
import echarts from "echarts"
|
|
import echarts from "echarts"
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
@@ -27,11 +27,24 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- this.getPayAmtList()
|
|
|
|
- this.getPayUserCntList()
|
|
|
|
- this.getSiteIncreaseList()
|
|
|
|
|
|
+ this.getDailyData()
|
|
|
|
+ //this.getPayAmtList()
|
|
|
|
+ //this.getPayUserCntList()
|
|
|
|
+ this.getTicketBoxTop()
|
|
|
|
+ this.getTicketSiteTop()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
|
|
+ // 统计今日实时交易金额、交易用户、盲票销售张数、新增经销商数量
|
|
|
|
+ getDailyData() {
|
|
|
|
+ getDailyData({}).then(res => {
|
|
|
|
+ console.log("getDailyData == "+JSON.stringify(res));
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 统计交易金额(带粒度)
|
|
getPayAmtList() {
|
|
getPayAmtList() {
|
|
getPayAmtList({level:"days",days:30}).then(res => {
|
|
getPayAmtList({level:"days",days:30}).then(res => {
|
|
console.log("getPayAmtList == "+JSON.stringify(res));
|
|
console.log("getPayAmtList == "+JSON.stringify(res));
|
|
@@ -40,6 +53,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ //统计交易用户数(带粒度)
|
|
getPayUserCntList() {
|
|
getPayUserCntList() {
|
|
getPayUserCntList({level:"week",days:30}).then(res => {
|
|
getPayUserCntList({level:"week",days:30}).then(res => {
|
|
console.log("getPayUserCntList == "+JSON.stringify(res));
|
|
console.log("getPayUserCntList == "+JSON.stringify(res));
|
|
@@ -48,9 +62,19 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- getSiteIncreaseList() {
|
|
|
|
- getSiteIncreaseList({level:"month",days:30}).then(res => {
|
|
|
|
- console.log("getSiteIncreaseList == "+JSON.stringify(res));
|
|
|
|
|
|
+ // 统计票组销售TOP10
|
|
|
|
+ getTicketBoxTop() {
|
|
|
|
+ getTicketBoxTop({days:30}).then(res => {
|
|
|
|
+ console.log("getTicketBoxTop == "+JSON.stringify(res));
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // 统计经销商交易额TOP10
|
|
|
|
+ getTicketSiteTop() {
|
|
|
|
+ getTicketSiteTop({days:30}).then(res => {
|
|
|
|
+ console.log("getTicketSiteTop == "+JSON.stringify(res));
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|