@@ -165,18 +169,18 @@
合计
-
{{Math.floor(ceratelist1.sum /60) || ''}}分钟
+
{{Math.floor(ceratelist1.sum /60) || 0}}分钟
顾问
-
{{ceratelist1.num || ''}}个
+
{{ceratelist1.num || 0}}个
均值
-
{{Math.floor(ceratelist1.avg /60) || ''}}分钟
+
{{Math.floor(ceratelist1.avg /60) || 0}}分钟
-
+
{{item.name}}
@@ -185,7 +189,12 @@
{{item.zxl}}分钟
-
+
+
+
+
暂无数据
+
+
@@ -195,7 +204,7 @@
-
+
{{item.name}}
@@ -203,6 +212,12 @@
{{item.zxl}}%
+
+
+
+
+
暂无数据
+
@@ -220,7 +235,7 @@
-
+
{{item.name}}
@@ -229,7 +244,12 @@
{{item.zxl}}%
-
+
+
+
+
暂无数据
+
+
@@ -300,16 +320,24 @@ export default {
this.overviewfindUserListByHouseId()
this.overviewreceptionOverview()
this.overviewreceptionData()
-
this.overviewreceptionRanking()
this.overviewreceptionRanking1()
this.overviewreceptionOverviewZxl()
+ this.overviewteamOrAccountSellingTrends()
+ this.overviewteamOrAccountSellingTrends1()
}else{
this.zkhousePage()
}
},
methods: {
+ //切换楼盘
houseChange(){
+ this.Zxllist=[];
+ this.marketingId='';
+ this.consultantlist=[];
+ this.consultantsri='';
+ this.departmentlist=[];
+ this.departmentsri='';
this.customtime=[];
this.TimetoAhoose=4;
this.fromobj.statDateStart= '';
@@ -318,11 +346,13 @@ export default {
this.overviewfindUserListByHouseId()
this.overviewreceptionOverview()
this.overviewreceptionData()
-
this.overviewreceptionRanking()
this.overviewreceptionRanking1()
this.overviewreceptionOverviewZxl()
+ this.overviewteamOrAccountSellingTrends()
+ this.overviewteamOrAccountSellingTrends1()
},
+ //获取楼盘
zkhousePage() {
this.$api.api
.findHouseByUser({
@@ -339,6 +369,8 @@ export default {
this.overviewreceptionRanking()
this.overviewreceptionRanking1()
this.overviewreceptionOverviewZxl()
+ this.overviewteamOrAccountSellingTrends()
+ this.overviewteamOrAccountSellingTrends1()
});
},
//切换二级
@@ -464,7 +496,6 @@ export default {
statDateEnd:this.fromobj.statDateEnd,
deptId:this.departmentsri
}
- // console.log(this.departmentsri,'123');
if(this.TimetoAhoose==8){
parmo.dateType=null;
}
@@ -545,6 +576,7 @@ export default {
})
}
this.SwitchCARDS(newline,newline2,Strname)
+
},
//获取卡片数据
overviewreceptionOverview(){
@@ -563,6 +595,7 @@ export default {
},
//获取卡片下折线图
overviewreceptionData(){
+ this.Brokenline=[];
let parmo={
houseId:this.houseId,
dateType:this.TimetoAhoose,
@@ -573,7 +606,7 @@ export default {
parmo.dateType=null;
}
this.$api.http.overviewreceptionData(parmo).then((res) => {
- this.Brokenline=res.data;
+ this.Brokenline=res.data ||[];
this.Overviewxlick(1)
})
},
@@ -582,13 +615,11 @@ export default {
this.$api.http.overviewfindList({
houseId:this.houseId,
}).then((res) => {
- // this.departmentlist=[{name:'全部',deptId:''}]
- // this.departmentlist=this.departmentlist.concat(res.data);
- this.departmentlist=res.data;
-
+ this.departmentlist=res.data||[];
+ if(this.departmentlist.length==0){
+ return
+ }
this.departmentsri=this.departmentlist[0].deptId;
- // console.log(this.departmentsri);
- // console.log(this.departmentsri,'1');
this.overviewteamOrAccountSellingTrends()
})
@@ -599,13 +630,19 @@ export default {
orgType:localStorage.getItem("orgType"),
projectId:this.houseId,
}).then((res) => {
- this.consultantlist=res.data;
+ this.consultantlist=res.data||[];
+ if(this.consultantlist.length==0){
+ return
+ }
this.consultantsri=res.data[0].accountId;
this.overviewteamOrAccountSellingTrends1()
})
},
//卡片下折线图
SwitchCARDS(newline,newline2,Strname){
+ if(this.Brokenline==0){
+ return
+ }
echarts.init(document.getElementById('main')).dispose(); // 销毁实例
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
@@ -746,6 +783,9 @@ export default {
//团队销讲
Pinspeakfun1(newline,newline2){
+ if( this.Pinspeak.list.length==0){
+ return
+ }
let chartDom = document.getElementById('Pinspeak1');
let myChart = echarts.init(chartDom);
let option= {
@@ -799,7 +839,6 @@ export default {
type: 'solid',
color: '#DDE1EE',//x线的颜色
width:'1'//坐标线的宽度
-
}
}
},
@@ -843,6 +882,9 @@ export default {
},
//员工销讲
Pinspeakfun2(newline,newline2){
+ if( this.Pinspeak2.list.length==0){
+ return
+ }
let chartDom = document.getElementById('Pinspeak2');
let myChart = echarts.init(chartDom);
let option= {
@@ -896,7 +938,6 @@ export default {
type: 'solid',
color: '#DDE1EE',//x线的颜色
width:'1'//坐标线的宽度
-
}
}
},
@@ -934,7 +975,6 @@ export default {
}]
};
-
option && myChart.setOption(option);
window.addEventListener("resize", () => { myChart.resize();});
},
@@ -973,7 +1013,6 @@ export default {
})
return arr
},
-
},
};
@@ -986,6 +1025,7 @@ export default {
padding-bottom: 100px;
}
+
.container {
display: grid;
grid-template-columns: repeat(5, 19%) ;
diff --git a/src/views/Statistics/TheTeamCompared.vue b/src/views/Statistics/TheTeamCompared.vue
index 1aee1a0..a7147b8 100644
--- a/src/views/Statistics/TheTeamCompared.vue
+++ b/src/views/Statistics/TheTeamCompared.vue
@@ -82,14 +82,14 @@
团队总数
-
{{teamobj1.num}}个
+
{{teamobj1.num||0}}个
均值
-
{{teamobj1.avg}}个
+
{{teamobj1.avg||0}}个
-
+
{{item.name}}
@@ -98,6 +98,12 @@
{{item.zxl}}个
+
+
+
+
暂无数据
+
+
@@ -106,14 +112,14 @@
团队总数
-
{{teamobj2.num}}个
+
{{teamobj2.num||0}}个
均值
-
{{Math.floor(teamobj2.avg/60)}}分钟
+
{{Math.floor(teamobj2.avg/60)||0}}分钟
-
+
{{item.name}}
@@ -122,6 +128,12 @@
{{item.zxl}}分钟
+
+
+
+
暂无数据
+
+
@@ -143,14 +155,14 @@
团队总数
-
{{teamobj3.num}}个
+
{{teamobj3.num||0}}个
均值
{{teamobj3.avg || 0}}%
-
+
{{item.name}}
@@ -159,12 +171,24 @@
{{item.zxl}}%
+
+
+
+
暂无数据
+
+
-
+
+
+
+
+
暂无数据
+
+
@@ -190,10 +214,10 @@
均值
-
{{teamobj5.avg}}次
+
{{teamobj5.avg||0}}次
-
+
{{item.name}}
@@ -202,12 +226,24 @@
{{item.zxl}}次
+
+
+
+
暂无数据
+
+
-
+
+
+
+
+
暂无数据
+
+
@@ -252,7 +288,9 @@ export default {
teamAllLeve2id:'',
ceratelist:[],
role:'',
- houseList:[]
+ houseList:[],
+ isshowcd:true,
+ isshowcd2:true
};
},
mounted() {
@@ -562,6 +600,12 @@ export default {
},
initecah(namelist,datalist,newlinename){
+ if(datalist.length==0){
+ this.isshowcd2=false
+ return
+ }else{
+ this.isshowcd2=true
+ }
echarts.init(document.getElementById("main")).dispose();
var chartDom = document.getElementById("main");
var myChart = echarts.init(chartDom);
@@ -622,6 +666,12 @@ export default {
});
},
initecah2(namelist,datalist,newlinename){
+ if(datalist.length==0){
+ this.isshowcd=false
+ return
+ }else{
+ this.isshowcd=true
+ }
echarts.init(document.getElementById("main2")).dispose();
var chartDom = document.getElementById("main2");
var myChart = echarts.init(chartDom);
diff --git a/src/views/Statistics/TrendAnalysis.vue b/src/views/Statistics/TrendAnalysis.vue
index d5d831c..d046a18 100644
--- a/src/views/Statistics/TrendAnalysis.vue
+++ b/src/views/Statistics/TrendAnalysis.vue
@@ -298,19 +298,8 @@
-
-
-