From 179136b6d89e4d24c37fc3981848f62b5673495c Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期二, 18 六月 2024 23:17:28 +0800 Subject: [PATCH] 默认2 --- src/views/mdc/time-analysis.vue | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/time-analysis.vue b/src/views/mdc/time-analysis.vue index 60eeda5..b8011e7 100644 --- a/src/views/mdc/time-analysis.vue +++ b/src/views/mdc/time-analysis.vue @@ -2,7 +2,7 @@ * @Author: lzhe lzhe@example.com * @Date: 2024-04-26 09:36:18 * @LastEditors: lzhe lzhe@example.com - * @LastEditTime: 2024-06-14 18:26:34 + * @LastEditTime: 2024-06-18 17:46:40 * @FilePath: /smart-web/src/views/mdc/status-record.vue * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -199,7 +199,6 @@ params.forEach(item=> { dom += `<div>${item.marker}${item.seriesName}锛�${item.data}%</div>` }) - console.log(params) return dom; } }, @@ -218,6 +217,9 @@ show: true, axisLabel: { formatter: function (value) { + if(value <= 1) { + value = value * 100; + } return value + "%"; } }, @@ -254,7 +256,10 @@ show: true, axisLabel: { formatter: function (value) { - return value * 100 + "%"; + if(value <= 1) { + value = value * 100; + } + return value + "%"; } }, data: [2,20,40,60,80,100] @@ -290,7 +295,10 @@ show: true, axisLabel: { formatter: function (value) { - return value * 100 + "%"; + if(value <= 1) { + value = value * 100; + } + return value + "%"; } }, data: [2,20,40,60,80,100] @@ -326,7 +334,10 @@ show: true, axisLabel: { formatter: function (value) { - return value * 100 + "%"; + if(value <= 1) { + value = value * 100; + } + return value + "%"; } }, data: [2,20,40,60,80,100] @@ -481,7 +492,6 @@ this.chartOptionA.series = this.formatChartData(res.data.countStatus); var myChart = echarts.init(recordDom); myChart.setOption(this.chartOptionA); - console.log(JSON.stringify(this.chartOptionA)) } }) }, @@ -657,7 +667,6 @@ this.date = this.time[1]; }, query() { - console.log(this.activeName) this.getTime({endDate: this.time[1],startDate: this.time[0],statisticalMethod: 'SHIFT'}); this.date = this.time[1]; this.ids = []; -- Gitblit v1.9.3