|
@ -73,7 +73,7 @@ import DataViewEchart from './components/data-view-echart.vue' |
|
|
import DataViewLayout from './components/data-view-layout.vue' |
|
|
import DataViewLayout from './components/data-view-layout.vue' |
|
|
import icon from '@/assets/logo/plain.png' |
|
|
import icon from '@/assets/logo/plain.png' |
|
|
import DataViewTable from './components/data-view-table.vue' |
|
|
import DataViewTable from './components/data-view-table.vue' |
|
|
import { amountFormat, sortBy } from '@/utils/ruoyi' |
|
|
import { amountFormat, amountFriendlyFormat, sortBy } from '@/utils/ruoyi' |
|
|
import screenfull from 'screenfull'; |
|
|
import screenfull from 'screenfull'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
@ -104,7 +104,7 @@ export default { |
|
|
// 透明边框的颜色, 数组第一个为浅色, 第二个为深色 |
|
|
// 透明边框的颜色, 数组第一个为浅色, 第二个为深色 |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', 'rgba(45, 103, 252, 1)'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', 'rgba(45, 103, 252, 1)'], |
|
|
// 投影颜色 |
|
|
// 投影颜色 |
|
|
shadowColor: '#2D68FF', |
|
|
shadowColor: '#2d68ffc4', |
|
|
// 刻度颜色 |
|
|
// 刻度颜色 |
|
|
scaleColor: '#6DCBFF', |
|
|
scaleColor: '#6DCBFF', |
|
|
// 数值文字 |
|
|
// 数值文字 |
|
@ -121,7 +121,7 @@ export default { |
|
|
circle2Color: ['#168FFF00', '#168FFF'], |
|
|
circle2Color: ['#168FFF00', '#168FFF'], |
|
|
innerCircle: ['#082863', '#082863', '#8000FF68'], |
|
|
innerCircle: ['#082863', '#082863', '#8000FF68'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', 'rgba(45, 103, 252, 1)'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', 'rgba(45, 103, 252, 1)'], |
|
|
shadowColor: '#2D68FF', |
|
|
shadowColor: '#2d68ffc4', |
|
|
scaleColor: '#6DCBFF', |
|
|
scaleColor: '#6DCBFF', |
|
|
valueLabel: '代收成功金额', |
|
|
valueLabel: '代收成功金额', |
|
|
totalLabel: '总金额:0', |
|
|
totalLabel: '总金额:0', |
|
@ -135,7 +135,7 @@ export default { |
|
|
circle2Color: ['#30BE7900', '#30BE79'], |
|
|
circle2Color: ['#30BE7900', '#30BE79'], |
|
|
innerCircle: ['#2EB87642', '#2EB87642', '#2AA56C'], |
|
|
innerCircle: ['#2EB87642', '#2EB87642', '#2AA56C'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', '#30C17B'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', '#30C17B'], |
|
|
shadowColor: '#30C17B', |
|
|
shadowColor: '#30C17Bc4', |
|
|
scaleColor: '#6DCBFF', |
|
|
scaleColor: '#6DCBFF', |
|
|
valueLabel: '代付成功单数', |
|
|
valueLabel: '代付成功单数', |
|
|
totalLabel: '总金额:0', |
|
|
totalLabel: '总金额:0', |
|
@ -149,7 +149,7 @@ export default { |
|
|
circle2Color: ['#30BE7900', '#30BE79'], |
|
|
circle2Color: ['#30BE7900', '#30BE79'], |
|
|
innerCircle: ['#2EB87642', '#2EB87642', '#2AA56C'], |
|
|
innerCircle: ['#2EB87642', '#2EB87642', '#2AA56C'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', '#30C17B'], |
|
|
opacityBorder: ['rgba(0, 0, 0, 0)', '#30C17B'], |
|
|
shadowColor: '#30C17B', |
|
|
shadowColor: '#30C17Bc4', |
|
|
scaleColor: '#6DCBFF', |
|
|
scaleColor: '#6DCBFF', |
|
|
valueLabel: '代付成功金额', |
|
|
valueLabel: '代付成功金额', |
|
|
totalLabel: '总金额:0', |
|
|
totalLabel: '总金额:0', |
|
@ -192,23 +192,40 @@ export default { |
|
|
// transferSuccessQty 代付成功订单数 |
|
|
// transferSuccessQty 代付成功订单数 |
|
|
// transferSuccessAmount 代付成功金额 |
|
|
// transferSuccessAmount 代付成功金额 |
|
|
// transferTotalAmount 代付总金额 |
|
|
// transferTotalAmount 代付总金额 |
|
|
console.log("statisticsPush", statisticsPush) |
|
|
|
|
|
|
|
|
|
|
|
this.chart1.value = statisticsPush.paySuccessQty |
|
|
const chart1Total = amountFriendlyFormat(statisticsPush.payTotalQty) |
|
|
this.chart1.total = statisticsPush.payTotalQty |
|
|
const chart1Value = amountFriendlyFormat(statisticsPush.paySuccessQty, chart1Total.unit) |
|
|
this.chart1.totalLabel = '总订单:' + statisticsPush.payTotalQty |
|
|
this.chart1.value = chart1Value.amount |
|
|
|
|
|
this.chart1.unit = chart1Value.unit + "单" |
|
|
|
|
|
this.chart1.total = chart1Total.amount |
|
|
|
|
|
this.chart1.totalLabel = '总订单:' + chart1Total.display |
|
|
|
|
|
|
|
|
this.chart2.value = this.NumberDiv(statisticsPush.paySuccessAmount, 100) |
|
|
const payTotalAmount = this.NumberDiv(statisticsPush.payTotalAmount, 100) |
|
|
this.chart2.total = this.NumberDiv(statisticsPush.payTotalAmount, 100) |
|
|
const paySuccessAmount = this.NumberDiv(statisticsPush.paySuccessAmount, 100) |
|
|
this.chart2.totalLabel = '总金额:' + this.NumberDiv(statisticsPush.payTotalAmount, 100) |
|
|
const chart2Total = amountFriendlyFormat(payTotalAmount) |
|
|
|
|
|
const chart2Value = amountFriendlyFormat(paySuccessAmount, chart2Total.unit) |
|
|
|
|
|
this.chart2.value = chart2Value.amount |
|
|
|
|
|
this.chart2.unit = chart2Value.unit + "元" |
|
|
|
|
|
this.chart2.total = chart2Total.amount |
|
|
|
|
|
this.chart2.totalLabel = '总金额:' + chart2Total.display |
|
|
|
|
|
|
|
|
this.chart3.value = statisticsPush.transferSuccessQty |
|
|
|
|
|
this.chart3.total = statisticsPush.transferTotalQty |
|
|
|
|
|
this.chart3.totalLabel = '总订单:' + statisticsPush.transferTotalQty |
|
|
|
|
|
|
|
|
|
|
|
this.chart4.value = this.NumberDiv(statisticsPush.transferSuccessAmount, 100) |
|
|
const chart3Total = amountFriendlyFormat(statisticsPush.transferSuccessQty) |
|
|
this.chart4.total = this.NumberDiv(statisticsPush.transferTotalAmount, 100) |
|
|
const chart3Value = amountFriendlyFormat(statisticsPush.transferTotalQty, chart3Total.unit) |
|
|
this.chart4.totalLabel = '总金额:' + this.NumberDiv(statisticsPush.transferTotalAmount, 100) |
|
|
this.chart3.value = chart3Value.amount |
|
|
|
|
|
this.chart3.unit = chart3Value.unit + "单" |
|
|
|
|
|
this.chart3.total = chart3Total.amount |
|
|
|
|
|
this.chart3.totalLabel = '总订单:' + chart3Total.display |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const transferSuccessAmount = statisticsPush.transferSuccessAmount |
|
|
|
|
|
const transferTotalAmount = statisticsPush.transferTotalAmount |
|
|
|
|
|
const chart4Total = amountFriendlyFormat(transferTotalAmount) |
|
|
|
|
|
const chart4Value = amountFriendlyFormat(transferSuccessAmount, chart4Total.unit) |
|
|
|
|
|
this.chart4.value = chart4Value.amount |
|
|
|
|
|
this.chart4.unit = chart4Value.unit + "元" |
|
|
|
|
|
this.chart4.total = chart4Total.amount |
|
|
|
|
|
this.chart4.totalLabel = '总金额:' + chart4Total.display |
|
|
|
|
|
|
|
|
const pushMerchant = JSON.parse(data.value.pushMerchant) |
|
|
const pushMerchant = JSON.parse(data.value.pushMerchant) |
|
|
// 商户数据 |
|
|
// 商户数据 |
|
@ -223,6 +240,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.data1 = sortBy(this.data1, 'balanceWarning') |
|
|
this.data1 = sortBy(this.data1, 'balanceWarning') |
|
|
|
|
|
this.data1 = this.data1.slice(0, 10) |
|
|
|
|
|
|
|
|
// 在线卡数据 |
|
|
// 在线卡数据 |
|
|
this.data2 = card.map(i => { |
|
|
this.data2 = card.map(i => { |
|
|
return { |
|
|
return { |
|
@ -237,6 +256,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.data2 = sortBy(this.data2, 'balanceWarning') |
|
|
this.data2 = sortBy(this.data2, 'balanceWarning') |
|
|
|
|
|
this.data2 = this.data2.slice(0, 10) |
|
|
// 在线卡商数据 |
|
|
// 在线卡商数据 |
|
|
this.data3 = carddealer.map(i => { |
|
|
this.data3 = carddealer.map(i => { |
|
|
return { |
|
|
return { |
|
@ -248,6 +268,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.data3 = sortBy(this.data3, 'balanceWarning') |
|
|
this.data3 = sortBy(this.data3, 'balanceWarning') |
|
|
|
|
|
this.data3 = this.data3.slice(0, 10) |
|
|
|
|
|
|
|
|
this.$refs.table1.scrollReset(); |
|
|
this.$refs.table1.scrollReset(); |
|
|
this.$refs.table2.scrollReset(); |
|
|
this.$refs.table2.scrollReset(); |
|
|