json.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  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. "type":1
  359. },
  360. {
  361. "id": "2",
  362. "title": "电子督查单",
  363. "num": "4",
  364. "imgUrl": "/static/dz-icon.png",
  365. "type":2
  366. }
  367. ];
  368. let inspectUnprocessList = [{
  369. "id": "561",
  370. "title": "[2020]HP第DZ4104号人工督查单",
  371. "des": "事件未处理测试",
  372. "time": "2020-01-08 15:15:12"
  373. },
  374. {
  375. "id": "561",
  376. "title": "[2020]HP第DZ4104号人工督查单",
  377. "des": "事件未处理测试",
  378. "time": "2020-01-08 15:15:12"
  379. },
  380. {
  381. "id": "561",
  382. "title": "[2020]HP第DZ4104号人工督查单",
  383. "des": "事件未处理测试",
  384. "time": "2020-01-08 15:15:12"
  385. }
  386. ];
  387. let inspectProcessedList = [{
  388. "id": "561",
  389. "title": "[2020]HP第DZ4104号人工督查单",
  390. "des": "事件未处理测试",
  391. "time": "2020-01-08 15:15:12"
  392. },
  393. {
  394. "id": "561",
  395. "title": "[2020]HP第DZ4104号人工督查单",
  396. "des": "事件未处理测试",
  397. "time": "2020-01-08 15:15:12"
  398. },
  399. {
  400. "id": "561",
  401. "title": "[2020]HP第DZ4104号人工督查单",
  402. "des": "事件未处理测试",
  403. "time": "2020-01-08 15:15:12"
  404. }
  405. ];
  406. // 巡检
  407. let xunJianList = [{
  408. "id": "1",
  409. "title": "巡检计划",
  410. "num": "3",
  411. "imgUrl": "/static/xunJian-icon1.png"
  412. },
  413. {
  414. "id": "2",
  415. "title": "巡检记录",
  416. "num": "4",
  417. "imgUrl": "/static/xunJian-icon2.png"
  418. }
  419. ];
  420. let xunJianRecord = [{
  421. "id": "561",
  422. "title": "计划:巡检计划1",
  423. "des": "点位:巡检点位01",
  424. "time": "2021-01-20 15:23:43",
  425. "status": 0
  426. },
  427. {
  428. "id": "561",
  429. "title": "计划:巡检计划1",
  430. "des": "点位:巡检点位01",
  431. "time": "2021-01-20 15:23:43",
  432. "status": 1
  433. },
  434. {
  435. "id": "561",
  436. "title": "计划:巡检计划1",
  437. "des": "点位:巡检点位01",
  438. "time": "2021-01-20 15:23:43",
  439. "status": 1
  440. }
  441. ];
  442. let xunJianPlan = [{
  443. "id": "561",
  444. "title": "虹泾总部园巡检点位1",
  445. "status": 0
  446. },
  447. {
  448. "id": "561",
  449. "title": "虹泾总部园巡检点位2",
  450. "status": 0
  451. },
  452. {
  453. "id": "561",
  454. "title": "虹泾总部园巡检点位3",
  455. "status": 1
  456. }
  457. ];
  458. //报修
  459. let repair = [{
  460. "id": "561",
  461. "title": "dfmz巡检报修",
  462. "imgUrl": "/static/repair1.png",
  463. "subTitle": "类型:故障",
  464. "status": 0
  465. },
  466. {
  467. "id": "561",
  468. "title": "dfmz巡检报修",
  469. "imgUrl": "/static/repair2.png",
  470. "subTitle": "类型:故障",
  471. "status": 1
  472. },
  473. {
  474. "id": "561",
  475. "title": "dfmz巡检报修",
  476. "imgUrl": "/static/repair3.png",
  477. "subTitle": "类型:故障",
  478. "status": 2
  479. },
  480. {
  481. "id": "561",
  482. "title": "dfmz巡检报修",
  483. "imgUrl": "/static/repair4.png",
  484. "subTitle": "类型:故障",
  485. "status": 3
  486. },
  487. {
  488. "id": "561",
  489. "title": "dfmz巡检报修",
  490. "imgUrl": "/static/repair5.png",
  491. "subTitle": "类型:故障",
  492. "status": 4
  493. }
  494. ];
  495. let repairSquare = [{
  496. "id": "561",
  497. "title": "报修总数",
  498. "num": "5",
  499. "color": "#7992F9"
  500. },
  501. {
  502. "id": "561",
  503. "title": "未处理",
  504. "num": "1",
  505. "color": "#FDCA60"
  506. },
  507. {
  508. "id": "561",
  509. "title": "未审核",
  510. "num": "1",
  511. "color": "#59D1EA"
  512. },
  513. {
  514. "id": "561",
  515. "title": "未通过",
  516. "num": "1",
  517. "color": "#F77070"
  518. },
  519. {
  520. "id": "561",
  521. "title": "已完成",
  522. "num": "1",
  523. "color": "#72D06A"
  524. },
  525. {
  526. "id": "561",
  527. "title": "超时完成",
  528. "num": "1",
  529. "color": "#F7895E"
  530. }
  531. ];
  532. // 维保
  533. let weiBaoList = [{
  534. "id": "1",
  535. "title": "维保计划",
  536. "num": "3",
  537. "imgUrl": "/static/weiBao-icon1.png"
  538. },
  539. {
  540. "id": "2",
  541. "title": "维保记录",
  542. "num": "4",
  543. "imgUrl": "/static/weiBao-icon2.png"
  544. }
  545. ];
  546. let weiBaoRecord = [{
  547. "id": "561",
  548. "title": "计划:维保计划1",
  549. "des": "点位:维保点位01",
  550. "time": "2021-01-20 15:23:43",
  551. "status": 0
  552. },
  553. {
  554. "id": "561",
  555. "title": "计划:维保计划1",
  556. "des": "点位:维保点位01",
  557. "time": "2021-01-20 15:23:43",
  558. "status": 1
  559. },
  560. {
  561. "id": "561",
  562. "title": "计划:维保计划1",
  563. "des": "点位:维保点位01",
  564. "time": "2021-01-20 15:23:43",
  565. "status": 1
  566. }
  567. ];
  568. let weiBaoPlan = [{
  569. "id": "561",
  570. "title": "虹泾总部园维保点位1",
  571. "status": 0
  572. },
  573. {
  574. "id": "561",
  575. "title": "虹泾总部园维保点位2",
  576. "status": 0
  577. },
  578. {
  579. "id": "561",
  580. "title": "虹泾总部园维保点位3",
  581. "status": 1
  582. }
  583. ];
  584. // 定义数据出口
  585. module.exports = {
  586. staticData: staticData,
  587. cuIconList: cuIconList,
  588. unprocessList: unprocessList,
  589. processedList: processedList,
  590. alarmingSquareList: alarmingSquareList,
  591. deviceOffLineData: deviceOffLineData,
  592. deviceType: deviceType,
  593. deviceManage: deviceManage,
  594. inspectList: inspectList,
  595. inspectUnprocessList: inspectUnprocessList,
  596. inspectProcessedList: inspectProcessedList,
  597. xunJianList: xunJianList,
  598. xunJianRecord: xunJianRecord,
  599. xunJianPlan: xunJianPlan,
  600. repair: repair,
  601. repairSquare: repairSquare,
  602. weiBaoList: weiBaoList,
  603. weiBaoRecord: weiBaoRecord,
  604. weiBaoPlan: weiBaoPlan,
  605. }