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 @@