| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import request, { tenantRequest } from '@/utils/request'
- import { addTenant } from '@/api/base'
- export function getTimelines (deviceIdList, options) {
- return request({
- url: '/content/deviceCalender',
- method: 'POST',
- ...options,
- data: { deviceIdList },
- custom: true
- }).then(({ data }) => data.map(i => { return { ...i, eventDetail: JSON.parse(i.eventDetail) } }) || [])
- }
- export function getDeviceExceptionRanking () {
- return tenantRequest({
- url: '/deviceException/ranking',
- method: 'GET',
- params: addTenant({}),
- custom: true
- })
- }
- export function getDeviceExceptionLevelStatistic () {
- return tenantRequest({
- url: '/deviceException/levelStatistic',
- method: 'GET',
- params: addTenant({}),
- custom: true
- })
- }
- export function getDeviceExceptionTypeStatistics (statisticDate) {
- return tenantRequest({
- url: '/deviceException/typeStatistics',
- method: 'GET',
- params: addTenant({ statisticDate }),
- custom: true
- })
- }
- export function deviceSort (data) {
- return request({
- url: '/device/sort',
- method: 'POST',
- data
- })
- }
|