algorithm.data.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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: 'deptId',
  70. component: 'MineCascader',
  71. colProps: { span: 6 },
  72. },
  73. ];
  74. export const limitationModel = {
  75. ch4Val: {
  76. alarmField: 'ch4Val',
  77. lowerLimit: undefined,
  78. upperLimit: undefined,
  79. },
  80. o2Val: {
  81. alarmField: 'o2Val',
  82. lowerLimit: undefined,
  83. upperLimit: undefined,
  84. },
  85. coVal: {
  86. alarmField: 'coVal',
  87. lowerLimit: undefined,
  88. upperLimit: undefined,
  89. },
  90. co2Val: {
  91. alarmField: 'co2Val',
  92. lowerLimit: undefined,
  93. upperLimit: undefined,
  94. },
  95. c2h4Val: {
  96. alarmField: 'c2h4Val',
  97. lowerLimit: undefined,
  98. upperLimit: undefined,
  99. },
  100. c2h2Val: {
  101. alarmField: 'c2h2Val',
  102. lowerLimit: undefined,
  103. upperLimit: undefined,
  104. },
  105. sourcePressure: {
  106. alarmField: 'sourcePressure',
  107. lowerLimit: undefined,
  108. upperLimit: undefined,
  109. },
  110. temperature: {
  111. alarmField: 'temperature',
  112. lowerLimit: undefined,
  113. upperLimit: undefined,
  114. },
  115. };
  116. export const schemasGoafInfo: FormSchema[] = [
  117. {
  118. field: 'id',
  119. label: 'ID',
  120. labelWidth: 118,
  121. component: 'Input',
  122. show: false,
  123. // colProps: { span: 12 },
  124. },
  125. {
  126. field: 'fireAirTemperature',
  127. label: '气温',
  128. labelWidth: 118,
  129. component: 'Input',
  130. // colProps: { span: 12 },
  131. },
  132. {
  133. field: 'fireWaterTemperature',
  134. label: '水温',
  135. labelWidth: 118,
  136. component: 'Input',
  137. // colProps: { span: 12 },
  138. },
  139. {
  140. field: 'size',
  141. label: '尺寸',
  142. labelWidth: 118,
  143. component: 'Input',
  144. // colProps: { span: 12 },
  145. },
  146. {
  147. field: 'material',
  148. label: '材质',
  149. labelWidth: 118,
  150. component: 'Input',
  151. // colProps: { span: 12 },
  152. },
  153. {
  154. field: 'strucure',
  155. label: '结构',
  156. labelWidth: 118,
  157. component: 'Input',
  158. // colProps: { span: 12 },
  159. },
  160. {
  161. field: 'area',
  162. label: '采区',
  163. labelWidth: 118,
  164. component: 'Input',
  165. // colProps: { span: 12 },
  166. },
  167. {
  168. field: 'person',
  169. label: '负责人',
  170. labelWidth: 118,
  171. component: 'Input',
  172. // colProps: { span: 12 },
  173. },
  174. ];
  175. export const schemasGoafLimit: FormSchema[] = [
  176. {
  177. // 甲烷
  178. field: 'ch4Val',
  179. label: 'CH4(%)',
  180. labelWidth: 118,
  181. component: 'Input',
  182. slot: 'InputRangeGoaf',
  183. defaultValue: limitationModel.ch4Val,
  184. /** 借用 */
  185. groupName: '下限 - 上限',
  186. colProps: { span: 12 },
  187. },
  188. {
  189. // 氧气
  190. field: 'o2Val',
  191. label: 'O2(%)',
  192. labelWidth: 118,
  193. component: 'Input',
  194. slot: 'InputRangeGoaf',
  195. defaultValue: limitationModel.o2Val,
  196. /** 借用 */
  197. groupName: '下限 - 上限',
  198. colProps: { span: 12 },
  199. },
  200. {
  201. // 一氧化碳
  202. field: 'coVal',
  203. label: 'CO(ppm)',
  204. labelWidth: 118,
  205. component: 'Input',
  206. slot: 'InputRangeGoaf',
  207. defaultValue: limitationModel.coVal,
  208. /** 借用 */
  209. groupName: '下限 - 上限',
  210. colProps: { span: 12 },
  211. },
  212. {
  213. // 二氧化碳
  214. field: 'co2Val',
  215. label: 'CO2(%)',
  216. labelWidth: 118,
  217. component: 'Input',
  218. slot: 'InputRangeGoaf',
  219. defaultValue: limitationModel.co2Val,
  220. /** 借用 */
  221. groupName: '下限 - 上限',
  222. colProps: { span: 12 },
  223. },
  224. {
  225. // 乙烯
  226. field: 'c2h4Val',
  227. label: 'C2H4(ppm)',
  228. labelWidth: 118,
  229. component: 'Input',
  230. slot: 'InputRangeGoaf',
  231. defaultValue: limitationModel.c2h4Val,
  232. /** 借用 */
  233. groupName: '下限 - 上限',
  234. colProps: { span: 12 },
  235. },
  236. {
  237. // 乙炔
  238. field: 'c2h2Val',
  239. label: 'C2H2(ppm)',
  240. labelWidth: 118,
  241. component: 'Input',
  242. slot: 'InputRangeGoaf',
  243. defaultValue: limitationModel.c2h2Val,
  244. /** 借用 */
  245. groupName: '下限 - 上限',
  246. colProps: { span: 12 },
  247. },
  248. {
  249. field: 'sourcePressure',
  250. label: '压差(Pa)',
  251. labelWidth: 118,
  252. component: 'Input',
  253. slot: 'InputRangeGoaf',
  254. defaultValue: limitationModel.sourcePressure,
  255. /** 借用 */
  256. groupName: '下限 - 上限',
  257. colProps: { span: 12 },
  258. },
  259. {
  260. field: 'temperature',
  261. label: '温度(℃)',
  262. labelWidth: 118,
  263. component: 'Input',
  264. slot: 'InputRangeGoaf',
  265. defaultValue: limitationModel.temperature,
  266. /** 借用 */
  267. groupName: '下限 - 上限',
  268. colProps: { span: 12 },
  269. },
  270. ];
  271. export const schemasCoalExpression: FormSchema[] = [
  272. // "mineCode": null,
  273. // "coalSeamId": null,
  274. {
  275. label: 'ID',
  276. field: 'id',
  277. show: false,
  278. component: 'Input',
  279. },
  280. {
  281. label: '规则名称:',
  282. field: 'ruleName',
  283. labelWidth: 140,
  284. component: 'Input',
  285. colProps: { span: 24 },
  286. },
  287. {
  288. field: 'm1',
  289. label: '密闭墙内外压差变化风险提示模型',
  290. // labelWidth: 140,
  291. component: 'Divider',
  292. },
  293. {
  294. field: 'ycWarn1',
  295. label: '预警等级(Ⅰ):',
  296. labelWidth: 140,
  297. component: 'Input',
  298. slot: 'relation',
  299. // required: true,
  300. },
  301. {
  302. field: 'ycWarn2',
  303. label: '预警等级(Ⅱ):',
  304. labelWidth: 140,
  305. component: 'Input',
  306. slot: 'relation',
  307. },
  308. {
  309. field: 'ycWarn3',
  310. label: '预警等级(Ⅲ):',
  311. labelWidth: 140,
  312. component: 'Input',
  313. slot: 'relation',
  314. },
  315. {
  316. field: 'ycWarn4',
  317. label: '预警等级(Ⅳ):',
  318. labelWidth: 140,
  319. component: 'Input',
  320. slot: 'relation',
  321. },
  322. {
  323. field: 'm2',
  324. label: '密闭墙内煤自燃发火隐患分级预警模型',
  325. // labelWidth: 140,
  326. component: 'Divider',
  327. },
  328. {
  329. field: 'fireWarn1',
  330. label: '预警等级(Ⅰ):',
  331. suffix: '',
  332. labelWidth: 140,
  333. component: 'Input',
  334. slot: 'relation',
  335. },
  336. {
  337. field: 'fireWarn2',
  338. label: '预警等级(Ⅱ):',
  339. suffix: '',
  340. labelWidth: 140,
  341. component: 'Input',
  342. slot: 'relation',
  343. },
  344. {
  345. field: 'fireWarn3',
  346. label: '预警等级(Ⅲ):',
  347. suffix: '',
  348. labelWidth: 140,
  349. component: 'Input',
  350. slot: 'relation',
  351. },
  352. {
  353. field: 'fireWarn4',
  354. label: '预警等级(Ⅳ):',
  355. suffix: '',
  356. labelWidth: 140,
  357. component: 'Input',
  358. slot: 'relation',
  359. },
  360. {
  361. field: 'm3',
  362. label: '密闭墙外煤自燃发火隐患分级预警模型',
  363. // labelWidth: 140,
  364. component: 'Divider',
  365. },
  366. {
  367. field: 'fireOutWarn1',
  368. label: '预警等级(Ⅰ):',
  369. labelWidth: 140,
  370. component: 'Input',
  371. slot: 'relation',
  372. },
  373. {
  374. field: 'fireOutWarn2',
  375. label: '预警等级(Ⅱ):',
  376. labelWidth: 140,
  377. component: 'Input',
  378. slot: 'relation',
  379. },
  380. {
  381. field: 'fireOutWarn3',
  382. label: '预警等级(Ⅲ):',
  383. labelWidth: 140,
  384. component: 'Input',
  385. slot: 'relation',
  386. },
  387. {
  388. field: 'fireOutWarn4',
  389. label: '预警等级(Ⅳ):',
  390. labelWidth: 140,
  391. component: 'Input',
  392. slot: 'relation',
  393. },
  394. {
  395. field: 'openWarn',
  396. label: '火区密闭启封判定:',
  397. labelWidth: 140,
  398. component: 'Input',
  399. slot: 'relation',
  400. },
  401. ];
  402. export const schemasCoalLimit: FormSchema[] = [
  403. {
  404. // 甲烷
  405. field: 'ch4Val',
  406. label: 'CH4(%)',
  407. labelWidth: 118,
  408. component: 'Input',
  409. slot: 'InputRangeGoaf',
  410. defaultValue: limitationModel.ch4Val,
  411. /** 借用 */
  412. groupName: '下限 - 上限',
  413. colProps: { span: 12 },
  414. },
  415. {
  416. // 氧气
  417. field: 'o2Val',
  418. label: 'O2(%)',
  419. labelWidth: 118,
  420. component: 'Input',
  421. slot: 'InputRangeGoaf',
  422. defaultValue: limitationModel.o2Val,
  423. /** 借用 */
  424. groupName: '下限 - 上限',
  425. colProps: { span: 12 },
  426. },
  427. {
  428. // 一氧化碳
  429. field: 'coVal',
  430. label: 'CO(ppm)',
  431. labelWidth: 118,
  432. component: 'Input',
  433. slot: 'InputRangeGoaf',
  434. defaultValue: limitationModel.coVal,
  435. /** 借用 */
  436. groupName: '下限 - 上限',
  437. colProps: { span: 12 },
  438. },
  439. {
  440. // 二氧化碳
  441. field: 'co2Val',
  442. label: 'CO2(%)',
  443. labelWidth: 118,
  444. component: 'Input',
  445. slot: 'InputRangeGoaf',
  446. defaultValue: limitationModel.co2Val,
  447. /** 借用 */
  448. groupName: '下限 - 上限',
  449. colProps: { span: 12 },
  450. },
  451. {
  452. // 乙烯
  453. field: 'c2h4Val',
  454. label: 'C2H4(ppm)',
  455. labelWidth: 118,
  456. component: 'Input',
  457. slot: 'InputRangeGoaf',
  458. defaultValue: limitationModel.c2h4Val,
  459. /** 借用 */
  460. groupName: '下限 - 上限',
  461. colProps: { span: 12 },
  462. },
  463. {
  464. // 乙炔
  465. field: 'c2h2Val',
  466. label: 'C2H2(ppm)',
  467. labelWidth: 118,
  468. component: 'Input',
  469. slot: 'InputRangeGoaf',
  470. defaultValue: limitationModel.c2h2Val,
  471. /** 借用 */
  472. groupName: '下限 - 上限',
  473. colProps: { span: 12 },
  474. },
  475. {
  476. field: 'sourcePressure',
  477. label: '压差(Pa)',
  478. labelWidth: 118,
  479. component: 'Input',
  480. slot: 'InputRangeGoaf',
  481. defaultValue: limitationModel.sourcePressure,
  482. /** 借用 */
  483. groupName: '下限 - 上限',
  484. colProps: { span: 12 },
  485. },
  486. {
  487. field: 'temperature',
  488. label: '温度(℃)',
  489. labelWidth: 118,
  490. component: 'Input',
  491. slot: 'InputRangeGoaf',
  492. defaultValue: limitationModel.temperature,
  493. /** 借用 */
  494. groupName: '下限 - 上限',
  495. colProps: { span: 12 },
  496. },
  497. ];