feat: fix build issue
This commit is contained in:
62
plus-ui/src/api/inspection/device/index.ts
Normal file
62
plus-ui/src/api/inspection/device/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArDeviceVO, ArDeviceForm, ArDeviceQuery } from '@/api/inspection/device/types';
|
||||
|
||||
/**
|
||||
* 查询AR设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArDevice = (query?: ArDeviceQuery): AxiosPromise<ArDeviceVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询AR设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArDevice = (id: string | number): AxiosPromise<ArDeviceVO> => {
|
||||
return request({
|
||||
url: '/inspection/device/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增AR设备
|
||||
* @param data
|
||||
*/
|
||||
export const addArDevice = (data: ArDeviceForm) => {
|
||||
return request({
|
||||
url: '/inspection/device',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改AR设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateArDevice = (data: ArDeviceForm) => {
|
||||
return request({
|
||||
url: '/inspection/device',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除AR设备
|
||||
* @param id
|
||||
*/
|
||||
export const delArDevice = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/device/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
90
plus-ui/src/api/inspection/device/types.ts
Normal file
90
plus-ui/src/api/inspection/device/types.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
export interface ArDeviceVO {
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNo: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceModel: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArDeviceForm extends BaseEntity {
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNo?: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceModel?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ArDeviceQuery extends PageQuery {
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceNo?: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceModel?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/execution/index.ts
Normal file
62
plus-ui/src/api/inspection/execution/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArExecutionVO, ArExecutionForm, ArExecutionQuery } from '@/api/inspection/execution/types';
|
||||
|
||||
/**
|
||||
* 查询任务执行记录列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArExecution = (query?: ArExecutionQuery): AxiosPromise<ArExecutionVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/execution/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询任务执行记录详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArExecution = (id: string | number): AxiosPromise<ArExecutionVO> => {
|
||||
return request({
|
||||
url: '/inspection/execution/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增任务执行记录
|
||||
* @param data
|
||||
*/
|
||||
export const addArExecution = (data: ArExecutionForm) => {
|
||||
return request({
|
||||
url: '/inspection/execution',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改任务执行记录
|
||||
* @param data
|
||||
*/
|
||||
export const updateArExecution = (data: ArExecutionForm) => {
|
||||
return request({
|
||||
url: '/inspection/execution',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除任务执行记录
|
||||
* @param id
|
||||
*/
|
||||
export const delArExecution = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/execution/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
240
plus-ui/src/api/inspection/execution/types.ts
Normal file
240
plus-ui/src/api/inspection/execution/types.ts
Normal file
@@ -0,0 +1,240 @@
|
||||
export interface ArExecutionVO {
|
||||
/**
|
||||
* 执行ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务模板ID
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
|
||||
/**
|
||||
* 执行编号
|
||||
*/
|
||||
executionCode: string;
|
||||
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
regionId: string | number;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
regionName?: string;
|
||||
|
||||
/**
|
||||
* 使用的AR设备ID
|
||||
*/
|
||||
deviceId: string | number;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 操作人ID
|
||||
*/
|
||||
operatorId: string | number;
|
||||
|
||||
/**
|
||||
* 操作人姓名
|
||||
*/
|
||||
operatorName: string;
|
||||
|
||||
/**
|
||||
* 监护人ID
|
||||
*/
|
||||
custodianId: string | number;
|
||||
|
||||
/**
|
||||
* 监护人姓名
|
||||
*/
|
||||
custodianName: string;
|
||||
|
||||
/**
|
||||
* 送电人ID
|
||||
*/
|
||||
senderId: string | number;
|
||||
|
||||
/**
|
||||
* 送电人姓名
|
||||
*/
|
||||
senderName: string;
|
||||
|
||||
/**
|
||||
* 受电人ID
|
||||
*/
|
||||
recipientId: string | number;
|
||||
|
||||
/**
|
||||
* 受电人姓名
|
||||
*/
|
||||
recipientName: string;
|
||||
|
||||
/**
|
||||
* 指挥人ID
|
||||
*/
|
||||
commanderId: string | number;
|
||||
|
||||
/**
|
||||
* 指挥人姓名
|
||||
*/
|
||||
commanderName: string;
|
||||
|
||||
/**
|
||||
* 执行状态(pending待执行 in_progress执行中 completed已完成 cancelled已取消)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 总步骤数
|
||||
*/
|
||||
totalSteps: number;
|
||||
|
||||
/**
|
||||
* 已完成步骤数
|
||||
*/
|
||||
completedSteps: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArExecutionForm extends BaseEntity {
|
||||
/**
|
||||
* 执行ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务模板ID
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 执行编号
|
||||
*/
|
||||
executionCode?: string;
|
||||
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用的AR设备ID
|
||||
*/
|
||||
deviceId?: string | number;
|
||||
|
||||
/**
|
||||
* 操作人ID
|
||||
*/
|
||||
operatorId?: string | number;
|
||||
|
||||
/**
|
||||
* 操作人姓名
|
||||
*/
|
||||
operatorName?: string;
|
||||
|
||||
/**
|
||||
* 监护人ID
|
||||
*/
|
||||
custodianId?: string | number;
|
||||
|
||||
/**
|
||||
* 监护人姓名
|
||||
*/
|
||||
custodianName?: string;
|
||||
|
||||
/**
|
||||
* 送电人ID
|
||||
*/
|
||||
senderId?: string | number;
|
||||
|
||||
/**
|
||||
* 送电人姓名
|
||||
*/
|
||||
senderName?: string;
|
||||
|
||||
/**
|
||||
* 受电人ID
|
||||
*/
|
||||
recipientId?: string | number;
|
||||
|
||||
/**
|
||||
* 受电人姓名
|
||||
*/
|
||||
recipientName?: string;
|
||||
|
||||
/**
|
||||
* 指挥人ID
|
||||
*/
|
||||
commanderId?: string | number;
|
||||
|
||||
/**
|
||||
* 指挥人姓名
|
||||
*/
|
||||
commanderName?: string;
|
||||
|
||||
/**
|
||||
* 执行状态
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
|
||||
export interface ArExecutionQuery extends PageQuery {
|
||||
/**
|
||||
* 任务模板ID
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 执行编号
|
||||
*/
|
||||
executionCode?: string;
|
||||
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 使用的AR设备ID
|
||||
*/
|
||||
deviceId?: string | number;
|
||||
|
||||
/**
|
||||
* 执行状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 开始时间-开始
|
||||
*/
|
||||
startTimeBegin?: string;
|
||||
|
||||
/**
|
||||
* 开始时间-结束
|
||||
*/
|
||||
startTimeEnd?: string;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/point/index.ts
Normal file
62
plus-ui/src/api/inspection/point/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArPointVO, ArPointForm, ArPointQuery } from '@/api/inspection/point/types';
|
||||
|
||||
/**
|
||||
* 查询巡检点位列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArPoint = (query?: ArPointQuery): AxiosPromise<ArPointVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/point/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询巡检点位详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArPoint = (id: string | number): AxiosPromise<ArPointVO> => {
|
||||
return request({
|
||||
url: '/inspection/point/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增巡检点位
|
||||
* @param data
|
||||
*/
|
||||
export const addArPoint = (data: ArPointForm) => {
|
||||
return request({
|
||||
url: '/inspection/point',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改巡检点位
|
||||
* @param data
|
||||
*/
|
||||
export const updateArPoint = (data: ArPointForm) => {
|
||||
return request({
|
||||
url: '/inspection/point',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除巡检点位
|
||||
* @param id
|
||||
*/
|
||||
export const delArPoint = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/point/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
90
plus-ui/src/api/inspection/point/types.ts
Normal file
90
plus-ui/src/api/inspection/point/types.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
export interface ArPointVO {
|
||||
/**
|
||||
* 点位ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 所属区域ID
|
||||
*/
|
||||
regionId: string | number;
|
||||
|
||||
/**
|
||||
* 所属区域名称
|
||||
*/
|
||||
regionName?: string;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
*/
|
||||
pointName: string;
|
||||
|
||||
/**
|
||||
* 点位代码
|
||||
*/
|
||||
pointCode: string;
|
||||
|
||||
/**
|
||||
* 位置数据(JSON格式,包含坐标等)
|
||||
*/
|
||||
positionData: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArPointForm extends BaseEntity {
|
||||
/**
|
||||
* 点位ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 所属区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
*/
|
||||
pointName?: string;
|
||||
|
||||
/**
|
||||
* 点位代码
|
||||
*/
|
||||
pointCode?: string;
|
||||
|
||||
/**
|
||||
* 位置数据(JSON格式,包含坐标等)
|
||||
*/
|
||||
positionData?: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ArPointQuery extends PageQuery {
|
||||
/**
|
||||
* 所属区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
*/
|
||||
pointName?: string;
|
||||
|
||||
/**
|
||||
* 点位代码
|
||||
*/
|
||||
pointCode?: string;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/region/index.ts
Normal file
62
plus-ui/src/api/inspection/region/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArRegionVO, ArRegionForm, ArRegionQuery } from '@/api/inspection/region/types';
|
||||
|
||||
/**
|
||||
* 查询巡检区域列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArRegion = (query?: ArRegionQuery): AxiosPromise<ArRegionVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/region/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询巡检区域详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArRegion = (id: string | number): AxiosPromise<ArRegionVO> => {
|
||||
return request({
|
||||
url: '/inspection/region/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增巡检区域
|
||||
* @param data
|
||||
*/
|
||||
export const addArRegion = (data: ArRegionForm) => {
|
||||
return request({
|
||||
url: '/inspection/region',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改巡检区域
|
||||
* @param data
|
||||
*/
|
||||
export const updateArRegion = (data: ArRegionForm) => {
|
||||
return request({
|
||||
url: '/inspection/region',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除巡检区域
|
||||
* @param id
|
||||
*/
|
||||
export const delArRegion = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/region/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
85
plus-ui/src/api/inspection/region/types.ts
Normal file
85
plus-ui/src/api/inspection/region/types.ts
Normal file
@@ -0,0 +1,85 @@
|
||||
export interface ArRegionVO {
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
regionName: string;
|
||||
|
||||
/**
|
||||
* 区域代码
|
||||
*/
|
||||
regionCode: string;
|
||||
|
||||
/**
|
||||
* 区域数据(JSON格式)
|
||||
*/
|
||||
regionData: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArRegionForm extends BaseEntity {
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
regionName?: string;
|
||||
|
||||
/**
|
||||
* 区域代码
|
||||
*/
|
||||
regionCode?: string;
|
||||
|
||||
/**
|
||||
* 区域数据(JSON格式)
|
||||
*/
|
||||
regionData?: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ArRegionQuery extends PageQuery {
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
regionName?: string;
|
||||
|
||||
/**
|
||||
* 区域代码
|
||||
*/
|
||||
regionCode?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
74
plus-ui/src/api/inspection/step/index.ts
Normal file
74
plus-ui/src/api/inspection/step/index.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArStepVO, ArStepForm, ArStepQuery } from '@/api/inspection/step/types';
|
||||
|
||||
/**
|
||||
* 查询巡检步骤列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArStep = (query?: ArStepQuery): AxiosPromise<ArStepVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/step/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询任务的步骤树形结构
|
||||
* @param taskId
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getArStepTree = (taskId: string | number): AxiosPromise<ArStepVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/step/tree/' + taskId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询巡检步骤详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArStep = (id: string | number): AxiosPromise<ArStepVO> => {
|
||||
return request({
|
||||
url: '/inspection/step/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增巡检步骤
|
||||
* @param data
|
||||
*/
|
||||
export const addArStep = (data: ArStepForm) => {
|
||||
return request({
|
||||
url: '/inspection/step',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改巡检步骤
|
||||
* @param data
|
||||
*/
|
||||
export const updateArStep = (data: ArStepForm) => {
|
||||
return request({
|
||||
url: '/inspection/step',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除巡检步骤(级联删除子步骤)
|
||||
* @param id
|
||||
*/
|
||||
export const delArStep = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/step/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
245
plus-ui/src/api/inspection/step/types.ts
Normal file
245
plus-ui/src/api/inspection/step/types.ts
Normal file
@@ -0,0 +1,245 @@
|
||||
export interface ArStepVO {
|
||||
/**
|
||||
* 步骤ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 所属任务ID
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 父步骤ID(0表示根节点)
|
||||
*/
|
||||
parentId: string | number;
|
||||
|
||||
/**
|
||||
* 祖级列表
|
||||
*/
|
||||
ancestors: string;
|
||||
|
||||
/**
|
||||
* 步骤名称
|
||||
*/
|
||||
stepName: string;
|
||||
|
||||
/**
|
||||
* 步骤内容
|
||||
*/
|
||||
stepContent: string;
|
||||
|
||||
/**
|
||||
* 内容语音URL
|
||||
*/
|
||||
contentVoice: string;
|
||||
|
||||
/**
|
||||
* 显示顺序
|
||||
*/
|
||||
orderNum: number;
|
||||
|
||||
/**
|
||||
* 关联点位ID
|
||||
*/
|
||||
pointId: string | number;
|
||||
|
||||
/**
|
||||
* 关联点位名称
|
||||
*/
|
||||
pointName?: string;
|
||||
|
||||
/**
|
||||
* 是否需要语音播报(0否 1是)
|
||||
*/
|
||||
needVoiceRead: string;
|
||||
|
||||
/**
|
||||
* 是否需要复述(0否 1是)
|
||||
*/
|
||||
needVoiceRephrase: string;
|
||||
|
||||
/**
|
||||
* 复述内容
|
||||
*/
|
||||
rephraseContent: string;
|
||||
|
||||
/**
|
||||
* 复述语音URL
|
||||
*/
|
||||
rephraseVoice: string;
|
||||
|
||||
/**
|
||||
* 是否需要语音确认(0否 1是)
|
||||
*/
|
||||
needVoiceConfirm: string;
|
||||
|
||||
/**
|
||||
* 确认内容
|
||||
*/
|
||||
confirmContent: string;
|
||||
|
||||
/**
|
||||
* 确认语音URL
|
||||
*/
|
||||
confirmVoice: string;
|
||||
|
||||
/**
|
||||
* 确认关键词
|
||||
*/
|
||||
confirmWord: string;
|
||||
|
||||
/**
|
||||
* 是否需要AI识别(0否 1是)
|
||||
*/
|
||||
needAi: string;
|
||||
|
||||
/**
|
||||
* AI识别目标名称
|
||||
*/
|
||||
aiTargetName: string;
|
||||
|
||||
/**
|
||||
* AI配置数据(JSON格式)
|
||||
*/
|
||||
aiData: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 是否需要操作(0否 1是)
|
||||
*/
|
||||
isOperation: string;
|
||||
|
||||
/**
|
||||
* 是否叶子节点(0否 1是)
|
||||
*/
|
||||
isLeaf: string;
|
||||
|
||||
/**
|
||||
* 子节点列表(用于树形结构)
|
||||
*/
|
||||
children?: ArStepVO[];
|
||||
}
|
||||
|
||||
export interface ArStepForm extends BaseEntity {
|
||||
/**
|
||||
* 步骤ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 所属任务ID
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 父步骤ID(0表示根节点)
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 步骤名称
|
||||
*/
|
||||
stepName?: string;
|
||||
|
||||
/**
|
||||
* 步骤内容
|
||||
*/
|
||||
stepContent?: string;
|
||||
|
||||
/**
|
||||
* 内容语音URL
|
||||
*/
|
||||
contentVoice?: string;
|
||||
|
||||
/**
|
||||
* 显示顺序
|
||||
*/
|
||||
orderNum?: number;
|
||||
|
||||
/**
|
||||
* 关联点位ID
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 是否需要语音播报(0否 1是)
|
||||
*/
|
||||
needVoiceRead?: string;
|
||||
|
||||
/**
|
||||
* 是否需要复述(0否 1是)
|
||||
*/
|
||||
needVoiceRephrase?: string;
|
||||
|
||||
/**
|
||||
* 复述内容
|
||||
*/
|
||||
rephraseContent?: string;
|
||||
|
||||
/**
|
||||
* 复述语音URL
|
||||
*/
|
||||
rephraseVoice?: string;
|
||||
|
||||
/**
|
||||
* 是否需要语音确认(0否 1是)
|
||||
*/
|
||||
needVoiceConfirm?: string;
|
||||
|
||||
/**
|
||||
* 确认内容
|
||||
*/
|
||||
confirmContent?: string;
|
||||
|
||||
/**
|
||||
* 确认语音URL
|
||||
*/
|
||||
confirmVoice?: string;
|
||||
|
||||
/**
|
||||
* 确认关键词
|
||||
*/
|
||||
confirmWord?: string;
|
||||
|
||||
/**
|
||||
* 是否需要AI识别(0否 1是)
|
||||
*/
|
||||
needAi?: string;
|
||||
|
||||
/**
|
||||
* AI识别目标名称
|
||||
*/
|
||||
aiTargetName?: string;
|
||||
|
||||
/**
|
||||
* AI配置数据(JSON格式)
|
||||
*/
|
||||
aiData?: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 是否需要操作(0否 1是)
|
||||
*/
|
||||
isOperation?: string;
|
||||
}
|
||||
|
||||
export interface ArStepQuery {
|
||||
/**
|
||||
* 所属任务ID
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 父步骤ID
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 步骤名称
|
||||
*/
|
||||
stepName?: string;
|
||||
|
||||
/**
|
||||
* 关联点位ID
|
||||
*/
|
||||
pointId?: string | number;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/stepMedia/index.ts
Normal file
62
plus-ui/src/api/inspection/stepMedia/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArStepMediaVO, ArStepMediaForm, ArStepMediaQuery } from '@/api/inspection/stepMedia/types';
|
||||
|
||||
/**
|
||||
* 查询步骤媒体文件列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArStepMedia = (query?: ArStepMediaQuery): AxiosPromise<ArStepMediaVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/stepMedia/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询步骤媒体文件详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArStepMedia = (id: string | number): AxiosPromise<ArStepMediaVO> => {
|
||||
return request({
|
||||
url: '/inspection/stepMedia/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增步骤媒体文件
|
||||
* @param data
|
||||
*/
|
||||
export const addArStepMedia = (data: ArStepMediaForm) => {
|
||||
return request({
|
||||
url: '/inspection/stepMedia',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改步骤媒体文件
|
||||
* @param data
|
||||
*/
|
||||
export const updateArStepMedia = (data: ArStepMediaForm) => {
|
||||
return request({
|
||||
url: '/inspection/stepMedia',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除步骤媒体文件
|
||||
* @param id
|
||||
*/
|
||||
export const delArStepMedia = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/stepMedia/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
95
plus-ui/src/api/inspection/stepMedia/types.ts
Normal file
95
plus-ui/src/api/inspection/stepMedia/types.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
export interface ArStepMediaVO {
|
||||
/**
|
||||
* 媒体ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 步骤记录ID
|
||||
*/
|
||||
stepRecordId: string | number;
|
||||
|
||||
/**
|
||||
* 媒体类型(image图片 video视频 audio音频)
|
||||
*/
|
||||
mediaType: string;
|
||||
|
||||
/**
|
||||
* 文件URL
|
||||
*/
|
||||
fileUrl: string;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件大小(字节)
|
||||
*/
|
||||
fileSize: number;
|
||||
|
||||
/**
|
||||
* 上传时间
|
||||
*/
|
||||
uploadTime: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArStepMediaForm extends BaseEntity {
|
||||
/**
|
||||
* 媒体ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 步骤记录ID
|
||||
*/
|
||||
stepRecordId?: string | number;
|
||||
|
||||
/**
|
||||
* 媒体类型(image图片 video视频 audio音频)
|
||||
*/
|
||||
mediaType?: string;
|
||||
|
||||
/**
|
||||
* 文件URL
|
||||
*/
|
||||
fileUrl?: string;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件大小(字节)
|
||||
*/
|
||||
fileSize?: number;
|
||||
}
|
||||
|
||||
export interface ArStepMediaQuery extends PageQuery {
|
||||
/**
|
||||
* 步骤记录ID
|
||||
*/
|
||||
stepRecordId?: string | number;
|
||||
|
||||
/**
|
||||
* 媒体类型
|
||||
*/
|
||||
mediaType?: string;
|
||||
|
||||
/**
|
||||
* 上传时间-开始
|
||||
*/
|
||||
uploadTimeBegin?: string;
|
||||
|
||||
/**
|
||||
* 上传时间-结束
|
||||
*/
|
||||
uploadTimeEnd?: string;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/stepRecord/index.ts
Normal file
62
plus-ui/src/api/inspection/stepRecord/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArStepRecordVO, ArStepRecordForm, ArStepRecordQuery } from '@/api/inspection/stepRecord/types';
|
||||
|
||||
/**
|
||||
* 查询步骤执行记录列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArStepRecord = (query?: ArStepRecordQuery): AxiosPromise<ArStepRecordVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/stepRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询步骤执行记录详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArStepRecord = (id: string | number): AxiosPromise<ArStepRecordVO> => {
|
||||
return request({
|
||||
url: '/inspection/stepRecord/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增步骤执行记录
|
||||
* @param data
|
||||
*/
|
||||
export const addArStepRecord = (data: ArStepRecordForm) => {
|
||||
return request({
|
||||
url: '/inspection/stepRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改步骤执行记录
|
||||
* @param data
|
||||
*/
|
||||
export const updateArStepRecord = (data: ArStepRecordForm) => {
|
||||
return request({
|
||||
url: '/inspection/stepRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除步骤执行记录
|
||||
* @param id
|
||||
*/
|
||||
export const delArStepRecord = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/stepRecord/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
155
plus-ui/src/api/inspection/stepRecord/types.ts
Normal file
155
plus-ui/src/api/inspection/stepRecord/types.ts
Normal file
@@ -0,0 +1,155 @@
|
||||
export interface ArStepRecordVO {
|
||||
/**
|
||||
* 记录ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务执行ID
|
||||
*/
|
||||
executionId: string | number;
|
||||
|
||||
/**
|
||||
* 执行编号
|
||||
*/
|
||||
executionCode?: string;
|
||||
|
||||
/**
|
||||
* 步骤ID
|
||||
*/
|
||||
stepId: string | number;
|
||||
|
||||
/**
|
||||
* 步骤名称
|
||||
*/
|
||||
stepName?: string;
|
||||
|
||||
/**
|
||||
* 状态(pending待执行 completed已完成 skipped已跳过)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 是否完成(0否 1是)
|
||||
*/
|
||||
isDone: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
completionTime: string;
|
||||
|
||||
/**
|
||||
* 耗时(秒)
|
||||
*/
|
||||
duration: number;
|
||||
|
||||
/**
|
||||
* 文本反馈
|
||||
*/
|
||||
textFeedback: string;
|
||||
|
||||
/**
|
||||
* 语音识别文本
|
||||
*/
|
||||
voiceText: string;
|
||||
|
||||
/**
|
||||
* AI识别结果(JSON格式)
|
||||
*/
|
||||
aiResult: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 执行人ID
|
||||
*/
|
||||
executorId: string | number;
|
||||
|
||||
/**
|
||||
* 执行人姓名
|
||||
*/
|
||||
executorName: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArStepRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 记录ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务执行ID
|
||||
*/
|
||||
executionId?: string | number;
|
||||
|
||||
/**
|
||||
* 步骤ID
|
||||
*/
|
||||
stepId?: string | number;
|
||||
|
||||
/**
|
||||
* 状态(pending待执行 completed已完成 skipped已跳过)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 文本反馈
|
||||
*/
|
||||
textFeedback?: string;
|
||||
|
||||
/**
|
||||
* 语音识别文本
|
||||
*/
|
||||
voiceText?: string;
|
||||
|
||||
/**
|
||||
* AI识别结果(JSON格式)
|
||||
*/
|
||||
aiResult?: Record<string, any> | string;
|
||||
|
||||
/**
|
||||
* 执行人ID
|
||||
*/
|
||||
executorId?: string | number;
|
||||
|
||||
/**
|
||||
* 执行人姓名
|
||||
*/
|
||||
executorName?: string;
|
||||
}
|
||||
|
||||
export interface ArStepRecordQuery extends PageQuery {
|
||||
/**
|
||||
* 任务执行ID
|
||||
*/
|
||||
executionId?: string | number;
|
||||
|
||||
/**
|
||||
* 步骤ID
|
||||
*/
|
||||
stepId?: string | number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 执行人ID
|
||||
*/
|
||||
executorId?: string | number;
|
||||
}
|
||||
62
plus-ui/src/api/inspection/task/index.ts
Normal file
62
plus-ui/src/api/inspection/task/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ArTaskVO, ArTaskForm, ArTaskQuery } from '@/api/inspection/task/types';
|
||||
|
||||
/**
|
||||
* 查询巡检任务模板列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listArTask = (query?: ArTaskQuery): AxiosPromise<ArTaskVO[]> => {
|
||||
return request({
|
||||
url: '/inspection/task/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询巡检任务模板详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArTask = (id: string | number): AxiosPromise<ArTaskVO> => {
|
||||
return request({
|
||||
url: '/inspection/task/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增巡检任务模板
|
||||
* @param data
|
||||
*/
|
||||
export const addArTask = (data: ArTaskForm) => {
|
||||
return request({
|
||||
url: '/inspection/task',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改巡检任务模板
|
||||
* @param data
|
||||
*/
|
||||
export const updateArTask = (data: ArTaskForm) => {
|
||||
return request({
|
||||
url: '/inspection/task',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除巡检任务模板
|
||||
* @param id
|
||||
*/
|
||||
export const delArTask = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/inspection/task/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
110
plus-ui/src/api/inspection/task/types.ts
Normal file
110
plus-ui/src/api/inspection/task/types.ts
Normal file
@@ -0,0 +1,110 @@
|
||||
export interface ArTaskVO {
|
||||
/**
|
||||
* 任务ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName: string;
|
||||
|
||||
/**
|
||||
* 任务代码
|
||||
*/
|
||||
taskCode: string;
|
||||
|
||||
/**
|
||||
* 关联区域ID
|
||||
*/
|
||||
regionId: string | number;
|
||||
|
||||
/**
|
||||
* 关联区域名称
|
||||
*/
|
||||
regionName?: string;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
taskType: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface ArTaskForm extends BaseEntity {
|
||||
/**
|
||||
* 任务ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
|
||||
/**
|
||||
* 任务代码
|
||||
*/
|
||||
taskCode?: string;
|
||||
|
||||
/**
|
||||
* 关联区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
taskType?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ArTaskQuery extends PageQuery {
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
taskName?: string;
|
||||
|
||||
/**
|
||||
* 任务代码
|
||||
*/
|
||||
taskCode?: string;
|
||||
|
||||
/**
|
||||
* 关联区域ID
|
||||
*/
|
||||
regionId?: string | number;
|
||||
|
||||
/**
|
||||
* 任务类型
|
||||
*/
|
||||
taskType?: string;
|
||||
|
||||
/**
|
||||
* 状态(0正常 1停用)
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user