@@ -152,6 +152,41 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view v-if="false" style="width: 100%;height: 20rpx;background: #FAFAFA;"></view> | |||||
<view class="single" v-if="false"> | |||||
<view class="title"> | |||||
<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">{{newlisttabinfo4.total}}</view> | |||||
</view> | |||||
<view class="sanbox1" style="width: 40%;"> | |||||
<view class="text1-1">顾问</view> | |||||
<view class="text1-2">{{newlisttabinfo4.count}}</view> | |||||
</view> | |||||
<view class="sanbox1" style="width: 25%;"> | |||||
<view class="text1-1">人均违禁次数</view> | |||||
<view class="text1-2">{{newlisttabinfo4.avg}}</view> | |||||
</view> | |||||
</view> | |||||
<view class="jindu" style="height: 360rpx;overflow: auto;"> | |||||
<view v-if="newlisttabinfo4.result.length!=0" class="jindu-box" v-for="(item,index) in newlisttabinfo4.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;"> | |||||
<u-line-progress height="24" :show-percent="false" active-color="#FBA448" :percent="item.zxl1"></u-line-progress> | |||||
</view> | |||||
<view class="jindu-zxl">{{item.zxl==null?0:item.zxl}}</view> | |||||
</view> | |||||
</view> | |||||
<view v-if="newlisttabinfo4.result.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;"> | |||||
暂无数据 | |||||
</view> | |||||
</view> | |||||
</view> | |||||
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> | ||||
</view> | </view> | ||||
@@ -25,7 +25,7 @@ | |||||
<view class="right"> | <view class="right"> | ||||
<view class="title"> | <view class="title"> | ||||
<template v-if="item.messageType == 2"> | <template v-if="item.messageType == 2"> | ||||
{{ getTimeLine(item.createTime, '2') }} | |||||
{{ item.weekDate }} | |||||
</template> | </template> | ||||
<template v-else> | <template v-else> | ||||
{{ fomatDate(item.createTime) }} | {{ fomatDate(item.createTime) }} | ||||
@@ -74,8 +74,8 @@ | |||||
<view class="r-box"> | <view class="r-box"> | ||||
<view class="r-box-item-lang"> | <view class="r-box-item-lang"> | ||||
<view>平均接待时长<text class="value">{{ weekObj.avgDuration || 0 }}min</text></view> | <view>平均接待时长<text class="value">{{ weekObj.avgDuration || 0 }}min</text></view> | ||||
<view class="contrast">对比昨天<text | |||||
:class="{down: weekObj.avgDurationPK < 0, up: weekObj.avgDurationPK > 0}">{{ weekObj.avgDurationPK > 0 ? '+' : '' }}{{ weekObj.avgDurationPK }}min</text> | |||||
<view class="contrast">对比昨天<text class="value" | |||||
:class="{down: weekObj.avgDurationPK < 0, up: weekObj.avgDurationPK > 0}">{{ weekObj.avgDurationPK > 0 ? '+' : '' }}{{ weekObj.avgDurationPK || 0 }}min</text> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -251,7 +251,7 @@ | |||||
<text>未标记接待数:</text> | <text>未标记接待数:</text> | ||||
<text class="num value down" | <text class="num value down" | ||||
style="font-weight: 500;font-size: 34rpx;">{{ weekObj.unlabelledReceptionNum || 0 }}</text> | style="font-weight: 500;font-size: 34rpx;">{{ weekObj.unlabelledReceptionNum || 0 }}</text> | ||||
<text class="down">条</text> | |||||
<text class="down value">条</text> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -315,7 +315,6 @@ | |||||
onShareAppMessage() { | onShareAppMessage() { | ||||
return { | return { | ||||
title: `${this.projectName}数智工牌日报`, | title: `${this.projectName}数智工牌日报`, | ||||
type: 2, | |||||
path: `/pages/reportExcel/dayReport?id=${this.id}` | path: `/pages/reportExcel/dayReport?id=${this.id}` | ||||
} | } | ||||
}, | }, | ||||
@@ -636,8 +635,8 @@ | |||||
.value { | .value { | ||||
margin-left: 5rpx; | margin-left: 5rpx; | ||||
font-size: 30rpx; | |||||
font-weight: bold; | |||||
font-size: 30rpx !important; | |||||
font-weight: bold !important; | |||||
} | } | ||||
} | } | ||||
</style> | </style> |
@@ -7,7 +7,7 @@ | |||||
<view class="c-title-text"> | <view class="c-title-text"> | ||||
{{ projectName || '' }}数智工牌周报 | {{ projectName || '' }}数智工牌周报 | ||||
</view> | </view> | ||||
<text class="date">{{ getTimeLine(weekObj.createTime) }}</text> | |||||
<text class="date">{{ weekObj.createTimeName }}</text> | |||||
<view class="creative-time"> | <view class="creative-time"> | ||||
生成时间:{{ weekObj.createTime || '--' }} | 生成时间:{{ weekObj.createTime || '--' }} | ||||
</view> | </view> | ||||
@@ -439,7 +439,6 @@ | |||||
onShareAppMessage() { | onShareAppMessage() { | ||||
return { | return { | ||||
title: `${this.projectName}数智工牌周报`, | title: `${this.projectName}数智工牌周报`, | ||||
type: 2, | |||||
path: `/pages/reportExcel/weekReport?id=${this.id}` | path: `/pages/reportExcel/weekReport?id=${this.id}` | ||||
} | } | ||||
}, | }, | ||||
@@ -463,7 +462,7 @@ | |||||
...res.zkMessage, | ...res.zkMessage, | ||||
...data | ...data | ||||
} | } | ||||
this.weekObj.createTimeName = this.getTimeLine(this.weekObj.createTime, 1) | |||||
this.weekObj.createTimeName = this.getTimeLines(this.weekObj.weekDate, 1) | |||||
console.log(this.weekObj, 'this.weekObj') | console.log(this.weekObj, 'this.weekObj') | ||||
this.projectName = res.projectName | this.projectName = res.projectName | ||||
this.numlist.forEach(item => { | this.numlist.forEach(item => { | ||||
@@ -559,6 +558,18 @@ | |||||
} | } | ||||
return resu | return resu | ||||
}, | }, | ||||
// 转换时间 | |||||
getTimeLines(date) { | |||||
if (!date) return '' | |||||
let arr = date.split('~') | |||||
let str0 = arr[0].split('-') | |||||
let str1 = arr[1].split('-') | |||||
return `${str0[1]}月${str0[2]}日~${str1[1]}月${str1[2]}日` | |||||
}, | |||||
}, | }, | ||||
filters: { | filters: { | ||||
@@ -1,7 +1,7 @@ | |||||
// http.js使用域名 | // http.js使用域名 | ||||
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||||
// const baseUrl = 'http://192.168.31.210:8080/api'; // 泽明 | |||||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 | |||||
// const baseUrl = 'http://localhost:8080/autoSR/api'; // 本地 | |||||
const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | // const baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||