管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-01-16 21ddc9ec1b1b76d2ce20e512328e65acaf1af2bf
src/components/echart46.vue
@@ -10,7 +10,7 @@
  components: {},
  data() {
    //这里存放数据
    return { myChart };
    return { myChart: null };
  },
  mounted() {
    this.lineChart();
@@ -24,6 +24,7 @@
      let option = {
        title: {
          text: '各项目完成工期',
          top: 15,
          textStyle: {
            color: '#fff',
          },
@@ -161,17 +162,18 @@
      });
    },
  },
  created() {},
  created() { },
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.echart46_box {
  padding: 20px;
  // background: rgba(0, 0, 0, 0.6);
}
#echart46 {
  width: 100%;
  height: 100%;
}
#echart46 {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}
</style>