dingxin 5 years ago
parent
commit
7ab9b851d9
1 changed files with 25 additions and 18 deletions
  1. 25
    18
      src/services/apis.js

+ 25
- 18
src/services/apis.js View File

@@ -26,7 +26,7 @@ export default {
26 26
     signout: {
27 27
       method: 'POST',
28 28
       url: `${prefix}/taUser/signout`,
29
-      logout: true
29
+      logout: true,
30 30
     },
31 31
   },
32 32
   building: {
@@ -190,43 +190,50 @@ export default {
190 190
   indexEcharts: {
191 191
     userResource: {
192 192
       method: 'GET',
193
-      url: `${prefix}/selectUserResource`
193
+      url: `${prefix}/selectUserResource`,
194
+      action: 'userStatistics',
194 195
     },
195 196
     userBehavior: {
196 197
       summary: {
197 198
         method: 'GET',
198
-        url: `${prefix}/selectUserBehavior`
199
+        url: `${prefix}/selectUserBehavior`,
200
+        action: 'userBehaviorStatistics',
199 201
       },
200 202
       profile: {
201 203
         method: 'GET',
202
-        url: `${prefix}/selectEventAll`
204
+        url: `${prefix}/selectEventAll`,
205
+        action: 'behaviorIncident',
203 206
       },
204 207
     },
205 208
     userActive: {
206 209
       method: 'GET',
207
-      url: `${prefix}/selectActiveUserCount`
210
+      url: `${prefix}/selectActiveUserCount`,
211
+      action: 'selectActiveUserCount',
208 212
     },
209 213
     userSex: {
210 214
       method: 'GET',
211
-      url: `${prefix}/selectSexUser`
215
+      url: `${prefix}/selectSexUser`,
216
+      action: 'selectSexUser',
212 217
     },
213 218
     newUser: {
214 219
       method: 'GET',
215
-      url: `${prefix}/selectNewsUserCount`
220
+      url: `${prefix}/selectNewsUserCount`,
221
+      action: 'selectNewsUserCount',
216 222
     },
217 223
     userConversion: {
218 224
       method: 'GET',
219
-      url: `${prefix}/selectConversion`
225
+      url: `${prefix}/selectConversion`,
226
+      action: 'selectConversion',
220 227
     },
221 228
     intentionUsers: {
222 229
       method: 'GET',
223
-      url: `${prefix}/selectIntentionUser`
230
+      url: `${prefix}/selectIntentionUser`,
231
+      action: 'selectIntentionUser',
224 232
     },
225
-
226 233
     userCity: {
227
-      method:'get',
234
+      method: 'get',
228 235
       url: `${prefix}/selectCityUser`,
229
-      action: 'admin.selectCityUser.get'
236
+      action: 'admin.selectCityUser.get',
230 237
     },
231 238
 
232 239
   },
@@ -244,17 +251,17 @@ export default {
244 251
       cancel: {
245 252
         method: 'PUT',
246 253
         url: `${prefix}/buildingDynamic/cancel/:id`,
247
-        action: 'admin.buildingDynamic.cancel.dynamicId.put'
254
+        action: 'admin.buildingDynamic.cancel.dynamicId.put',
248 255
       },
249 256
       send: {
250 257
         url: `${prefix}/buildingDynamic/send/:id`,
251 258
         method: 'PUT',
252
-        action: 'admin.buildingDynamic.send.dynamicId.put'
259
+        action: 'admin.buildingDynamic.send.dynamicId.put',
253 260
       },
254 261
       finish: {
255 262
         url: `${prefix}/buildingDynamic/finish`,
256 263
         method: 'PUT',
257
-        action: 'admin.buildingDynamic.finish.put'
264
+        action: 'admin.buildingDynamic.finish.put',
258 265
       },
259 266
       details: {
260 267
         url: `${prefix}/buildingDynamic/Details`,
@@ -352,7 +359,7 @@ export default {
352 359
       url: `${prefix}/taPointsExchange/change`,
353 360
       method: 'PUT',
354 361
       action: 'admin.taPointsExchange.change.put',
355
-    }
362
+    },
356 363
   },
357 364
   carsuseFigure: {
358 365
     extendContent: {
@@ -379,7 +386,7 @@ export default {
379 386
       url: `${prefix}/extendContent`,
380 387
       method: 'POST',
381 388
       action: 'admin.extendContent.post',
382
-    }
389
+    },
383 390
   },
384 391
   system: {
385 392
     taPolicy: {
@@ -436,7 +443,7 @@ export default {
436 443
       url: `${prefix}/taBuildingReport/add`,
437 444
       method: 'POST',
438 445
       action: 'admin.taBuildingReport.add.post',
439
-    }
446
+    },
440 447
   },
441 448
   staff: {
442 449
     taUser: {