index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="fireMonitor">
  3. <div class="fireMon-left-box">
  4. <basicTree :treeData="treeData"></basicTree>
  5. </div>
  6. <div class="fireMon-right-box">
  7. <div class="fire-top-box">
  8. <basicCard2 :cardContentList2="cardContentList2"></basicCard2>
  9. </div>
  10. <div class="fire-bot-box">
  11. <basicEchartLine></basicEchartLine>
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <script setup lang="ts">
  17. import { ref, reactive } from 'vue'
  18. import basicTree from '../../common/basicTree.vue'
  19. import basicCard2 from '../../common/basicCard2.vue';
  20. import basicEchartLine from '../../common/basicEchartLine.vue';
  21. import { getAssetURL } from '../../../../utils/ui';
  22. let cardContentList2 = reactive([
  23. { imgSrcL: getAssetURL('workPlaceWarn/jd-jcjl.png'), labelL: '监测距离(m)', valL: '468', imgSrcR: getAssetURL('workPlaceWarn/jd-pjwd.png'), labelR: '平均温度(°C)', valR: '11.8', },
  24. { imgSrcL: getAssetURL('workPlaceWarn/temp.png'), labelL: '最高温度(°C)', valL: '25.0', imgSrcR: '', labelR: '位置(m)', valR: '450' },
  25. { imgSrcL: getAssetURL('workPlaceWarn/jd-zdwd.png'), labelL: '最低温度(°C)', valL: '25.0', imgSrcR: '', labelR: '位置(m)', valR: '25.0' },
  26. ])
  27. //数据随便写的,不符合实际情况,因为懒得改
  28. const treeData = reactive([
  29. { name: "81203综放工作面", value: "111", id: '1', pid: null },
  30. { name: "束管监测系统", value: "222", id: '1-2', pid: '1' },
  31. { name: "81203综放工作面", value: "458", id: '2', pid: null },
  32. { name: "束管监测系统", value: "445", id: '2-1', pid: '2' },
  33. { name: "束管监测系统", value: "456", id: '2-2', pid: '2' },
  34. { name: "束管监测系统", value: "647", id: '2-3', pid: '2' },
  35. { name: "81203综放工作面", value: "189", id: '3', pid: null },
  36. { name: "束管监测系统", value: "664", id: '3-1', pid: '3' },
  37. { name: "束管监测系统", value: "652", id: '3-2', pid: '3' },
  38. { name: "束管监测系统", value: "732", id: '3-3', pid: '3' },
  39. { name: "束管监测系统", value: "852", id: '3-3-1', pid: '3-3' },
  40. ])
  41. </script>
  42. <style lang="less" scoped>
  43. .fireMonitor {
  44. display: flex;
  45. position: relative;
  46. align-items: center;
  47. justify-content: space-between;
  48. width: calc(100% - 20px);
  49. height: calc(100vh - 97px);
  50. margin: 65px 10px 15px;
  51. background: #282828;
  52. .fireMon-left-box {
  53. width: 220px;
  54. height: 100%;
  55. background-color: rgb(27 35 39 / 80%);
  56. }
  57. .fireMon-right-box {
  58. box-sizing: border-box;
  59. width: calc(100% - 230px);
  60. height: 100%;
  61. margin-left: 10px;
  62. padding: 15px 10px;
  63. background-color: rgb(27 35 39 / 80%);
  64. .fire-top-box {
  65. width: 100%;
  66. height: 110px;
  67. margin-bottom: 15px;
  68. }
  69. .fire-bot-box {
  70. width: 100%;
  71. height: calc(100% - 125px);
  72. background-color: rgb(41 49 53 / 80%);
  73. }
  74. }
  75. }
  76. </style>