billboard.data.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. import leftImg from '/@/assets/images/files/homes/file.svg';
  2. import rightImg from '/@/assets/images/files/homes/sp.svg';
  3. // export interface TITLE_CONFIG {
  4. // text: string;
  5. // prop: string;
  6. // translation?: Record<string | number, string>;
  7. // default: string;
  8. // }
  9. // export interface HEADER_CONFIG {
  10. // label: string;
  11. // prop: string;
  12. // translation?: Record<string | number, string>;
  13. // default: string;
  14. // }
  15. // export interface TABLE_CONFIG {
  16. // columns: { label: string; prop: string; _t?: boolean }[];
  17. // collapses: { label: string; prop: string; _t?: boolean }[];
  18. // translation?: Record<string | number, string>;
  19. // default: string;
  20. // }
  21. // export interface CONTENT_CONFIG {
  22. // src: string;
  23. // text: string;
  24. // prop: string;
  25. // }
  26. // export interface TREE_CONFIG {
  27. // translation?: Record<string | number, string>;
  28. // default: string;
  29. // prefix: string;
  30. // prop: string;
  31. // suffix: string;
  32. // children: {
  33. // prefix: string;
  34. // prop: string;
  35. // suffix: string;
  36. // }[];
  37. // }
  38. // /** 看板的总配置 */
  39. // export const BILLBOARD_CONFIG = {
  40. // DustStatus: {
  41. // title: {
  42. // text: '',
  43. // prop: '',
  44. // translation: {},
  45. // },
  46. // table: {
  47. // columns: [{ label: '', prop: '' }],
  48. // collapses: [{ label: '', prop: '' }],
  49. // translation: {},
  50. // },
  51. // },
  52. // FileOverview: {
  53. // content: [
  54. // { src: leftImg, text: '文档总数', prop: 'totalNum' },
  55. // { src: rightImg, text: '待审批数', prop: 'approvalNum' },
  56. // ],
  57. // },
  58. // FireStatus: {
  59. // title: {
  60. // text: '',
  61. // prop: '',
  62. // translation: {},
  63. // },
  64. // list: [
  65. // {
  66. // icon: '',
  67. // label: '',
  68. // prop: '',
  69. // type: '',
  70. // translation: {},
  71. // collapses: [{ label: '', prop: '' }],
  72. // },
  73. // ],
  74. // },
  75. // GasStatus: {
  76. // header: [
  77. // {
  78. // label: '',
  79. // prop: '',
  80. // translation: {},
  81. // },
  82. // ],
  83. // table: {
  84. // columns: [],
  85. // collapses: [],
  86. // translation: {},
  87. // },
  88. // },
  89. // Summary: {
  90. // header: [
  91. // {
  92. // label: '',
  93. // prop: '',
  94. // translation: {},
  95. // },
  96. // ],
  97. // table: {
  98. // columns: [],
  99. // translation: {},
  100. // },
  101. // },
  102. // VentilationStatus: {
  103. // header: [
  104. // {
  105. // label: '',
  106. // prop: '',
  107. // filte: '',
  108. // translation: {},
  109. // },
  110. // ],
  111. // tree: {
  112. // prefix: '',
  113. // prop: 'strname',
  114. // suffix: '',
  115. // children: [
  116. // {
  117. // prefix: '名称:',
  118. // prop: 'strinstallpos',
  119. // suffix: '',
  120. // },
  121. // {
  122. // prefix: '1号风机风量:',
  123. // prop: 'Fan1m3',
  124. // suffix: '(m³/min)',
  125. // },
  126. // {
  127. // prefix: '2号风机风量:',
  128. // prop: 'Fan2m3',
  129. // suffix: '(m³/min)',
  130. // },
  131. // {
  132. // prefix: '频率:',
  133. // prop: 'FanFreqHz',
  134. // suffix: 'Hz',
  135. // },
  136. // {
  137. // prefix: '三区阻力分布:',
  138. // prop: 'sqzlfb',
  139. // suffix: '',
  140. // },
  141. // ],
  142. // },
  143. // },
  144. // };
  145. // 基础的表格列配置,针对普通设备
  146. export const GAS_STATUS_COLUMN = [
  147. {
  148. name: '设备类型',
  149. prop: 'typeName',
  150. },
  151. {
  152. name: '监测数量',
  153. prop: 'num',
  154. },
  155. {
  156. name: '当前状态',
  157. prop: 'warnLevelStr',
  158. },
  159. ];
  160. /** 瓦斯监测表格的折叠项配置 */
  161. export const GAS_COLLAPSES = [
  162. {
  163. name: '最大值位置',
  164. prop: 'maxValueInstallPos',
  165. },
  166. {
  167. name: '最大值(%)',
  168. prop: 'maxValue',
  169. },
  170. ];
  171. // 粉尘状态模块表格列配置
  172. export const DUST_STATUS_COLUMN = [
  173. {
  174. name: '设备类型',
  175. prop: 'typeName',
  176. },
  177. {
  178. name: '监测数量',
  179. prop: 'num',
  180. },
  181. {
  182. name: '当前状态',
  183. prop: 'warnLevelStr',
  184. },
  185. ];
  186. /** 粉尘监测表格的折叠项配置 */
  187. export const DUST_COLLAPSES = [
  188. {
  189. name: '最大值位置',
  190. prop: 'maxValueInstallPos',
  191. },
  192. {
  193. name: '最大值(mg/m3)',
  194. prop: 'maxValue',
  195. },
  196. ];
  197. // 火灾状态监测相关的内容配置项
  198. export const FIRE_STATUS_LIST = [
  199. {
  200. icon: 'warning-optical-fiber',
  201. label: '光纤测温系统报警',
  202. prop: 'fiberInfo.warnLevel',
  203. collapses: [
  204. {
  205. name: '最大值位置',
  206. prop: 'fiberInfo.maxValueInstallPos',
  207. },
  208. {
  209. name: '最大值(℃)',
  210. prop: 'fiberInfo.maxValue',
  211. },
  212. ],
  213. },
  214. {
  215. icon: 'warning-tubes',
  216. label: '束管监测系统报警',
  217. prop: 'bundletubeInfo.warnLevel',
  218. collapses: [
  219. {
  220. name: '最大值位置',
  221. prop: 'bundletubeInfo.maxValueInstallPos',
  222. },
  223. {
  224. name: '一氧化碳最大值(ppm)',
  225. prop: 'bundletubeInfo.coval',
  226. },
  227. {
  228. name: 'CH2最大值(ppm)',
  229. prop: 'bundletubeInfo.ch2val',
  230. },
  231. {
  232. name: '氧气最大值(ppm)',
  233. prop: 'bundletubeInfo.o2val',
  234. },
  235. {
  236. name: 'CH最大值(ppm)',
  237. prop: 'bundletubeInfo.chval',
  238. },
  239. {
  240. name: '瓦斯最大值(%)',
  241. prop: 'bundletubeInfo.gasval',
  242. },
  243. {
  244. name: '二氧化碳最大值(ppm)',
  245. prop: 'bundletubeInfo.co2val',
  246. },
  247. ],
  248. },
  249. {
  250. icon: 'warning-smoke-2',
  251. label: '烟雾传感器报警',
  252. prop: 'smokeSensorInfo.warnLevel',
  253. collapses: [
  254. {
  255. name: '最大值位置',
  256. prop: 'smokeSensorInfo.maxValueInstallPos',
  257. },
  258. {
  259. name: '最大值(%)',
  260. prop: 'smokeSensorInfo.maxValue',
  261. },
  262. ],
  263. },
  264. {
  265. icon: 'warning-CO-2',
  266. label: 'CO传感器报警',
  267. prop: 'coSensorInfo.warnLevel',
  268. collapses: [
  269. {
  270. name: '最大值位置',
  271. prop: 'coSensorInfo.maxValueInstallPos',
  272. },
  273. {
  274. name: '最大值(ppm)',
  275. prop: 'coSensorInfo.maxValue',
  276. },
  277. ],
  278. },
  279. {
  280. icon: 'warning-temp',
  281. label: '温度传感器报警',
  282. prop: 'tempSensorInfo.warnLevel',
  283. collapses: [
  284. {
  285. name: '最大值位置',
  286. prop: 'tempSensorInfo.maxValueInstallPos',
  287. },
  288. {
  289. name: '最大值(℃)',
  290. prop: 'tempSensorInfo.maxValue',
  291. },
  292. ],
  293. },
  294. ];
  295. // 文件总览相关的内容配置项
  296. export const FILE_OVERVIEW_CONFIG = [
  297. { src: leftImg, text: '文档总数', prop: 'totalNum', id: 'file_cfg_001' },
  298. { src: rightImg, text: '待审批数', prop: 'approvalNum', id: 'file_cfg_002' },
  299. ];
  300. // 通风状态监测相关的内容配置项
  301. export const VENTILATION_STATUS_HEADER_CONFIG = [
  302. {
  303. label: '总进风量(m³/min)',
  304. prop: 'zongjinfeng',
  305. type: 'blue-to-left',
  306. },
  307. {
  308. label: '总回风量(m³/min)',
  309. prop: 'zonghuifeng',
  310. type: 'green-to-right',
  311. },
  312. {
  313. label: '总需风量(m³/min)',
  314. prop: 'xufengliang',
  315. type: 'green-to-left',
  316. },
  317. {
  318. label: '巷道总长度(m)',
  319. prop: 'totallength',
  320. type: 'blue-to-right',
  321. },
  322. ];
  323. // 通风状态监测(树形节点详情)相关的内容配置项
  324. export const VENTILATION_STATUS_TREE_CONFIG = {
  325. prefix: '',
  326. prop: 'strname',
  327. suffix: '',
  328. children: [
  329. {
  330. prefix: '名称:',
  331. prop: 'strinstallpos',
  332. suffix: '',
  333. },
  334. {
  335. prefix: '1号风机风量:',
  336. prop: 'Fan1m3',
  337. suffix: '(m³/min)',
  338. },
  339. {
  340. prefix: '2号风机风量:',
  341. prop: 'Fan2m3',
  342. suffix: '(m³/min)',
  343. },
  344. {
  345. prefix: '频率:',
  346. prop: 'FanFreqHz',
  347. suffix: 'Hz',
  348. },
  349. {
  350. prefix: '三区阻力分布:',
  351. prop: 'sqzlfb',
  352. suffix: '',
  353. },
  354. ],
  355. };
  356. // 瓦斯状态监测相关的内容配置项
  357. export const GAS_STATUS_HEADER_CONFIG = [
  358. {
  359. label: '瓦斯风险等级',
  360. prop: 'gasWarnLevel',
  361. type: 'to-bottom-right',
  362. },
  363. {
  364. label: '瓦斯鉴定等级',
  365. prop: 'gasJudgeLevel',
  366. type: 'to-top-right',
  367. },
  368. ];
  369. // 综合监测相关的内容配置项
  370. export const SUMMARY_HEADER_CONFIG = {
  371. label: '风险分析',
  372. prop: 'synthesizeS.levelstatus',
  373. type: 'to-bottom-right',
  374. };
  375. // 综合监测表格列配置
  376. export const SUMMARY_COLUMN = [
  377. {
  378. name: '监测类别',
  379. prop: 'label',
  380. },
  381. {
  382. name: '风险等级',
  383. prop: 'value',
  384. },
  385. ];
  386. export const DEFAULT_TEST_DATA = {
  387. dustInfo: {
  388. // 矿井粉尘风险信息
  389. totalNum: 0,
  390. dustTypeList: [
  391. {
  392. deviceType: '/',
  393. warnLevel: 0,
  394. num: 0,
  395. typeName: '/',
  396. },
  397. {
  398. deviceType: '/',
  399. warnLevel: 0,
  400. num: 0,
  401. typeName: '/',
  402. },
  403. ],
  404. dustWarnLevel: 0, // 矿井粉尘风险性等级
  405. },
  406. fileServerInfo: {
  407. totalNum: 0, // 文档总数
  408. approvalNum: 0, // 待审批文档
  409. },
  410. fireInfo: {
  411. tempMax: 29,
  412. fireWarnLevel: 1001,
  413. bundletubeInfo: {
  414. typeName: '束管',
  415. maxValueInstallPos: '31310采空区50m',
  416. tempMax: 0,
  417. coval: '2.0',
  418. ch2val: '0.0',
  419. deviceType: 'bundletube_auto',
  420. warnLevel: 1001,
  421. maxValue: 2,
  422. o2val: '10.31',
  423. totalNum: 12,
  424. chval: '0.0',
  425. gasval: '0.0',
  426. time: '2024-05-31 16:34:04',
  427. isRun: '-2',
  428. co2val: '7.42',
  429. },
  430. smokeSensorInfo: {
  431. deviceType: 'modelsensor_smoke',
  432. tempMax: 0,
  433. warnLevel: 0,
  434. totalNum: 30,
  435. maxValue: 0,
  436. typeName: '烟雾传感器',
  437. maxValueInstallPos: '12煤井底停车场',
  438. },
  439. fiberInfo: {
  440. deviceType: 'fiber_normal',
  441. tempMax: 0,
  442. warnLevel: 0,
  443. totalNum: 4,
  444. maxValue: 25,
  445. typeName: '光纤测温',
  446. maxValueInstallPos: '31煤中央变电所电缆沟-通道一',
  447. },
  448. tempSensorInfo: {
  449. deviceType: 'modelsensor_temperature',
  450. tempMax: 29,
  451. warnLevel: 0,
  452. totalNum: 51,
  453. maxValue: 29,
  454. typeName: '温度传感器',
  455. maxValueInstallPos: '主通风机房配电室',
  456. },
  457. },
  458. gasInfo: {
  459. gasWarnLevel: 0, // 瓦斯风险等级
  460. gasTypeList: [
  461. {
  462. warnLevel: 0,
  463. num: 0,
  464. typeName: '/',
  465. },
  466. ],
  467. },
  468. ventInfo: {
  469. //通风系统信息
  470. totallength: 0, //矿井巷道总长度
  471. zonghuifeng: '0', //总回风
  472. fanMainList: [
  473. {
  474. sqzlfb: '/',
  475. strname: '/',
  476. strinstallpos: '/',
  477. Fan1m3: '/',
  478. Fan2m3: '/',
  479. },
  480. ],
  481. xufengliang: 0, //总需风量
  482. zongjinfeng: '/', //总进风
  483. },
  484. sys_warndata: {
  485. info: {
  486. sysInfo: {
  487. ventS: {
  488. maxLevel: 0,
  489. netstatus: 0,
  490. code: '/',
  491. levelstatus: '/',
  492. maxLevel_str: '/',
  493. name: '/',
  494. count: 0,
  495. status: '/',
  496. maxLevel_status: '/',
  497. },
  498. fireS: {
  499. maxLevel: 0,
  500. code: '/',
  501. maxLevel_str: '/',
  502. count: 0,
  503. netstatus: 0,
  504. levelstatus: '/',
  505. name: '/',
  506. status: '/',
  507. maxLevel_status: '/',
  508. },
  509. synthesizeS: {
  510. maxLevel: 0,
  511. netstatus: 1,
  512. code: 'synthesizeS',
  513. levelstatus: '低风险',
  514. maxLevel_str: '正常',
  515. name: '综合',
  516. count: 0,
  517. status: '正常',
  518. maxLevel_status: '低风险',
  519. },
  520. dustS: {
  521. maxLevel: 0,
  522. netstatus: 0,
  523. code: 'dustS',
  524. levelstatus: '低风险',
  525. maxLevel_str: '正常',
  526. name: '防尘',
  527. count: 0,
  528. status: '正常',
  529. maxLevel_status: '低风险',
  530. },
  531. gasS: {
  532. maxLevel: 0,
  533. netstatus: 0,
  534. code: 'gasS',
  535. levelstatus: '低风险',
  536. maxLevel_str: '正常',
  537. devices: [],
  538. name: '瓦斯',
  539. count: 0,
  540. status: '正常',
  541. maxLevel_status: '低风险',
  542. },
  543. deviceWarnInfo: {
  544. maxLevel: 101,
  545. levelstatus: '低风险',
  546. maxLevel_str: '低风险预警',
  547. status: '异常',
  548. devMaxlevel_status: '低风险预警',
  549. },
  550. },
  551. },
  552. },
  553. orgname: '/',
  554. orgcode: '/',
  555. ip: 'localhost',
  556. };
  557. export type BillboardType = typeof DEFAULT_TEST_DATA;