configurable.data.ts 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071
  1. import { Config } from '../../deviceManager/configurationTable/types';
  2. // import { BDdustMock, BDfireMock } from './configurable.data.bd';
  3. export const testConfigVent: Config[] = [
  4. {
  5. deviceType: 'fanmain',
  6. moduleName: '主通风机系统',
  7. pageType: 'vent',
  8. moduleData: {
  9. header: {
  10. show: true,
  11. readFrom: '',
  12. selector: {
  13. show: true,
  14. value: '${strinstallpos}',
  15. },
  16. slot: {
  17. show: true,
  18. value: '运行风机:${readData.Fan1StartStatus}',
  19. trans: {
  20. '1': '一号',
  21. '0': '二号',
  22. },
  23. },
  24. },
  25. background: {
  26. show: false,
  27. type: 'image',
  28. link: '',
  29. },
  30. layout: {
  31. direction: 'column',
  32. items: [
  33. {
  34. name: 'qh_curve',
  35. basis: '67%',
  36. },
  37. {
  38. name: 'board',
  39. basis: '33%',
  40. },
  41. ],
  42. },
  43. board: [
  44. {
  45. type: 'D',
  46. readFrom: '',
  47. layout: 'label-top',
  48. items: [
  49. {
  50. label: '风量(m³/min)',
  51. value: '${flow_merge}',
  52. },
  53. {
  54. label: '负压(Pa)',
  55. value: '${fy_merge}',
  56. },
  57. {
  58. label: '漏风率(%)',
  59. value: '${leakage}',
  60. },
  61. ],
  62. },
  63. ],
  64. list: [],
  65. chart: [],
  66. table: [],
  67. gallery: [],
  68. complex_list: [],
  69. gallery_list: [],
  70. preset: [
  71. {
  72. readFrom: '',
  73. fan1Prop: ['flow_merge', 'fy_merge'],
  74. fan2Prop: ['flow_merge', 'fy_merge'],
  75. },
  76. ],
  77. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanmain',
  78. },
  79. showStyle: {
  80. size: 'width:470px;height:280px;',
  81. version: '原版',
  82. position: 'top:60px;left:0;',
  83. },
  84. },
  85. {
  86. deviceType: 'fanlocal',
  87. moduleName: '局部通风机系统',
  88. pageType: 'vent',
  89. moduleData: {
  90. header: {
  91. show: true,
  92. readFrom: '',
  93. selector: {
  94. show: true,
  95. value: '${strinstallpos}',
  96. },
  97. slot: {
  98. show: false,
  99. value: '运行风机:${readData.Fan1StartStatus}',
  100. trans: {
  101. '1': '一号',
  102. '0': '二号',
  103. },
  104. },
  105. },
  106. background: {
  107. show: false,
  108. type: 'image',
  109. link: '',
  110. },
  111. layout: {
  112. direction: 'column',
  113. items: [
  114. {
  115. name: 'chart',
  116. basis: '100%',
  117. },
  118. ],
  119. },
  120. board: [],
  121. list: [],
  122. chart: [
  123. {
  124. type: 'bar_cylinder_wide',
  125. readFrom: '',
  126. legend: { show: false },
  127. xAxis: [{ show: true }],
  128. yAxis: [{ show: true, name: '(m³/min)', position: 'left' }],
  129. series: [{ readFrom: 'chartData', xprop: 'x', yprop: 'y', label: '风量' }],
  130. },
  131. ],
  132. table: [],
  133. gallery: [],
  134. complex_list: [],
  135. gallery_list: [],
  136. preset: [],
  137. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanlocal',
  138. },
  139. showStyle: {
  140. size: 'width:470px;height:280px;',
  141. version: '原版',
  142. position: 'top:350px;left:0;',
  143. },
  144. },
  145. {
  146. deviceType: '',
  147. moduleName: '通风设施远程控制',
  148. pageType: 'vent',
  149. moduleData: {
  150. header: {
  151. show: false,
  152. readFrom: '',
  153. selector: {
  154. show: false,
  155. value: '',
  156. },
  157. slot: {
  158. show: false,
  159. value: '',
  160. },
  161. },
  162. background: {
  163. show: false,
  164. type: 'image',
  165. link: '',
  166. },
  167. layout: {
  168. direction: 'row',
  169. items: [
  170. {
  171. name: 'device_alarm',
  172. basis: '100%',
  173. },
  174. ],
  175. },
  176. board: [],
  177. list: [],
  178. chart: [],
  179. table: [],
  180. gallery: [],
  181. complex_list: [],
  182. gallery_list: [],
  183. preset: [
  184. {
  185. readFrom: 'device',
  186. },
  187. ],
  188. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=gate_xinJianFuXieJin',
  189. },
  190. showStyle: {
  191. size: 'width:470px;height:280px;',
  192. version: '原版',
  193. position: 'top:640px;left:0;',
  194. },
  195. },
  196. {
  197. deviceType: 'sys_wind',
  198. moduleName: '风量监测',
  199. pageType: 'vent',
  200. moduleData: {
  201. header: {
  202. show: false,
  203. readFrom: '',
  204. selector: {
  205. show: false,
  206. value: '',
  207. },
  208. slot: {
  209. show: false,
  210. value: '',
  211. },
  212. },
  213. background: {
  214. show: false,
  215. type: 'video',
  216. link: '',
  217. },
  218. layout: {
  219. direction: 'row',
  220. items: [
  221. {
  222. name: 'chart',
  223. basis: '100%',
  224. },
  225. ],
  226. },
  227. board: [],
  228. list: [],
  229. table: [],
  230. preset: [],
  231. gallery: [],
  232. complex_list: [],
  233. gallery_list: [],
  234. chart: [
  235. {
  236. type: 'bar',
  237. readFrom: '',
  238. legend: { show: true },
  239. xAxis: [{ show: true }],
  240. yAxis: [
  241. { show: true, name: '风量(m³/min)', position: 'left' },
  242. { show: true, name: '风速(m/s)', position: 'right' },
  243. ],
  244. series: [
  245. { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.m3', label: '风量' },
  246. { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.va', label: '风速' },
  247. ],
  248. },
  249. ],
  250. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=windrect',
  251. },
  252. showStyle: {
  253. size: 'width:1000px;height:280px;',
  254. version: '原版',
  255. position: 'top:640px;left:460px;',
  256. },
  257. },
  258. {
  259. deviceType: 'sys_majorpath',
  260. moduleName: '关键通风路线',
  261. pageType: 'vent',
  262. moduleData: {
  263. header: {
  264. show: true,
  265. readFrom: '',
  266. selector: {
  267. show: true,
  268. value: '${devicePos}',
  269. },
  270. slot: {
  271. show: false,
  272. value: '',
  273. },
  274. },
  275. background: {
  276. show: false,
  277. type: 'video',
  278. link: '',
  279. },
  280. layout: {
  281. direction: 'column',
  282. items: [
  283. {
  284. name: 'chart',
  285. basis: '67%',
  286. },
  287. {
  288. name: 'board',
  289. basis: '33%',
  290. },
  291. ],
  292. },
  293. board: [
  294. {
  295. type: 'D',
  296. readFrom: 'readData',
  297. layout: 'label-top',
  298. items: [
  299. {
  300. label: '风量(m³/min)',
  301. value: '${retM3_merge.value}',
  302. },
  303. {
  304. label: '矿井阻力(Pa)',
  305. value: '${fy_merge.value}',
  306. },
  307. {
  308. label: '等积孔',
  309. value: '${dengjikong_merge}',
  310. },
  311. ],
  312. },
  313. ],
  314. complex_list: [],
  315. gallery: [],
  316. list: [],
  317. table: [],
  318. chart: [
  319. {
  320. type: 'pie_drag',
  321. readFrom: '',
  322. legend: { show: false },
  323. xAxis: [{ show: false }],
  324. yAxis: [{ show: false, name: '风量', position: 'left' }],
  325. series: [{ readFrom: 'piechart', xprop: 'label', yprop: 'valMock', label: '' }],
  326. },
  327. ],
  328. gallery_list: [],
  329. preset: [],
  330. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_majorpath&deviceid=${deviceID}',
  331. },
  332. showStyle: {
  333. size: 'width:470px;height:280px;',
  334. version: '原版',
  335. position: 'top:60px;right:0;',
  336. },
  337. },
  338. {
  339. deviceType: 'sys_surface_caimei',
  340. moduleName: '工作面智能监控',
  341. pageType: 'vent',
  342. moduleData: {
  343. header: {
  344. show: true,
  345. readFrom: '',
  346. selector: {
  347. show: true,
  348. value: '${devicePos}',
  349. },
  350. slot: {
  351. show: false,
  352. value: '',
  353. },
  354. },
  355. background: {
  356. show: false,
  357. type: 'video',
  358. link: '',
  359. },
  360. layout: {
  361. direction: 'column',
  362. items: [
  363. {
  364. name: 'chart',
  365. basis: '65%',
  366. },
  367. {
  368. name: 'board',
  369. basis: '35%',
  370. },
  371. ],
  372. },
  373. board: [
  374. {
  375. type: 'B',
  376. readFrom: '',
  377. layout: 'label-top',
  378. items: [
  379. {
  380. label: '进风(m³/min)',
  381. value: '${faceIntM3}',
  382. },
  383. {
  384. label: '回风(m³/min)',
  385. value: '${faceRetM3}',
  386. },
  387. {
  388. label: '需风量(m³/min)',
  389. value: '${facePlanM3}',
  390. },
  391. ],
  392. },
  393. ],
  394. list: [],
  395. preset: [],
  396. table: [],
  397. gallery: [],
  398. chart: [
  399. {
  400. type: 'line',
  401. readFrom: '',
  402. legend: { show: true },
  403. xAxis: [{ show: true }],
  404. yAxis: [{ show: true, name: '风量(m³/min)', position: 'left' }],
  405. series: [
  406. { readFrom: 'history_report', xprop: 'time', yprop: 'faceIntM3', label: '进风' },
  407. { readFrom: 'history_report', xprop: 'time', yprop: 'faceRetM3', label: '回风' },
  408. ],
  409. },
  410. ],
  411. gallery_list: [],
  412. complex_list: [],
  413. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_surface_caimei&deviceid=${deviceID}',
  414. },
  415. showStyle: {
  416. size: 'width:470px;height:280px;',
  417. version: '原版',
  418. position: 'top:350px;right:0;',
  419. },
  420. },
  421. {
  422. deviceType: 'warn',
  423. moduleName: '预警监测',
  424. pageType: 'vent',
  425. moduleData: {
  426. header: {
  427. show: true,
  428. readFrom: '',
  429. selector: {
  430. show: false,
  431. value: '',
  432. },
  433. slot: {
  434. show: true,
  435. value: '网络异常:${warn[0].netstatus.val}',
  436. },
  437. },
  438. background: {
  439. show: false,
  440. type: 'video',
  441. link: '',
  442. },
  443. layout: {
  444. direction: 'row',
  445. items: [
  446. {
  447. name: 'list',
  448. basis: '100%',
  449. },
  450. ],
  451. },
  452. board: [],
  453. list: [
  454. {
  455. type: 'timeline',
  456. readFrom: 'warn[0]',
  457. items: [
  458. {
  459. label: '报警',
  460. value: '${alarm.val}',
  461. info: '',
  462. color: 'red',
  463. },
  464. {
  465. label: '重大风险预警',
  466. value: '${red.val}',
  467. info: '',
  468. color: 'red',
  469. },
  470. {
  471. label: '较大风险预警',
  472. value: '${orange.val}',
  473. info: '',
  474. color: 'orange',
  475. },
  476. {
  477. label: '一般风险预警',
  478. value: '${yellow.val}',
  479. info: '',
  480. color: 'yellow',
  481. },
  482. {
  483. label: '低风险预警',
  484. value: '${blue.val}',
  485. info: '',
  486. color: 'blue',
  487. },
  488. ],
  489. },
  490. ],
  491. preset: [],
  492. table: [],
  493. gallery: [],
  494. chart: [],
  495. gallery_list: [],
  496. complex_list: [],
  497. to: '/monitorChannel/monitor-alarm-home',
  498. },
  499. showStyle: {
  500. size: 'width:470px;height:280px;',
  501. version: '原版',
  502. position: 'top:640px;right:0;',
  503. },
  504. },
  505. ];
  506. export const testConfigDust: Config[] = [
  507. {
  508. deviceType: '',
  509. moduleName: '工作面风险监测',
  510. pageType: 'dust',
  511. moduleData: {
  512. header: {
  513. show: false,
  514. readFrom: '',
  515. selector: {
  516. show: false,
  517. value: '',
  518. },
  519. slot: {
  520. show: false,
  521. value: '',
  522. },
  523. },
  524. background: {
  525. show: false,
  526. type: 'video',
  527. link: '',
  528. },
  529. layout: {
  530. direction: 'column',
  531. items: [
  532. {
  533. name: 'gallery',
  534. basis: '20%',
  535. },
  536. {
  537. name: 'complex_list',
  538. basis: '80%',
  539. },
  540. ],
  541. },
  542. board: [],
  543. chart: [],
  544. gallery: [
  545. {
  546. type: 'D',
  547. readFrom: 'dustManageInfo',
  548. items: [
  549. {
  550. label: '',
  551. value: '${totalNum}',
  552. color: 'blue',
  553. },
  554. {
  555. label: '低风险',
  556. value: '${dfxNum}',
  557. color: 'blue',
  558. },
  559. {
  560. label: '一般风险',
  561. value: '${ybNum}',
  562. color: 'blue',
  563. },
  564. {
  565. label: '较大风险',
  566. value: '${jdNum}',
  567. color: 'blue',
  568. },
  569. {
  570. label: '重大风险',
  571. value: '${zdNum}',
  572. color: 'blue',
  573. },
  574. ],
  575. },
  576. ],
  577. gallery_list: [],
  578. table: [],
  579. list: [
  580. {
  581. type: 'A',
  582. readFrom: '',
  583. mapFromData: false,
  584. items: [
  585. {
  586. label: '',
  587. value: '',
  588. },
  589. ],
  590. },
  591. ],
  592. complex_list: [
  593. {
  594. type: 'C',
  595. readFrom: 'dustManageInfo.sysList',
  596. mapFromData: true,
  597. items: [
  598. {
  599. title: '${sysNamme}',
  600. contents: [
  601. {
  602. label: '风险监测',
  603. value: '${warnLevel}',
  604. color: 'blue',
  605. info: '',
  606. },
  607. {
  608. label: '最高粉尘浓度',
  609. value: '${maxVal}',
  610. color: 'blue',
  611. info: '',
  612. },
  613. ],
  614. },
  615. ],
  616. },
  617. ],
  618. preset: [],
  619. // mock: BDdustMock,
  620. },
  621. showStyle: {
  622. size: 'width:450px;height:860px;',
  623. version: '新版',
  624. position: 'top:60px;left:0;',
  625. },
  626. },
  627. {
  628. deviceType: 'dustDustGraph',
  629. moduleName: '综放工作面粉尘浓度',
  630. pageType: 'dust',
  631. moduleData: {
  632. header: {
  633. show: true,
  634. readFrom: '',
  635. selector: {
  636. show: true,
  637. value: '${strinstallpos}',
  638. },
  639. slot: {
  640. show: false,
  641. value: '',
  642. },
  643. },
  644. background: {
  645. show: false,
  646. type: 'video',
  647. link: '',
  648. },
  649. layout: {
  650. direction: 'row',
  651. items: [
  652. {
  653. name: 'chart',
  654. basis: '100%',
  655. },
  656. ],
  657. },
  658. board: [],
  659. chart: [
  660. {
  661. type: 'line_area',
  662. readFrom: '',
  663. legend: { show: false },
  664. xAxis: [{ show: true }],
  665. yAxis: [{ show: true, name: '浓度', position: 'left' }],
  666. series: [
  667. {
  668. label: '${strinstallpos}',
  669. readFrom: 'historyList',
  670. xprop: 'time',
  671. yprop: 'dustval',
  672. },
  673. ],
  674. },
  675. ],
  676. gallery: [],
  677. gallery_list: [],
  678. table: [],
  679. list: [],
  680. complex_list: [],
  681. preset: [],
  682. // mock: BDdustMock,
  683. },
  684. showStyle: {
  685. size: 'width:1000px;height:280px;',
  686. version: '新版',
  687. position: 'top:640px;left:460px;',
  688. },
  689. },
  690. {
  691. deviceType: '',
  692. moduleName: '智能喷雾降尘装置',
  693. pageType: 'dust',
  694. moduleData: {
  695. header: {
  696. show: false,
  697. readFrom: '',
  698. selector: {
  699. show: false,
  700. value: '',
  701. },
  702. slot: {
  703. show: false,
  704. value: '',
  705. },
  706. },
  707. background: {
  708. show: false,
  709. type: 'video',
  710. link: '',
  711. },
  712. layout: {
  713. direction: 'row',
  714. items: [
  715. {
  716. name: 'gallery',
  717. basis: '100%',
  718. },
  719. ],
  720. },
  721. board: [],
  722. chart: [],
  723. gallery: [
  724. {
  725. type: 'A',
  726. readFrom: 'atomObj',
  727. items: [
  728. {
  729. label: '设备总数',
  730. value: '${totalNum}',
  731. color: 'blue',
  732. },
  733. {
  734. label: '喷雾开启数',
  735. value: '${atomOpenNum}',
  736. color: 'blue',
  737. },
  738. {
  739. label: '连网数量',
  740. value: '${openNum}',
  741. color: 'blue',
  742. },
  743. {
  744. label: '断网数量',
  745. value: '${breakNum}',
  746. color: 'blue',
  747. },
  748. ],
  749. },
  750. ],
  751. gallery_list: [],
  752. table: [],
  753. list: [],
  754. complex_list: [],
  755. preset: [],
  756. to: 'http://10.248.210.154:8801',
  757. // mock: BDdustMock,
  758. },
  759. showStyle: {
  760. size: 'width:450px;height:280px;',
  761. version: '新版',
  762. position: 'top:60px;right:0;',
  763. },
  764. },
  765. {
  766. deviceType: '',
  767. moduleName: '隔爆设施管理台账',
  768. pageType: 'dust',
  769. moduleData: {
  770. header: {
  771. show: false,
  772. readFrom: '',
  773. selector: {
  774. show: false,
  775. value: '',
  776. },
  777. slot: {
  778. show: false,
  779. value: '',
  780. },
  781. },
  782. background: {
  783. show: false,
  784. type: 'video',
  785. link: '',
  786. },
  787. layout: {
  788. direction: 'row',
  789. items: [
  790. {
  791. name: 'table',
  792. basis: '100%',
  793. },
  794. ],
  795. },
  796. board: [],
  797. chart: [],
  798. gallery: [],
  799. gallery_list: [],
  800. table: [
  801. {
  802. type: 'C',
  803. readFrom: 'devGbsb',
  804. columns: [
  805. {
  806. name: '地点',
  807. prop: 'strinstallpos',
  808. },
  809. {
  810. name: '吊挂位置',
  811. prop: 'addr',
  812. },
  813. {
  814. name: '性质',
  815. prop: 'kind',
  816. },
  817. ],
  818. },
  819. ],
  820. list: [],
  821. complex_list: [],
  822. preset: [],
  823. // mock: BDdustMock,
  824. },
  825. showStyle: {
  826. size: 'width:450px;height:280px;',
  827. version: '新版',
  828. position: 'top:350px;right:0;',
  829. },
  830. },
  831. {
  832. deviceType: 'statics',
  833. moduleName: '粉尘静态指标',
  834. pageType: 'dust',
  835. moduleData: {
  836. header: {
  837. show: false,
  838. readFrom: '',
  839. selector: {
  840. show: false,
  841. value: '',
  842. },
  843. slot: {
  844. show: false,
  845. value: '',
  846. },
  847. },
  848. background: {
  849. show: false,
  850. type: 'video',
  851. link: '',
  852. },
  853. layout: {
  854. direction: 'row',
  855. items: [
  856. {
  857. name: 'board',
  858. basis: '100%',
  859. },
  860. ],
  861. },
  862. board: [
  863. {
  864. type: 'E',
  865. readFrom: '',
  866. layout: 'label-top',
  867. items: [
  868. {
  869. label: '火焰长度',
  870. value: '>400mm',
  871. },
  872. {
  873. label: '抑制煤层爆炸最低岩粉量',
  874. value: '75%',
  875. },
  876. {
  877. label: '鉴定结论',
  878. value: '有煤层爆炸性',
  879. },
  880. ],
  881. },
  882. ],
  883. chart: [],
  884. gallery: [],
  885. gallery_list: [],
  886. table: [],
  887. list: [],
  888. complex_list: [],
  889. preset: [],
  890. // mock: BDdustMock,
  891. },
  892. showStyle: {
  893. size: 'width:450px;height:280px;',
  894. version: '新版',
  895. position: 'top:640px;right:0;',
  896. },
  897. },
  898. ];
  899. export const testConfigFire: Config[] = [
  900. {
  901. deviceType: 'fireManageInfo',
  902. moduleName: '重点区域风险监测',
  903. pageType: 'fire',
  904. moduleData: {
  905. header: {
  906. show: false,
  907. readFrom: '',
  908. selector: {
  909. show: false,
  910. value: '',
  911. },
  912. slot: {
  913. show: false,
  914. value: '',
  915. },
  916. },
  917. background: {
  918. show: false,
  919. type: 'video',
  920. link: '',
  921. },
  922. layout: {
  923. direction: 'column',
  924. items: [
  925. {
  926. name: 'board',
  927. basis: '35%',
  928. },
  929. {
  930. name: 'complex_list',
  931. basis: '65%',
  932. },
  933. ],
  934. },
  935. board: [
  936. {
  937. type: 'A',
  938. readFrom: 'fireManageInfo',
  939. layout: 'label-top',
  940. items: [
  941. {
  942. label: '内因风险等级',
  943. value: '${nyWarnLevel}',
  944. },
  945. {
  946. label: '外因风险等级',
  947. value: '${wyWarnLevel}',
  948. },
  949. ],
  950. },
  951. ],
  952. chart: [],
  953. gallery: [],
  954. gallery_list: [],
  955. table: [],
  956. list: [],
  957. complex_list: [
  958. {
  959. type: 'D',
  960. readFrom: 'fireManageInfo.sysList',
  961. mapFromData: true,
  962. items: [
  963. {
  964. title: '${sysNamme}',
  965. contents: [
  966. {
  967. label: '风险监测',
  968. value: '${warnLevel}',
  969. color: 'blue',
  970. info: '',
  971. },
  972. {
  973. label: '最高温度',
  974. value: '${maxVal}',
  975. color: 'blue',
  976. info: '',
  977. },
  978. ],
  979. },
  980. ],
  981. },
  982. ],
  983. preset: [],
  984. // mock: BDfireMock,
  985. },
  986. showStyle: {
  987. size: 'width:450px;height:425px;',
  988. version: '新版',
  989. position: 'top:60px;left:0;',
  990. },
  991. },
  992. {
  993. deviceType: 'pdArray',
  994. moduleName: '带式输送机防灭火监控系统',
  995. pageType: 'fire',
  996. moduleData: {
  997. header: {
  998. show: true,
  999. readFrom: '',
  1000. selector: {
  1001. show: true,
  1002. value: '${systemname}',
  1003. },
  1004. slot: {
  1005. show: false,
  1006. value: '',
  1007. },
  1008. },
  1009. background: {
  1010. show: false,
  1011. type: 'video',
  1012. link: '',
  1013. },
  1014. layout: {
  1015. direction: 'column',
  1016. items: [
  1017. {
  1018. name: 'board',
  1019. basis: '30%',
  1020. },
  1021. {
  1022. name: 'chart',
  1023. basis: '70%',
  1024. },
  1025. ],
  1026. },
  1027. board: [
  1028. {
  1029. type: 'F',
  1030. layout: 'val-top',
  1031. readFrom: 'arrayCount',
  1032. items: [
  1033. {
  1034. label: '光纤预警',
  1035. value: '${[0].val}℃',
  1036. },
  1037. {
  1038. label: '一氧化碳预警',
  1039. value: '${[1].val}ppm',
  1040. },
  1041. {
  1042. label: '烟雾预警',
  1043. value: '${[2].val}',
  1044. },
  1045. ],
  1046. },
  1047. ],
  1048. chart: [
  1049. {
  1050. type: 'line_smooth',
  1051. readFrom: 'arrayFiber',
  1052. legend: { show: true },
  1053. xAxis: [{ show: true }],
  1054. yAxis: [{ show: true, name: '温度(℃)', position: 'left' }],
  1055. series: [
  1056. {
  1057. label: '${strinstallpos}',
  1058. readFrom: 'fibreTemperature',
  1059. xprop: 'pos',
  1060. yprop: 'value',
  1061. },
  1062. ],
  1063. },
  1064. ],
  1065. gallery: [],
  1066. gallery_list: [],
  1067. table: [],
  1068. list: [],
  1069. complex_list: [],
  1070. preset: [],
  1071. // mock: BDfireMock,
  1072. },
  1073. showStyle: {
  1074. size: 'width:450px;height:425px;',
  1075. version: '新版',
  1076. position: 'top:495px;left:0;',
  1077. },
  1078. },
  1079. {
  1080. deviceType: 'sgGxObj',
  1081. moduleName: '工作面光纤监测',
  1082. pageType: 'fire',
  1083. moduleData: {
  1084. header: {
  1085. show: true,
  1086. readFrom: 'devGxcw',
  1087. selector: {
  1088. show: true,
  1089. value: '${strinstallpos}',
  1090. },
  1091. slot: {
  1092. show: false,
  1093. value: '',
  1094. },
  1095. },
  1096. background: {
  1097. show: false,
  1098. type: 'video',
  1099. link: '',
  1100. },
  1101. layout: {
  1102. direction: 'row',
  1103. items: [
  1104. {
  1105. name: 'chart',
  1106. basis: '100%',
  1107. },
  1108. ],
  1109. },
  1110. board: [],
  1111. chart: [
  1112. {
  1113. type: 'line_smooth',
  1114. readFrom: '',
  1115. legend: { show: true },
  1116. xAxis: [{ show: true }],
  1117. yAxis: [{ show: true, name: '温度(℃)', position: 'left' }],
  1118. series: [
  1119. {
  1120. label: '${strinstallpos}',
  1121. readFrom: 'fibreTemperature',
  1122. xprop: 'pos',
  1123. yprop: 'value',
  1124. },
  1125. ],
  1126. },
  1127. ],
  1128. gallery: [],
  1129. gallery_list: [],
  1130. table: [],
  1131. list: [],
  1132. complex_list: [],
  1133. preset: [],
  1134. // mock: BDfireMock,
  1135. },
  1136. showStyle: {
  1137. size: 'width:1000px;height:280px;',
  1138. version: '新版',
  1139. position: 'top:640px;left:460px;',
  1140. },
  1141. },
  1142. {
  1143. deviceType: 'sgGxObj',
  1144. moduleName: '工作面束管监测',
  1145. pageType: 'fire',
  1146. moduleData: {
  1147. header: {
  1148. show: true,
  1149. readFrom: 'devSgjc',
  1150. selector: {
  1151. show: true,
  1152. value: '${strinstallpos}',
  1153. },
  1154. slot: {
  1155. show: false,
  1156. value: '',
  1157. },
  1158. },
  1159. background: {
  1160. show: false,
  1161. type: 'video',
  1162. link: '',
  1163. },
  1164. layout: {
  1165. direction: 'column',
  1166. items: [
  1167. {
  1168. name: 'gallery_list',
  1169. basis: '40%',
  1170. },
  1171. {
  1172. name: 'blast_delta',
  1173. basis: '52%',
  1174. overflow: false,
  1175. },
  1176. ],
  1177. },
  1178. board: [],
  1179. chart: [],
  1180. // chart: [
  1181. // {
  1182. // type: 'line_bar',
  1183. // readFrom: 'dsArray',
  1184. // xAxis: [
  1185. // {
  1186. // label: 'null',
  1187. // },
  1188. // ],
  1189. // yAxis: [
  1190. // {
  1191. // label: 'A',
  1192. // align: 'left',
  1193. // },
  1194. // {
  1195. // label: 'A',
  1196. // align: 'left',
  1197. // },
  1198. // ],
  1199. // series: [
  1200. // {
  1201. // label: 'A',
  1202. // prop: 'top',
  1203. // },
  1204. // {
  1205. // label: 'B',
  1206. // prop: 'bot',
  1207. // },
  1208. // ],
  1209. // },
  1210. // ],
  1211. gallery: [],
  1212. gallery_list: [
  1213. {
  1214. type: 'B',
  1215. readFrom: '',
  1216. items: [
  1217. {
  1218. label: '一氧化碳',
  1219. value: '${coVal}',
  1220. color: 'blue',
  1221. info: '',
  1222. },
  1223. {
  1224. label: '二氧化碳',
  1225. value: '${co2Val}',
  1226. color: 'blue',
  1227. info: '',
  1228. },
  1229. {
  1230. label: '氧气',
  1231. value: '${o2Val}',
  1232. color: 'blue',
  1233. info: '',
  1234. },
  1235. {
  1236. label: '乙烯',
  1237. value: '${c2h4Val}',
  1238. color: 'blue',
  1239. info: '',
  1240. },
  1241. {
  1242. label: '甲烷',
  1243. value: '${ch4Val}',
  1244. color: 'blue',
  1245. info: '',
  1246. },
  1247. {
  1248. label: '乙炔',
  1249. value: '${c2h2Val}',
  1250. color: 'blue',
  1251. info: '',
  1252. },
  1253. ],
  1254. galleryItems: [
  1255. {
  1256. label: '风险等级',
  1257. value: '${warnLevel}',
  1258. color: 'blue',
  1259. },
  1260. ],
  1261. },
  1262. ],
  1263. table: [],
  1264. list: [
  1265. {
  1266. type: 'E',
  1267. readFrom: 'arrayCount',
  1268. items: [
  1269. {
  1270. label: '一氧化碳',
  1271. value: '${coVal}',
  1272. color: 'blue',
  1273. info: '',
  1274. },
  1275. {
  1276. label: '二氧化碳',
  1277. value: '${co2Val}',
  1278. color: 'blue',
  1279. info: '',
  1280. },
  1281. {
  1282. label: '氧气',
  1283. value: '${o2Val}',
  1284. color: 'blue',
  1285. info: '',
  1286. },
  1287. {
  1288. label: '温度',
  1289. value: '${tempVal}',
  1290. color: 'blue',
  1291. info: '',
  1292. },
  1293. // {
  1294. // label: '乙烯',
  1295. // value: '${c2h4Val}',
  1296. // color: 'blue',
  1297. // info: '',
  1298. // },
  1299. // {
  1300. // label: '甲烷',
  1301. // value: '${ch4Val}',
  1302. // color: 'blue',
  1303. // info: '',
  1304. // },
  1305. // {
  1306. // label: '乙炔',
  1307. // value: '${c2h2Val}',
  1308. // color: 'blue',
  1309. // info: '',
  1310. // },
  1311. // {
  1312. // label: '压差',
  1313. // value: '${dpVal}',
  1314. // color: 'blue',
  1315. // info: '',
  1316. // },
  1317. ],
  1318. },
  1319. ],
  1320. complex_list: [],
  1321. preset: [
  1322. {
  1323. readFrom: '',
  1324. },
  1325. ],
  1326. // mock: BDfireMock,
  1327. },
  1328. showStyle: {
  1329. size: 'width:450px;height:570px;',
  1330. version: '新版',
  1331. position: 'top:60px;right:0;',
  1332. },
  1333. },
  1334. {
  1335. deviceType: 'aqjkArray',
  1336. moduleName: '安全监控系统',
  1337. pageType: 'fire',
  1338. moduleData: {
  1339. header: {
  1340. show: false,
  1341. readFrom: '',
  1342. selector: {
  1343. show: false,
  1344. value: '',
  1345. },
  1346. slot: {
  1347. show: false,
  1348. value: '',
  1349. },
  1350. },
  1351. background: {
  1352. show: false,
  1353. type: 'video',
  1354. link: '',
  1355. },
  1356. layout: {
  1357. direction: 'row',
  1358. items: [
  1359. {
  1360. name: 'table',
  1361. basis: '100%',
  1362. },
  1363. ],
  1364. },
  1365. board: [],
  1366. chart: [],
  1367. gallery: [],
  1368. gallery_list: [],
  1369. table: [
  1370. {
  1371. type: 'C',
  1372. readFrom: 'aqjkArray',
  1373. columns: [
  1374. {
  1375. name: '测点位置',
  1376. prop: 'strinstallpos',
  1377. },
  1378. {
  1379. name: '温度',
  1380. prop: 'nowVal',
  1381. },
  1382. {
  1383. name: '预警级别',
  1384. prop: 'warnLevel',
  1385. },
  1386. // {
  1387. // name: '时间',
  1388. // prop: 'time',
  1389. // },
  1390. ],
  1391. },
  1392. ],
  1393. list: [],
  1394. complex_list: [],
  1395. preset: [],
  1396. // mock: BDfireMock,
  1397. },
  1398. showStyle: {
  1399. size: 'width:450px;height:280px;',
  1400. version: '新版',
  1401. position: 'top:640px;right:0;',
  1402. },
  1403. },
  1404. ];
  1405. export const testConfigVentRealtime: Config[] = [
  1406. {
  1407. deviceType: 'fanmain',
  1408. moduleName: '主通风机系统',
  1409. pageType: 'vent_realtime',
  1410. moduleData: {
  1411. header: {
  1412. show: true,
  1413. readFrom: '',
  1414. selector: {
  1415. show: true,
  1416. value: '${strinstallpos}',
  1417. },
  1418. slot: {
  1419. show: true,
  1420. value: '运行风机:${readData.Fan1StartStatus}',
  1421. trans: {
  1422. '1': '一号',
  1423. '0': '二号',
  1424. },
  1425. },
  1426. },
  1427. background: {
  1428. show: false,
  1429. type: 'image',
  1430. link: '',
  1431. },
  1432. layout: {
  1433. direction: 'column',
  1434. items: [
  1435. {
  1436. name: 'qh_curve',
  1437. basis: '67%',
  1438. },
  1439. {
  1440. name: 'board',
  1441. basis: '33%',
  1442. },
  1443. ],
  1444. },
  1445. board: [
  1446. {
  1447. type: 'D',
  1448. readFrom: '',
  1449. layout: 'label-top',
  1450. items: [
  1451. {
  1452. label: '风量(m³/min)',
  1453. trans: {
  1454. '0': '${readData.Fan2_FanFlow}',
  1455. '1': '${readData.Fan1_FanFlow}',
  1456. },
  1457. value: '${readData.Fan1StartStatus}',
  1458. },
  1459. {
  1460. label: '负压(Pa)',
  1461. trans: {
  1462. '0': '${readData.Fan2FanPre}',
  1463. '1': '${readData.Fan1FanPre}',
  1464. },
  1465. value: '${readData.Fan1StartStatus}',
  1466. },
  1467. {
  1468. label: '漏风率(%)',
  1469. value: '${leakage}',
  1470. },
  1471. ],
  1472. },
  1473. ],
  1474. list: [],
  1475. chart: [],
  1476. table: [],
  1477. gallery: [],
  1478. complex_list: [],
  1479. gallery_list: [],
  1480. preset: [
  1481. {
  1482. readFrom: '',
  1483. fan1Prop: ['readData.Fan1_FanFlow', 'readData.Fan1FanPre'],
  1484. fan2Prop: ['readData.Fan2_FanFlow', 'readData.Fan2FanPre'],
  1485. },
  1486. ],
  1487. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanmain',
  1488. },
  1489. showStyle: {
  1490. size: 'width:470px;height:280px;',
  1491. version: '原版',
  1492. position: 'top:60px;left:0;',
  1493. },
  1494. },
  1495. {
  1496. deviceType: 'fanlocal',
  1497. moduleName: '局部通风机系统',
  1498. pageType: 'vent_realtime',
  1499. moduleData: {
  1500. header: {
  1501. show: true,
  1502. readFrom: '',
  1503. selector: {
  1504. show: true,
  1505. value: '${strinstallpos}',
  1506. },
  1507. slot: {
  1508. show: false,
  1509. value: '运行风机:${readData.Fan1StartStatus}',
  1510. trans: {
  1511. '1': '一号',
  1512. '0': '二号',
  1513. },
  1514. },
  1515. },
  1516. background: {
  1517. show: false,
  1518. type: 'image',
  1519. link: '',
  1520. },
  1521. layout: {
  1522. direction: 'column',
  1523. items: [
  1524. {
  1525. name: 'chart',
  1526. basis: '100%',
  1527. },
  1528. ],
  1529. },
  1530. board: [],
  1531. list: [],
  1532. chart: [
  1533. {
  1534. type: 'bar_cylinder_wide',
  1535. readFrom: '',
  1536. legend: { show: false },
  1537. xAxis: [{ show: true }],
  1538. yAxis: [{ show: true, name: '(m³/min)', position: 'left' }],
  1539. series: [
  1540. { readFrom: 'chartData', xprop: 'x', yprop: 'yMock', label: '风量' },
  1541. // { readFrom: '', xprop: 'x', yprop: 'y2', label: '风量' },
  1542. ],
  1543. },
  1544. ],
  1545. table: [],
  1546. gallery: [],
  1547. complex_list: [],
  1548. gallery_list: [],
  1549. preset: [],
  1550. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanlocal',
  1551. },
  1552. showStyle: {
  1553. size: 'width:470px;height:280px;',
  1554. version: '原版',
  1555. position: 'top:350px;left:0;',
  1556. },
  1557. },
  1558. {
  1559. deviceType: '',
  1560. moduleName: '通风设施远程控制',
  1561. pageType: 'vent_realtime',
  1562. moduleData: {
  1563. header: {
  1564. show: false,
  1565. readFrom: '',
  1566. selector: {
  1567. show: false,
  1568. value: '',
  1569. },
  1570. slot: {
  1571. show: false,
  1572. value: '',
  1573. },
  1574. },
  1575. background: {
  1576. show: false,
  1577. type: 'image',
  1578. link: '',
  1579. },
  1580. layout: {
  1581. direction: 'row',
  1582. items: [
  1583. {
  1584. name: 'device_alarm',
  1585. basis: '100%',
  1586. },
  1587. ],
  1588. },
  1589. board: [],
  1590. list: [],
  1591. chart: [],
  1592. table: [],
  1593. gallery: [],
  1594. complex_list: [],
  1595. gallery_list: [],
  1596. preset: [
  1597. {
  1598. readFrom: 'device',
  1599. },
  1600. ],
  1601. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=gate_xinJianFuXieJin',
  1602. },
  1603. showStyle: {
  1604. size: 'width:470px;height:280px;',
  1605. version: '原版',
  1606. position: 'top:640px;left:0;',
  1607. },
  1608. },
  1609. {
  1610. deviceType: 'sys_wind',
  1611. moduleName: '风量监测',
  1612. pageType: 'vent_realtime',
  1613. moduleData: {
  1614. header: {
  1615. show: false,
  1616. readFrom: '',
  1617. selector: {
  1618. show: false,
  1619. value: '',
  1620. },
  1621. slot: {
  1622. show: false,
  1623. value: '',
  1624. },
  1625. },
  1626. background: {
  1627. show: false,
  1628. type: 'video',
  1629. link: '',
  1630. },
  1631. layout: {
  1632. direction: 'row',
  1633. items: [
  1634. {
  1635. name: 'chart',
  1636. basis: '100%',
  1637. },
  1638. ],
  1639. },
  1640. board: [],
  1641. list: [],
  1642. table: [],
  1643. preset: [],
  1644. gallery: [],
  1645. complex_list: [],
  1646. gallery_list: [],
  1647. chart: [
  1648. {
  1649. type: 'bar',
  1650. readFrom: '',
  1651. legend: { show: true },
  1652. xAxis: [{ show: true }],
  1653. yAxis: [
  1654. { show: true, name: '风量(m³/min)', position: 'left' },
  1655. { show: true, name: '风速(m/s)', position: 'right' },
  1656. ],
  1657. series: [
  1658. { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.m3', label: '风量' },
  1659. { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.va', label: '风速' },
  1660. ],
  1661. },
  1662. ],
  1663. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=windrect',
  1664. },
  1665. showStyle: {
  1666. size: 'width:1000px;height:280px;',
  1667. version: '原版',
  1668. position: 'top:640px;left:460px;',
  1669. },
  1670. },
  1671. {
  1672. deviceType: 'sys_majorpath',
  1673. moduleName: '关键通风路线',
  1674. pageType: 'vent_realtime',
  1675. moduleData: {
  1676. header: {
  1677. show: true,
  1678. readFrom: '',
  1679. selector: {
  1680. show: true,
  1681. value: '${devicePos}',
  1682. },
  1683. slot: {
  1684. show: false,
  1685. value: '',
  1686. },
  1687. },
  1688. background: {
  1689. show: false,
  1690. type: 'video',
  1691. link: '',
  1692. },
  1693. layout: {
  1694. direction: 'column',
  1695. items: [
  1696. {
  1697. name: 'chart',
  1698. basis: '67%',
  1699. },
  1700. {
  1701. name: 'board',
  1702. basis: '33%',
  1703. },
  1704. ],
  1705. },
  1706. board: [
  1707. {
  1708. type: 'D',
  1709. readFrom: 'majorpath',
  1710. layout: 'label-top',
  1711. items: [
  1712. {
  1713. label: '风量(m³/min)',
  1714. value: '${m3_total}',
  1715. },
  1716. {
  1717. label: '矿井阻力(Pa)',
  1718. value: '${drag_total}',
  1719. },
  1720. {
  1721. label: '等积孔',
  1722. value: '${dengjikong}',
  1723. },
  1724. ],
  1725. },
  1726. ],
  1727. complex_list: [],
  1728. gallery: [],
  1729. list: [],
  1730. table: [],
  1731. chart: [
  1732. {
  1733. type: 'pie_drag',
  1734. readFrom: '',
  1735. legend: { show: false },
  1736. xAxis: [{ show: false }],
  1737. yAxis: [{ show: false, name: '风量', position: 'left' }],
  1738. series: [{ readFrom: 'piechart', xprop: 'label', yprop: 'val', label: '-' }],
  1739. },
  1740. ],
  1741. gallery_list: [],
  1742. preset: [],
  1743. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_majorpath',
  1744. },
  1745. showStyle: {
  1746. size: 'width:470px;height:280px;',
  1747. version: '原版',
  1748. position: 'top:60px;right:0;',
  1749. },
  1750. },
  1751. {
  1752. deviceType: 'sys_surface_caimei',
  1753. moduleName: '工作面智能监控',
  1754. pageType: 'vent_realtime',
  1755. moduleData: {
  1756. header: {
  1757. show: true,
  1758. readFrom: '',
  1759. selector: {
  1760. show: true,
  1761. value: '${devicePos}',
  1762. },
  1763. slot: {
  1764. show: false,
  1765. value: '',
  1766. },
  1767. },
  1768. background: {
  1769. show: false,
  1770. type: 'video',
  1771. link: '',
  1772. },
  1773. layout: {
  1774. direction: 'column',
  1775. items: [
  1776. {
  1777. name: 'chart',
  1778. basis: '65%',
  1779. },
  1780. {
  1781. name: 'board',
  1782. basis: '35%',
  1783. },
  1784. ],
  1785. },
  1786. board: [
  1787. {
  1788. type: 'B',
  1789. readFrom: '',
  1790. layout: 'label-top',
  1791. items: [
  1792. {
  1793. label: '进风(m³/min)',
  1794. value: '${jin}',
  1795. },
  1796. {
  1797. label: '回风(m³/min)',
  1798. value: '${hui}',
  1799. },
  1800. // {
  1801. // label: '需风量(m³/min)',
  1802. // value: '${xufengliang}',
  1803. // },
  1804. ],
  1805. },
  1806. ],
  1807. list: [],
  1808. preset: [],
  1809. table: [],
  1810. gallery: [],
  1811. chart: [
  1812. {
  1813. type: 'line',
  1814. readFrom: '',
  1815. legend: { show: true },
  1816. xAxis: [{ show: true }],
  1817. yAxis: [{ show: true, name: '风量(m³/min)', position: 'left' }],
  1818. series: [
  1819. { readFrom: 'history', xprop: 'time', yprop: 'jin', label: '进风' },
  1820. { readFrom: 'history', xprop: 'time', yprop: 'hui', label: '回风' },
  1821. ],
  1822. },
  1823. ],
  1824. gallery_list: [],
  1825. complex_list: [],
  1826. to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_surface_caimei&deviceid=${deviceID}',
  1827. },
  1828. showStyle: {
  1829. size: 'width:470px;height:280px;',
  1830. version: '原版',
  1831. position: 'top:350px;right:0;',
  1832. },
  1833. },
  1834. {
  1835. deviceType: 'warn',
  1836. moduleName: '预警监测',
  1837. pageType: 'vent_realtime',
  1838. moduleData: {
  1839. header: {
  1840. show: true,
  1841. readFrom: '',
  1842. selector: {
  1843. show: false,
  1844. value: '',
  1845. },
  1846. slot: {
  1847. show: true,
  1848. value: '网络异常:${warn[0].netstatus.val}',
  1849. },
  1850. },
  1851. background: {
  1852. show: false,
  1853. type: 'video',
  1854. link: '',
  1855. },
  1856. layout: {
  1857. direction: 'row',
  1858. items: [
  1859. {
  1860. name: 'list',
  1861. basis: '100%',
  1862. },
  1863. ],
  1864. },
  1865. board: [],
  1866. list: [
  1867. {
  1868. type: 'timeline',
  1869. readFrom: 'warn[0]',
  1870. items: [
  1871. {
  1872. label: '报警',
  1873. value: '${alarm.val}',
  1874. info: '',
  1875. color: 'red',
  1876. },
  1877. {
  1878. label: '重大风险预警',
  1879. value: '${red.val}',
  1880. info: '',
  1881. color: 'red',
  1882. },
  1883. {
  1884. label: '较大风险预警',
  1885. value: '${orange.val}',
  1886. info: '',
  1887. color: 'orange',
  1888. },
  1889. {
  1890. label: '一般风险预警',
  1891. value: '${yellow.val}',
  1892. info: '',
  1893. color: 'yellow',
  1894. },
  1895. {
  1896. label: '低风险预警',
  1897. value: '${blue.val}',
  1898. info: '',
  1899. color: 'blue',
  1900. },
  1901. ],
  1902. },
  1903. ],
  1904. preset: [],
  1905. table: [],
  1906. gallery: [],
  1907. chart: [],
  1908. gallery_list: [],
  1909. complex_list: [],
  1910. to: '/monitorChannel/monitor-alarm-home',
  1911. },
  1912. showStyle: {
  1913. size: 'width:470px;height:280px;',
  1914. version: '原版',
  1915. position: 'top:640px;right:0;',
  1916. },
  1917. },
  1918. ];
  1919. // {
  1920. // deviceType: 'fanmain',
  1921. // moduleName: '主通风机系统',
  1922. // pageType: 'vent',
  1923. // moduleData: {
  1924. // header: {
  1925. // show: true,
  1926. // readFrom: '',
  1927. // selector: {
  1928. // show: true,
  1929. // value: '${strinstallpos}',
  1930. // },
  1931. // slot: {
  1932. // show: true,
  1933. // value: '运行风机:${readData.Fan1StartStatus}',
  1934. // trans: {
  1935. // '1': '一号',
  1936. // '0': '二号',
  1937. // },
  1938. // },
  1939. // },
  1940. // background: {
  1941. // show: true,
  1942. // type: 'video',
  1943. // link: '/video/mainFan.mp4',
  1944. // },
  1945. // layout: {
  1946. // direction: 'column',
  1947. // items: [
  1948. // {
  1949. // name: 'board',
  1950. // basis: '40%',
  1951. // },
  1952. // ],
  1953. // },
  1954. // board: [
  1955. // {
  1956. // type: 'A',
  1957. // readFrom: 'readData',
  1958. // layout: 'val-top',
  1959. // items: [
  1960. // {
  1961. // label: '风量(m³/min)',
  1962. // value: '${m3}',
  1963. // },
  1964. // {
  1965. // label: '负压(Pa)',
  1966. // value: '${Fan1StartStatus}',
  1967. // trans: {
  1968. // '1': '${Fan1FreqHz}',
  1969. // '0': '${Fan1FreqHz}',
  1970. // },
  1971. // },
  1972. // {
  1973. // label: '频率(Hz)',
  1974. // value: '${DataPa}',
  1975. // },
  1976. // ],
  1977. // },
  1978. // ],
  1979. // list: [],
  1980. // chart: [],
  1981. // table: [],
  1982. // gallery: [],
  1983. // complex_list: [],
  1984. // gallery_list: [],
  1985. // preset: [],
  1986. // },
  1987. // showStyle: {
  1988. // size: 'width:470px;height:280px;',
  1989. // version: '原版',
  1990. // position: 'top:60px;left:0;',
  1991. // },
  1992. // },
  1993. // {
  1994. // deviceType: 'fanlocal',
  1995. // moduleName: '局部通风机系统',
  1996. // pageType: 'vent',
  1997. // moduleData: {
  1998. // header: {
  1999. // show: true,
  2000. // readFrom: '',
  2001. // selector: {
  2002. // show: true,
  2003. // value: '${strinstallpos}',
  2004. // },
  2005. // slot: {
  2006. // show: true,
  2007. // value: '运行风机:${readData.Fan1StartStatus}',
  2008. // trans: {
  2009. // '1': '一号',
  2010. // '0': '二号',
  2011. // },
  2012. // },
  2013. // },
  2014. // background: {
  2015. // show: true,
  2016. // type: 'video',
  2017. // link: '/video/fanLocal.mp4',
  2018. // },
  2019. // layout: {
  2020. // direction: 'column',
  2021. // items: [
  2022. // {
  2023. // name: 'board',
  2024. // basis: '40%',
  2025. // },
  2026. // ],
  2027. // },
  2028. // board: [
  2029. // {
  2030. // type: 'A',
  2031. // readFrom: 'readData',
  2032. // layout: 'val-top',
  2033. // items: [
  2034. // {
  2035. // label: '吸风量(m³/min)',
  2036. // value: '${windQuantity1}',
  2037. // },
  2038. // {
  2039. // label: '供风量(m³/min)',
  2040. // value: '${windQuantity2}',
  2041. // },
  2042. // {
  2043. // label: '频率(Hz)',
  2044. // value: '${Fan1StartStatus}',
  2045. // trans: {
  2046. // '1': '${Fan1fHz}',
  2047. // '0': '${Fan2fHz}',
  2048. // },
  2049. // },
  2050. // ],
  2051. // },
  2052. // ],
  2053. // list: [],
  2054. // chart: [],
  2055. // table: [],
  2056. // gallery: [],
  2057. // complex_list: [],
  2058. // gallery_list: [],
  2059. // preset: [],
  2060. // },
  2061. // showStyle: {
  2062. // size: 'width:450px;height:280px;',
  2063. // version: '新版',
  2064. // position: 'top:350px;left:0;',
  2065. // },
  2066. // },