json.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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. let deviceOffLineData = [{
  122. title:'测试用传装置',
  123. subTitle:'三楼茶水间',
  124. status:'未处理',
  125. time:'2020-01-08 15:15:12'
  126. },{
  127. title:'测试用传装置',
  128. subTitle:'三楼茶水间',
  129. status:'未处理',
  130. time:'2020-01-08 15:15:12'
  131. },{
  132. title:'测试用传装置',
  133. subTitle:'三楼茶水间',
  134. status:'未处理',
  135. time:'2020-01-08 15:15:12'
  136. },{
  137. title:'测试用传装置',
  138. subTitle:'三楼茶水间',
  139. status:'未处理',
  140. time:'2020-01-08 15:15:12'
  141. },{
  142. title:'测试用传装置',
  143. subTitle:'三楼茶水间',
  144. status:'未处理',
  145. time:'2020-01-08 15:15:12'
  146. },
  147. {
  148. title:'测试用传装置',
  149. subTitle:'三楼茶水间',
  150. status:'未处理',
  151. time:'2020-01-08 15:15:12'
  152. }]
  153. // 本地模拟json数据
  154. let siteListData = [{
  155. "id": 1,
  156. "siteName": '测试站点一',
  157. },
  158. {
  159. "id": 2,
  160. "siteName": '测试站点二'
  161. },
  162. {
  163. "id": 3,
  164. "siteName": '测试站点三'
  165. },
  166. {
  167. "id": 4,
  168. "siteName": '测试站点四',
  169. "iconUrl": "../../static/site-icon-alarm.png",
  170. },
  171. {
  172. "id": 5,
  173. "siteName": '测试站点五'
  174. },
  175. {
  176. "id": 3,
  177. "siteName": '测试站点三'
  178. },
  179. {
  180. "id": 3,
  181. "siteName": '测试站点三'
  182. },
  183. {
  184. "id": 3,
  185. "siteName": '测试站点三'
  186. },
  187. {
  188. "id": 3,
  189. "siteName": '测试站点三'
  190. },
  191. {
  192. "id": 3,
  193. "siteName": '测试站点三'
  194. },
  195. {
  196. "id": 3,
  197. "siteName": '测试站点三'
  198. },
  199. {
  200. "id": 3,
  201. "siteName": '测试站点三'
  202. },
  203. ];
  204. let unprocessList = [{
  205. title: '母线停电',
  206. subTitle: '动作',
  207. status: '未处理',
  208. time: '2020-01-08 15:15:12'
  209. }, {
  210. title: '母线停电2',
  211. subTitle: '复归',
  212. status: '未处理',
  213. time: '2020-01-08 15:15:12'
  214. }, {
  215. title: '母线停电3',
  216. subTitle: '动作',
  217. status: '未处理',
  218. time: '2020-01-08 15:15:12'
  219. }, {
  220. title: '母线停电4',
  221. subTitle: '复归',
  222. status: '未处理',
  223. time: '2020-01-08 15:15:12'
  224. }, {
  225. title: '母线停电5',
  226. subTitle: '复归',
  227. status: '未处理',
  228. time: '2020-01-08 15:15:12'
  229. }, {
  230. title: '母线停电6',
  231. subTitle: '复归',
  232. status: '未处理',
  233. time: '2020-01-08 15:15:12'
  234. },
  235. {
  236. title: '母线停电',
  237. subTitle: '复归',
  238. status: '未处理',
  239. time: '2020-01-08 15:15:12'
  240. },
  241. {
  242. title: '母线停电',
  243. subTitle: '事件未处理测试',
  244. status: '未处理',
  245. time: '2020-01-08 15:15:12'
  246. },
  247. {
  248. title: '母线停电',
  249. subTitle: '事件未处理测试',
  250. status: '未处理',
  251. time: '2020-01-08 15:15:12'
  252. },
  253. {
  254. title: '母线停电',
  255. subTitle: '事件未处理测试',
  256. status: '未处理',
  257. time: '2020-01-08 15:15:12'
  258. }
  259. ];
  260. let processedList = [{
  261. title: '母线停电',
  262. subTitle: '事件已处理测试',
  263. status: '已处理',
  264. time: '2020-01-08 15:15:12'
  265. }, {
  266. title: '母线停电2',
  267. subTitle: '事件已处理测试',
  268. status: '已处理',
  269. time: '2020-01-08 15:15:12'
  270. }, {
  271. title: '母线停电3',
  272. subTitle: '事件已处理测试',
  273. status: '已处理',
  274. time: '2020-01-08 15:15:12'
  275. }, {
  276. title: '母线停电4',
  277. subTitle: '事件已处理测试',
  278. status: '已处理',
  279. time: '2020-01-08 15:15:12'
  280. }, {
  281. title: '母线停电5',
  282. subTitle: '事件已处理测试',
  283. status: '已处理',
  284. time: '2020-01-08 15:15:12'
  285. }, {
  286. title: '母线停电6',
  287. subTitle: '事件已处理测试',
  288. status: '已处理',
  289. time: '2020-01-08 15:15:12'
  290. },
  291. {
  292. title: '母线停电',
  293. subTitle: '事件已处理测试',
  294. status: '已处理',
  295. time: '2020-01-08 15:15:12'
  296. },
  297. {
  298. title: '母线停电',
  299. subTitle: '事件已处理测试',
  300. status: '已处理',
  301. time: '2020-01-08 15:15:12'
  302. },
  303. {
  304. title: '母线停电',
  305. subTitle: '事件已处理测试',
  306. status: '已处理',
  307. time: '2020-01-08 15:15:12'
  308. },
  309. {
  310. title: '母线停电',
  311. subTitle: '事件已处理测试',
  312. status: '已处理',
  313. time: '2020-01-08 15:15:12'
  314. }
  315. ]
  316. // 定义数据出口
  317. module.exports = {
  318. siteListData: siteListData,
  319. cuIconList: cuIconList,
  320. unprocessList: unprocessList,
  321. processedList: processedList,
  322. alarmingSquareList:alarmingSquareList,
  323. deviceOffLineData:deviceOffLineData
  324. }