|
|
@@ -110,7 +110,7 @@ const state = reactive({
|
|
|
} as any,
|
|
|
homeOne: [
|
|
|
{
|
|
|
- num1: '125,12',
|
|
|
+ num1: '0',
|
|
|
num2: '-12.32',
|
|
|
num3: '今日充电量(kwh)',
|
|
|
num4: 'fa fa-meetup',
|
|
|
@@ -119,7 +119,7 @@ const state = reactive({
|
|
|
color3: '--el-color-primary',
|
|
|
},
|
|
|
{
|
|
|
- num1: '653,33',
|
|
|
+ num1: '0',
|
|
|
num2: '+42.32',
|
|
|
num3: '今日充电总金额(元)',
|
|
|
num4: 'iconfont icon-ditu',
|
|
|
@@ -128,7 +128,7 @@ const state = reactive({
|
|
|
color3: '--el-color-success',
|
|
|
},
|
|
|
{
|
|
|
- num1: '125,65',
|
|
|
+ num1: '0',
|
|
|
num2: '+17.32',
|
|
|
num3: '今日总电费(元)',
|
|
|
num4: 'iconfont icon-zaosheng',
|
|
|
@@ -137,7 +137,7 @@ const state = reactive({
|
|
|
color3: '--el-color-warning',
|
|
|
},
|
|
|
{
|
|
|
- num1: '520,43',
|
|
|
+ num1: '0',
|
|
|
num2: '-10.01',
|
|
|
num3: '今日总服务费(元)',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
@@ -146,7 +146,7 @@ const state = reactive({
|
|
|
color3: '--el-color-danger',
|
|
|
},
|
|
|
{
|
|
|
- num1: '520,43',
|
|
|
+ num1: '0',
|
|
|
num2: '-10.01',
|
|
|
num3: '今日充电人数',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
@@ -155,7 +155,7 @@ const state = reactive({
|
|
|
color3: '--el-color-danger',
|
|
|
},
|
|
|
{
|
|
|
- num1: '520,43',
|
|
|
+ num1: '0',
|
|
|
num2: '-10.01',
|
|
|
num3: '今日充电订单数(笔)',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
@@ -273,7 +273,7 @@ const initLineChart = (dataList:Array<any>) => {
|
|
|
x: 'left',
|
|
|
textStyle: {fontSize: '15', color: state.charts.color},
|
|
|
},
|
|
|
- grid: {top: 70, right: 40, bottom: 30, left: 30},
|
|
|
+ grid: {top: 70, right: 0, bottom: 30, left: 50},
|
|
|
tooltip: {trigger: 'axis'},
|
|
|
legend: {data: ['充电量', /*'总金额','电费',*/'服务费',], right: 0},
|
|
|
xAxis: {
|
|
|
@@ -283,13 +283,7 @@ const initLineChart = (dataList:Array<any>) => {
|
|
|
yAxis: [
|
|
|
{
|
|
|
type: 'value',
|
|
|
- name: '费用/元',
|
|
|
- position:'right',
|
|
|
- splitLine: {show: true, lineStyle: {type: 'dashed', color: '#f5f5f5'}},
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'value',
|
|
|
- name: '充电量/度',
|
|
|
+ name: '费用/元 充电量/度',
|
|
|
position:'left',
|
|
|
splitLine: {show: true, lineStyle: {type: 'dashed', color: '#f5f5f5'}},
|
|
|
},
|
|
|
@@ -506,8 +500,8 @@ const loadStationStat = ()=>{
|
|
|
const loadStationStatToday = ()=>{
|
|
|
$get(`stat/stationTodayStat`).then((res:any)=>{
|
|
|
console.log(res)
|
|
|
- if(!u.isEmptyOrNull(res.list)){
|
|
|
- let {chargeUsers,totalOrders,totalPower,totalMoney,elecMoney,serviceMoney} = res.list[0]
|
|
|
+ if(!u.isEmptyOrNull(res)){
|
|
|
+ let {chargeUsers,totalOrders,totalPower,totalMoney,elecMoney,serviceMoney} = res
|
|
|
state.homeOne[0].num1 = totalPower;
|
|
|
state.homeOne[1].num1 = u.fmt.fmtMoney(totalMoney);
|
|
|
state.homeOne[2].num1 = u.fmt.fmtMoney(elecMoney);
|