json.js 14 KB

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