json.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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":0
  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. // 定义数据出口
  359. module.exports = {
  360. staticData:staticData,
  361. cuIconList: cuIconList,
  362. unprocessList: unprocessList,
  363. processedList: processedList,
  364. alarmingSquareList: alarmingSquareList,
  365. deviceOffLineData: deviceOffLineData,
  366. deviceType: deviceType,
  367. deviceManage:deviceManage,
  368. inspectList:inspectList,
  369. inspectUnprocessList: inspectUnprocessList,
  370. inspectProcessedList: inspectProcessedList,
  371. xunJianList:xunJianList,
  372. xunJianRecord:xunJianRecord
  373. }