wanshenmean
4 天以前 ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b
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();