| @@ -658,147 +658,6 @@ | |||||
| this.getPowerList() | this.getPowerList() | ||||
| } | } | ||||
| }, | }, | ||||
| // 团队对比接待量 | |||||
| // receptionCountList(idx){ | |||||
| // this.$u.post('/cusLvStatistics/teamAnalysisReception',{ | |||||
| // // userA:this.staff1.value, | |||||
| // // userB:this.staff2.value, | |||||
| // deptIds:[this.staff1.value,this.staff2.value].filter(item=>item).join(','), | |||||
| // showRank:idx, | |||||
| // houseId:this.houseId, | |||||
| // timeType:this.lastEndDate?null:this.activeTotal+'', | |||||
| // lastEndDate:this.lastEndDate, | |||||
| // lastStartDate:this.lastStartDate | |||||
| // }) | |||||
| // .then(res=>{ | |||||
| // // console.log(res) | |||||
| // let result=res.result | |||||
| // this.newTeam=res.avg[0] | |||||
| // this.newAvg=res.avg[1] | |||||
| // if(idx==0){ | |||||
| // // 当选择的是牌名时 | |||||
| // // 处理数据 | |||||
| // // 先处理牌名数据,需要进行判断全部还是单个 | |||||
| // // 当为全部时 | |||||
| // this.newlisttabinfo=[] | |||||
| // // 当选择全部时 | |||||
| // if(!this.staff1.value&&!this.staff2.value){ | |||||
| // // console.log(1) | |||||
| // result[0].map(item=>{ | |||||
| // let obj={} | |||||
| // obj.name=item.deptName | |||||
| // obj.zxl=item.receptionCount | |||||
| // this.newlisttabinfo.push(obj) | |||||
| // }) | |||||
| // } | |||||
| // // 当选择只有一个时 | |||||
| // else if(this.staff1.value&&!this.staff2.value){ | |||||
| // // console.log(2) | |||||
| // result[0].map(item=>{ | |||||
| // let obj={} | |||||
| // obj.name=item.deptName | |||||
| // obj.zxl=item.receptionCount | |||||
| // this.newlisttabinfo.push(obj) | |||||
| // }) | |||||
| // // 判断是否显示平均 | |||||
| // // 如果显示对比 | |||||
| // if(this.timepickpickisshow){ | |||||
| // result[1].map(item=>{ | |||||
| // let obj={} | |||||
| // obj.name='平均' | |||||
| // obj.zxl=item.receptionCount | |||||
| // this.newlisttabinfo.push(obj) | |||||
| // }) | |||||
| // } | |||||
| // }else{ | |||||
| // // console.log(3) | |||||
| // // 当两个都选择的时候 | |||||
| // result[0].map(item=>{ | |||||
| // let obj={} | |||||
| // obj.name=item.deptName | |||||
| // obj.zxl=item.receptionCount | |||||
| // this.newlisttabinfo.push(obj) | |||||
| // }) | |||||
| // result[1].map(item=>{ | |||||
| // let obj={} | |||||
| // obj.name=item.deptName | |||||
| // obj.zxl=item.receptionCount | |||||
| // this.newlisttabinfo.push(obj) | |||||
| // }) | |||||
| // } | |||||
| // }else{ | |||||
| // // 当选择趋势时 | |||||
| // // this.lineOptsect={ | |||||
| // // categories:[], | |||||
| // // series:[] | |||||
| // // } | |||||
| // let allobj={ | |||||
| // categories:[], | |||||
| // series:[] | |||||
| // } | |||||
| // // 先处理时间 | |||||
| // // 当选择全部时 | |||||
| // if(!this.staff1.value&&!this.staff2.value){ | |||||
| // // console.log(1) | |||||
| // result.map((item,idx)=>{ | |||||
| // let obj={} | |||||
| // obj.name=item[0].deptName | |||||
| // obj.data=[] | |||||
| // item.map(item1=>{ | |||||
| // // 时间的处理 | |||||
| // if(idx==0){ | |||||
| // allobj.categories.push(item1.statDate.slice(5,10)) | |||||
| // } | |||||
| // obj.data.push(item1.receptionCount) | |||||
| // }) | |||||
| // allobj.series.push(obj) | |||||
| // }) | |||||
| // } | |||||
| // // 当选择只有一个时 | |||||
| // else if(this.staff1.value&&!this.staff2.value){ | |||||
| // // console.log(2) | |||||
| // let obj={} | |||||
| // obj.data=[] | |||||
| // obj.name=result[0][0].deptName | |||||
| // result[0].map(item=>{ | |||||
| // allobj.categories.push(item.statDate.slice(5,10)) | |||||
| // obj.data.push(item.receptionCount) | |||||
| // }) | |||||
| // allobj.series.push(obj) | |||||
| // // 判断是否显示平均 | |||||
| // // 如果显示对比 | |||||
| // if(this.timepickpickisshow){ | |||||
| // let obj={} | |||||
| // obj.data=[] | |||||
| // obj.name='平均' | |||||
| // result[1].map(item=>{ | |||||
| // obj.data.push(item.receptionCount) | |||||
| // }) | |||||
| // allobj.series.push(obj) | |||||
| // } | |||||
| // }else{ | |||||
| // // console.log(3) | |||||
| // // 当两个都选择的时候 | |||||
| // let obj={} | |||||
| // let obj1={} | |||||
| // obj.data=[] | |||||
| // obj1.data=[] | |||||
| // obj.name=result[0][0].deptName | |||||
| // obj1.name=result[1][0].deptName | |||||
| // result[0].map(item=>{ | |||||
| // allobj.categories.push(item.statDate.slice(5,10)) | |||||
| // obj.data.push(item.receptionCount) | |||||
| // }) | |||||
| // result[1].map(item=>{ | |||||
| // obj1.data.push(item.receptionCount) | |||||
| // }) | |||||
| // allobj.series.push(obj) | |||||
| // allobj.series.push(obj1) | |||||
| // } | |||||
| // this.lineOptsect=allobj | |||||
| // } | |||||
| // }) | |||||
| // }, | |||||
| // 接待时长 | // 接待时长 | ||||
| receptionCountList(idx, index, url) { | receptionCountList(idx, index, url) { | ||||
| this.$u.post(url, { | this.$u.post(url, { | ||||