warnTarget.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <template>
  2. <div class="warnTarget">
  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: '监测监控',
  18. two: '瓦斯涌出',
  19. three: '甲烷浓度',
  20. four: '甲烷传感器实时监测数据',
  21. },
  22. {
  23. key: '2',
  24. one: '监测监控',
  25. two: '瓦斯涌出',
  26. three: '甲烷浓度单班浮动',
  27. four: '一个班内甲烷浓度的最大变化量',
  28. },
  29. {
  30. key: '3',
  31. one: '监测监控',
  32. two: '瓦斯涌出',
  33. three: '甲烷浓度邻班浮动',
  34. four: '上下两个班次甲烷浓度的浮动变化量',
  35. },
  36. {
  37. key: '4',
  38. one: '监测监控',
  39. two: '瓦斯涌出',
  40. three: '滑动平均值',
  41. four: '最近一定时长范围内甲烷浓度的平均值',
  42. },
  43. {
  44. key: '5',
  45. one: '监测监控',
  46. two: '瓦斯涌出',
  47. three: '离散率',
  48. four: '反映瓦斯涌出的数据波动特征',
  49. },
  50. {
  51. key: '6',
  52. one: '监测监控',
  53. two: '瓦斯涌出',
  54. three: '变化率',
  55. four: '反映瓦斯涌出的数据演化趋势',
  56. },
  57. {
  58. key: '7',
  59. one: '监测监控',
  60. two: '瓦斯涌出',
  61. three: '异常持续时间',
  62. four: '反映一定时长范围内瓦斯异常涌出的频次',
  63. },
  64. {
  65. key: '8',
  66. one: '监测监控',
  67. two: '瓦斯涌出',
  68. three: '二氧化碳浓度',
  69. four: '二氧化碳传感器实时监测数据',
  70. },
  71. {
  72. key: '9',
  73. one: '监测监控',
  74. two: '瓦斯涌出',
  75. three: '风速',
  76. four: '风速传感器实时监测数据',
  77. },
  78. {
  79. key: '10',
  80. one: '监测监控',
  81. two: '瓦斯涌出',
  82. three: '风量',
  83. four: '巷道风量的实时监测数据',
  84. },
  85. {
  86. key: '11',
  87. one: '监测监控',
  88. two: '瓦斯涌出',
  89. three: '瓦斯涌出量',
  90. four: '工作面瓦斯涌出量实时监测数据',
  91. },
  92. {
  93. key: '12',
  94. one: '监测监控',
  95. two: '瓦斯涌出',
  96. three: '吨煤瓦斯涌出量',
  97. four: '一段时间内工作面吨煤瓦斯涌出量',
  98. },
  99. {
  100. key: '13',
  101. one: '监测监控',
  102. two: '瓦斯涌出',
  103. three: '炮后吨煤瓦斯涌出量V30',
  104. four: '炮后30min内工作面吨煤瓦斯涌出量',
  105. },
  106. {
  107. key: '14',
  108. one: '监测监控',
  109. two: '瓦斯抽采',
  110. three: '采空区抽采纯量',
  111. four: '采空区瓦斯抽采纯量实时监测数据',
  112. },
  113. {
  114. key: '15',
  115. one: '监测监控',
  116. two: '瓦斯抽采',
  117. three: '采空区抽采量(班)',
  118. four: '一个班内采空区瓦斯累计抽采量',
  119. },
  120. {
  121. key: '16',
  122. one: '监测监控',
  123. two: '瓦斯抽采',
  124. three: '残余瓦斯含量(抽采计算)',
  125. four: '根据煤层瓦斯抽采量计算的煤层残余瓦斯含量',
  126. },
  127. {
  128. key: '17',
  129. one: '监测监控',
  130. two: '气压变化',
  131. three: '平均风压',
  132. four: '单位时间内风压数据的平均值',
  133. },
  134. {
  135. key: '18',
  136. one: '监测监控',
  137. two: '气压变化',
  138. three: '最低风压',
  139. four: '单位时间内风压数据的最小值',
  140. },
  141. {
  142. key: '19',
  143. one: '监测监控',
  144. two: '气压变化',
  145. three: '风压极差',
  146. four: '单位时间内风压数据的最大变化量',
  147. },
  148. {
  149. key: '20',
  150. one: '瓦斯地质',
  151. two: '瓦斯赋存',
  152. three: '原始瓦斯含量',
  153. four: '/',
  154. },
  155. {
  156. key: '21',
  157. one: '瓦斯地质',
  158. two: '瓦斯赋存',
  159. three: '残余瓦斯含量',
  160. four: '/',
  161. },
  162. {
  163. key: '22',
  164. one: '瓦斯地质',
  165. two: '瓦斯赋存',
  166. three: '可解吸瓦斯含量',
  167. four: '/',
  168. },
  169. {
  170. key: '23',
  171. one: '瓦斯地质',
  172. two: '瓦斯赋存',
  173. three: '瓦斯压力',
  174. four: '/',
  175. },
  176. {
  177. key: '24',
  178. one: '瓦斯地质',
  179. two: '煤层赋存',
  180. three: '煤层厚度',
  181. four: '/',
  182. },
  183. {
  184. key: '25',
  185. one: '瓦斯地质',
  186. two: '煤层赋存',
  187. three: '厚度变化',
  188. four: '/',
  189. },
  190. {
  191. key: '26',
  192. one: '瓦斯地质',
  193. two: '煤层赋存',
  194. three: '煤层倾角',
  195. four: '/',
  196. },
  197. {
  198. key: '27',
  199. one: '瓦斯地质',
  200. two: '煤层赋存',
  201. three: '倾角变化',
  202. four: '/',
  203. },
  204. {
  205. key: '28',
  206. one: '瓦斯地质',
  207. two: '地质构造',
  208. three: '构造类型',
  209. four: '/',
  210. },
  211. {
  212. key: '29',
  213. one: '瓦斯地质',
  214. two: '地质构造',
  215. three: '构造距离',
  216. four: '工作面距地质构造的距离',
  217. },
  218. {
  219. key: '30',
  220. one: '采掘生产',
  221. two: '采掘强度',
  222. three: '煤机运行时长(回采)',
  223. four: '单位时间内采煤机运行的时间长度',
  224. },
  225. {
  226. key: '31',
  227. one: '采掘生产',
  228. two: '采掘强度',
  229. three: '煤机运行时长(掘进)',
  230. four: '单位时间内掘进机运行的时间长度',
  231. },
  232. {
  233. key: '32',
  234. one: '采掘生产',
  235. two: '采掘强度',
  236. three: '煤机最大速度',
  237. four: '单位时间内煤机运行速度的最大值',
  238. },
  239. {
  240. key: '33',
  241. one: '采掘生产',
  242. two: '采掘强度',
  243. three: '煤机平均速度',
  244. four: '单位时间内煤机运行速度的平均値',
  245. },
  246. {
  247. key: '34',
  248. one: '采掘生产',
  249. two: '采掘进尺',
  250. three: '割煤刀数(班)',
  251. four: '/',
  252. },
  253. {
  254. key: '35',
  255. one: '采掘生产',
  256. two: '采掘进尺',
  257. three: '进尺(班)',
  258. four: '/',
  259. },
  260. {
  261. key: '36',
  262. one: '采掘生产',
  263. two: '采掘进尺',
  264. three: '割煤刀数(天)',
  265. four: '/',
  266. },
  267. {
  268. key: '37',
  269. one: '采掘生产',
  270. two: '采掘进尺',
  271. three: '进尺(天)',
  272. four: '/',
  273. },
  274. {
  275. key: '37',
  276. one: '采掘生产',
  277. two: '周期来压',
  278. three: '周期来压判识结果',
  279. four: '/',
  280. },
  281. ])
  282. let columns = reactive([
  283. {
  284. title: '序号',
  285. width: 60,
  286. align: 'center',
  287. customRender: ({ index }: { index: number }) => `${index + 1}`
  288. },
  289. {
  290. title: '一级指标',
  291. dataIndex: 'one',
  292. align: 'center',
  293. customCell: (_, index) => {
  294. if (index == 0) {
  295. return { rowSpan: 19 };
  296. } else if (index > 0 && index <= 18) {
  297. return { rowSpan: 0 };
  298. }
  299. if (index == 19) {
  300. return { rowSpan: 10 };
  301. } else if (index > 19 && index <= 28) {
  302. return { rowSpan: 0 };
  303. }
  304. if (index == 29) {
  305. return { rowSpan: 9 };
  306. } else if (index > 29 && index <= 37) {
  307. return { rowSpan: 0 };
  308. }
  309. },
  310. },
  311. {
  312. title: '二级指标',
  313. dataIndex: 'two',
  314. align: 'center',
  315. customCell: (_, index) => {
  316. if (index == 0) {
  317. return { rowSpan: 13 };
  318. } else if (index > 0 && index <= 12) {
  319. return { rowSpan: 0 };
  320. }
  321. if (index == 13) {
  322. return { rowSpan: 3 };
  323. } else if (index > 13 && index <= 15) {
  324. return { rowSpan: 0 };
  325. }
  326. if (index == 16) {
  327. return { rowSpan: 3 };
  328. } else if (index > 16 && index <= 18) {
  329. return { rowSpan: 0 };
  330. }
  331. if (index == 19) {
  332. return { rowSpan: 4 };
  333. } else if (index > 19 && index <= 22) {
  334. return { rowSpan: 0 };
  335. }
  336. if (index == 23) {
  337. return { rowSpan: 4 };
  338. } else if (index > 23 && index <= 26) {
  339. return { rowSpan: 0 };
  340. }
  341. if (index == 27) {
  342. return { rowSpan: 2 };
  343. } else if (index > 26 && index <= 28) {
  344. return { rowSpan: 0 };
  345. }
  346. if (index == 29) {
  347. return { rowSpan: 4 };
  348. } else if (index > 29 && index <= 32) {
  349. return { rowSpan: 0 };
  350. }
  351. if (index == 33) {
  352. return { rowSpan: 4 };
  353. } else if (index > 33 && index <= 36) {
  354. return { rowSpan: 0 };
  355. }
  356. },
  357. },
  358. {
  359. title: '三级指标',
  360. align: 'center',
  361. dataIndex: 'three',
  362. },
  363. {
  364. title: '四级指标',
  365. dataIndex: 'four',
  366. align: 'center',
  367. },
  368. ])
  369. </script>
  370. <style lang="less" scoped>
  371. .warnTarget {
  372. width: 100%;
  373. height: 100%;
  374. padding: 20px;
  375. box-sizing: border-box;
  376. }
  377. </style>