|
@@ -1,8 +1,8 @@
|
|
|
<!--
|
|
|
* @Author: WangQiBiao
|
|
|
* @Date: 2019-09-25 14:10:08
|
|
|
- * @LastEditors: WangQiBiao
|
|
|
- * @LastEditTime: 2019-09-26 17:41:29
|
|
|
+ * @LastEditors: mozhuangru
|
|
|
+ * @LastEditTime: 2019-10-09 14:21:37
|
|
|
* @Description: 在线沟通
|
|
|
-->
|
|
|
<template>
|
|
@@ -14,14 +14,16 @@
|
|
|
</div>
|
|
|
<div class="linst-line"></div>
|
|
|
<div class="list">
|
|
|
- <div class="list-item" v-for="(item, idx) in 20" :key="idx">
|
|
|
+ <div class="list-item" v-for="(item, idx) in dialogData" :key="idx">
|
|
|
<div class="list-item-lf">
|
|
|
- <TagCom type="time">20:12</TagCom>
|
|
|
- <span class="list-item-txt">刘**通过小区大门</span>
|
|
|
+ <TagCom type="time">{{item.createAt}}</TagCom>
|
|
|
+ <span class="list-item-txt">{{item.content}}</span>
|
|
|
</div>
|
|
|
<div class="list-item-lr">
|
|
|
- <TagCom v-if="idx % 2 == 0" type="advice">建议</TagCom>
|
|
|
- <TagCom v-else type="praise">表扬</TagCom>
|
|
|
+ <TagCom v-if="item.label === '建议'" type="advice">建议</TagCom>
|
|
|
+ <TagCom v-if="item.label === '表扬'" type="praise">表扬</TagCom>
|
|
|
+ <TagCom v-if="item.label === '投诉'" type="complaints">投诉</TagCom>
|
|
|
+ <TagCom v-if="item.label === '咨询'" type="consulting">咨询</TagCom>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -31,12 +33,21 @@
|
|
|
import TitleCom from '@/components/title'
|
|
|
import TagCom from '@/components/tag'
|
|
|
import echarts from 'echarts'
|
|
|
+import { api } from '@/api'
|
|
|
export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ dialogData: []
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {
|
|
|
TitleCom,
|
|
|
TagCom
|
|
|
},
|
|
|
mounted () {
|
|
|
+ api.getDialogRecord().then(res => {
|
|
|
+ this.dialogData = res.data.data.list
|
|
|
+ })
|
|
|
this.circleProportionMap()
|
|
|
this.createSatisfactionMap()
|
|
|
},
|
|
@@ -70,7 +81,7 @@ export default {
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
|
- value: 310,
|
|
|
+ value: 1652,
|
|
|
name: '咨询',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -81,7 +92,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 235,
|
|
|
+ value: 2462,
|
|
|
name: '投诉',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -92,7 +103,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 274,
|
|
|
+ value: 591,
|
|
|
name: '建议',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -103,7 +114,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 335,
|
|
|
+ value: 350,
|
|
|
name: '表扬',
|
|
|
label: {
|
|
|
show: true,
|
|
@@ -152,14 +163,14 @@ export default {
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
|
- value: 335,
|
|
|
- name: '50%',
|
|
|
+ value: 83.2,
|
|
|
+ name: '83.2%',
|
|
|
itemStyle: {
|
|
|
color: '#07E144'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- value: 310,
|
|
|
+ value: 16.8,
|
|
|
itemStyle: {
|
|
|
color: '#262795'
|
|
|
}
|