|
@@ -1282,7 +1282,13 @@ const reset = () => {
|
|
pageSizes: [12],
|
|
pageSizes: [12],
|
|
};
|
|
};
|
|
};
|
|
};
|
|
-const editSubmit = async () => {};
|
|
|
|
|
|
+const setView = () => {
|
|
|
|
+ setHeight();
|
|
|
|
+ charts1.value = echarts.init(document.getElementById("charts"));
|
|
|
|
+ charts2.value = echarts.init(document.getElementById("charts1"));
|
|
|
|
+ charts1.value.setOption(chartsOption1.value, true);
|
|
|
|
+ charts2.value.setOption(chartsOption2.value, true);
|
|
|
|
+};
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
setHeight();
|
|
setHeight();
|
|
year.value = new Date().getFullYear() + "";
|
|
year.value = new Date().getFullYear() + "";
|
|
@@ -1293,6 +1299,10 @@ onMounted(() => {
|
|
charts1.value.setOption(chartsOption1.value, true);
|
|
charts1.value.setOption(chartsOption1.value, true);
|
|
charts2.value.setOption(chartsOption2.value, true);
|
|
charts2.value.setOption(chartsOption2.value, true);
|
|
});
|
|
});
|
|
|
|
+ window.addEventListener("resize", setView);
|
|
|
|
+});
|
|
|
|
+onBeforeUnmount(() => {
|
|
|
|
+ window.removeEventListener("resize", setView);
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
|
|
|