管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 fce89affcbc15073f2e41b647239b3fff777006b
src/components/Screen/left.vue
@@ -21,7 +21,8 @@
    <div class="leftContainer" v-if="GlobleChartDisplay">
      <div class="current1"  id="leftCurrent1">
        <div class="aside-title">数据申请次数</div>
        <count-data-apply ></count-data-apply>
        <base-bar-chart :project="currProject"></base-bar-chart>
        <!-- <count-data-apply></count-data-apply> -->
      </div>
      <div class="current1"   id="leftCurrent2">
        <div class="aside-title">用户访问量</div>
@@ -57,12 +58,14 @@
import countDataApply from "@/components/chart/CountDataApply.vue"
import ServiceType from "../chart/ServiceType.vue"
import DataStorage from "../chart/DataStorage.vue"
import BaseBarChart from "../chart/BaseBarChart.vue"
export default {
  components: {
    ProjectTree,
    countDataApply,
    ServiceType,
    DataStorage,
    BaseBarChart,
  },
  data() {
    return {
@@ -72,11 +75,26 @@
      GlobleChartDisplay:false,
      CountryChartDisplay:false,
      leftImg: require("../../assets/img/Screen/rightArrow.png"),
      currProject: "全球项目",
    }
  },
  mounted() {
    this.OpenLeftInit()
    // this.OpenLeftInitChart();
    this.$bus.$on("changeProject", name => {
      this.currProject = name
      this.GlobleChartDisplay = true
      this.ChartDisplay = false
      // if (name == "全球项目") {
      //   this.GlobleChartDisplay = true
      //   this.ChartDisplay = false
      // } else {
      //   this.ChartDisplay = true
      //   this.GlobleChartDisplay = false
      // }
    })
  },
  methods: {
    ChangeLeft() {
@@ -107,10 +125,7 @@
      this.leftMessage = "init"
      // this.OpenLeftInitChart();
      this.$parent.ChangeWidth("leftView")
      this.$bus.$on("changeProject", name => {
      })
      this.GlobleChartDisplay = false
    },
    //打开工程树