json.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  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. type:1
  97. }, {
  98. imgUrl: '../../static/alarming-water.png',
  99. badge: 0,
  100. name: '水系统',
  101. type:2
  102. },
  103. {
  104. imgUrl: '../../static/alarming-ck.png',
  105. badge: 0,
  106. name: '测控终端',
  107. type:6
  108. },
  109. {
  110. imgUrl: '../../static/alarming-dq.png',
  111. badge: 0,
  112. name: '电气火灾',
  113. type:7
  114. },
  115. {
  116. imgUrl: '../../static/alarming-sp.png',
  117. badge: 0,
  118. name: '视频告警',
  119. type:16
  120. },
  121. {
  122. imgUrl: '../../static/alarming-dt.png',
  123. badge: 0,
  124. name: '电梯报警',
  125. type:17
  126. },
  127. {
  128. imgUrl: '../../static/alarming-mc.png',
  129. badge: 0,
  130. name: '门磁',
  131. type:130
  132. },
  133. {
  134. imgUrl: '../../static/alarming-kr.png',
  135. badge: 0,
  136. name: '可燃气体',
  137. type:131
  138. },
  139. {
  140. imgUrl: '../../static/alarming-jg.png',
  141. badge: 0,
  142. name: '井盖监测',
  143. type:128
  144. },
  145. {
  146. imgUrl: '../../static/alarming-xf.png',
  147. badge: 0,
  148. name: '消防栓监测',
  149. type:4
  150. }
  151. ];
  152. // 离线设备
  153. let deviceOffLineData = [{
  154. title: '测试用传装置',
  155. subTitle: '三楼茶水间',
  156. status: '未处理',
  157. time: '2020-01-08 15:15:12'
  158. }, {
  159. title: '测试用传装置',
  160. subTitle: '三楼茶水间',
  161. status: '未处理',
  162. time: '2020-01-08 15:15:12'
  163. }, {
  164. title: '测试用传装置',
  165. subTitle: '三楼茶水间',
  166. status: '未处理',
  167. time: '2020-01-08 15:15:12'
  168. }]
  169. let unprocessList = [{
  170. "id": "561",
  171. "title": "烟雾拆卸报警",
  172. "des": "三楼赛特威尔测试烟感二",
  173. "time": "2021-01-20 15:23:43"
  174. },
  175. {
  176. "id": "561",
  177. "title": "烟雾拆卸报警",
  178. "des": "三楼赛特威尔测试烟感二",
  179. "time": "2021-01-20 15:23:43"
  180. },
  181. {
  182. "id": "561",
  183. "title": "烟雾拆卸报警",
  184. "des": "三楼赛特威尔测试烟感二",
  185. "time": "2021-01-20 15:23:43"
  186. }
  187. ];
  188. let processedList = [{
  189. "id": "561",
  190. "title": "烟雾拆卸报警",
  191. "des": "三楼赛特威尔测试烟感二",
  192. "time": "2021-01-20 15:23:43"
  193. },
  194. {
  195. "id": "561",
  196. "title": "烟雾拆卸报警",
  197. "des": "三楼赛特威尔测试烟感二",
  198. "time": "2021-01-20 15:23:43"
  199. }
  200. ];
  201. // 设备类型
  202. let deviceType = [{
  203. "id": "1",
  204. "title": "火警",
  205. "num": "3",
  206. "imgUrl": "/static/dt-alarmIcon.png",
  207. "dwtype":1
  208. },
  209. {
  210. "id": "2",
  211. "title": "水警",
  212. "num": "4",
  213. "imgUrl": "/static/dt-waterIcon.png",
  214. "dwtype":2
  215. },
  216. {
  217. "id": "3",
  218. "title": "电气火灾",
  219. "num": "4",
  220. "imgUrl": "/static/dt-dqIcon.png",
  221. "dwtype":7
  222. },
  223. {
  224. "id": "4",
  225. "title": "RTU",
  226. "num": "4",
  227. "imgUrl": "/static/dt-rtuIcon.png",
  228. "dwtype":6
  229. },
  230. {
  231. "id": "5",
  232. "title": "烟感",
  233. "num": "4",
  234. "imgUrl": "/static/dt-ygIcon.png",
  235. "dwtype":3
  236. },
  237. {
  238. "id": "6",
  239. "title": "视频",
  240. "num": "4",
  241. "imgUrl": "/static/dt-videoIcon.png",
  242. "dwtype":16
  243. },
  244. {
  245. "id": "7",
  246. "title": "电梯",
  247. "num": "4",
  248. "imgUrl": "/static/dt.png",
  249. "dwtype":17
  250. },
  251. {
  252. "id": "8",
  253. "title": "井盖",
  254. "num": "4",
  255. "imgUrl": "/static/dt-jgIcon.png",
  256. "dwtype":128
  257. },
  258. {
  259. "id": "9",
  260. "title": "消防栓",
  261. "num": "4",
  262. "imgUrl": "/static/dt-xfsIcon.png",
  263. "dwtype":4
  264. },
  265. {
  266. "id": "10",
  267. "title": "液位设备",
  268. "num": "4",
  269. "imgUrl": "/static/dt-ywIcon.png",
  270. "dwtype":5
  271. },
  272. {
  273. "id": "11",
  274. "title": "地磁设备",
  275. "num": "4",
  276. "imgUrl": "/static/dt-dcIcon.png",
  277. "dwtype":129
  278. },
  279. {
  280. "id": "12",
  281. "title": "门禁设备",
  282. "num": "4",
  283. "imgUrl": "/static/dt-mjIcon.png",
  284. "dwtype":130
  285. },
  286. {
  287. "id": "13",
  288. "title": "天然气体设备",
  289. "num": "4",
  290. "imgUrl": "/static/dt-trIcon.png",
  291. "dwtype":131
  292. },
  293. ];
  294. //设备管理
  295. let deviceManage = [{
  296. "id": "1",
  297. "title": "测试用传装置1",
  298. "des": "三楼茶水间",
  299. "time": "2021-01-20 15:23:43",
  300. "status": 0
  301. },
  302. {
  303. "id": "2",
  304. "title": "测试用传装置2",
  305. "des": "三楼茶水间",
  306. "time": "2021-01-20 15:23:43",
  307. "status": 0
  308. },
  309. {
  310. "id": "3",
  311. "title": "测试用传装置3",
  312. "des": "三楼茶水间",
  313. "time": "2021-01-20 15:23:43",
  314. "status": 0
  315. },
  316. {
  317. "id": "4",
  318. "title": "测试用传装置4",
  319. "des": "三楼茶水间",
  320. "time": "2021-01-20 15:23:43",
  321. "status": 0
  322. },
  323. {
  324. "id": "5",
  325. "title": "测试用传装置5",
  326. "des": "三楼茶水间",
  327. "time": "2021-01-20 15:23:43",
  328. "status": 0
  329. },
  330. {
  331. "id": "6",
  332. "title": "测试用传装置6",
  333. "des": "三楼茶水间",
  334. "time": "2021-01-20 15:23:43",
  335. "status": 0
  336. },
  337. {
  338. "id": "7",
  339. "title": "测试用传装置7",
  340. "des": "三楼茶水间",
  341. "time": "2021-01-20 15:23:43",
  342. "status": 1
  343. },
  344. {
  345. "id": "8",
  346. "title": "测试用传装置8",
  347. "des": "三楼茶水间",
  348. "time": "2021-01-20 15:23:43",
  349. "status": 2
  350. }
  351. ];
  352. // 消防督查单
  353. let inspectList = [{
  354. "id": "1",
  355. "title": "人工督查单",
  356. "num": "3",
  357. "imgUrl": "/static/rg-icon.png"
  358. },
  359. {
  360. "id": "2",
  361. "title": "电子督查单",
  362. "num": "4",
  363. "imgUrl": "/static/dz-icon.png"
  364. }
  365. ];
  366. let inspectUnprocessList = [{
  367. "id": "561",
  368. "title": "[2020]HP第DZ4104号人工督查单",
  369. "des": "事件未处理测试",
  370. "time": "2020-01-08 15:15:12"
  371. },
  372. {
  373. "id": "561",
  374. "title": "[2020]HP第DZ4104号人工督查单",
  375. "des": "事件未处理测试",
  376. "time": "2020-01-08 15:15:12"
  377. },
  378. {
  379. "id": "561",
  380. "title": "[2020]HP第DZ4104号人工督查单",
  381. "des": "事件未处理测试",
  382. "time": "2020-01-08 15:15:12"
  383. }
  384. ];
  385. let inspectProcessedList = [{
  386. "id": "561",
  387. "title": "[2020]HP第DZ4104号人工督查单",
  388. "des": "事件未处理测试",
  389. "time": "2020-01-08 15:15:12"
  390. },
  391. {
  392. "id": "561",
  393. "title": "[2020]HP第DZ4104号人工督查单",
  394. "des": "事件未处理测试",
  395. "time": "2020-01-08 15:15:12"
  396. },
  397. {
  398. "id": "561",
  399. "title": "[2020]HP第DZ4104号人工督查单",
  400. "des": "事件未处理测试",
  401. "time": "2020-01-08 15:15:12"
  402. }
  403. ];
  404. // 巡检
  405. let xunJianList = [{
  406. "id": "1",
  407. "title": "巡检计划",
  408. "num": "3",
  409. "imgUrl": "/static/xunJian-icon1.png"
  410. },
  411. {
  412. "id": "2",
  413. "title": "巡检记录",
  414. "num": "4",
  415. "imgUrl": "/static/xunJian-icon2.png"
  416. }
  417. ];
  418. let xunJianRecord = [{
  419. "id": "561",
  420. "title": "计划:巡检计划1",
  421. "des": "点位:巡检点位01",
  422. "time": "2021-01-20 15:23:43",
  423. "status": 0
  424. },
  425. {
  426. "id": "561",
  427. "title": "计划:巡检计划1",
  428. "des": "点位:巡检点位01",
  429. "time": "2021-01-20 15:23:43",
  430. "status": 1
  431. },
  432. {
  433. "id": "561",
  434. "title": "计划:巡检计划1",
  435. "des": "点位:巡检点位01",
  436. "time": "2021-01-20 15:23:43",
  437. "status": 1
  438. }
  439. ];
  440. let xunJianPlan = [{
  441. "id": "561",
  442. "title": "虹泾总部园巡检点位1",
  443. "status": 0
  444. },
  445. {
  446. "id": "561",
  447. "title": "虹泾总部园巡检点位2",
  448. "status": 0
  449. },
  450. {
  451. "id": "561",
  452. "title": "虹泾总部园巡检点位3",
  453. "status": 1
  454. }
  455. ];
  456. //报修
  457. let repair = [{
  458. "id": "561",
  459. "title": "dfmz巡检报修",
  460. "imgUrl": "/static/repair1.png",
  461. "subTitle": "类型:故障",
  462. "status": 0
  463. },
  464. {
  465. "id": "561",
  466. "title": "dfmz巡检报修",
  467. "imgUrl": "/static/repair2.png",
  468. "subTitle": "类型:故障",
  469. "status": 1
  470. },
  471. {
  472. "id": "561",
  473. "title": "dfmz巡检报修",
  474. "imgUrl": "/static/repair3.png",
  475. "subTitle": "类型:故障",
  476. "status": 2
  477. },
  478. {
  479. "id": "561",
  480. "title": "dfmz巡检报修",
  481. "imgUrl": "/static/repair4.png",
  482. "subTitle": "类型:故障",
  483. "status": 3
  484. },
  485. {
  486. "id": "561",
  487. "title": "dfmz巡检报修",
  488. "imgUrl": "/static/repair5.png",
  489. "subTitle": "类型:故障",
  490. "status": 4
  491. }
  492. ];
  493. let repairSquare = [{
  494. "id": "561",
  495. "title": "报修总数",
  496. "num": "5",
  497. "color": "#7992F9"
  498. },
  499. {
  500. "id": "561",
  501. "title": "未处理",
  502. "num": "1",
  503. "color": "#FDCA60"
  504. },
  505. {
  506. "id": "561",
  507. "title": "未审核",
  508. "num": "1",
  509. "color": "#59D1EA"
  510. },
  511. {
  512. "id": "561",
  513. "title": "未通过",
  514. "num": "1",
  515. "color": "#F77070"
  516. },
  517. {
  518. "id": "561",
  519. "title": "已完成",
  520. "num": "1",
  521. "color": "#72D06A"
  522. },
  523. {
  524. "id": "561",
  525. "title": "超时完成",
  526. "num": "1",
  527. "color": "#F7895E"
  528. }
  529. ];
  530. // 维保
  531. let weiBaoList = [{
  532. "id": "1",
  533. "title": "维保计划",
  534. "num": "3",
  535. "imgUrl": "/static/weiBao-icon1.png"
  536. },
  537. {
  538. "id": "2",
  539. "title": "维保记录",
  540. "num": "4",
  541. "imgUrl": "/static/weiBao-icon2.png"
  542. }
  543. ];
  544. let weiBaoRecord = [{
  545. "id": "561",
  546. "title": "计划:维保计划1",
  547. "des": "点位:维保点位01",
  548. "time": "2021-01-20 15:23:43",
  549. "status": 0
  550. },
  551. {
  552. "id": "561",
  553. "title": "计划:维保计划1",
  554. "des": "点位:维保点位01",
  555. "time": "2021-01-20 15:23:43",
  556. "status": 1
  557. },
  558. {
  559. "id": "561",
  560. "title": "计划:维保计划1",
  561. "des": "点位:维保点位01",
  562. "time": "2021-01-20 15:23:43",
  563. "status": 1
  564. }
  565. ];
  566. let weiBaoPlan = [{
  567. "id": "561",
  568. "title": "虹泾总部园维保点位1",
  569. "status": 0
  570. },
  571. {
  572. "id": "561",
  573. "title": "虹泾总部园维保点位2",
  574. "status": 0
  575. },
  576. {
  577. "id": "561",
  578. "title": "虹泾总部园维保点位3",
  579. "status": 1
  580. }
  581. ];
  582. // 定义数据出口
  583. module.exports = {
  584. staticData: staticData,
  585. cuIconList: cuIconList,
  586. unprocessList: unprocessList,
  587. processedList: processedList,
  588. alarmingSquareList: alarmingSquareList,
  589. deviceOffLineData: deviceOffLineData,
  590. deviceType: deviceType,
  591. deviceManage: deviceManage,
  592. inspectList: inspectList,
  593. inspectUnprocessList: inspectUnprocessList,
  594. inspectProcessedList: inspectProcessedList,
  595. xunJianList: xunJianList,
  596. xunJianRecord: xunJianRecord,
  597. xunJianPlan: xunJianPlan,
  598. repair: repair,
  599. repairSquare: repairSquare,
  600. weiBaoList: weiBaoList,
  601. weiBaoRecord: weiBaoRecord,
  602. weiBaoPlan: weiBaoPlan,
  603. }