forked from SmartBench/CMVR-IOT-UI
- 在检测配置API中新增copyConfig函数 - 在检测项API中新增copyDetect函数 - 在巡检点API中新增copyPoint函数 - 在巡检任务API中新增copyTask函数 - 在智能测试任务管理API中新增copyTask函数 - 在测试用例API中新增copyTestCase函数 - 在各个视图组件中添加复制按钮和处理逻辑 - 增加复制状态loading显示和成功提示 - 扩展表格列宽度以容纳新的复制按钮
86 lines
1.6 KiB
JavaScript
86 lines
1.6 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询任务流程编排列表
|
|
export function listConfig(query) {
|
|
return request({
|
|
url: '/test/config/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询任务流程编排详细
|
|
export function getConfig(id) {
|
|
return request({
|
|
url: '/test/config/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增任务流程编排
|
|
export function addConfig(data) {
|
|
return request({
|
|
url: '/test/config',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function copyConfig(id) {
|
|
return request({
|
|
url: '/test/config/copy/' + id,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 修改任务流程编排
|
|
export function updateConfig(data) {
|
|
return request({
|
|
url: '/test/config',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除任务流程编排
|
|
export function delConfig(id) {
|
|
return request({
|
|
url: '/test/config/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 流程编排
|
|
export function taskConfig(data) {
|
|
return request({
|
|
url: '/test/orchestration',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 流程编排查询
|
|
export function getTaskConfig(params) {
|
|
return request({
|
|
url: `/test/orchestration`,
|
|
method: 'get',
|
|
params: params
|
|
})
|
|
}
|
|
|
|
// 获取任务执行参数
|
|
export function getTaskParamsById(id) {
|
|
return request({
|
|
url: `/test/param/query/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
// 任务执行
|
|
export function taskExecute(data) {
|
|
return request({
|
|
url: `/flow/execute`,
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|