|
@@ -1,8 +1,8 @@
|
|
|
<!--
|
|
|
* @Author: WangQiBiao
|
|
|
* @Date: 2019-09-25 14:10:08
|
|
|
- * @LastEditors: WangQiBiao
|
|
|
- * @LastEditTime: 2019-10-16 08:56:44
|
|
|
+ * @LastEditors: MoZhuangRu
|
|
|
+ * @LastEditTime: 2019-11-21 10:27:17
|
|
|
* @Description: 在线沟通
|
|
|
-->
|
|
|
<template>
|
|
@@ -38,6 +38,7 @@ import TagCom from '@/components/tag'
|
|
|
import echarts from 'echarts'
|
|
|
import { api } from '@/api'
|
|
|
import vueSeamless from 'vue-seamless-scroll'
|
|
|
+import config from '@/config'
|
|
|
|
|
|
export default {
|
|
|
computed: {
|
|
@@ -49,6 +50,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ reportSum: {},
|
|
|
dialogData: []
|
|
|
}
|
|
|
},
|
|
@@ -65,11 +67,21 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
- api.getDialogRecord().then(res => {
|
|
|
+ api.getDialogRecord({
|
|
|
+ version: config.version
|
|
|
+ }).then(res => {
|
|
|
this.dialogData = res.data.data.list
|
|
|
})
|
|
|
- this.circleProportionMap()
|
|
|
- this.createSatisfactionMap()
|
|
|
+ this.getReportSum()
|
|
|
+ },
|
|
|
+ getReportSum () {
|
|
|
+ api.getReportSum({
|
|
|
+ version: config.version
|
|
|
+ }).then(res => {
|
|
|
+ this.reportSum = res.data.data.reportRepairStatisticsVos
|
|
|
+ this.circleProportionMap()
|
|
|
+ this.createSatisfactionMap()
|
|
|
+ })
|
|
|
},
|
|
|
/**
|
|
|
* 占比
|
|
@@ -100,7 +112,7 @@ export default {
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
|
- value: 1652,
|
|
|
+ value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportAdvice')].total,
|
|
|
name: '咨询',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -111,7 +123,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 2462,
|
|
|
+ value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportComplaint')].total,
|
|
|
name: '投诉',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -122,7 +134,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 591,
|
|
|
+ value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportSuggest')].total,
|
|
|
name: '建议',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -133,7 +145,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 350,
|
|
|
+ value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportPraise')].total,
|
|
|
name: '表扬',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -182,14 +194,14 @@ export default {
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
|
- value: 83.2,
|
|
|
- name: '83.2%',
|
|
|
+ value: this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total,
|
|
|
+ name: `${this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total}%`,
|
|
|
itemStyle: {
|
|
|
color: '#07E144'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 16.8,
|
|
|
+ value: 100 - (this.reportSum[this.reportSum.findIndex(item => item.type === 'reportServiceScore')].total),
|
|
|
itemStyle: {
|
|
|
color: '#262795'
|
|
|
}
|