Commit 6401fa2d by 怪兽?别跑

质检接口调试

1 parent ac87c76b
...@@ -43,15 +43,6 @@ export function detailQuality(id) { ...@@ -43,15 +43,6 @@ export function detailQuality(id) {
}) })
} }
// 周报列表 待调
export function qualityWeeklyTatble(data) {
return request({
url: service + '/qi/list',
method: 'get',
params: data
})
}
// 质检统计 看板 // 质检统计 看板
export function statisticData(id) { export function statisticData(id) {
return request({ return request({
...@@ -89,3 +80,11 @@ export function qualityWeeklyDetailTotal(id) { ...@@ -89,3 +80,11 @@ export function qualityWeeklyDetailTotal(id) {
url: service + '/qi/weekly/getDetail/' + id url: service + '/qi/weekly/getDetail/' + id
}) })
} }
// 质检周报 详情列表
export function qualityWeeklyTable(id, data) {
return request({
url: service + '/qi/weekly/detail/list/' + id,
params: data
})
}
...@@ -33,27 +33,20 @@ ...@@ -33,27 +33,20 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="所属部门" align="center" prop="deptName" show-overflow-tooltip></el-table-column> <el-table-column label="所属部门" align="center" prop="deptName" show-overflow-tooltip></el-table-column>
<el-table-column label="所属会话" align="center" prop="chatName" show-overflow-tooltip></el-table-column> <el-table-column label="超时次数" align="center" prop="timeOutNum" show-overflow-tooltip></el-table-column>
<el-table-column label="会话类型" align="center" prop="chatType" show-overflow-tooltip> <el-table-column label="超时率" align="center" prop="timeOutRate" show-overflow-tooltip></el-table-column>
<template slot-scope="{ row }">
<div>
{{ row.chatType == 1 ? '客户会话' : '客群会话' }}
</div>
</template>
</el-table-column>
<el-table-column label="超时时长" align="center" prop="timeout" show-overflow-tooltip></el-table-column>
<el-table-column <el-table-column
label="触发时间" label="客户会话超时率"
align="center" align="center"
prop="createTime" prop="chatTimeOutRate"
width="180" show-overflow-tooltip
></el-table-column>
<el-table-column
label="客群会话超时率"
align="center"
prop="groupChatTimeOutRate"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width">
<template slot-scope="{ row }">
<el-button type="text">查看</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
:total="total" :total="total"
...@@ -79,7 +72,7 @@ ...@@ -79,7 +72,7 @@
<script> <script>
import ChartLine from '@/components/ChartLine.vue' import ChartLine from '@/components/ChartLine.vue'
import SearchTitle from '@/components/SearchTitle.vue' import SearchTitle from '@/components/SearchTitle.vue'
import { qualityWeeklyDetailTotal, statisticTable, statisticRecordList } from './api.js' import { qualityWeeklyDetailTotal, qualityWeeklyTable } from './api.js'
import SelectDept from '@/components/SelectDept' import SelectDept from '@/components/SelectDept'
export default { export default {
...@@ -99,28 +92,35 @@ ...@@ -99,28 +92,35 @@
userName: '', userName: '',
cardData: [ cardData: [
{ {
title: '总超时次数', title: '本周督导成员数',
tips: '成员在会话中未能及时回复的次数,仅计算产生双方参与的会话次数', value: 0
},
{
title: '客户会话数',
value: 0
},
{
title: '客群会话数',
value: 0
},
{
title: '成员回复次数',
value: 0 value: 0
}, },
{ {
title: '总超时率', title: '成员超时次数',
tips: '成员在会话中未能及时回复的次数/双方共产生会话的次数',
value: 0 value: 0
}, },
{ {
title: '今日超时人数', title: '成员超时率',
tips: '今日未能及时回复用户会话的成员人数',
value: 0 value: 0
}, },
{ {
title: '今日超时次数', title: '客户会话超时率',
tips: '今日成员在会话中未能及时回复的次数',
value: 0 value: 0
}, },
{ {
title: '今日超时率', title: '客群会话超时率',
tips: '今日成员在会话中未能及时回复的次数/今日双方共产生会话的次数',
value: 0 value: 0
} }
], ],
...@@ -188,16 +188,19 @@ ...@@ -188,16 +188,19 @@
}, },
getTabTotalFn() { getTabTotalFn() {
qualityWeeklyDetailTotal(this.id).then((res) => { qualityWeeklyDetailTotal(this.id).then((res) => {
this.cardData[0].value = res.data.timeOutTotalNum this.cardData[0].value = res.data.staffNum
this.cardData[1].value = res.data.timeOutTotalRate this.cardData[1].value = res.data.chatNum
this.cardData[2].value = res.data.todayTimeOutUserNum this.cardData[2].value = res.data.groupChatNum
this.cardData[3].value = res.data.todayTimeOutNum this.cardData[3].value = res.data.replyNum
this.cardData[4].value = res.data.todayTimeOutRate this.cardData[4].value = res.data.timeOutNum
this.cardData[5].value = res.data.timeOutRate
this.cardData[6].value = res.data.chatTimeOutRate
this.cardData[7].value = res.data.chatTimeOutRate
}) })
}, },
getTableChangeSize() { getTableChangeSize() {
this.loading = true this.loading = true
statisticTable(this.id, Object.assign({}, this.query)).then((res) => { qualityWeeklyTable(this.id, Object.assign({}, this.query)).then((res) => {
this.tableList = res.rows this.tableList = res.rows
this.total = Number(res.total) this.total = Number(res.total)
this.loading = false this.loading = false
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
this.list = res.rows this.list = res.rows
this.total = Number(res.total) this.total = Number(res.total)
} }
this.loading = false
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!