68 lines
1.4 KiB
JavaScript
68 lines
1.4 KiB
JavaScript
|
|
import request from '@/utils/request';
|
|
|
|
/** 分页查询仿真记录*/
|
|
export function getSimulationRelpayList(params) {
|
|
return request({
|
|
url: `/api/simulationRecord`,
|
|
method: 'get',
|
|
params: params
|
|
});
|
|
}
|
|
|
|
// 删除回放
|
|
export function delSimulationRecord(replayId) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}`,
|
|
method: 'delete'
|
|
});
|
|
}
|
|
|
|
/** 回放*/
|
|
export function simulationRelpay(replayId) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/playBack`,
|
|
method: 'get'
|
|
});
|
|
}
|
|
|
|
// 结束回放
|
|
export function putsSimulationRecord(replayId) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/over`,
|
|
method: 'put'
|
|
});
|
|
}
|
|
|
|
// 暂停回放
|
|
export function putsSimulationRecordPause(replayId) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/pause`,
|
|
method: 'put'
|
|
});
|
|
}
|
|
|
|
// 播放回放
|
|
export function putsSimulationRecordPlay(replayId) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/play`,
|
|
method: 'put'
|
|
});
|
|
}
|
|
|
|
// 设置速度回放
|
|
export function putsSimulationRecordPlaySpeed(replayId, speed) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/playSpeed?playSpeed=${speed}`,
|
|
method: 'put'
|
|
});
|
|
}
|
|
|
|
// 播放
|
|
export function putsSimulationRecordplayTime(replayId, offsetSeconds) {
|
|
return request({
|
|
url: `/api/simulationRecord/${replayId}/playTime?offsetSeconds=${offsetSeconds}`,
|
|
method: 'put'
|
|
});
|
|
}
|