algorithm.data.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. import { h } from 'vue';
  2. import { FormSchema } from '/@/components/Form';
  3. import { BasicColumn } from '/@/components/Table';
  4. import { Tag } from 'ant-design-vue';
  5. import { options } from '../../monitor/mynews/XssWhiteList';
  6. const goafAlarmOptions = [
  7. { value: 'ch4Val', label: '甲烷' },
  8. { value: 'o2Val', label: '氧气' },
  9. { value: 'coVal', label: '一氧化碳' },
  10. { value: 'co2Val', label: '二氧化碳' },
  11. { value: 'c2h4Val', label: '乙烯' },
  12. { value: 'c2h2Val', label: '乙炔' },
  13. { value: 'sourcePressure', label: '压差' },
  14. { value: 'temperature', label: '温度' },
  15. ];
  16. /** 煤层预警参数 表格配置 */
  17. export const columnsCoalAlarm: BasicColumn[] = [
  18. {
  19. title: '煤矿名称',
  20. dataIndex: 'mineName',
  21. width: 400,
  22. },
  23. {
  24. title: '煤层名称',
  25. dataIndex: 'coalSeamName',
  26. },
  27. {
  28. title: '创建时间',
  29. dataIndex: 'createTime',
  30. },
  31. /* {
  32. title: '职务',
  33. dataIndex: 'post',
  34. width: 150,
  35. slots: { customRender: 'post' },
  36. },*/
  37. ];
  38. /** 采空区超限 表格配置 */
  39. export const columnsGoafLimit: BasicColumn[] = [
  40. {
  41. title: '采空区名称',
  42. dataIndex: 'devicePos',
  43. width: 400,
  44. },
  45. {
  46. title: '气温',
  47. dataIndex: 'fireAirTemperature',
  48. },
  49. {
  50. title: '水温',
  51. dataIndex: 'fireWaterTemperature',
  52. },
  53. {
  54. title: '状态',
  55. dataIndex: 'status',
  56. customRender({ text }) {
  57. return h(
  58. Tag,
  59. {
  60. color: text == 1 ? 'success' : 'error',
  61. },
  62. text == 1 ? '正常' : '异常'
  63. );
  64. },
  65. },
  66. {
  67. title: '创建时间',
  68. dataIndex: 'createTime',
  69. },
  70. ];
  71. export const searchFormSchema: FormSchema[] = [
  72. {
  73. label: '煤矿名称',
  74. field: 'mineCode',
  75. component: 'MineCascader',
  76. colProps: { span: 6 },
  77. },
  78. ];
  79. export const schemasCoalAlarm: FormSchema[] = [
  80. // "mineCode": null,
  81. // "coalSeamId": null,
  82. {
  83. label: 'ID',
  84. field: 'id',
  85. show: false,
  86. component: 'Input',
  87. },
  88. {
  89. label: '规则名称:',
  90. field: 'ruleName',
  91. labelWidth: 118,
  92. component: 'Input',
  93. colProps: { span: 24 },
  94. },
  95. {
  96. field: 'm1',
  97. label: '密闭内外压差变化风险提示模型',
  98. // labelWidth: 110,
  99. component: 'Divider',
  100. },
  101. {
  102. field: 'ycWarn1',
  103. label: '预警等级(Ⅰ):',
  104. labelWidth: 118,
  105. component: 'Input',
  106. slot: 'InputRangeNumber',
  107. /** 借用 */
  108. groupName: '<= 绝对压差变化(%) <=',
  109. colProps: { span: 12 },
  110. },
  111. { field: 'ycWarn1Start', label: '', show: false, component: 'Input' },
  112. { field: 'ycWarn1End', label: '', show: false, component: 'Input' },
  113. {
  114. field: 'ycWarn2',
  115. label: '预警等级(Ⅱ):',
  116. labelWidth: 118,
  117. component: 'Input',
  118. slot: 'InputRangeNumber',
  119. /** 借用 */
  120. groupName: '<= 绝对压差变化(%) <=',
  121. colProps: { span: 12 },
  122. },
  123. { field: 'ycWarn2Start', label: '', show: false, component: 'Input' },
  124. { field: 'ycWarn2End', label: '', show: false, component: 'Input' },
  125. {
  126. field: 'ycWarn3',
  127. label: '预警等级(Ⅲ):',
  128. labelWidth: 118,
  129. component: 'Input',
  130. slot: 'InputRangeNumber',
  131. /** 借用 */
  132. groupName: '<= 绝对压差变化(%) <=',
  133. colProps: { span: 12 },
  134. },
  135. { field: 'ycWarn3Start', label: '', show: false, component: 'Input' },
  136. { field: 'ycWarn3End', label: '', show: false, component: 'Input' },
  137. {
  138. field: 'ycWarn4',
  139. label: '预警等级(Ⅳ):',
  140. labelWidth: 118,
  141. component: 'Input',
  142. slot: 'InputGreaterNumber',
  143. /** 借用 */
  144. groupName: ' 绝对压差变化(%) <=',
  145. colProps: { span: 12 },
  146. },
  147. // { field: 'ycWarn4', label: '', show: false, component: 'Input' },
  148. {
  149. field: 'm2',
  150. label: '煤自然发火隐患分级预警模型',
  151. // labelWidth: 110,
  152. component: 'Divider',
  153. },
  154. {
  155. field: 'fireWarn1CoRzl',
  156. label: '预警等级(Ⅰ):',
  157. labelWidth: 118,
  158. component: 'Input',
  159. slot: 'InputGreaterNumber',
  160. /** 借用 */
  161. groupName: ' CO日增率(%) <=',
  162. colProps: { span: 12 },
  163. },
  164. // { field: 'fireWarn1CoRzl', label: '', show: false, component: 'Input' },
  165. {
  166. field: 'fireWarn1CoZf',
  167. label: ' ',
  168. suffix: '',
  169. labelWidth: 118,
  170. component: 'Input',
  171. slot: 'InputGreaterNumber',
  172. /** 借用 */
  173. groupName: ' CO增幅(μ) <=',
  174. colProps: { span: 12 },
  175. },
  176. // { field: 'fireWarn1CoZf', label: '', show: false, component: 'Input' },
  177. {
  178. field: 'fireWarn1CoNd',
  179. label: ' ',
  180. suffix: '',
  181. labelWidth: 118,
  182. component: 'Input',
  183. slot: 'InputGreaterNumber',
  184. /** 借用 */
  185. groupName: ' CO浓度(ppm) <=',
  186. colProps: { span: 12 },
  187. },
  188. // { field: 'fireWarn1CoNd', label: '', show: false, component: 'Input' },
  189. {
  190. field: 'fireWarn1O2',
  191. label: ' ',
  192. suffix: '',
  193. labelWidth: 118,
  194. component: 'Input',
  195. slot: 'InputGreaterNumber',
  196. /** 借用 */
  197. groupName: ' O2(%) <=',
  198. colProps: { span: 12 },
  199. },
  200. // { field: 'fireWarn1O2', label: '', show: false, component: 'Input' },
  201. {
  202. field: 'fireWarn1T',
  203. label: ' ',
  204. suffix: '',
  205. labelWidth: 118,
  206. component: 'Input',
  207. slot: 'InputGreaterNumber',
  208. /** 借用 */
  209. groupName: ' T-μT(℃) <',
  210. colProps: { span: 12 },
  211. },
  212. // { field: 'fireWarn1T', label: '', show: false, component: 'Input' },
  213. {
  214. field: 'fireWarn1Co2',
  215. label: ' ',
  216. suffix: '',
  217. labelWidth: 118,
  218. component: 'Input',
  219. slot: 'InputGreaterNumber',
  220. /** 借用 */
  221. groupName: ' CO2(%) <=',
  222. colProps: { span: 12 },
  223. },
  224. // { field: 'fireWarn1Co2', label: '', show: false, component: 'Input' },
  225. {
  226. field: 'fireWarn2CoRzl',
  227. label: '预警等级(Ⅱ):',
  228. labelWidth: 118,
  229. component: 'Input',
  230. slot: 'InputRangeNumber',
  231. /** 借用 */
  232. groupName: '< CO日增率(%) <=',
  233. colProps: { span: 12 },
  234. },
  235. { field: 'fireWarn2CoRzlStart', label: '', show: false, component: 'Input' },
  236. { field: 'fireWarn2CoRzlEnd', label: '', show: false, component: 'Input' },
  237. {
  238. field: 'fireWarn2CoZf',
  239. label: ' ',
  240. suffix: '',
  241. labelWidth: 118,
  242. component: 'Input',
  243. slot: 'InputRangeNumber',
  244. /** 借用 */
  245. groupName: '< CO增幅(μ) <=',
  246. colProps: { span: 12 },
  247. },
  248. { field: 'fireWarn2CoZfStart', label: '', show: false, component: 'Input' },
  249. { field: 'fireWarn2CoZfEnd', label: '', show: false, component: 'Input' },
  250. {
  251. field: 'fireWarn2CoNd',
  252. label: ' ',
  253. suffix: '',
  254. labelWidth: 118,
  255. component: 'Input',
  256. slot: 'InputRangeNumber',
  257. /** 借用 */
  258. groupName: '< CO浓度(ppm) <=',
  259. colProps: { span: 12 },
  260. },
  261. { field: 'fireWarn2CoNdStart', label: '', show: false, component: 'Input' },
  262. { field: 'fireWarn2CoNdEnd', label: '', show: false, component: 'Input' },
  263. {
  264. field: 'fireWarn2T',
  265. label: ' ',
  266. suffix: '',
  267. labelWidth: 118,
  268. component: 'Input',
  269. slot: 'InputRangeNumber',
  270. /** 借用 */
  271. groupName: '<= T-μT(℃) <=',
  272. colProps: { span: 12 },
  273. },
  274. { field: 'fireWarn2TStart', label: '', show: false, component: 'Input' },
  275. { field: 'fireWarn2TEnd', label: '', show: false, component: 'Input' },
  276. {
  277. field: 'fireWarn2Co2',
  278. label: ' ',
  279. suffix: '',
  280. labelWidth: 118,
  281. component: 'Input',
  282. slot: 'InputGreaterNumber',
  283. /** 借用 */
  284. groupName: ' CO2(%) <',
  285. colProps: { span: 12, style: 'margin-right: 1px' },
  286. },
  287. {
  288. field: 'fireWarn3CoRzl',
  289. label: '预警等级(Ⅲ):',
  290. labelWidth: 118,
  291. component: 'Input',
  292. slot: 'InputRangeNumber',
  293. /** 借用 */
  294. groupName: '< CO日增率(%) <=',
  295. colProps: { span: 12 },
  296. },
  297. { field: 'fireWarn3CoRzlStart', label: '', show: false, component: 'Input' },
  298. { field: 'fireWarn3CoRzlEnd', label: '', show: false, component: 'Input' },
  299. {
  300. field: 'fireWarn3CoZf',
  301. label: ' ',
  302. suffix: '',
  303. labelWidth: 118,
  304. component: 'Input',
  305. slot: 'InputRangeNumber',
  306. /** 借用 */
  307. groupName: '< CO增幅(μ) <=',
  308. colProps: { span: 12 },
  309. },
  310. { field: 'fireWarn3CoZfStart', label: '', show: false, component: 'Input' },
  311. { field: 'fireWarn3CoZfEnd', label: '', show: false, component: 'Input' },
  312. {
  313. field: 'fireWarn3CoNd',
  314. label: ' ',
  315. suffix: '',
  316. labelWidth: 118,
  317. component: 'Input',
  318. slot: 'InputRangeNumber',
  319. /** 借用 */
  320. groupName: '<= CO浓度(ppm) <=',
  321. colProps: { span: 12 },
  322. },
  323. { field: 'fireWarn3CoNdStart', label: '', show: false, component: 'Input' },
  324. { field: 'fireWarn3CoNdEnd', label: '', show: false, component: 'Input' },
  325. {
  326. field: 'fireWarn3T',
  327. label: ' ',
  328. suffix: '',
  329. labelWidth: 118,
  330. component: 'Input',
  331. slot: 'InputRangeNumber',
  332. /** 借用 */
  333. groupName: '< T-μT(℃) <=',
  334. colProps: { span: 12 },
  335. },
  336. { field: 'fireWarn3TStart', label: '', show: false, component: 'Input' },
  337. { field: 'fireWarn3TEnd', label: '', show: false, component: 'Input' },
  338. {
  339. field: 'fireWarn3Co2',
  340. label: ' ',
  341. suffix: '',
  342. labelWidth: 118,
  343. component: 'Input',
  344. slot: 'InputGreaterNumber',
  345. /** 借用 */
  346. groupName: ' CO2(%) <',
  347. colProps: { span: 12, style: 'margin-right: 1px' },
  348. },
  349. {
  350. field: 'fireWarn4CoRzl',
  351. label: '预警等级(Ⅳ):',
  352. labelWidth: 118,
  353. component: 'Input',
  354. slot: 'InputLowerNumber',
  355. /** 借用 */
  356. groupName: '< CO日增率(%) ',
  357. colProps: { span: 12 },
  358. },
  359. // { field: 'fireWarn4CoRzl', label: '', show: false, component: 'Input' },
  360. {
  361. field: 'fireWarn4CoZf',
  362. label: ' ',
  363. suffix: '',
  364. labelWidth: 118,
  365. component: 'Input',
  366. slot: 'InputLowerNumber',
  367. /** 借用 */
  368. groupName: '< CO增幅(μ) ',
  369. colProps: { span: 12 },
  370. },
  371. // { field: 'fireWarn4CoZf', label: '', show: false, component: 'Input' },
  372. {
  373. field: 'fireWarn4CoNd',
  374. label: ' ',
  375. suffix: '',
  376. labelWidth: 118,
  377. component: 'Input',
  378. slot: 'InputLowerNumber',
  379. /** 借用 */
  380. groupName: '< CO浓度(ppm) ',
  381. colProps: { span: 12 },
  382. },
  383. // { field: 'fireWarn4CoNd', label: '', show: false, component: 'Input' },
  384. {
  385. field: 'fireWarn4T',
  386. label: ' ',
  387. suffix: '',
  388. labelWidth: 118,
  389. component: 'Input',
  390. slot: 'InputLowerNumber',
  391. /** 借用 */
  392. groupName: '< T-μT(℃) ',
  393. colProps: { span: 12 },
  394. },
  395. // { field: 'fireWarn4T', label: '', show: false, component: 'Input' },
  396. {
  397. field: 'fireWarn4Co2',
  398. label: ' ',
  399. suffix: '',
  400. labelWidth: 118,
  401. component: 'Input',
  402. slot: 'InputLowerNumber',
  403. /** 借用 */
  404. groupName: '<= CO2(%) ',
  405. colProps: { span: 12 },
  406. },
  407. {
  408. field: 'm3',
  409. label: '火区密闭启封判定模型',
  410. // labelWidth: 110,
  411. component: 'Divider',
  412. },
  413. // { field: 'ycWarn4', label: '', show: false, component: 'Input' },
  414. {
  415. field: 'openWarn1',
  416. label: '预警等级(Ⅰ):',
  417. labelWidth: 118,
  418. component: 'Input',
  419. slot: 'InputGreaterNumber',
  420. /** 借用 */
  421. groupName: ' 空气温度(℃) <',
  422. colProps: { span: 12 },
  423. },
  424. {
  425. field: 'openWarn2',
  426. label: '预警等级(Ⅱ):',
  427. labelWidth: 118,
  428. component: 'Input',
  429. slot: 'InputGreaterNumber',
  430. /** 借用 */
  431. groupName: ' 氧气浓度(%) <',
  432. colProps: { span: 12 },
  433. },
  434. {
  435. field: 'openWarn3',
  436. label: '预警等级(Ⅲ):',
  437. labelWidth: 118,
  438. component: 'Input',
  439. slot: 'InputGreaterNumber',
  440. /** 借用 */
  441. groupName: ' 不含甲烷、乙烯、CO浓度(%) <',
  442. colProps: { span: 12 },
  443. },
  444. {
  445. field: 'openWarn4',
  446. label: '预警等级(Ⅳ):',
  447. labelWidth: 118,
  448. component: 'Input',
  449. slot: 'InputGreaterNumber',
  450. /** 借用 */
  451. groupName: ' 出水温度(℃) <',
  452. colProps: { span: 12 },
  453. },
  454. {
  455. field: 'openWarn5',
  456. label: '预警等级(Ⅴ):',
  457. labelWidth: 118,
  458. component: 'Input',
  459. slot: 'InputLowerNumber',
  460. /** 借用 */
  461. groupName: '< 指标稳定时长(天) ',
  462. colProps: { span: 12 },
  463. },
  464. ];
  465. export const schemasGoafLimit: FormSchema[] = [
  466. {
  467. label: 'ID',
  468. field: 'id',
  469. show: false,
  470. component: 'Input',
  471. },
  472. {
  473. label: '监测值:',
  474. field: 'alarmField',
  475. component: 'Select',
  476. componentProps: {
  477. options: goafAlarmOptions,
  478. },
  479. },
  480. {
  481. label: '下限值:',
  482. field: 'lowerLimit',
  483. component: 'InputNumber',
  484. },
  485. {
  486. label: '上限值:',
  487. field: 'upperLimit',
  488. component: 'InputNumber',
  489. },
  490. ];