|
|
@@ -128,7 +128,7 @@
|
|
|
<span class="sub-value">
|
|
|
<count-to :start-val="0" :end-val="todayWatchUserCount" :duration="3600" class="card-panel-num" />/<count-to :start-val="0" :end-val="versionLimit" :duration="3600" class="card-panel-num" /></span>
|
|
|
</div>
|
|
|
- <el-progress :percentage="todayWatchUserCount/versionLimit" :show-text="false" color="#409EFF"></el-progress>
|
|
|
+ <el-progress :percentage="versionLimit > 0 ? Math.min(100, Math.round((todayWatchUserCount/versionLimit) * 100)) : 0" :show-text="false" color="#409EFF"></el-progress>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
@@ -1020,7 +1020,7 @@ export default {
|
|
|
},
|
|
|
refresh() {
|
|
|
rechargeComsumption().then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
this.balance = res.data.balance;
|
|
|
this.todayComsumption = res.data.todayComsumption;
|
|
|
this.yesterdayComsumption = res.data.yesterdayComsumption;
|
|
|
@@ -1031,14 +1031,14 @@ export default {
|
|
|
});
|
|
|
|
|
|
trafficLog().then(res=>{
|
|
|
- if(res.code === 200) {
|
|
|
+ if(res.code === 200 && res.data) {
|
|
|
this.todayTraffic = res.data.today;
|
|
|
this.thisMonthTraffic = res.data.thisMonth;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
dealerAggregated().then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
this.dealderCount = res.data.dealderCount??0;
|
|
|
this.groupMgrCount = res.data.groupMgrCount??0;
|
|
|
this.memberCount = res.data.memberCount??0;
|
|
|
@@ -1061,7 +1061,7 @@ export default {
|
|
|
param.startTime = this.formatDate(today);
|
|
|
param.endTime = this.formatDate(today);
|
|
|
analysisPreview(param).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
this.watchUserCount = res.data.watchUserCount;
|
|
|
this.completedUserCount = res.data.completedUserCount;
|
|
|
this.completedRate = res.data.completedRate;
|
|
|
@@ -1085,7 +1085,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
authorizationInfo().then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
this.todayWatchUserCount = res.data.todayWatchUserCount;
|
|
|
this.versionLimit = res.data.versionLimit;
|
|
|
}
|
|
|
@@ -1241,7 +1241,7 @@ export default {
|
|
|
let param = this.getParam();
|
|
|
param = {...param,statisticalType:this.viewerType,dataType: this.dataType};
|
|
|
rewardMoneyTopTen(param).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let data = res.data;
|
|
|
let companyNameList = data.map(e=>e.companyName)
|
|
|
let courseNameList = data.map(e=>e.courseName)
|
|
|
@@ -1261,7 +1261,7 @@ export default {
|
|
|
let param = this.getParam();
|
|
|
param = {...param,statisticalType:this.viewerType,dataType: this.dataType};
|
|
|
rewardMoneyTrend(param).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let data = res.data;
|
|
|
let option = data.map(e=>[e.x,e.rewardMoney])
|
|
|
lineChartOption.series[0].data = option;
|
|
|
@@ -1274,7 +1274,7 @@ export default {
|
|
|
let param = this.getParam();
|
|
|
param = {...param,statisticalType:this.viewerType};
|
|
|
watchCourseTopTen(param).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let data = res.data;
|
|
|
let watchUserCountList = data.map(e=>e.watchUserCount);
|
|
|
let completedUserCountList = data.map(e=>e.completedUserCount);
|
|
|
@@ -1295,7 +1295,7 @@ export default {
|
|
|
|
|
|
// 经销商会员观看TOP10
|
|
|
deaMemberTopTen({...param,statisticalType: this.viewerType}).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let data = res.data;
|
|
|
let companyNameList = data.map(e=>e.companyName);
|
|
|
let watchUserList = data.map(e=>e.watchUserCount);
|
|
|
@@ -1309,7 +1309,7 @@ export default {
|
|
|
},
|
|
|
handleThisMonthOrderCount(){
|
|
|
thisMonthOrderCount().then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let dates = res.dates;
|
|
|
let orderCount = res.orderCount;
|
|
|
let payPrice = res.payPrice;
|
|
|
@@ -1324,7 +1324,7 @@ export default {
|
|
|
},
|
|
|
handleThisMonthRecvCount(){
|
|
|
thisMonthRecvCount().then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let dates = res.dates;
|
|
|
let orderCount = res.orderCount;
|
|
|
let payMoney = res.payMoney;
|
|
|
@@ -1340,7 +1340,7 @@ export default {
|
|
|
let param = this.getParam();
|
|
|
|
|
|
watchEndPlayTrend({...param}).then(res=>{
|
|
|
- if(res.code === 200){
|
|
|
+ if(res.code === 200 && res.data){
|
|
|
let data = res.data;
|
|
|
let watchUserCountList = data.map(e=>e.watchUserCount);
|
|
|
let completedUserCountList = data.map(e=>e.completedUserCount);
|