json.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. // 本地模拟json数据
  2. // 首页九宫格
  3. // 首页报警数据
  4. let staticData = {
  5. "msg": "\u64cd\u4f5c\u6210\u529f",
  6. "flag": true,
  7. "companyCode": "1,2,3,4,5,6,7,8,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39",
  8. "data": [{
  9. "statisticalPeriod": "2021-03-16~2021-04-16",
  10. "smartElectricityCount": "178",
  11. "videoMonitoringCount": "12456",
  12. "alarmCount": 12627,
  13. "eventCount": 2,
  14. "hiddenDangerCount": 4,
  15. "offlineCount": 20,
  16. "faultCount": 30,
  17. "earlyWarningCount": 100,
  18. "otherCount": 99,
  19. "normalCount": 66,
  20. "integratedAlarmCount": 12627,
  21. "unprocessedCount": 0
  22. }]
  23. }
  24. //综合报警九宫格
  25. let alarmingSquareList = [{
  26. imgUrl: '../../static/alarming-zj.png',
  27. badge: 100,
  28. name: '报警主机',
  29. type:1
  30. }, {
  31. imgUrl: '../../static/alarming-water.png',
  32. badge: 0,
  33. name: '水系统',
  34. type:2
  35. },
  36. {
  37. imgUrl: '../../static/alarming-ck.png',
  38. badge: 0,
  39. name: '测控终端',
  40. type:6
  41. },
  42. {
  43. imgUrl: '../../static/alarming-dq.png',
  44. badge: 0,
  45. name: '电气火灾',
  46. type:7
  47. },
  48. {
  49. imgUrl: '../../static/alarming-sp.png',
  50. badge: 0,
  51. name: '视频告警',
  52. type:16
  53. },
  54. {
  55. imgUrl: '../../static/alarming-dt.png',
  56. badge: 0,
  57. name: '电梯报警',
  58. type:17
  59. },
  60. {
  61. imgUrl: '../../static/alarming-mc.png',
  62. badge: 0,
  63. name: '门磁',
  64. type:130
  65. },
  66. {
  67. imgUrl: '../../static/alarming-kr.png',
  68. badge: 0,
  69. name: '可燃气体',
  70. type:131
  71. },
  72. {
  73. imgUrl: '../../static/alarming-jg.png',
  74. badge: 0,
  75. name: '井盖监测',
  76. type:128
  77. },
  78. {
  79. imgUrl: '../../static/alarming-xf.png',
  80. badge: 0,
  81. name: '消防栓监测',
  82. type:4
  83. }
  84. ];
  85. // 离线设备
  86. let deviceOffLineData = [{
  87. title: '测试用传装置',
  88. subTitle: '三楼茶水间',
  89. status: '未处理',
  90. time: '2020-01-08 15:15:12'
  91. }, {
  92. title: '测试用传装置',
  93. subTitle: '三楼茶水间',
  94. status: '未处理',
  95. time: '2020-01-08 15:15:12'
  96. }, {
  97. title: '测试用传装置',
  98. subTitle: '三楼茶水间',
  99. status: '未处理',
  100. time: '2020-01-08 15:15:12'
  101. }]
  102. let unprocessList = [{
  103. "id": "561",
  104. "title": "烟雾拆卸报警",
  105. "des": "三楼赛特威尔测试烟感二",
  106. "time": "2021-01-20 15:23:43"
  107. },
  108. {
  109. "id": "561",
  110. "title": "烟雾拆卸报警",
  111. "des": "三楼赛特威尔测试烟感二",
  112. "time": "2021-01-20 15:23:43"
  113. },
  114. {
  115. "id": "561",
  116. "title": "烟雾拆卸报警",
  117. "des": "三楼赛特威尔测试烟感二",
  118. "time": "2021-01-20 15:23:43"
  119. }
  120. ];
  121. let processedList = [{
  122. "id": "561",
  123. "title": "烟雾拆卸报警",
  124. "des": "三楼赛特威尔测试烟感二",
  125. "time": "2021-01-20 15:23:43"
  126. },
  127. {
  128. "id": "561",
  129. "title": "烟雾拆卸报警",
  130. "des": "三楼赛特威尔测试烟感二",
  131. "time": "2021-01-20 15:23:43"
  132. }
  133. ];
  134. // 设备类型
  135. let deviceType = [{
  136. "id": "1",
  137. "title": "火警",
  138. "num": "3",
  139. "imgUrl": "/static/dt-alarmIcon.png"
  140. },
  141. {
  142. "id": "2",
  143. "title": "水警",
  144. "num": "4",
  145. "imgUrl": "/static/dt-waterIcon.png"
  146. },
  147. {
  148. "id": "3",
  149. "title": "电气火灾",
  150. "num": "4",
  151. "imgUrl": "/static/dt-dqIcon.png"
  152. },
  153. {
  154. "id": "4",
  155. "title": "RTU",
  156. "num": "4",
  157. "imgUrl": "/static/dt-rtuIcon.png"
  158. },
  159. {
  160. "id": "5",
  161. "title": "烟感",
  162. "num": "4",
  163. "imgUrl": "/static/dt-ygIcon.png"
  164. },
  165. {
  166. "id": "6",
  167. "title": "视频",
  168. "num": "4",
  169. "imgUrl": "/static/dt-videoIcon.png"
  170. },
  171. {
  172. "id": "7",
  173. "title": "电梯",
  174. "num": "4",
  175. "imgUrl": "/static/dt.png"
  176. },
  177. {
  178. "id": "8",
  179. "title": "井盖",
  180. "num": "4",
  181. "imgUrl": "/static/dt-jgIcon.png"
  182. },
  183. {
  184. "id": "9",
  185. "title": "消防栓",
  186. "num": "4",
  187. "imgUrl": "/static/dt-xfsIcon.png"
  188. },
  189. {
  190. "id": "10",
  191. "title": "液位设备",
  192. "num": "4",
  193. "imgUrl": "/static/dt-ywIcon.png"
  194. },
  195. {
  196. "id": "11",
  197. "title": "地磁设备",
  198. "num": "4",
  199. "imgUrl": "/static/dt-dcIcon.png"
  200. },
  201. {
  202. "id": "12",
  203. "title": "门禁设备",
  204. "num": "4",
  205. "imgUrl": "/static/dt-mjIcon.png"
  206. },
  207. {
  208. "id": "13",
  209. "title": "天然气体设备",
  210. "num": "4",
  211. "imgUrl": "/static/dt-trIcon.png"
  212. },
  213. ];
  214. //设备管理
  215. let deviceManage = [{
  216. "id": "1",
  217. "title": "测试用传装置1",
  218. "des": "三楼茶水间",
  219. "time": "2021-01-20 15:23:43",
  220. "status": 0
  221. },
  222. {
  223. "id": "2",
  224. "title": "测试用传装置2",
  225. "des": "三楼茶水间",
  226. "time": "2021-01-20 15:23:43",
  227. "status": 0
  228. },
  229. {
  230. "id": "3",
  231. "title": "测试用传装置3",
  232. "des": "三楼茶水间",
  233. "time": "2021-01-20 15:23:43",
  234. "status": 0
  235. },
  236. {
  237. "id": "4",
  238. "title": "测试用传装置4",
  239. "des": "三楼茶水间",
  240. "time": "2021-01-20 15:23:43",
  241. "status": 0
  242. },
  243. {
  244. "id": "5",
  245. "title": "测试用传装置5",
  246. "des": "三楼茶水间",
  247. "time": "2021-01-20 15:23:43",
  248. "status": 0
  249. },
  250. {
  251. "id": "6",
  252. "title": "测试用传装置6",
  253. "des": "三楼茶水间",
  254. "time": "2021-01-20 15:23:43",
  255. "status": 0
  256. },
  257. {
  258. "id": "7",
  259. "title": "测试用传装置7",
  260. "des": "三楼茶水间",
  261. "time": "2021-01-20 15:23:43",
  262. "status": 1
  263. },
  264. {
  265. "id": "8",
  266. "title": "测试用传装置8",
  267. "des": "三楼茶水间",
  268. "time": "2021-01-20 15:23:43",
  269. "status": 2
  270. }
  271. ];
  272. // 消防督查单
  273. let inspectList = [{
  274. "id": "1",
  275. "title": "人工督查单",
  276. "num": "3",
  277. "imgUrl": "/static/rg-icon.png"
  278. },
  279. {
  280. "id": "2",
  281. "title": "电子督查单",
  282. "num": "4",
  283. "imgUrl": "/static/dz-icon.png"
  284. }
  285. ];
  286. let inspectUnprocessList = [{
  287. "id": "561",
  288. "title": "[2020]HP第DZ4104号人工督查单",
  289. "des": "事件未处理测试",
  290. "time": "2020-01-08 15:15:12"
  291. },
  292. {
  293. "id": "561",
  294. "title": "[2020]HP第DZ4104号人工督查单",
  295. "des": "事件未处理测试",
  296. "time": "2020-01-08 15:15:12"
  297. },
  298. {
  299. "id": "561",
  300. "title": "[2020]HP第DZ4104号人工督查单",
  301. "des": "事件未处理测试",
  302. "time": "2020-01-08 15:15:12"
  303. }
  304. ];
  305. let inspectProcessedList = [{
  306. "id": "561",
  307. "title": "[2020]HP第DZ4104号人工督查单",
  308. "des": "事件未处理测试",
  309. "time": "2020-01-08 15:15:12"
  310. },
  311. {
  312. "id": "561",
  313. "title": "[2020]HP第DZ4104号人工督查单",
  314. "des": "事件未处理测试",
  315. "time": "2020-01-08 15:15:12"
  316. },
  317. {
  318. "id": "561",
  319. "title": "[2020]HP第DZ4104号人工督查单",
  320. "des": "事件未处理测试",
  321. "time": "2020-01-08 15:15:12"
  322. }
  323. ];
  324. // 巡检
  325. let xunJianList = [{
  326. "id": "1",
  327. "title": "巡检计划",
  328. "num": "3",
  329. "imgUrl": "/static/xunJian-icon1.png"
  330. },
  331. {
  332. "id": "2",
  333. "title": "巡检记录",
  334. "num": "4",
  335. "imgUrl": "/static/xunJian-icon2.png"
  336. }
  337. ];
  338. let xunJianRecord = [{
  339. "id": "561",
  340. "title": "计划:巡检计划1",
  341. "des": "点位:巡检点位01",
  342. "time": "2021-01-20 15:23:43",
  343. "status": 0
  344. },
  345. {
  346. "id": "561",
  347. "title": "计划:巡检计划1",
  348. "des": "点位:巡检点位01",
  349. "time": "2021-01-20 15:23:43",
  350. "status": 1
  351. },
  352. {
  353. "id": "561",
  354. "title": "计划:巡检计划1",
  355. "des": "点位:巡检点位01",
  356. "time": "2021-01-20 15:23:43",
  357. "status": 1
  358. }
  359. ];
  360. let xunJianPlan = [{
  361. "id": "561",
  362. "title": "虹泾总部园巡检点位1",
  363. "status": 0
  364. },
  365. {
  366. "id": "561",
  367. "title": "虹泾总部园巡检点位2",
  368. "status": 0
  369. },
  370. {
  371. "id": "561",
  372. "title": "虹泾总部园巡检点位3",
  373. "status": 1
  374. }
  375. ];
  376. //报修
  377. let repair = [{
  378. "id": "561",
  379. "title": "dfmz巡检报修",
  380. "imgUrl": "/static/repair1.png",
  381. "subTitle": "类型:故障",
  382. "status": 0
  383. },
  384. {
  385. "id": "561",
  386. "title": "dfmz巡检报修",
  387. "imgUrl": "/static/repair2.png",
  388. "subTitle": "类型:故障",
  389. "status": 1
  390. },
  391. {
  392. "id": "561",
  393. "title": "dfmz巡检报修",
  394. "imgUrl": "/static/repair3.png",
  395. "subTitle": "类型:故障",
  396. "status": 2
  397. },
  398. {
  399. "id": "561",
  400. "title": "dfmz巡检报修",
  401. "imgUrl": "/static/repair4.png",
  402. "subTitle": "类型:故障",
  403. "status": 3
  404. },
  405. {
  406. "id": "561",
  407. "title": "dfmz巡检报修",
  408. "imgUrl": "/static/repair5.png",
  409. "subTitle": "类型:故障",
  410. "status": 4
  411. }
  412. ];
  413. let repairSquare = [{
  414. "id": "561",
  415. "title": "报修总数",
  416. "num": "5",
  417. "color": "#7992F9"
  418. },
  419. {
  420. "id": "561",
  421. "title": "未处理",
  422. "num": "1",
  423. "color": "#FDCA60"
  424. },
  425. {
  426. "id": "561",
  427. "title": "未审核",
  428. "num": "1",
  429. "color": "#59D1EA"
  430. },
  431. {
  432. "id": "561",
  433. "title": "未通过",
  434. "num": "1",
  435. "color": "#F77070"
  436. },
  437. {
  438. "id": "561",
  439. "title": "已完成",
  440. "num": "1",
  441. "color": "#72D06A"
  442. },
  443. {
  444. "id": "561",
  445. "title": "超时完成",
  446. "num": "1",
  447. "color": "#F7895E"
  448. }
  449. ];
  450. // 维保
  451. let weiBaoList = [{
  452. "id": "1",
  453. "title": "维保计划",
  454. "num": "3",
  455. "imgUrl": "/static/weiBao-icon1.png"
  456. },
  457. {
  458. "id": "2",
  459. "title": "维保记录",
  460. "num": "4",
  461. "imgUrl": "/static/weiBao-icon2.png"
  462. }
  463. ];
  464. let weiBaoRecord = [{
  465. "id": "561",
  466. "title": "计划:维保计划1",
  467. "des": "点位:维保点位01",
  468. "time": "2021-01-20 15:23:43",
  469. "status": 0
  470. },
  471. {
  472. "id": "561",
  473. "title": "计划:维保计划1",
  474. "des": "点位:维保点位01",
  475. "time": "2021-01-20 15:23:43",
  476. "status": 1
  477. },
  478. {
  479. "id": "561",
  480. "title": "计划:维保计划1",
  481. "des": "点位:维保点位01",
  482. "time": "2021-01-20 15:23:43",
  483. "status": 1
  484. }
  485. ];
  486. let weiBaoPlan = [{
  487. "id": "561",
  488. "title": "虹泾总部园维保点位1",
  489. "status": 0
  490. },
  491. {
  492. "id": "561",
  493. "title": "虹泾总部园维保点位2",
  494. "status": 0
  495. },
  496. {
  497. "id": "561",
  498. "title": "虹泾总部园维保点位3",
  499. "status": 1
  500. }
  501. ];
  502. // 定义数据出口
  503. module.exports = {
  504. staticData: staticData,
  505. // cuIconList: cuIconList,
  506. unprocessList: unprocessList,
  507. processedList: processedList,
  508. alarmingSquareList: alarmingSquareList,
  509. deviceOffLineData: deviceOffLineData,
  510. deviceType: deviceType,
  511. deviceManage: deviceManage,
  512. inspectList: inspectList,
  513. inspectUnprocessList: inspectUnprocessList,
  514. inspectProcessedList: inspectProcessedList,
  515. xunJianList: xunJianList,
  516. xunJianRecord: xunJianRecord,
  517. xunJianPlan: xunJianPlan,
  518. repair: repair,
  519. repairSquare: repairSquare,
  520. weiBaoList: weiBaoList,
  521. weiBaoRecord: weiBaoRecord,
  522. weiBaoPlan: weiBaoPlan,
  523. }