wangxiaohua преди 2 години
родител
ревизия
0571c50ef1
променени са 6 файла, в които са добавени 57 реда и са изтрити 56 реда
  1. +3
    -3
      config.js
  2. +39
    -33
      pages/center/Piabodata/Employeesstatistics.vue
  3. +5
    -12
      pages/center/Piabodata/index.vue
  4. +5
    -4
      pages/mine/equipment/index.vue
  5. +2
    -1
      uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
  6. +3
    -3
      utils/http.js

+ 3
- 3
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'; // 数智正式




+ 39
- 33
pages/center/Piabodata/Employeesstatistics.vue Целия файл

@@ -53,24 +53,20 @@
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">录音时长(TOP10)</view>
<view class="title1" style="flex: 1;">销讲执行率排行(TOP10)</view>
</view>
<view class="hejisan">
<view class="sanbox1" style="width: 35%;">
<view class="text1-1">合计</view>
<view class="text1-2">{{newlisttabinfo2.total}}</view>
</view>
<view class="sanbox1" style="width: 40%;">
<view class="text1-1">顾问</view>
<view class="text1-2">{{newlisttabinfo2.count}}</view>
<view class="text1-2">{{newlisttabinfo3.count}}</view>
</view>
<view class="sanbox1" style="width: 25%;">
<view class="text1-1">人均录音时长</view>
<view class="text1-2">{{newlisttabinfo2.avg}}</view>
<view class="text1-1">人均执行率</view>
<view class="text1-2">{{newlisttabinfo3.avg}}</view>
</view>
</view>
<view class="jindu" style="height: 360rpx;overflow: auto;">
<view v-if="newlisttabinfo2.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo2.result" :key="index">
<view v-if="newlisttabinfo3.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo3.result" :key="index">
<view class="jindu-boxche">
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
@@ -79,29 +75,34 @@
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
</view>
<view v-if="newlisttabinfo2.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">
<view v-if="newlisttabinfo3.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">
暂无数据
</view>
</view>
</view>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="single">
<view class="title">
<view class="title1" style="flex: 1;">销讲执行率排行(TOP10)</view>
<view class="title1" style="flex: 1;">录音时长(TOP10)</view>
</view>
<view class="hejisan">
<view class="sanbox1" style="width: 35%;">
<view class="text1-1">合计</view>
<view class="text1-2">{{newlisttabinfo2.total}}</view>
</view>
<view class="sanbox1" style="width: 40%;">
<view class="text1-1">顾问</view>
<view class="text1-2">{{newlisttabinfo3.count}}</view>
<view class="text1-2">{{newlisttabinfo2.count}}</view>
</view>
<view class="sanbox1" style="width: 25%;">
<view class="text1-1">人均执行率</view>
<view class="text1-2">{{newlisttabinfo3.avg}}</view>
<view class="text1-1">人均录音时长</view>
<view class="text1-2">{{newlisttabinfo2.avg}}</view>
</view>
</view>
<view class="jindu" style="height: 360rpx;overflow: auto;">
<view v-if="newlisttabinfo3.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo3.result" :key="index">
<view v-if="newlisttabinfo2.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo2.result" :key="index">
<view class="jindu-boxche">
<view class="jindu-name" v-if="item.name">{{item.name.substring(0,4)}}</view>
<view style="width: 440rpx;margin-left: 10rpx;">
@@ -110,7 +111,7 @@
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view>
</view>
</view>
<view v-if="newlisttabinfo3.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">
<view v-if="newlisttabinfo2.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">
暂无数据
</view>
</view>
@@ -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
},
}
};


+ 5
- 12
pages/center/Piabodata/index.vue Целия файл

@@ -78,7 +78,7 @@
</view> -->
<view class="danwei">{{danwei}} </view>
<view class="uchaserbox" >
<qiun-data-charts type="line" :chartData="lineOptsect" background="none" :ontouch="true"
<qiun-data-charts type="line" :chartData="lineOptsect" :opts="optionsobj" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingilingwuyiba1" :canvas2d="true" />
</view>
</view>
@@ -93,15 +93,9 @@
<view class="title2-che" style="width: 220rpx;">{{team.label}}
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view>
<!-- <view class="title2-che">执行率
<image class="righttochoose" src="../../../static/images/righttochoose.png" mode=""></image>
</view> -->
</view>
</view>
<!-- <view class="hejibox">
<view class="heji">合计:{{allnum||0}}</view>
<view class="heji">均值:{{allavg||0}}</view>
</view> -->
<view class="danwei">单位(%)</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect1" background="none" :ontouch="true"
@@ -130,7 +124,7 @@
</view> -->
<view class="danwei">单位(%)</view>
<view class="uchaserbox">
<qiun-data-charts type="line" :chartData="lineOptsect2" background="none" :ontouch="true"
<qiun-data-charts type="line" :chartData="lineOptsect2" background="none" :ontouch="true"
canvasId="wangxiaohuaerlingeryilingwuyibao" :canvas2d="true" />
</view>
</view>
@@ -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) {


+ 5
- 4
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
}


+ 2
- 1
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": {


+ 3
- 3
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) => {


Зареждане…
Отказ
Запис