|
|
@@ -65,22 +65,22 @@ let erd = elementResizeDetectorMaker(); //创建实例
|
|
|
let activeKey = ref<Number>(0);
|
|
|
let zooms = ref('')
|
|
|
eventBus.on('weatherReset', (e) => {
|
|
|
- // setEcharts();
|
|
|
- if (e == 'calc(100% - 500px)') {
|
|
|
- setBox(1)
|
|
|
- }
|
|
|
- if(e == '900') {
|
|
|
- setBox(2)
|
|
|
- }
|
|
|
- if(e != 'calc(100% - 500px)' && e != '900') {
|
|
|
- setBox(3)
|
|
|
- }
|
|
|
- if(e == 'calc(100% - 500px)' || e == '900') {
|
|
|
- zooms.value = document.getElementsByClassName("ant-modal")[0].style.zoom
|
|
|
- setTimeout(() => {
|
|
|
- chart.resize();
|
|
|
- }, 400);
|
|
|
- }
|
|
|
+ // setEcharts();
|
|
|
+ if (e == 'calc(100% - 500px)') {
|
|
|
+ setBox(1)
|
|
|
+ }
|
|
|
+ if (e == '900') {
|
|
|
+ setBox(2)
|
|
|
+ }
|
|
|
+ if (e != 'calc(100% - 500px)' && e != '900') {
|
|
|
+ setBox(3)
|
|
|
+ }
|
|
|
+ if (e == 'calc(100% - 500px)' || e == '900') {
|
|
|
+ zooms.value = document.getElementsByClassName("ant-modal")[0].style.zoom
|
|
|
+ setTimeout(() => {
|
|
|
+ chart.resize();
|
|
|
+ }, 400);
|
|
|
+ }
|
|
|
});
|
|
|
let boxHeight = ref(900);
|
|
|
// eventBus.on('progressHeight', (height) => {
|
|
|
@@ -223,7 +223,9 @@ function echarts1() {
|
|
|
color: '#fff',
|
|
|
margin: 15,
|
|
|
},
|
|
|
- // formatter: '{value} %'//y轴的每一个刻度值后面加上‘%’号
|
|
|
+ formatter: function (value) {
|
|
|
+ return value.toFixed(1);
|
|
|
+ },
|
|
|
},
|
|
|
splitLine: {
|
|
|
//网格线
|
|
|
@@ -247,7 +249,9 @@ function echarts1() {
|
|
|
color: '#fff',
|
|
|
margin: 15,
|
|
|
},
|
|
|
- // formatter: '{value} %'//y轴的每一个刻度值后面加上‘%’号
|
|
|
+ formatter: function (value) {
|
|
|
+ return value.toFixed(1);
|
|
|
+ },
|
|
|
},
|
|
|
splitLine: {
|
|
|
//网格线
|
|
|
@@ -402,10 +406,10 @@ const setBox = (type) => {
|
|
|
setTimeout(() => {
|
|
|
setEcharts();
|
|
|
echarts1();
|
|
|
- if(type == 3){
|
|
|
+ if (type == 3) {
|
|
|
zooms.value = document.getElementsByClassName("ant-modal")[0].style.zoom
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}, 0);
|
|
|
}
|
|
|
// 图表方法结束
|