diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4f06bd2..467ea97 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -111,35 +111,35 @@
- 实时统计
+ 今日工作
{{realtimeobj.receptionCount || 0}}
接待量
+
+ {{realtimeobj.receivingCustomer || 0}}
+ 正在接待
+
{{realtimeobj.activeCustomer|| 0}}
有效接待
-
- {{realtimeobj.receivingCustomer || 0}}
- 正在接待
+
+ {{realtimeobj.fraction || 0}}%
+ 平均执行率
+
+
{{realtimeobj.tagCustomer || 0}}
未标顾问
-
-
{{realtimeobj.avgDuration|| 0}}
平均接待时长
-
- {{realtimeobj.fraction || 0}}%
- 平均执行率
-
{{realtimeobj.prohibitedCustomer || 0}}
@@ -156,15 +156,18 @@
- 概览
-
+
+
+ {{choiceIndex}}累计
+
+
@@ -263,7 +266,11 @@
-
+
+ 近7天
+ 近30天
+ 自定义
+
@@ -294,8 +301,10 @@
signalDevicetext: "",
imeiCode:'',//设备号
openFlag:'',//接待是否
+ choiceIndex:'近7天',
audioStatus: false,
equipmentisshow: false,
+ timeshow:false,
equipmentobj: {
totalNum: '',
onlineNum: '',
@@ -385,6 +394,20 @@
this.initrealTimeStatistics()
},
methods: {
+ //时间选择
+ tabtimetap(index,str){
+ this.timeshow=false;
+ if (index == 7) {
+ this.totalTimeShow = true;
+ } else {
+ this.choiceIndex=str
+ this.zhixingcenterindex = index;
+ this.initworkThisWeek()
+ }
+ },
+ taptimeisshow(){
+ this.timeshow=true;
+ },
//获取权限
getMenu() {
uni.request({
@@ -419,6 +442,7 @@
totalTimeChange(e) {
this.statDateStart = e.startDate;
this.statDateEnd = e.endDate;
+ this.choiceIndex=e.startDate+'-'+e.endDate
this.zhixingcenterindex = 7;
this.initworkThisWeek()
},
@@ -955,4 +979,11 @@
}
}
}
+ .timeview{
+ height: 80rpx;
+ line-height: 80rpx;
+ width: 100%;
+ text-align: center;
+ border-bottom: 1px solid #F8F8F8;
+ }
diff --git a/utils/domain.js b/utils/domain.js
index be77265..b704e82 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -5,9 +5,9 @@
// const baseUrl = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
// const baseUrl = 'http://192.168.31.134:9999/autoSR/api'; // 佳豪
-const baseUrl = 'http://192.168.31.167:9999/autoSR/api'; // 长龙
+// const baseUrl = 'http://192.168.31.167:9999/autoSR/api'; // 长龙
-// const baseUrl = 'https://zanyong.hfju.com/autoSR/api';// 正式
+const baseUrl = 'https://zanyong.hfju.com/autoSR/api';// 正式
@@ -26,11 +26,11 @@ const baseUrl = 'http://192.168.31.167:9999/autoSR/api'; // 长龙
// const host = 'http://8kdmng.natappfree.cc/autoSR/api';
// const hosts = 'http://8kdmng.natappfree.cc/';
-const host = 'http://192.168.31.167:9999/autoSR/api'; // 长龙
-const hosts = 'http://192.168.31.167:9999/'; // 长龙
+// const host = 'http://192.168.31.167:9999/autoSR/api'; // 长龙
+// const hosts = 'http://192.168.31.167:9999/'; // 长龙
-// const host = 'https://zanyong.hfju.com/autoSR/api';//正式
-// const hosts = 'https://zanyong.hfju.com/';//正式
+const host = 'https://zanyong.hfju.com/autoSR/api';//正式
+const hosts = 'https://zanyong.hfju.com/';//正式