From 9538b69310cf681b9a07bef786afb79d970afc66 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Mon, 28 Apr 2025 15:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mqtt=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/MyEchart.vue | 18 ++- src/components/table/fieldRender/index.vue | 92 ++++++++++---- src/utils/echartMethod.ts | 137 +++++++++++++++++---- src/views/govern/manage/factory.vue | 27 ++-- 4 files changed, 211 insertions(+), 63 deletions(-) diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 6f53c2d..982da03 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -13,8 +13,6 @@ import 'echarts-liquidfill' import 'echarts/lib/component/dataZoom' import { color, gradeColor3 } from './color' import { useConfig } from '@/stores/config' -import { saveAs } from 'file-saver' -import { t } from 'vxe-table' // import { nextTick } from 'process' const config = useConfig() @@ -119,7 +117,15 @@ const initChart = () => { height: 13, bottom: '20px', end: 100 - } + }, + // { + // show: true, + // yAxisIndex: 0, + // width: 12, + // handleSize: 8, + // showDataShadow: false, + // right: 12 + // } ], color: props.options?.color || color, series: props.options?.series, @@ -177,7 +183,7 @@ const handlerYAxis = () => { color: '#000', fontSize: 14, formatter: function (value) { - return value.toFixed(0) // 格式化显示为一位小数 + return parseFloat(value.toFixed(1)) // 格式化显示为一位小数 } }, splitLine: { @@ -217,9 +223,9 @@ const handlerXAxis = () => { // textStyle: { fontFamily: 'dinproRegular', color: '#000', - fontSize: '12', + fontSize: '12' // } - }, + } // boundaryGap: false, } // props.options?.xAxis 是数组还是对象 diff --git a/src/components/table/fieldRender/index.vue b/src/components/table/fieldRender/index.vue index bb0a2ee..4dd27d2 100644 --- a/src/components/table/fieldRender/index.vue +++ b/src/components/table/fieldRender/index.vue @@ -3,14 +3,27 @@ - +
+ +
- +
@@ -31,29 +44,55 @@ -
+
- +