warnTargetFire.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <template>
  2. <div class="warnTargetFire">
  3. <a-table :columns="columns" :data-source="tableData" bordered :pagination="false" :scroll="{ y: 720 }">
  4. <template #bodyCell="{ column, text }">
  5. <template v-if="column.dataIndex === 'name'">
  6. <a href="javascript:;">{{ text }}</a>
  7. </template>
  8. </template>
  9. </a-table>
  10. </div>
  11. </template>
  12. <script setup lang="ts">
  13. import { ref, reactive } from 'vue'
  14. let tableData = ref<any[]>([
  15. {
  16. key: '1',
  17. one: '回风测氧化带CO浓度',
  18. two: '一级预警',
  19. three: 'CO>60ppm',
  20. },
  21. {
  22. key: '2',
  23. one: '回风测氧化带CO浓度',
  24. two: '二级预警',
  25. three: '240ppm>CO>60ppm',
  26. },
  27. {
  28. key: '3',
  29. one: '回风测氧化带CO浓度',
  30. two: '三级预警',
  31. three: 'CO>240ppm',
  32. },
  33. {
  34. key: '4',
  35. one: '回风测氧化带CO浓度',
  36. two: '四级预警',
  37. three: 'CO>1000ppm',
  38. },
  39. {
  40. key: '5',
  41. one: '回风测氧化带氧温度',
  42. two: '一级预警',
  43. three: '温度>40℃',
  44. },
  45. {
  46. key: '6',
  47. one: '回风测氧化带氧温度',
  48. two: '二级预警',
  49. three: '70℃<温度<40℃',
  50. },
  51. {
  52. key: '7',
  53. one: '回风测氧化带氧温度',
  54. two: '三级预警',
  55. three: '70℃<温度<210℃',
  56. },
  57. {
  58. key: '8',
  59. one: '回风测氧化带氧温度',
  60. two: '四级预警',
  61. three: '温度>210℃',
  62. },
  63. {
  64. key: '9',
  65. one: '回风隅角CO浓度',
  66. two: '一级预警',
  67. three: 'CO>24ppm',
  68. },
  69. {
  70. key: '10',
  71. one: '回风隅角CO浓度',
  72. two: '二级预警',
  73. three: 'CO>100ppm',
  74. },
  75. {
  76. key: '11',
  77. one: '回风隅角CO浓度',
  78. two: '三级预警',
  79. three: 'CO>160ppm',
  80. },
  81. {
  82. key: '12',
  83. one: '回风隅角CO浓度',
  84. two: '四级预警',
  85. three: 'CO>200ppm',
  86. },
  87. {
  88. key: '13',
  89. one: '回风隅角气体温度',
  90. two: '一级预警',
  91. three: '温度>33℃',
  92. },
  93. {
  94. key: '14',
  95. one: '回风隅角气体温度',
  96. two: '二级预警',
  97. three: '温度>40℃',
  98. },
  99. {
  100. key: '15',
  101. one: '回风隅角气体温度',
  102. two: '三级预警',
  103. three: '温度>50℃',
  104. },
  105. {
  106. key: '16',
  107. one: '回风隅角气体温度',
  108. two: '四级预警',
  109. three: '温度>60℃',
  110. },
  111. {
  112. key: '17',
  113. one: '回风流CO浓度',
  114. two: '一级预警',
  115. three: 'CO>12ppm',
  116. },
  117. {
  118. key: '18',
  119. one: '回风流CO浓度',
  120. two: '二级预警',
  121. three: 'CO>24ppm',
  122. },
  123. {
  124. key: '19',
  125. one: '回风流CO浓度',
  126. two: '三级预警',
  127. three: 'CO>40ppm',
  128. },
  129. {
  130. key: '20',
  131. one: '回风流CO浓度',
  132. two: '四级预警',
  133. three: 'CO>70ppm',
  134. },
  135. {
  136. key: '21',
  137. one: '回风流巷道气体温度',
  138. two: '一级预警',
  139. three: '温度>30℃',
  140. },
  141. {
  142. key: '22',
  143. one: '回风流巷道气体温度',
  144. two: '二级预警',
  145. three: '温度>35℃',
  146. },
  147. {
  148. key: '23',
  149. one: '回风流巷道气体温度',
  150. two: '三级预警',
  151. three: '温度>45℃',
  152. },
  153. {
  154. key: '24',
  155. one: '回风流巷道气体温度',
  156. two: '四级预警',
  157. three: '温度>70℃',
  158. },
  159. {
  160. key: '25',
  161. one: '回风测氧化带C2H4浓度',
  162. two: '三级预警',
  163. three: 'C2H4>0pmm',
  164. },
  165. {
  166. key: '26',
  167. one: '回风测氧化带C2H2浓度',
  168. two: '四级预警',
  169. three: 'C2H2>0pmm',
  170. },
  171. {
  172. key: '27',
  173. one: '回风测氧化带100*CO/O2',
  174. two: '一级预警',
  175. three: '0.2~0.5',
  176. },
  177. {
  178. key: '28',
  179. one: '回风测氧化带100*CO/O2',
  180. two: '二级预警',
  181. three: '>0.5',
  182. },
  183. {
  184. key: '29',
  185. one: '回风测氧化带100*CO/O2',
  186. two: '三级预警',
  187. three: '无限大,出现C2H4',
  188. },
  189. {
  190. key: '30',
  191. one: '回风测氧化带100*CO/O2',
  192. two: '四级预警',
  193. three: '无限大,出现C2H2',
  194. },
  195. {
  196. key: '31',
  197. one: '回风测氧化带O2浓度',
  198. two: '一级预警',
  199. three: '7%>CO>5%',
  200. },
  201. {
  202. key: '32',
  203. one: '回风测氧化带O2浓度',
  204. two: '二级预警',
  205. three: '10%>CO>7%',
  206. },
  207. {
  208. key: '33',
  209. one: '回风测氧化带O2浓度',
  210. two: '三级预警',
  211. three: '18%>CO>12%',
  212. },
  213. {
  214. key: '34',
  215. one: '回风测氧化带O2浓度',
  216. two: '四级预警',
  217. three: 'CO>18%',
  218. },
  219. {
  220. key: '35',
  221. one: '月推进度',
  222. two: '一级预警',
  223. three: 'LS<0.95LX',
  224. },
  225. {
  226. key: '36',
  227. one: '月推进度',
  228. two: '二级预警',
  229. three: 'LS<0.9LX',
  230. },
  231. {
  232. key: '37',
  233. one: '月推进度',
  234. two: '三级预警',
  235. three: 'LS<0.85LX',
  236. },
  237. {
  238. key: '38',
  239. one: '月推进度',
  240. two: '四级预警',
  241. three: 'LS<0.8LX',
  242. },
  243. {
  244. key: '39',
  245. one: '皮带最高火灾温度',
  246. two: '一级预警',
  247. three: '3.5Rp>Rs>1.5Rp',
  248. },
  249. {
  250. key: '40',
  251. one: '皮带最高火灾温度',
  252. two: '二级预警',
  253. three: '6Rp>Rs>3.5Rp',
  254. },
  255. {
  256. key: '41',
  257. one: '皮带最高火灾温度',
  258. two: '三级预警',
  259. three: 'Rs>Rr>6Rp',
  260. },
  261. {
  262. key: '42',
  263. one: '皮带最高火灾温度',
  264. two: '四级预警',
  265. three: 'Rs>Rs',
  266. },
  267. {
  268. key: '43',
  269. one: '电缆火灾最高温度',
  270. two: '一级预警',
  271. three: '有烟雾',
  272. },
  273. {
  274. key: '44',
  275. one: '电缆火灾最高温度',
  276. two: '二级预警',
  277. three: 'Rs>1.5Rp',
  278. },
  279. {
  280. key: '45',
  281. one: '电缆火灾最高温度',
  282. two: '三级预警',
  283. three: 'Rs>Rr>6Rp',
  284. },
  285. {
  286. key: '46',
  287. one: '电缆火灾最高温度',
  288. two: '四级预警',
  289. three: 'Rs>3.5Rp',
  290. },
  291. ])
  292. let columns = reactive([
  293. {
  294. title: '序号',
  295. width: 60,
  296. align: 'center',
  297. customRender: ({ index }: { index: number }) =>{
  298. if(index>=0 && index<=3){
  299. return 1
  300. }else if(index>=4 && index<=7){
  301. return 2
  302. }else if(index>=8 && index<=11){
  303. return 3
  304. }else if(index>=12 && index<=15){
  305. return 4
  306. }else if(index>=16 && index<=19){
  307. return 5
  308. }else if(index>=20 && index<=23){
  309. return 6
  310. }else if(index==24){
  311. return 7
  312. }else if(index==25){
  313. return 8
  314. }else if(index>=26 && index<=29){
  315. return 9
  316. }else if(index>=30 && index<=33){
  317. return 10
  318. }else if(index>=34 && index<=37){
  319. return 11
  320. }else if(index>=38 && index<=41){
  321. return 12
  322. }else if(index>=42 && index<=45){
  323. return 13
  324. }
  325. },
  326. customCell: (_, index) => {
  327. if (index == 0) {
  328. return { rowSpan: 4 };
  329. } else if (index > 0 && index <= 3) {
  330. return { rowSpan: 0 };
  331. }
  332. if (index == 4) {
  333. return { rowSpan: 4 };
  334. } else if (index > 4 && index <= 7) {
  335. return { rowSpan: 0 };
  336. }
  337. if (index == 8) {
  338. return { rowSpan: 4 };
  339. } else if (index > 8 && index <= 11) {
  340. return { rowSpan: 0 };
  341. }
  342. if (index == 12) {
  343. return { rowSpan: 4 };
  344. } else if (index > 12 && index <= 15) {
  345. return { rowSpan: 0 };
  346. }
  347. if (index == 16) {
  348. return { rowSpan: 4 };
  349. } else if (index > 16 && index <= 19) {
  350. return { rowSpan: 0 };
  351. }
  352. if (index == 20) {
  353. return { rowSpan: 4 };
  354. } else if (index > 20 && index <= 23) {
  355. return { rowSpan: 0 };
  356. }
  357. if (index == 26) {
  358. return { rowSpan: 4 };
  359. } else if (index > 26 && index <= 29) {
  360. return { rowSpan: 0 };
  361. }
  362. if (index == 30) {
  363. return { rowSpan: 4 };
  364. } else if (index > 30 && index <= 33) {
  365. return { rowSpan: 0 };
  366. }
  367. if (index == 34) {
  368. return { rowSpan: 4 };
  369. } else if (index > 34 && index <= 37) {
  370. return { rowSpan: 0 };
  371. }
  372. if (index == 38) {
  373. return { rowSpan: 4 };
  374. } else if (index > 38 && index <= 41) {
  375. return { rowSpan: 0 };
  376. }
  377. if (index == 42) {
  378. return { rowSpan: 4 };
  379. } else if (index > 42 && index <= 45) {
  380. return { rowSpan: 0 };
  381. }
  382. },
  383. },
  384. {
  385. title: '指标',
  386. dataIndex: 'one',
  387. align: 'center',
  388. customCell: (_, index) => {
  389. if (index == 0) {
  390. return { rowSpan: 4 };
  391. } else if (index > 0 && index <= 3) {
  392. return { rowSpan: 0 };
  393. }
  394. if (index == 4) {
  395. return { rowSpan: 4 };
  396. } else if (index > 4 && index <= 7) {
  397. return { rowSpan: 0 };
  398. }
  399. if (index == 8) {
  400. return { rowSpan: 4 };
  401. } else if (index > 8 && index <= 11) {
  402. return { rowSpan: 0 };
  403. }
  404. if (index == 12) {
  405. return { rowSpan: 4 };
  406. } else if (index > 12 && index <= 15) {
  407. return { rowSpan: 0 };
  408. }
  409. if (index == 16) {
  410. return { rowSpan: 4 };
  411. } else if (index > 16 && index <= 19) {
  412. return { rowSpan: 0 };
  413. }
  414. if (index == 20) {
  415. return { rowSpan: 4 };
  416. } else if (index > 20 && index <= 23) {
  417. return { rowSpan: 0 };
  418. }
  419. if (index == 26) {
  420. return { rowSpan: 4 };
  421. } else if (index > 26 && index <= 29) {
  422. return { rowSpan: 0 };
  423. }
  424. if (index == 30) {
  425. return { rowSpan: 4 };
  426. } else if (index > 30 && index <= 33) {
  427. return { rowSpan: 0 };
  428. }
  429. if (index == 34) {
  430. return { rowSpan: 4 };
  431. } else if (index > 34 && index <= 37) {
  432. return { rowSpan: 0 };
  433. }
  434. if (index == 38) {
  435. return { rowSpan: 4 };
  436. } else if (index > 38 && index <= 41) {
  437. return { rowSpan: 0 };
  438. }
  439. if (index == 42) {
  440. return { rowSpan: 4 };
  441. } else if (index > 42 && index <= 45) {
  442. return { rowSpan: 0 };
  443. }
  444. },
  445. },
  446. {
  447. title: '预警级别',
  448. dataIndex: 'two',
  449. align: 'center',
  450. },
  451. {
  452. title: '阈值',
  453. align: 'center',
  454. dataIndex: 'three',
  455. },
  456. ])
  457. </script>
  458. <style lang="less" scoped>
  459. .warnTargetFire {
  460. width: 100%;
  461. height: 100%;
  462. padding: 20px;
  463. box-sizing: border-box;
  464. }
  465. </style>