fix 实时监控收集

This commit is contained in:
Ironsp
2026-05-14 17:32:58 +08:00
parent 4c9cd63ac0
commit d4129d66b1
3 changed files with 59 additions and 14 deletions

View File

@@ -88,3 +88,13 @@ export interface DemoQuery extends PageQuery {
*/
value?: string;
}
export interface DrawFrom {
x?: string | number;
y?: string | number;
w?: string | number;
h?: string | number;
}

View File

@@ -1,7 +1,7 @@
import request from '@/utils/request';
import type { EquipmentList, DeviceInfoForm } from '@/api/equipmentList/types';
import { AxiosPromise } from 'axios';
import { DemoVO, DemoForm, DemoQuery } from '@/api/demo/demo/types';
import { DemoVO, DemoForm, DemoQuery, DrawFrom } from '@/api/demo/demo/types';
/**
* 新增设备
* @param data 设备数据
@@ -52,7 +52,7 @@ export const delDevice = (id: string | number | Array<string | number>) => {
});
};
/**
* 唤醒设备
* 激活设备
* @param id 单个主键或主键数组与删除相同POST + Queryids=1,2,3
*/
export const actDevice = (id: string | number | Array<string | number>) => {
@@ -75,3 +75,16 @@ export const updateDeviceInfo = (data: DeviceInfoForm) => {
data
});
};
/**
* todo绘制区域
* @param data 绘制信息
* /device/info/draw
*/
export const drawInfo = (data: DrawFrom) => {
return request({
url: '/device/info/draw',
method: 'post',
data: data
});
};