From 0571c50ef10648b0f0e641e72df0e70579d5bb1c Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Wed, 13 Oct 2021 13:49:44 +0800 Subject: [PATCH] init --- config.js | 6 +- .../center/Piabodata/Employeesstatistics.vue | 72 ++++++++++--------- pages/center/Piabodata/index.vue | 17 ++--- pages/mine/equipment/index.vue | 9 +-- .../js_sdk/u-charts/config-ucharts.js | 3 +- utils/http.js | 6 +- 6 files changed, 57 insertions(+), 56 deletions(-) diff --git a/config.js b/config.js index 8ce4613..e62aee4 100644 --- a/config.js +++ b/config.js @@ -2,11 +2,11 @@ * 小程序配置文件 */ // 此处主机域名修改成腾讯云解决方案分配的域名 -var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 +// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 // var host = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -// var host = 'http://192.168.31.127:8080/autoSR/api'; // 佳豪 +// var host = 'http://192.168.31.129:8080/autoSR/api'; // 佳豪 // var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 - // var host = 'https://zkgj.quhouse.com/api'; // 质控正式 +var host = 'https://zkgj.quhouse.com/api'; // 质控正式 // var host = 'https://hfju.com/api'; // 数智正式 diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue index 310fbc5..aae6022 100644 --- a/pages/center/Piabodata/Employeesstatistics.vue +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -53,24 +53,20 @@ - 录音时长(TOP10) + 销讲执行率排行(TOP10) - - 合计 - {{newlisttabinfo2.total}} - 顾问 - {{newlisttabinfo2.count}} + {{newlisttabinfo3.count}} - 人均录音时长 - {{newlisttabinfo2.avg}} + 人均执行率 + {{newlisttabinfo3.avg}} - + {{item.name.substring(0,4)}} @@ -79,29 +75,34 @@ {{item.zxl==null?0:item.zxl}} - + 暂无数据 + - 销讲执行率排行(TOP10) + 录音时长(TOP10) + + 合计 + {{newlisttabinfo2.total}} + 顾问 - {{newlisttabinfo3.count}} + {{newlisttabinfo2.count}} - 人均执行率 - {{newlisttabinfo3.avg}} + 人均录音时长 + {{newlisttabinfo2.avg}} - + {{item.name.substring(0,4)}} @@ -110,7 +111,7 @@ {{item.zxl==null?0:item.zxl}} - + 暂无数据 @@ -272,10 +273,10 @@ staffStatisticsExecutionRateTop10(promse){ this.$u.post('/cusLvStatistics/staffStatisticsExecutionRateTop10',promse).then(res=>{ res.result.forEach(item=>{ - item.zxl=item.data + item.zxl=item.data; + item.zxl1=item.data; item.name=item.accountName }) - res.result=this.dealData(res.result) this.newlisttabinfo3=res; }) }, @@ -315,21 +316,26 @@ // 获取最大值 let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 // console.log(num) - if(num>100){ - // 获取最大值的下标 - // let idx=arr.findIndex(item=>item.zxl==num) - // console.log(idx,123) - arr.map(item=>{ - item.zxl1=Math.floor(item.zxl/num*100) - }) - // console.log(arr) - return arr - }else{ - arr.map(item=>{ - item.zxl1=item.zxl - }) - return arr - } + // if(num>100){ + // // 获取最大值的下标 + // // let idx=arr.findIndex(item=>item.zxl==num) + // // console.log(idx,123) + // arr.map(item=>{ + // item.zxl1=Math.floor(item.zxl/num*100) + // }) + // // console.log(arr) + // return arr + // }else{ + // arr.map(item=>{ + // item.zxl1=item.zxl + // }) + // return arr + // } + arr.map(item=>{ + item.zxl1=Math.floor(item.zxl/num*100) + }) + return arr + }, } }; diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue index a96ccaf..5d6e3d7 100644 --- a/pages/center/Piabodata/index.vue +++ b/pages/center/Piabodata/index.vue @@ -78,7 +78,7 @@ --> {{danwei}} - @@ -93,15 +93,9 @@ {{team.label}} - + - 单位(%) --> 单位(%) - @@ -330,7 +324,8 @@ Theteamcomparedisshow: false, Groupcontrastisshow: false, allechar: [], - allList: [] + allList: [], + optionsobj:{} }; }, onShow() { @@ -632,8 +627,6 @@ }) } this.bocindex = index; - // console.log(allobj) - // return this.lineOptsect = allobj }, tapspagek3(index) { diff --git a/pages/mine/equipment/index.vue b/pages/mine/equipment/index.vue index 68b3354..f4d8e65 100644 --- a/pages/mine/equipment/index.vue +++ b/pages/mine/equipment/index.vue @@ -122,7 +122,7 @@ } this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, filters: { @@ -161,7 +161,7 @@ shecs(){ this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, // tab @@ -169,7 +169,7 @@ this.activeClass=index; this.newListdata=[] this.pageNum=1; - this.pageSize=5; + this.pageSize=20; this.init() }, init(){ @@ -184,6 +184,7 @@ orderType:1 } } + if(this.activeClass==0){ parames.query.onLine=null } @@ -204,7 +205,7 @@ } }else{ res.obj.list.results.forEach(item=>{ - if(this.activeClass==1){ + if(item.onLine==0){ item.signalDevice=0 } diff --git a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js index 807f8f3..4742ee8 100644 --- a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +++ b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js @@ -334,7 +334,8 @@ module.exports = { "gridColor": "#CCCCCC", "padding": 10, "showTitle": false, - "min":20, + "min":0, + "max":10, "data": [] }, "legend": { diff --git a/utils/http.js b/utils/http.js index 6c777aa..7e74b27 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,9 +1,9 @@ -const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 +// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -// const baseUrl = 'http://192.168.31.127:8080/autoSR/api'; // 佳豪 +// const baseUrl = 'http://192.168.31.129:8080/autoSR/api'; // 佳豪 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 - // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 + const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 const install = (Vue, vm) => {