forked from SmartBench/CMVR-IOT-UI
- 在检测配置API中新增copyConfig函数 - 在检测项API中新增copyDetect函数 - 在巡检点API中新增copyPoint函数 - 在巡检任务API中新增copyTask函数 - 在智能测试任务管理API中新增copyTask函数 - 在测试用例API中新增copyTestCase函数 - 在各个视图组件中添加复制按钮和处理逻辑 - 增加复制状态loading显示和成功提示 - 扩展表格列宽度以容纳新的复制按钮
52 lines
883 B
JavaScript
52 lines
883 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询检测项配置列表
|
|
export function listDetect(query) {
|
|
return request({
|
|
url: '/test/detect/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询检测项配置详细
|
|
export function getDetect(id) {
|
|
return request({
|
|
url: '/test/detect/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增检测项配置
|
|
export function addDetect(data) {
|
|
return request({
|
|
url: '/test/detect',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function copyDetect(id) {
|
|
return request({
|
|
url: '/test/detect/copy/' + id,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 修改检测项配置
|
|
export function updateDetect(data) {
|
|
return request({
|
|
url: '/test/detect',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除检测项配置
|
|
export function delDetect(id) {
|
|
return request({
|
|
url: '/test/detect/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|