<template>
  <div class="fireMonitor">
    <div class="fireMon-left-box">
      <basicTree :treeData="treeData"></basicTree>
    </div>
    <div class="fireMon-right-box">
      <div class="fire-top-box">
        <basicCard2 :cardContentList2="cardContentList2"></basicCard2>
      </div>
      <div class="fire-bot-box">
        <basicEchartLine></basicEchartLine>
      </div>
    </div>

  </div>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue'
import basicTree from '../../common/basicTree.vue'
import basicCard2 from '../../common/basicCard2.vue';
import basicEchartLine from '../../common/basicEchartLine.vue';
import { getAssetURL } from '../../../../utils/ui';

let cardContentList2 = reactive([
  { imgSrcL: getAssetURL('workPlaceWarn/jd-jcjl.png'), labelL: '监测距离(m)', valL: '468', imgSrcR: getAssetURL('workPlaceWarn/jd-pjwd.png'), labelR: '平均温度(°C)', valR: '11.8', },
  { imgSrcL: getAssetURL('workPlaceWarn/temp.png'), labelL: '最高温度(°C)', valL: '25.0', imgSrcR: '', labelR: '位置(m)', valR: '450' },
  { imgSrcL: getAssetURL('workPlaceWarn/jd-zdwd.png'), labelL: '最低温度(°C)', valL: '25.0', imgSrcR: '', labelR: '位置(m)', valR: '25.0' },
])

//数据随便写的，不符合实际情况，因为懒得改
const treeData = reactive([
  { name: "81203综放工作面", value: "111", id: '1', pid: null },
  { name: "束管监测系统", value: "222", id: '1-2', pid: '1' },
  { name: "81203综放工作面", value: "458", id: '2', pid: null },
  { name: "束管监测系统", value: "445", id: '2-1', pid: '2' },
  { name: "束管监测系统", value: "456", id: '2-2', pid: '2' },
  { name: "束管监测系统", value: "647", id: '2-3', pid: '2' },
  { name: "81203综放工作面", value: "189", id: '3', pid: null },
  { name: "束管监测系统", value: "664", id: '3-1', pid: '3' },
  { name: "束管监测系统", value: "652", id: '3-2', pid: '3' },
  { name: "束管监测系统", value: "732", id: '3-3', pid: '3' },
  { name: "束管监测系统", value: "852", id: '3-3-1', pid: '3-3' },
])



</script>

<style lang="less" scoped>
.fireMonitor {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 20px);
  height: calc(100vh - 97px);
  margin: 65px 10px 15px;
  background: #282828;

  .fireMon-left-box {
    width: 220px;
    height: 100%;
    background-color: rgb(27 35 39 / 80%);
  }

  .fireMon-right-box {
    box-sizing: border-box;
    width: calc(100% - 230px);
    height: 100%;
    margin-left: 10px;
    padding: 15px 10px;
    background-color: rgb(27 35 39 / 80%);

    .fire-top-box {
    width: 100%;
    height: 110px;
    margin-bottom: 15px;
  }

  .fire-bot-box {
    width: 100%;
    height: calc(100% - 125px);
    background-color: rgb(41 49 53 / 80%);
  }
  }

 
}
</style>