json.js 11 KB

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