json.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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": 0
  261. },
  262. {
  263. "id": "561",
  264. "title": "测试用传装置",
  265. "des": "三楼茶水间",
  266. "time": "2021-01-20 15:23:43",
  267. "status": 0
  268. },
  269. {
  270. "id": "561",
  271. "title": "测试用传装置",
  272. "des": "三楼茶水间",
  273. "time": "2021-01-20 15:23:43",
  274. "status": 0
  275. },
  276. {
  277. "id": "561",
  278. "title": "测试用传装置",
  279. "des": "三楼茶水间",
  280. "time": "2021-01-20 15:23:43",
  281. "status": 0
  282. },
  283. {
  284. "id": "561",
  285. "title": "测试用传装置",
  286. "des": "三楼茶水间",
  287. "time": "2021-01-20 15:23:43",
  288. "status": 0
  289. },
  290. {
  291. "id": "561",
  292. "title": "测试用传装置",
  293. "des": "三楼茶水间",
  294. "time": "2021-01-20 15:23:43",
  295. "status": 1
  296. },
  297. {
  298. "id": "561",
  299. "title": "测试用传装置",
  300. "des": "三楼茶水间",
  301. "time": "2021-01-20 15:23:43",
  302. "status": 2
  303. }
  304. ];
  305. // 消防督查单
  306. let inspectList = [{
  307. "id": "1",
  308. "title": "人工督查单",
  309. "num": "3",
  310. "imgUrl": "/static/rg-icon.png"
  311. },
  312. {
  313. "id": "2",
  314. "title": "电子督查单",
  315. "num": "4",
  316. "imgUrl": "/static/dz-icon.png"
  317. }
  318. ];
  319. let inspectUnprocessList = [{
  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. "id": "561",
  333. "title": "[2020]HP第DZ4104号人工督查单",
  334. "des": "事件未处理测试",
  335. "time": "2020-01-08 15:15:12"
  336. }
  337. ];
  338. let inspectProcessedList = [{
  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. "id": "561",
  352. "title": "[2020]HP第DZ4104号人工督查单",
  353. "des": "事件未处理测试",
  354. "time": "2020-01-08 15:15:12"
  355. }
  356. ];
  357. // 巡检
  358. let xunJianList = [{
  359. "id": "1",
  360. "title": "巡检计划",
  361. "num": "3",
  362. "imgUrl": "/static/xunJian-icon1.png"
  363. },
  364. {
  365. "id": "2",
  366. "title": "巡检记录",
  367. "num": "4",
  368. "imgUrl": "/static/xunJian-icon2.png"
  369. }
  370. ];
  371. let xunJianRecord = [{
  372. "id": "561",
  373. "title": "计划:巡检计划1",
  374. "des": "点位:巡检点位01",
  375. "time": "2021-01-20 15:23:43",
  376. "status": 0
  377. },
  378. {
  379. "id": "561",
  380. "title": "计划:巡检计划1",
  381. "des": "点位:巡检点位01",
  382. "time": "2021-01-20 15:23:43",
  383. "status": 2
  384. },
  385. {
  386. "id": "561",
  387. "title": "计划:巡检计划1",
  388. "des": "点位:巡检点位01",
  389. "time": "2021-01-20 15:23:43",
  390. "status": 1
  391. }
  392. ];
  393. let xunJianPlan = [{
  394. "id": "561",
  395. "title": "虹泾总部园巡检点位1",
  396. "status": 0
  397. },
  398. {
  399. "id": "561",
  400. "title": "虹泾总部园巡检点位2",
  401. "status": 0
  402. },
  403. {
  404. "id": "561",
  405. "title": "虹泾总部园巡检点位3",
  406. "status": 1
  407. }
  408. ];
  409. //报修
  410. let repair = [{
  411. "id": "561",
  412. "title": "dfmz巡检报修",
  413. "imgUrl": "/static/repair1.png",
  414. "subTitle": "类型 故障",
  415. "status": 0
  416. },
  417. {
  418. "id": "561",
  419. "title": "dfmz巡检报修",
  420. "imgUrl": "/static/repair2.png",
  421. "subTitle": "类型 故障",
  422. "status": 1
  423. },
  424. {
  425. "id": "561",
  426. "title": "dfmz巡检报修",
  427. "imgUrl": "/static/repair3.png",
  428. "subTitle": "类型 故障",
  429. "status": 2
  430. },
  431. {
  432. "id": "561",
  433. "title": "dfmz巡检报修",
  434. "imgUrl": "/static/repair4.png",
  435. "subTitle": "类型 故障",
  436. "status": 3
  437. },
  438. {
  439. "id": "561",
  440. "title": "dfmz巡检报修",
  441. "imgUrl": "/static/repair5.png",
  442. "subTitle": "类型 故障",
  443. "status": 4
  444. }
  445. ];
  446. let repairSquare = [{
  447. "id": "561",
  448. "title": "报修总数",
  449. "num": "5",
  450. "color": "#7992F9"
  451. },
  452. {
  453. "id": "561",
  454. "title": "未处理",
  455. "num": "1",
  456. "color": "#FDCA60"
  457. },
  458. {
  459. "id": "561",
  460. "title": "未审核",
  461. "num": "1",
  462. "color": "#59D1EA"
  463. },
  464. {
  465. "id": "561",
  466. "title": "未通过",
  467. "num": "1",
  468. "color": "#F77070"
  469. },
  470. {
  471. "id": "561",
  472. "title": "已完成",
  473. "num": "1",
  474. "color": "#72D06A"
  475. },
  476. {
  477. "id": "561",
  478. "title": "超时完成",
  479. "num": "1",
  480. "color": "#F7895E"
  481. }
  482. ];
  483. // 维保
  484. let weiBaoList = [{
  485. "id": "1",
  486. "title": "维保计划",
  487. "num": "3",
  488. "imgUrl": "/static/weiBao-icon1.png"
  489. },
  490. {
  491. "id": "2",
  492. "title": "维保记录",
  493. "num": "4",
  494. "imgUrl": "/static/weiBao-icon2.png"
  495. }
  496. ];
  497. let weiBaoRecord = [{
  498. "id": "561",
  499. "title": "计划:维保计划1",
  500. "des": "点位:维保点位01",
  501. "time": "2021-01-20 15:23:43",
  502. "status": 0
  503. },
  504. {
  505. "id": "561",
  506. "title": "计划:维保计划1",
  507. "des": "点位:维保点位01",
  508. "time": "2021-01-20 15:23:43",
  509. "status": 1
  510. },
  511. {
  512. "id": "561",
  513. "title": "计划:维保计划1",
  514. "des": "点位:维保点位01",
  515. "time": "2021-01-20 15:23:43",
  516. "status": 1
  517. }
  518. ];
  519. let weiBaoPlan = [{
  520. "id": "561",
  521. "title": "虹泾总部园维保点位1",
  522. "status": 0
  523. },
  524. {
  525. "id": "561",
  526. "title": "虹泾总部园维保点位2",
  527. "status": 0
  528. },
  529. {
  530. "id": "561",
  531. "title": "虹泾总部园维保点位3",
  532. "status": 1
  533. }
  534. ];
  535. // 定义数据出口
  536. module.exports = {
  537. staticData: staticData,
  538. cuIconList: cuIconList,
  539. unprocessList: unprocessList,
  540. processedList: processedList,
  541. alarmingSquareList: alarmingSquareList,
  542. deviceOffLineData: deviceOffLineData,
  543. deviceType: deviceType,
  544. deviceManage: deviceManage,
  545. inspectList: inspectList,
  546. inspectUnprocessList: inspectUnprocessList,
  547. inspectProcessedList: inspectProcessedList,
  548. xunJianList: xunJianList,
  549. xunJianRecord: xunJianRecord,
  550. xunJianPlan: xunJianPlan,
  551. repair: repair,
  552. repairSquare: repairSquare,
  553. weiBaoList: weiBaoList,
  554. weiBaoRecord: weiBaoRecord,
  555. weiBaoPlan: weiBaoPlan,
  556. }