From 0dd7648593cd62c88d173aa0a4555b750c8ae89a Mon Sep 17 00:00:00 2001 From: zty Date: Thu, 31 Oct 2024 11:28:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/fac_cal/mpointstat.vue | 124 +++++++++++++++---------------- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/src/views/fac_cal/mpointstat.vue b/src/views/fac_cal/mpointstat.vue index d2c499dd..eaef4894 100644 --- a/src/views/fac_cal/mpointstat.vue +++ b/src/views/fac_cal/mpointstat.vue @@ -42,65 +42,67 @@ > - - - - - - - - - - - - - - - - - - - - + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - @@ -167,7 +169,7 @@ export default { end_time: null }, chartOption: { - color: ["#80FFA5", "#00DDFF", "#37A2FF", "#FF0087", "#FFBF00"], + color: ["#191970"], tooltip: { trigger: "axis", axisPointer: { @@ -232,14 +234,13 @@ export default { option.series = [ { - name: '总生产', + name: tableData[0].mpoint_name, type: 'line', // 折线图类型 data: tableData.map((item) => parseFloat(item.val)), // 将字符串转为数字 smooth: true, // 平滑曲线 } ]; - option.legend.data = ['总生产']; - + option.legend.data = [tableData[0].mpoint_name]; // 更新图表选项 that.chartOption = option; }, @@ -254,7 +255,6 @@ export default { }, handle_add() {}, handleQuery() { - console.log(this.query) if (this.timeRange) { this.query.start_time = this.timeRange[0] this.query.end_time = this.timeRange[1]