2026-07-28 16:26:07 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 发布流程
|
|
|
|
|
export function flowDeploy(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/flow/publish',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-20 13:36:24 +08:00
|
|
|
export function flowSaveDraft(data) {
|
|
|
|
|
return request({ url: '/flow/draft', method: 'put', data })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowVersionList(itemId) {
|
|
|
|
|
return request({ url: `/flow/versions/${itemId}`, method: 'get' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowVersionDetail(versionId) {
|
|
|
|
|
return request({ url: `/flow/version/${versionId}`, method: 'get' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowRestoreDraft(versionId, data) {
|
|
|
|
|
return request({ url: `/flow/version/${versionId}/restore-draft`, method: 'post', data })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowRollbackVersion(versionId, data) {
|
|
|
|
|
return request({ url: `/flow/version/${versionId}/rollback`, method: 'post', data })
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-28 16:26:07 +08:00
|
|
|
export function flowExecute(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/flow/execute',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowAction(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/flow/action',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowExecuteTrial(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/flow/executeTrial',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowView(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/flow/view',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowPause(instId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/flow/pause/${instId}`,
|
|
|
|
|
method: 'post'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowResume(instId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/flow/resume/${instId}`,
|
|
|
|
|
method: 'post'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowStop(instId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/flow/stop/${instId}`,
|
|
|
|
|
method: 'post'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getArmStatus(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/arm/getPose',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
2026-08-03 16:53:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getAgvStatus(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/agv/getRuntimeState',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
2026-08-04 10:54:53 +08:00
|
|
|
}
|
|
|
|
|
|
2026-08-04 11:46:14 +08:00
|
|
|
export function getAgvStations(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/agv/listStations',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-04 10:54:53 +08:00
|
|
|
export function getArmJointState(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/arm/getJointState',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params
|
|
|
|
|
})
|
|
|
|
|
}
|