From 826381ebe1514e08db2bcc7a049484960f7ab301 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 28 Jul 2022 17:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.vue | 6 ++-- pages/mine/reception/consultant.vue | 43 ++++++++++++++++++++++++++--- pages/reportExcel/dayReport.vue | 4 ++- utils/domain.js | 4 +-- 4 files changed, 47 insertions(+), 10 deletions(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index ef77ae6..2d15bed 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -8,15 +8,15 @@ - + - - + + diff --git a/pages/mine/reception/consultant.vue b/pages/mine/reception/consultant.vue index 188dc06..d708e5e 100644 --- a/pages/mine/reception/consultant.vue +++ b/pages/mine/reception/consultant.vue @@ -22,7 +22,8 @@ - {{item.name}} + {{item.name}} + {{ item.label }} 今日接待: {{item.todayNum}} @@ -142,6 +143,19 @@ this.current = res.findIndex(item => item.agentId == this.customerId) } this.freeList = res; + + this.freeList.forEach(item => { + if (item.onLine == 0) { + item.label = "(离线)"; + item.class = 'red' + } else if (item.onLine == 1) { + item.label = "(在线)"; + item.class = 'gren' + } else { + item.label = "(无设备)"; + item.class = 'none' + } + }) this.textcdhSKJ = res[0].name } this.LOADING = false @@ -307,10 +321,31 @@ .text { .name { margin-top: 4rpx; - font-weight: 600; - color: #333333; - line-height: 30rpx; margin-bottom: 24rpx; + line-height: 30rpx; + + .names { + font-weight: 600; + color: #333333; + } + + .red { + margin-left: 10rpx; + color: #E7483C; + font-size: 28rpx; + } + + .gren { + margin-left: 10rpx; + color: #43CD80; + font-size: 28rpx; + } + + .none { + margin-left: 10rpx; + color: #999; + font-size: 28rpx; + } } } diff --git a/pages/reportExcel/dayReport.vue b/pages/reportExcel/dayReport.vue index a7ad9f5..baed58d 100644 --- a/pages/reportExcel/dayReport.vue +++ b/pages/reportExcel/dayReport.vue @@ -454,7 +454,9 @@ } if (this.weekObj.ZXLTopList && this.weekObj.ZXLTopList.length > 0) { this.consultant = this.weekObj.ZXLTopList.reverse().slice(0, 3) - this.lowest.push(this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1]) + if (this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1].value != 100) { + this.lowest.push(this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1]) + } } if (this.weekObj.avgJdsList && this.weekObj.avgJdsList.length > 0) { this.recording = this.weekObj.avgJdsList.reverse().slice(0, 3) diff --git a/utils/domain.js b/utils/domain.js index 39d0d4a..04967f5 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,8 +1,8 @@ // http.js使用域名 -// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 -const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 +// const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用