diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 8c5a569..9bb513a 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -976,3 +976,11 @@ export function apiTree(query) { params:query }) } +// 后台首页获取第一个数据 +export function waitingForOperation(data) { + return request({ + url: 'autoSR/cusStageStatistics/waitingForOperation', + method:'post', + data + }) +} diff --git a/src/page/wel.vue b/src/page/wel.vue index a17c43a..de958db 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -336,14 +336,362 @@ -
+ +
+ +
+ 待处理 +
+
+
30天到期的代理商
+
+ {{sysTop.matuityOfAgent||0}} +
+
+
+
30天到期的楼盘
+
+ {{sysTop.matuityOfHouse||0}} +
+
+
+
离线设备
+
+ {{sysTop.offlineEquipmentQUantity||0}} +
+
+
+
低电量设备
+
+ {{sysTop.lowElectricityEquipmentQuantity||0}} +
+
+ +
+
+
+
+
数据简报
+
+
时间
+
+
今天
+
近7天
+
近30天
+
+
+ + +
+
+ +
+
+
新增楼盘数
+
+
{{sysSec.newAddHouseQuantity || 0}}
+
+ 环比:{{sysCompare.newAddHouseQuantity || 0}} + + + {{orderBy.newAddHouseQuantity || 0}}% + + + + {{orderBy.newAddHouseQuantity || 0}}% + +
+
+
+
+
活跃楼盘数
+
+
{{sysSec.activeHouseQuantity || 0}}
+
+ 环比:{{sysCompare.activeHouseQuantity || 0}} + + + + {{orderBy.activeHouseQuantity || 0}}% + + + + {{orderBy.activeHouseQuantity || 0}}% + +
+
+
+
+
销售设备数
+
+
{{sysSec.equipmentQuantityWithSold || 0}}
+
+ 环比:{{sysCompare.equipmentQuantityWithSold || 0}} + + + + {{orderBy.equipmentQuantityWithSold || 0}}% + + + + {{orderBy.equipmentQuantityWithSold || 0}}% + +
+
+
+
+
活跃设备数
+
+
{{sysSec.activeEquipmentQuantity || 0}}
+
+ 环比:{{sysCompare.activeEquipmentQuantity || 0}} + + + + {{orderBy.activeEquipmentQuantity || 0}}% + + + + {{orderBy.activeEquipmentQuantity || 0}}% + +
+
+
+ +
+
活跃用户数
+
+
{{sysSec.activeUserQuantity || 0}}
+
+ 环比:{{sysCompare.activeUserQuantity || 0}} + + + + {{orderBy.activeUserQuantity || 0}}% + + + + {{orderBy.activeUserQuantity || 0}}% + +
+
+
+
+
+
+
接待量
+
+
{{sysSec.receptionQuantity || 0}}
+
+ 环比:{{sysCompare.receptionQuantity || 0}} + + + + {{orderBy.receptionQuantity || 0}}% + + + + {{orderBy.receptionQuantity || 0}}% + +
+
+
+
+
有效接待
+
+
{{sysSec.customerQuantity || 0}}
+
+ 环比:{{sysCompare.customerQuantity || 0}} + + + + {{orderBy.customerQuantity || 0}}% + + + + {{orderBy.customerQuantity || 0}}% + +
+
+
+
+
违禁次数
+
+
{{sysSec.prohibitedCount || 0}}
+
+ 环比:{{sysCompare.prohibitedCount || 0}} + + + + {{orderBy.prohibitedCount || 0}}% + + + + {{orderBy.prohibitedCount || 0}}% + +
+
+
+
+
平均接待时长(分钟)
+
+
{{sysSec.receptionTimeWithAvg || 0}}
+
+ 环比:{{sysCompare.receptionTimeWithAvg || 0}} + + + + {{orderBy.receptionTimeWithAvg || 0}}% + + + + {{orderBy.receptionTimeWithAvg || 0}}% + +
+
+
+
+
录音总时长(小时)
+
+
{{sysSec.receptionTimeCount || 0}}
+
+ 环比:{{sysCompare.receptionTimeCount || 0}} + + + + {{orderBy.receptionTimeCount || 0}}% + + + + {{orderBy.receptionTimeCount || 0}}% + +
+
+
+ +
+ +
+
+
+
{{role==2?'楼盘排名(top10)':'公司排名(top10)'}}
+
+
接待量
+
平均执行率
+
+
+
+ + + + + + + + + + + + + + +
+ +
+
+
+
{{role==2?'顾问排名(top10)':'楼盘排名(top10)'}}
+
+
接待量
+
平均执行率
+
+
+ +
+ + + + + + + + + + + + + + +
+
+
@@ -357,7 +705,11 @@ export default { role:'', houseId:"", houseList:[], + houseRank:[], + companyRank:[], classatec:0, + classatec1:0, + classatec2:0, customtime:[], statDateStart:'', statDateEnd:'', @@ -367,6 +719,11 @@ export default { liftlist:{}, sequential:{}, }, + sysData:{}, + orderBy:{}, + sysCompare:{}, + sysTop:{}, + sysSec:{}, tableData: [], equipmentList:[], prohibitedlist:[], @@ -383,13 +740,29 @@ export default { this.role=localStorage.getItem("orgType"); if(this.role==3){ this.houseId = localStorage.getItem("houseId"); + this.getgicd(); + // 获取维度占比 this.getindexZxllist() + // 员工执行率 this.getemployeeExecutionRatelist() + // 违禁提醒列表 this.findProhibitedRecord() + // 获取设备 this.findAllZkEquipment() - }else{ - // this.zkhousePage() + } + // else if(this.role==0){ + // // 系统 + // // this.zkhousePage() + // this.waitingForOperation() + // } + // else if(this.role==1){ + // // 代理商 + // // this.zkhousePage() + // } + else{ + // 公司 + this.waitingForOperation() } }, @@ -402,6 +775,39 @@ export default { this.getgicd() this.findProhibitedRecord() }, + // 系统获取第一个数据 + waitingForOperation(){ + let obj={ + dateType: this.TimetoAhoose==5?null:this.TimetoAhoose, + // dateType: 1, + orderBy:1, + startDate: this.statDateStart, + endDate:this.statDateEnd + } + if(this.role==1){ + obj.agentId=localStorage.getItem('agentId')/1 + } + if(this.role==2){ + obj.orgCode=localStorage.getItem('orgCode') + } + this.$api.api.waitingForOperation(obj) + .then(res=>{ + // console.log(res); + // this.sysData=res.data + this.sysTop=res.data.top + this.sysSec=res.data.midA + this.sysCompare=res.data.midB + this.orderBy=res.data.midC + if(this.role==2){ + this.houseRank=res.data.accountRank + this.companyRank=res.data.houseRank + }else{ + this.houseRank=res.data.houseRank + this.companyRank=res.data.companyRank + } + + }) + }, //获取楼盘 zkhousePage() { this.$api.api @@ -514,25 +920,40 @@ export default { this.classatec=i; this.findAllZkEquipment() }, + tabclick2(e){ + console.log(e); + }, + tabclick1(e){ + console.log(e); + }, tabtimetap(i){ this.statDateStart=''; this.statDateEnd=''; this.customtime=[]; this.TimetoAhoose=i; + if(this.role==3){ this.getgicd() this.getindexZxllist() this.getemployeeExecutionRatelist() this.findProhibitedRecord() + }else{ + this.waitingForOperation() + } + }, //切换时间 confirmtime() { this.statDateStart=this.customtime[0]; this.statDateEnd=this.customtime[1]; this.TimetoAhoose=5; + if(this.role==3){ this.getgicd() this.getindexZxllist() this.getemployeeExecutionRatelist() this.findProhibitedRecord() + }else{ + this.waitingForOperation() + } }, } } @@ -605,6 +1026,11 @@ export default { } } } + .pageboxtitle3{ + text-align: center; + font-size: 30px; + line-height: 44px; + } } } .colostyle{ @@ -769,4 +1195,13 @@ export default { margin-top: 10px; } } + .title1{ + width: 100%; + height: 55px; + display: flex; + align-content: center; + justify-content: space-between; + padding: 0 20px; + line-height: 55px; + }