智慧园区前端大屏
linwe
2024-11-13 9ee3f349fbbcaeed2694a46744fe14862ed09d7c
src/views/companyInfo/components/leftContainer.vue
@@ -12,27 +12,38 @@
import dataContent from './box/dataContent.vue'
import unitContent from './box/unitContent.vue'
import fireContent from './box/fireContent.vue'
let state = defineProps({
  buttonIndex: {
    type: Number,
    default: 1
  }
})
</script>
<template>
  <div class="left-container">
    <div class="data box">
    <div class="unit box" v-if="state.buttonIndex == 3">
      <title-box>
        <template #titleName>
          <!-- 数据概览 -->
          <!-- 应急空间 -->
        </template>
      </title-box>
      <unit-content></unit-content>
    </div>
    <div class="data box" v-if="state.buttonIndex == 4">
      <title-box>
        <template #titleName>
          <!-- 三道防线 -->
        </template>
      </title-box>
      <data-content></data-content>
    </div>
    <!-- <div class="unit box">
      <title-box>
        <template #titleName>
          入住单位统计
        </template>
      </title-box>
      <unit-content></unit-content>
    </div> -->
    <!-- <div class="fire box">
      <title-box>
@@ -45,4 +56,16 @@
  </div>
</template>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.left-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  pointer-events: auto;
  // background: rgba(28, 115, 195, 0.2);
}
</style>