algorithm.data.ts 14 KB

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