json.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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: 100,
  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 alarmingSquareList = [{
  72. imgUrl: '../../static/alarming-zj.png',
  73. badge: 100,
  74. name: '报警主机',
  75. }, {
  76. imgUrl: '../../static/alarming-water.png',
  77. badge: 0,
  78. name: '水系统',
  79. },
  80. {
  81. imgUrl: '../../static/alarming-ck.png',
  82. badge: 0,
  83. name: '测控终端',
  84. },
  85. {
  86. imgUrl: '../../static/alarming-dq.png',
  87. badge: 0,
  88. name: '电气火灾',
  89. },
  90. {
  91. imgUrl: '../../static/alarming-sp.png',
  92. badge: 0,
  93. name: '视频告警',
  94. },
  95. {
  96. imgUrl: '../../static/alarming-dt.png',
  97. badge: 0,
  98. name: '电梯报警',
  99. },
  100. {
  101. imgUrl: '../../static/alarming-mc.png',
  102. badge: 0,
  103. name: '门磁',
  104. },
  105. {
  106. imgUrl: '../../static/alarming-kr.png',
  107. badge: 0,
  108. name: '可燃气体',
  109. },
  110. {
  111. imgUrl: '../../static/alarming-jg.png',
  112. badge: 0,
  113. name: '井盖监测',
  114. },
  115. {
  116. imgUrl: '../../static/alarming-xf.png',
  117. badge: 0,
  118. name: '消防栓监测',
  119. }
  120. ];
  121. // 离线设备
  122. let deviceOffLineData = [{
  123. title: '测试用传装置',
  124. subTitle: '三楼茶水间',
  125. status: '未处理',
  126. time: '2020-01-08 15:15:12'
  127. }, {
  128. title: '测试用传装置',
  129. subTitle: '三楼茶水间',
  130. status: '未处理',
  131. time: '2020-01-08 15:15:12'
  132. }, {
  133. title: '测试用传装置',
  134. subTitle: '三楼茶水间',
  135. status: '未处理',
  136. time: '2020-01-08 15:15:12'
  137. }]
  138. let unprocessList = [{
  139. "id": "561",
  140. "title": "烟雾拆卸报警",
  141. "des": "三楼赛特威尔测试烟感二",
  142. "time": "2021-01-20 15:23:43"
  143. },
  144. {
  145. "id": "561",
  146. "title": "烟雾拆卸报警",
  147. "des": "三楼赛特威尔测试烟感二",
  148. "time": "2021-01-20 15:23:43"
  149. },
  150. {
  151. "id": "561",
  152. "title": "烟雾拆卸报警",
  153. "des": "三楼赛特威尔测试烟感二",
  154. "time": "2021-01-20 15:23:43"
  155. }
  156. ];
  157. let processedList = [{
  158. "id": "561",
  159. "title": "烟雾拆卸报警",
  160. "des": "三楼赛特威尔测试烟感二",
  161. "time": "2021-01-20 15:23:43"
  162. },
  163. {
  164. "id": "561",
  165. "title": "烟雾拆卸报警",
  166. "des": "三楼赛特威尔测试烟感二",
  167. "time": "2021-01-20 15:23:43"
  168. }
  169. ];
  170. // 设备类型
  171. let deviceType = [{
  172. "id": "1",
  173. "title": "火警",
  174. "num": "3",
  175. "imgUrl": "/static/square-video.png"
  176. },
  177. {
  178. "id": "2",
  179. "title": "水警",
  180. "num": "4",
  181. "imgUrl": "/static/square-dl.png"
  182. },
  183. {
  184. "id": "3",
  185. "title": "电气火灾",
  186. "num": "4",
  187. "imgUrl": "/static/square-dl.png"
  188. },
  189. {
  190. "id": "4",
  191. "title": "RTU",
  192. "num": "4",
  193. "imgUrl": "/static/square-dl.png"
  194. },
  195. {
  196. "id": "5",
  197. "title": "烟感",
  198. "num": "4",
  199. "imgUrl": "/static/square-dl.png"
  200. },
  201. {
  202. "id": "6",
  203. "title": "视频",
  204. "num": "4",
  205. "imgUrl": "/static/square-dl.png"
  206. },
  207. {
  208. "id": "6",
  209. "title": "电梯",
  210. "num": "4",
  211. "imgUrl": "/static/square-dl.png"
  212. },
  213. {
  214. "id": "7",
  215. "title": "井盖",
  216. "num": "4",
  217. "imgUrl": "/static/square-dl.png"
  218. },
  219. {
  220. "id": "8",
  221. "title": "消防栓",
  222. "num": "4",
  223. "imgUrl": "/static/square-dl.png"
  224. },
  225. ];
  226. //设备管理
  227. let deviceManage = [{
  228. "id": "561",
  229. "title": "测试用传装置",
  230. "des": "三楼茶水间",
  231. "time": "2021-01-20 15:23:43",
  232. "status":0
  233. },
  234. {
  235. "id": "561",
  236. "title": "测试用传装置",
  237. "des": "三楼茶水间",
  238. "time": "2021-01-20 15:23:43",
  239. "status":1
  240. },
  241. {
  242. "id": "561",
  243. "title": "测试用传装置",
  244. "des": "三楼茶水间",
  245. "time": "2021-01-20 15:23:43",
  246. "status":2
  247. }
  248. ];
  249. // 消防督查单
  250. let inspectList = [{
  251. "id": "1",
  252. "title": "人工督查单",
  253. "num": "3",
  254. "imgUrl": "/static/square-video.png"
  255. },
  256. {
  257. "id": "2",
  258. "title": "电子督查单",
  259. "num": "4",
  260. "imgUrl": "/static/square-dl.png"
  261. }
  262. ];
  263. // 定义数据出口
  264. module.exports = {
  265. cuIconList: cuIconList,
  266. unprocessList: unprocessList,
  267. processedList: processedList,
  268. alarmingSquareList: alarmingSquareList,
  269. deviceOffLineData: deviceOffLineData,
  270. deviceType: deviceType,
  271. deviceManage:deviceManage,
  272. inspectList:inspectList
  273. }