From f12fafd0f2f2a8bd77d4319fde7871495608d73b Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Fri, 1 Nov 2024 11:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/MyEchart.vue | 19 +++-- src/styles/element.scss | 5 ++ src/views/govern/alarm/Transient.vue | 78 ++++++++++++------ src/views/govern/device/control/index.vue | 33 ++++---- .../control/offLineDataImport/index.vue | 24 +++--- .../tabs/components/harmonicSpectrum.vue | 80 ++++++++++--------- src/views/govern/device/fileService/index.vue | 1 + src/views/govern/device/planData/index.vue | 6 +- 8 files changed, 145 insertions(+), 101 deletions(-) diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 888b2cd..d671b92 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -34,6 +34,7 @@ const resizeHandler = () => { }) } const initChart = () => { + console.log(props.options,"888888888"); if (!props.isInterVal && !props.pieInterVal) { chart?.dispose() } @@ -65,7 +66,7 @@ const initChart = () => { }, backgroundColor: 'rgba(0,0,0,0.35)', borderWidth: 0, - confine:true, + confine: true, ...(props.options?.tooltip || null) }, toolbox: { @@ -73,10 +74,9 @@ const initChart = () => { top: 20, feature: { saveAsImage: { - title: '保存图片', + title: '保存图片' }, - ...(props.options?.toolbox?.featureProps || null), - + ...(props.options?.toolbox?.featureProps || null) }, // }, ...(props.options?.toolbox || null) @@ -123,9 +123,10 @@ const initChart = () => { series: props.options?.series, ...props.options?.options } + // console.log(options.series,"获取x轴"); handlerBar(options) // 处理柱状图 - chart.setOption(options,true) + chart.setOption(options, true) setTimeout(() => { chart.resize() @@ -214,9 +215,10 @@ const handlerXAxis = () => { // textStyle: { fontFamily: 'dinproRegular', color: '#000', - fontSize: '12' + fontSize: '12', // } - } + }, + // boundaryGap: false, } // props.options?.xAxis 是数组还是对象 if (Array.isArray(props.options?.xAxis)) { @@ -234,9 +236,6 @@ const handlerXAxis = () => { } } - - - let throttle: ReturnType // 动态计算table高度 const resizeObserver = new ResizeObserver(entries => { diff --git a/src/styles/element.scss b/src/styles/element.scss index 899baf6..7a9bfb2 100644 --- a/src/styles/element.scss +++ b/src/styles/element.scss @@ -230,3 +230,8 @@ .el-collapse-item__content{ padding-bottom: 0; } + +//解决打开dialog body容器宽度变为 calc(100% - 8px)问题 +.el-popup-parent--hidden{ + width: 100%; +} \ No newline at end of file diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue index 67204c1..13c88d4 100644 --- a/src/views/govern/alarm/Transient.vue +++ b/src/views/govern/alarm/Transient.vue @@ -3,9 +3,15 @@