json.js 4.4 KB

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