Showing
1 changed file
with
2 additions
and
24 deletions
@@ -34,29 +34,7 @@ export const actions = { | @@ -34,29 +34,7 @@ export const actions = { | ||
34 | state, | 34 | state, |
35 | commit | 35 | commit |
36 | }, data) { | 36 | }, data) { |
37 | - let httpData = { | ||
38 | - page: 1, | ||
39 | - pageSize: 10, | ||
40 | - status: data.status == 'CLEARED_ACK' ? null : data.status, | ||
41 | - startTime: data.startTime, | ||
42 | - endTime: data.endTime, | ||
43 | - severity: data.severity, | ||
44 | - deviceType: data.deviceType, | ||
45 | - organizationId: data.organizationId, | ||
46 | - alarmType: data.alarmType | ||
47 | - }; | ||
48 | - uni.$u.http | ||
49 | - .get('/yt/alarm', { | ||
50 | - params: httpData, | ||
51 | - custom: { | ||
52 | - load: false | ||
53 | - } | ||
54 | - }) | ||
55 | - .then(res => { | ||
56 | - state.badgeInfo = res.total | ||
57 | - }) | ||
58 | - .catch(e => { | ||
59 | - uni.$u.toast(e.data?.message); | ||
60 | - }); | 37 | + state.badgeInfo = data |
38 | + console.log('Change total', data); | ||
61 | } | 39 | } |
62 | }; | 40 | }; |