json.js 4.1 KB

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