diff --git a/src/views/kpi/components/circleChar.vue b/src/views/kpi/components/circleChar.vue index 55ce8a91..d9312b4d 100644 --- a/src/views/kpi/components/circleChar.vue +++ b/src/views/kpi/components/circleChar.vue @@ -20,8 +20,14 @@ export default { setTimeout(()=>{ this.drawHandle(); },500) + }, methods:{ + initCircle(){ + // setTimeout(()=>{ + this.drawHandle(); + // },500) + }, handle(){ if(this.titleText == '投诉率'){ this.$emit('clickComplain') diff --git a/src/views/kpi/kpiIndex.vue b/src/views/kpi/kpiIndex.vue index 29a3d8a8..9d08c5e1 100644 --- a/src/views/kpi/kpiIndex.vue +++ b/src/views/kpi/kpiIndex.vue @@ -17,7 +17,7 @@ reserve-keyword placeholder="请输入后选择" :remote-method="remoteMethod" - @change="getData" + @change="selectSupplierNameHanldle" :loading="selectLoading">
客户评价
- - -
APP使用
- - -
@@ -95,7 +95,7 @@
综合打分
- +
@@ -262,6 +262,18 @@ export default { async activated() { }, methods: { + async selectSupplierNameHanldle(){ + await this.getData() + setTimeout(()=>{ + this.$refs.Doughnut1.initCircle() + this.$refs.Doughnut2.initCircle() + this.$refs.Doughnut3.initCircle() + this.$refs.Doughnut4.initCircle() + this.$refs.Doughnut5.initCircle() + this.$refs.Doughnut6.initCircle() + this.$refs.Doughnut7.initCircle() + },500) + }, async remoteMethod(query) { if (query !== '') { this.selectLoading = true; @@ -326,7 +338,6 @@ export default { } }, drawLine() { // 基于准备好的dom,初始化echarts实例 - // console.log("执行图表加载") let myChart = echarts.init(document.getElementById('chartWrap')) let option; //接单指标 @@ -381,11 +392,9 @@ export default { ] let series2 = [{ name: '客户评价率', - type: 'bar', + type: 'line', data: this.v1, - yAxisIndex: 0, smooth: true, - barWidth: this.isMobile ? 35 : 60, label: { show: true, // 显示标签 position: 'top', // 标签位置在柱形顶部 @@ -395,7 +404,6 @@ export default { name: '投诉率', type: "line", data: this.v3, - yAxisIndex: 1, smooth: true, label: { show: true, @@ -408,7 +416,6 @@ export default { type: 'line', smooth: true, data: this.v2, - yAxisIndex: 1, label: { show: true, position: 'top', @@ -567,14 +574,7 @@ export default { axisLabel: { formatter: '{value}%' } - }, - { - type: 'value', - axisLabel: { - formatter: '{value}%' - } - }, - ] + } ] let yAxis3 = [ { type: 'value', @@ -825,7 +825,7 @@ export default { this.labelList = [ {label: '案件编号', prop: 'orderCode'}, {label: '服务内容', prop: 'serviceName'}, - {label: '接单师傅手机号', prop: 'driverName'}, + {label: '接单师傅手机号', prop: 'driverPhone'}, ] } else if (this.active === 9) {//车辆在线情况 this.labelList = [