json.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. // 本地模拟json数据
  139. let siteListData = [{
  140. "id": 1,
  141. "siteName": '测试站点一',
  142. },
  143. {
  144. "id": 2,
  145. "siteName": '测试站点二'
  146. },
  147. {
  148. "id": 3,
  149. "siteName": '测试站点三'
  150. },
  151. {
  152. "id": 4,
  153. "siteName": '测试站点四',
  154. "iconUrl": "../../static/site-icon-alarm.png",
  155. },
  156. {
  157. "id": 5,
  158. "siteName": '测试站点五'
  159. },
  160. {
  161. "id": 3,
  162. "siteName": '测试站点三'
  163. },
  164. {
  165. "id": 3,
  166. "siteName": '测试站点三'
  167. },
  168. {
  169. "id": 3,
  170. "siteName": '测试站点三'
  171. },
  172. {
  173. "id": 3,
  174. "siteName": '测试站点三'
  175. },
  176. {
  177. "id": 3,
  178. "siteName": '测试站点三'
  179. },
  180. {
  181. "id": 3,
  182. "siteName": '测试站点三'
  183. },
  184. {
  185. "id": 3,
  186. "siteName": '测试站点三'
  187. },
  188. ];
  189. let unprocessList = [{
  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. "id": "561",
  203. "title": "烟雾拆卸报警",
  204. "des": "三楼赛特威尔测试烟感二",
  205. "time": "2021-01-20 15:23:43"
  206. }
  207. ];
  208. let processedList = [{
  209. "id": "561",
  210. "title": "烟雾拆卸报警",
  211. "des": "三楼赛特威尔测试烟感二",
  212. "time": "2021-01-20 15:23:43"
  213. },
  214. {
  215. "id": "561",
  216. "title": "烟雾拆卸报警",
  217. "des": "三楼赛特威尔测试烟感二",
  218. "time": "2021-01-20 15:23:43"
  219. }
  220. ];
  221. // 定义数据出口
  222. module.exports = {
  223. siteListData: siteListData,
  224. cuIconList: cuIconList,
  225. unprocessList: unprocessList,
  226. processedList: processedList,
  227. alarmingSquareList: alarmingSquareList,
  228. deviceOffLineData: deviceOffLineData
  229. }