+
@@ -106,12 +106,12 @@ export default {
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
index 73c5abb..8eebe96 100644
--- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
+++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
@@ -1,7 +1,7 @@
@@ -11,7 +11,7 @@
{{ item.label }}
-
+
@@ -22,7 +22,7 @@ import ChartContainer from "../../../../components/ChartContainer.vue";
import { debounce } from "@/utils/debounce";
import * as echarts from "echarts";
export default {
- name: "BarChartBase",
+ name: "barChartBaseoee",
components: {
ChartContainer,
},
@@ -220,30 +220,30 @@ export default {
this.canvasReset()
},
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
- // isFullscreen(val) {
- // this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
- // });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
- // // if (val === false && this.isOpen === true) {
- // // console.log(val)
- // // this.width = 97 + '%'
- // // this.canvasReset()
- // // } else if (val === false && this.isOpen === false) {
- // // this.width = 100 + '%'
- // // this.canvasReset()
- // // }
- // // this.actualOptions.series.map((item) => {
- // // item.barWidth = val ? 18 : 12;
- // // });
- // // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
- // this.initChart(this.actualOptions)
- // this.canvasReset()
- // },
+ isFullscreen(val) {
+ // this.actualOptions.series.map((item) => {
+ // item.barWidth = val ? 18 : 12;
+ // });
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // if (val === false && this.isOpen === true) {
+ // console.log(val)
+ // this.width = 97 + '%'
+ // this.canvasReset()
+ // } else if (val === false && this.isOpen === false) {
+ // this.width = 100 + '%'
+ // this.canvasReset()
+ // }
+ // this.actualOptions.series.map((item) => {
+ // item.barWidth = val ? 18 : 12;
+ // });
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ this.initChart(this.actualOptions)
+ this.canvasReset()
+ },
series(val) {
if (!val) {
this.initChart(this.options);
@@ -268,11 +268,11 @@ export default {
// this.isFullscreen = screenfull.isFullscreen;
// });
// }
- // if (screenfull.isEnabled) {
- // screenfull.on("change", () => {
- // this.isFullscreen = screenfull.isFullscreen;
- // });
- // }
+ if (screenfull.isEnabled) {
+ screenfull.on("change", () => {
+ this.isFullscreen = screenfull.isFullscreen;
+ });
+ }
this.actualOptions = this.options
this.canvasReset();
window.addEventListener("resize", this.canvasReset);
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue
index 2bbdf3e..5f82ff6 100644
--- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue
+++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue
@@ -1,7 +1,7 @@
@@ -11,7 +11,7 @@
{{ item.label }}
-