Browse Source

数据保护

master
[liang] 3 years ago
parent
commit
c157f4d2c5
  1. 4
      src/components/companySummary/business.vue
  2. 2
      src/components/companySummary/talent.vue
  3. 16
      src/views/Brand.vue

4
src/components/companySummary/business.vue

@ -33,10 +33,11 @@ export default {
methods: { methods: {
getEchartLeft1() { getEchartLeft1() {
// //
// eslint-disable-next-line no-undef
let myChart = echarts.init(document.getElementById('chart_left1')); let myChart = echarts.init(document.getElementById('chart_left1'));
let charts = { // let charts = { //
cityList: ['临时车', '月卡车', '免费车', '绿牌车'], cityList: ['临时车', '月卡车', '免费车', '绿牌车'],
cityData: [this.chartData.temporaryCarNum, this.chartData.yueZuCheNum, this.chartData.freeCarNum, this.chartData.greenCarNum] cityData: [this.chartData.temporaryCarNum || 0, this.chartData.yueZuCheNum || 0, this.chartData.freeCarNum || 0, this.chartData.greenCarNum || 0]
} }
let top10CityList = charts.cityList; let top10CityList = charts.cityList;
@ -56,6 +57,7 @@ export default {
itemStyle: { itemStyle: {
normal: { normal: {
show: true, show: true,
// eslint-disable-next-line no-undef
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: color[x] + ', 0.3)' color: color[x] + ', 0.3)'

2
src/components/companySummary/talent.vue

@ -123,7 +123,7 @@ export default {
let option = { let option = {
title: { title: {
text: "总金额:" + this.chartData.totalAmount + " 元", text: `总金额: ${this.chartData ? this.chartData.totalAmount || 0 : 0}`,
top: 20, top: 20,
left: 200, left: 200,
textStyle: { textStyle: {

16
src/views/Brand.vue

@ -240,7 +240,7 @@ export default {
// - // -
BiApi.getTodayTrade({ authCode }).then((res) => { BiApi.getTodayTrade({ authCode }).then((res) => {
// console.log(res); // console.log(res);
if (res.code === 200) { if (res && res.code === 200) {
const { totalAmount, totalNum } = res.data const { totalAmount, totalNum } = res.data
this.startNumber = this.endNumber; this.startNumber = this.endNumber;
this.startAmount = this.endAmount; this.startAmount = this.endAmount;
@ -250,32 +250,32 @@ export default {
}); });
// //
BiApi.getRealTimeInOutRecord({ authCode, pageNum: 1, pageSize: 10 }).then((res) => { BiApi.getRealTimeInOutRecord({ authCode, pageNum: 1, pageSize: 10 }).then((res) => {
if (res.code === 200) { if (res && res.code === 200) {
this.realTimeInOutRecord = res.rows this.realTimeInOutRecord = res.rows
} }
}); });
// - // -
BiApi.getParkingRanking({ authCode }).then((res) => { BiApi.getParkingRanking({ authCode }).then((res) => {
this.rankData = res.data if (res && res.code === 200) this.rankData = res.data
}) })
// - // -
BiApi.paymentStatistics({ authCode }).then((res) => { BiApi.paymentStatistics({ authCode }).then((res) => {
this.payData = res.data if (res && res.code === 200) this.payData = res.data
}) })
// - // -
BiApi.amountCartStatistics({ authCode }).then((res) => { BiApi.amountCartStatistics({ authCode }).then((res) => {
this.payDataCar = res.data if (res && res.code === 200) this.payDataCar = res.data
}) })
// -24 // -24
BiApi.todayTrafficStatistics({ authCode }).then((res) => { BiApi.todayTrafficStatistics({ authCode }).then((res) => {
this.todayTraffic = res.data if (res && res.code === 200) this.todayTraffic = res.data
}) })
// -24使 // -24使
BiApi.todayCarUseStatistics({ authCode }).then((res) => { BiApi.todayCarUseStatistics({ authCode }).then((res) => {
this.todayCarUse = res.data if (res && res.code === 200) this.todayCarUse = res.data
}) })
BiApi.useCarStatistics({ authCode }).then((res) => { BiApi.useCarStatistics({ authCode }).then((res) => {
this.useCarCon = res.data if (res && res.code === 200) this.useCarCon = res.data
}) })
}, },

Loading…
Cancel
Save