From 595b44f79c7580b3d95c63194b1df4f00600f926 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 18 四月 2026 15:08:14 +0800
Subject: [PATCH] Revert "fix(WMS): 修复货位状态变动记录"
---
Code/WCS/WIDESEAWCS_Client/src/views/charts/bigdata.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/charts/bigdata.vue b/Code/WCS/WIDESEAWCS_Client/src/views/charts/bigdata.vue
index e75b6f9..b3a0738 100644
--- a/Code/WCS/WIDESEAWCS_Client/src/views/charts/bigdata.vue
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/charts/bigdata.vue
@@ -105,7 +105,7 @@
</div>
</template>
<script>
-var echarts = require("echarts");
+let echarts = null;
let $chartLeft1,
$chartLeft2,
$chartLeft3,
@@ -122,6 +122,15 @@
} from "./bigdata/chart-options";
// import IviewCircle from "./bigdata/IviewCircle";
import "./bigdata/layout.less";
+
+async function loadEcharts() {
+ if (!echarts) {
+ const module = await import("echarts");
+ echarts = module.default || module;
+ }
+ return echarts;
+}
+
export default {
components: {
// "iview-circle": IviewCircle
@@ -132,7 +141,8 @@
created() {
console.log("chart");
},
- mounted() {
+ async mounted() {
+ echarts = await loadEcharts();
if ($chartLeft1) {
$chartLeft1.dispose();
$chartLeft2.dispose();
--
Gitblit v1.9.3