json.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. // 本地模拟json数据
  2. let cuIconList = [{
  3. imgUrl: '../../static/square1.png',
  4. badge: 120,
  5. name: '综合报警',
  6. redirectUrl: '/pages/siteList/siteList?type=1'
  7. }, {
  8. imgUrl: '../../static/square2.png',
  9. badge: 100,
  10. name: '设备管理',
  11. redirectUrl: '/pages/siteList/siteList?type=2'
  12. },
  13. {
  14. imgUrl: '../../static/square-wb.png',
  15. badge: 0,
  16. name: '消防督查单',
  17. redirectUrl: ''
  18. },
  19. {
  20. imgUrl: '../../static/square-xj.png',
  21. badge: 0,
  22. badge: 0,
  23. name: '巡检',
  24. redirectUrl: ''
  25. },
  26. {
  27. imgUrl: '../../static/square-bx.png',
  28. badge: 0,
  29. name: '报修',
  30. redirectUrl: ''
  31. },{
  32. imgUrl: '../../static/square-wb.png',
  33. badge: 0,
  34. name: '维保',
  35. redirectUrl: ''
  36. },
  37. {
  38. imgUrl: '../../static/square-bz.png',
  39. badge: 0,
  40. badge: 0,
  41. name: '视频监测',
  42. redirectUrl: ''
  43. },
  44. {
  45. imgUrl: '../../static/square-bz.png',
  46. badge: 0,
  47. badge: 0,
  48. name: '风险保障',
  49. redirectUrl: ''
  50. },{
  51. imgUrl: '../../static/square-rl.png',
  52. badge: 0,
  53. name: '人脸识别',
  54. redirectUrl: ''
  55. },
  56. {
  57. imgUrl: '../../static/square-rl.png',
  58. badge: 0,
  59. name: '设备注册',
  60. redirectUrl: ''
  61. },
  62. {
  63. imgUrl: '../../static/square-rl.png',
  64. badge: 0,
  65. name: '用户管理',
  66. redirectUrl: ''
  67. }];
  68. // 本地模拟json数据
  69. let siteListData = [{
  70. "id": 1,
  71. "siteName": '测试站点一',
  72. },
  73. {
  74. "id": 2,
  75. "siteName": '测试站点二'
  76. },
  77. {
  78. "id": 3,
  79. "siteName": '测试站点三'
  80. },
  81. {
  82. "id": 4,
  83. "siteName": '测试站点四',
  84. "iconUrl": "../../static/site-icon-alarm.png",
  85. },
  86. {
  87. "id": 5,
  88. "siteName": '测试站点五'
  89. },
  90. {
  91. "id": 3,
  92. "siteName": '测试站点三'
  93. },
  94. {
  95. "id": 3,
  96. "siteName": '测试站点三'
  97. },
  98. {
  99. "id": 3,
  100. "siteName": '测试站点三'
  101. },
  102. {
  103. "id": 3,
  104. "siteName": '测试站点三'
  105. },
  106. {
  107. "id": 3,
  108. "siteName": '测试站点三'
  109. },
  110. {
  111. "id": 3,
  112. "siteName": '测试站点三'
  113. },
  114. {
  115. "id": 3,
  116. "siteName": '测试站点三'
  117. },
  118. ];
  119. let unprocessList = [{
  120. title: '母线停电',
  121. subTitle: '动作',
  122. status: '未处理',
  123. time: '2020-01-08 15:15:12'
  124. }, {
  125. title: '母线停电2',
  126. subTitle: '复归',
  127. status: '未处理',
  128. time: '2020-01-08 15:15:12'
  129. }, {
  130. title: '母线停电3',
  131. subTitle: '动作',
  132. status: '未处理',
  133. time: '2020-01-08 15:15:12'
  134. }, {
  135. title: '母线停电4',
  136. subTitle: '复归',
  137. status: '未处理',
  138. time: '2020-01-08 15:15:12'
  139. }, {
  140. title: '母线停电5',
  141. subTitle: '复归',
  142. status: '未处理',
  143. time: '2020-01-08 15:15:12'
  144. }, {
  145. title: '母线停电6',
  146. subTitle: '复归',
  147. status: '未处理',
  148. time: '2020-01-08 15:15:12'
  149. },
  150. {
  151. title: '母线停电',
  152. subTitle: '复归',
  153. status: '未处理',
  154. time: '2020-01-08 15:15:12'
  155. },
  156. {
  157. title: '母线停电',
  158. subTitle: '事件未处理测试',
  159. status: '未处理',
  160. time: '2020-01-08 15:15:12'
  161. },
  162. {
  163. title: '母线停电',
  164. subTitle: '事件未处理测试',
  165. status: '未处理',
  166. time: '2020-01-08 15:15:12'
  167. },
  168. {
  169. title: '母线停电',
  170. subTitle: '事件未处理测试',
  171. status: '未处理',
  172. time: '2020-01-08 15:15:12'
  173. }
  174. ];
  175. let processedList = [{
  176. title: '母线停电',
  177. subTitle: '事件已处理测试',
  178. status: '已处理',
  179. time: '2020-01-08 15:15:12'
  180. }, {
  181. title: '母线停电2',
  182. subTitle: '事件已处理测试',
  183. status: '已处理',
  184. time: '2020-01-08 15:15:12'
  185. }, {
  186. title: '母线停电3',
  187. subTitle: '事件已处理测试',
  188. status: '已处理',
  189. time: '2020-01-08 15:15:12'
  190. }, {
  191. title: '母线停电4',
  192. subTitle: '事件已处理测试',
  193. status: '已处理',
  194. time: '2020-01-08 15:15:12'
  195. }, {
  196. title: '母线停电5',
  197. subTitle: '事件已处理测试',
  198. status: '已处理',
  199. time: '2020-01-08 15:15:12'
  200. }, {
  201. title: '母线停电6',
  202. subTitle: '事件已处理测试',
  203. status: '已处理',
  204. time: '2020-01-08 15:15:12'
  205. },
  206. {
  207. title: '母线停电',
  208. subTitle: '事件已处理测试',
  209. status: '已处理',
  210. time: '2020-01-08 15:15:12'
  211. },
  212. {
  213. title: '母线停电',
  214. subTitle: '事件已处理测试',
  215. status: '已处理',
  216. time: '2020-01-08 15:15:12'
  217. },
  218. {
  219. title: '母线停电',
  220. subTitle: '事件已处理测试',
  221. status: '已处理',
  222. time: '2020-01-08 15:15:12'
  223. },
  224. {
  225. title: '母线停电',
  226. subTitle: '事件已处理测试',
  227. status: '已处理',
  228. time: '2020-01-08 15:15:12'
  229. }
  230. ]
  231. // 定义数据出口
  232. module.exports = {
  233. siteListData: siteListData,
  234. cuIconList: cuIconList,
  235. unprocessList: unprocessList,
  236. processedList: processedList
  237. }