初始化
This commit is contained in:
75
src/api/alarm.ts
Normal file
75
src/api/alarm.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export interface RosInspectionRecordLineImageQueryDTO {
|
||||
recognizeType?: number | string;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
export interface OrderItem {
|
||||
property: string;
|
||||
tableIndex: number;
|
||||
asc?: boolean;
|
||||
}
|
||||
|
||||
export interface PageParam<T> {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
orderList?: OrderItem[];
|
||||
query?: T;
|
||||
}
|
||||
|
||||
export type RosInspectionRecordLineImagePageQuery =
|
||||
Partial<RosInspectionRecordLineImage> & {
|
||||
keyword?: string;
|
||||
};
|
||||
|
||||
export interface RosInspectionRecordLineImageCar {
|
||||
id?: string;
|
||||
deviceKey?: string;
|
||||
deviceNo?: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface RosInspectionRecordLineImage {
|
||||
recordId: string;
|
||||
carId?: string;
|
||||
car?: RosInspectionRecordLineImageCar;
|
||||
recordActionId: string;
|
||||
taskId?: string;
|
||||
recognizeType?: number;
|
||||
imageUrl?: string;
|
||||
captureTime?: string;
|
||||
poseX?: number;
|
||||
poseY?: number;
|
||||
poseYaw?: number;
|
||||
recognitionStatus?: number;
|
||||
prompt?: string;
|
||||
recognitionResult?: string;
|
||||
warning?: boolean;
|
||||
warningValue?: string;
|
||||
failReason?: string;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
// 查询近期告警列表
|
||||
export function getRecentAlarmList(data: RosInspectionRecordLineImageQueryDTO) {
|
||||
return request({
|
||||
url: "/admin/rosInspectionRecordLineImage/warnList",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 分页查询告警列表
|
||||
export function getAlarmPage(data: PageParam<RosInspectionRecordLineImagePageQuery>) {
|
||||
return request({
|
||||
url: "/admin/rosInspectionRecordLineImage/list",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user