algorithm.data.ts 14 KB

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