warnTargetFire.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <div class="warnTargetFire">
  3. <div class="top-area">
  4. <a-table :columns="columns" :data-source="tableData" bordered :pagination="false" :scroll="{ y: 374 }">
  5. <template #bodyCell="{ column, text }">
  6. <template v-if="column.dataIndex === 'name'">
  7. <a href="javascript:;">{{ text }}</a>
  8. </template>
  9. </template>
  10. </a-table>
  11. </div>
  12. <div class="bot-area">
  13. <warnZb :widthV="widthV" :heightV="heightV" :coordDw="coordDw" :widthCanvas="widthCanvas"
  14. :heightCanvas="heightCanvas"></warnZb>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup lang="ts">
  19. import { ref, reactive } from 'vue'
  20. import warnZb from './warnZb.vue'
  21. let widthV = ref('80%')
  22. let heightV = ref('80%')
  23. let coordDw = ref<any[]>([9, 30, 64, 110, 170, 204,])
  24. let widthCanvas = ref(1508)
  25. let heightCanvas = ref(270)
  26. let tableData = ref<any[]>([
  27. { yjdj: '灰色预警', zrjd: '氧化阶段', zb: 'CO,O₂', tj: '当O₂浓度为8%~15%时CO<200ppm;当O₂浓度为15%~18%时,CO<100ppm;当O₂浓度为时,CO<50ppm',wd:'T0⊂(30,50)', ckz: '' },
  28. { yjdj: '蓝色预警', zrjd: '自热阶段', zb: 'CO,O₂,(CO*100)/△O₂', tj: '超过氧化阶段条件',wd:'T0⊂(50,70)', ckz: '0.2~0.5' },
  29. { yjdj: '黄色预警', zrjd: '临界阶段', zb: 'CO,O₂,(CO*100)/△O₂', tj: '超过自热阶段条件',wd:'T0⊂(70,100)', ckz: '0.5-0.6' },
  30. { yjdj: '橙色预警', zrjd: '热解阶段', zb: '(CO*100)/△O2,C₂H₄', tj: '超过临界阶段条件',wd:'T0⊂(100,150)', ckz: '>0.6>0' },
  31. { yjdj: '红色预警', zrjd: '裂变阶段', zb: 'C₂H₄,C₂H₆,C₂H₄', tj: '超过热解阶段条件',wd:'T0⊂(150,210)', ckz: '>0极大' },
  32. { yjdj: '黑色预警', zrjd: '燃烧阶段', zb: 'C2H₂', tj: '超过裂变阶段条件',wd:'T0>210', ckz: '>0' },
  33. ])
  34. let columns = reactive([
  35. {
  36. title: '序号',
  37. dataIndex: '',
  38. key: 'rowIndex',
  39. width: 80,
  40. align: 'center',
  41. customRender: ({ index }) => {
  42. return `${index + 1}`;
  43. },
  44. },
  45. {
  46. title: '预警等级',
  47. dataIndex: 'yjdj',
  48. align: 'center',
  49. },
  50. {
  51. title: '煤自燃阶段',
  52. dataIndex: 'zrjd',
  53. align: 'center',
  54. },
  55. {
  56. title: '指标',
  57. align: 'center',
  58. dataIndex: 'zb',
  59. },
  60. {
  61. title: '条件',
  62. align: 'center',
  63. dataIndex: 'tj',
  64. },
  65. {
  66. title: '温度',
  67. align: 'center',
  68. dataIndex: 'wd',
  69. },
  70. {
  71. title: '参考值',
  72. align: 'center',
  73. dataIndex: 'ckz',
  74. },
  75. ])
  76. </script>
  77. <style lang="less" scoped>
  78. .warnTargetFire {
  79. width: 100%;
  80. height: 100%;
  81. padding: 15px 0px;
  82. box-sizing: border-box;
  83. .top-area {
  84. height: 55%;
  85. margin-bottom: 15px;
  86. background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
  87. background-size: 100% 100%;
  88. }
  89. .bot-area {
  90. height: calc(45% - 10px);
  91. background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
  92. background-size: 100% 100%;
  93. }
  94. }
  95. </style>