json.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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": "6",
  230. "title": "电梯",
  231. "num": "4",
  232. "imgUrl": "/static/dt-dtIcon.png"
  233. },
  234. {
  235. "id": "7",
  236. "title": "井盖",
  237. "num": "4",
  238. "imgUrl": "/static/dt-jgIcon.png"
  239. },
  240. {
  241. "id": "8",
  242. "title": "消防栓",
  243. "num": "4",
  244. "imgUrl": "/static/dt-xfsIcon.png"
  245. },
  246. ];
  247. //设备管理
  248. let deviceManage = [{
  249. "id": "561",
  250. "title": "测试用传装置",
  251. "des": "三楼茶水间",
  252. "time": "2021-01-20 15:23:43",
  253. "status": 0
  254. },
  255. {
  256. "id": "561",
  257. "title": "测试用传装置",
  258. "des": "三楼茶水间",
  259. "time": "2021-01-20 15:23:43",
  260. "status": 1
  261. },
  262. {
  263. "id": "561",
  264. "title": "测试用传装置",
  265. "des": "三楼茶水间",
  266. "time": "2021-01-20 15:23:43",
  267. "status": 2
  268. }
  269. ];
  270. // 消防督查单
  271. let inspectList = [{
  272. "id": "1",
  273. "title": "人工督查单",
  274. "num": "3",
  275. "imgUrl": "/static/rg-icon.png"
  276. },
  277. {
  278. "id": "2",
  279. "title": "电子督查单",
  280. "num": "4",
  281. "imgUrl": "/static/dz-icon.png"
  282. }
  283. ];
  284. let inspectUnprocessList = [{
  285. "id": "561",
  286. "title": "[2020]HP第DZ4104号人工督查单",
  287. "des": "事件未处理测试",
  288. "time": "2020-01-08 15:15:12"
  289. },
  290. {
  291. "id": "561",
  292. "title": "[2020]HP第DZ4104号人工督查单",
  293. "des": "事件未处理测试",
  294. "time": "2020-01-08 15:15:12"
  295. },
  296. {
  297. "id": "561",
  298. "title": "[2020]HP第DZ4104号人工督查单",
  299. "des": "事件未处理测试",
  300. "time": "2020-01-08 15:15:12"
  301. }
  302. ];
  303. let inspectProcessedList = [{
  304. "id": "561",
  305. "title": "[2020]HP第DZ4104号人工督查单",
  306. "des": "事件未处理测试",
  307. "time": "2020-01-08 15:15:12"
  308. },
  309. {
  310. "id": "561",
  311. "title": "[2020]HP第DZ4104号人工督查单",
  312. "des": "事件未处理测试",
  313. "time": "2020-01-08 15:15:12"
  314. },
  315. {
  316. "id": "561",
  317. "title": "[2020]HP第DZ4104号人工督查单",
  318. "des": "事件未处理测试",
  319. "time": "2020-01-08 15:15:12"
  320. }
  321. ];
  322. // 巡检
  323. let xunJianList = [{
  324. "id": "1",
  325. "title": "巡检计划",
  326. "num": "3",
  327. "imgUrl": "/static/xunJian-icon1.png"
  328. },
  329. {
  330. "id": "2",
  331. "title": "巡检记录",
  332. "num": "4",
  333. "imgUrl": "/static/xunJian-icon2.png"
  334. }
  335. ];
  336. let xunJianRecord = [{
  337. "id": "561",
  338. "title": "计划:巡检计划1",
  339. "des": "点位:巡检点位01",
  340. "time": "2021-01-20 15:23:43",
  341. "status": 0
  342. },
  343. {
  344. "id": "561",
  345. "title": "计划:巡检计划1",
  346. "des": "点位:巡检点位01",
  347. "time": "2021-01-20 15:23:43",
  348. "status": 2
  349. },
  350. {
  351. "id": "561",
  352. "title": "计划:巡检计划1",
  353. "des": "点位:巡检点位01",
  354. "time": "2021-01-20 15:23:43",
  355. "status": 1
  356. }
  357. ];
  358. let xunJianPlan = [{
  359. "id": "561",
  360. "title": "虹泾总部园巡检点位1",
  361. "status": 0
  362. },
  363. {
  364. "id": "561",
  365. "title": "虹泾总部园巡检点位2",
  366. "status": 0
  367. },
  368. {
  369. "id": "561",
  370. "title": "虹泾总部园巡检点位3",
  371. "status": 1
  372. }
  373. ];
  374. //报修
  375. let repair = [{
  376. "id": "561",
  377. "title": "dfmz巡检报修",
  378. "imgUrl": "/static/repair1.png",
  379. "subTitle": "类型 故障",
  380. "status": 0
  381. },
  382. {
  383. "id": "561",
  384. "title": "dfmz巡检报修",
  385. "imgUrl": "/static/repair2.png",
  386. "subTitle": "类型 故障",
  387. "status": 1
  388. },
  389. {
  390. "id": "561",
  391. "title": "dfmz巡检报修",
  392. "imgUrl": "/static/repair3.png",
  393. "subTitle": "类型 故障",
  394. "status": 2
  395. },
  396. {
  397. "id": "561",
  398. "title": "dfmz巡检报修",
  399. "imgUrl": "/static/repair4.png",
  400. "subTitle": "类型 故障",
  401. "status": 3
  402. },
  403. {
  404. "id": "561",
  405. "title": "dfmz巡检报修",
  406. "imgUrl": "/static/repair5.png",
  407. "subTitle": "类型 故障",
  408. "status": 4
  409. }
  410. ];
  411. let repairSquare = [{
  412. "id": "561",
  413. "title": "报修总数",
  414. "num": "5",
  415. "color":"#7992F9"
  416. },
  417. {
  418. "id": "561",
  419. "title": "未处理",
  420. "num": "1",
  421. "color":"#FDCA60"
  422. },
  423. {
  424. "id": "561",
  425. "title": "未审核",
  426. "num": "1",
  427. "color":"#59D1EA"
  428. },
  429. {
  430. "id": "561",
  431. "title": "未通过",
  432. "num": "1",
  433. "color":"#F77070"
  434. },
  435. {
  436. "id": "561",
  437. "title": "已完成",
  438. "num": "1",
  439. "color":"#72D06A"
  440. },
  441. {
  442. "id": "561",
  443. "title": "超时完成",
  444. "num": "1",
  445. "color":"#F7895E"
  446. }
  447. ];
  448. // 维保
  449. let weiBaoList = [{
  450. "id": "1",
  451. "title": "维保计划",
  452. "num": "3",
  453. "imgUrl": "/static/weiBao-icon1.png"
  454. },
  455. {
  456. "id": "2",
  457. "title": "维保记录",
  458. "num": "4",
  459. "imgUrl": "/static/weiBao-icon2.png"
  460. }
  461. ];
  462. let weiBaoRecord = [{
  463. "id": "561",
  464. "title": "计划:维保计划1",
  465. "des": "点位:维保点位01",
  466. "time": "2021-01-20 15:23:43",
  467. "status": 0
  468. },
  469. {
  470. "id": "561",
  471. "title": "计划:维保计划1",
  472. "des": "点位:维保点位01",
  473. "time": "2021-01-20 15:23:43",
  474. "status": 1
  475. },
  476. {
  477. "id": "561",
  478. "title": "计划:维保计划1",
  479. "des": "点位:维保点位01",
  480. "time": "2021-01-20 15:23:43",
  481. "status": 1
  482. }
  483. ];
  484. let weiBaoPlan = [{
  485. "id": "561",
  486. "title": "虹泾总部园维保点位1",
  487. "status": 0
  488. },
  489. {
  490. "id": "561",
  491. "title": "虹泾总部园维保点位2",
  492. "status": 0
  493. },
  494. {
  495. "id": "561",
  496. "title": "虹泾总部园维保点位3",
  497. "status": 1
  498. }
  499. ];
  500. // 定义数据出口
  501. module.exports = {
  502. staticData: staticData,
  503. cuIconList: cuIconList,
  504. unprocessList: unprocessList,
  505. processedList: processedList,
  506. alarmingSquareList: alarmingSquareList,
  507. deviceOffLineData: deviceOffLineData,
  508. deviceType: deviceType,
  509. deviceManage: deviceManage,
  510. inspectList: inspectList,
  511. inspectUnprocessList: inspectUnprocessList,
  512. inspectProcessedList: inspectProcessedList,
  513. xunJianList: xunJianList,
  514. xunJianRecord: xunJianRecord,
  515. xunJianPlan: xunJianPlan,
  516. repair: repair,
  517. repairSquare:repairSquare,
  518. weiBaoList: weiBaoList,
  519. weiBaoRecord: weiBaoRecord,
  520. weiBaoPlan: weiBaoPlan,
  521. }