数据方案-设备信息联调
This commit is contained in:
@@ -9,14 +9,14 @@ export function getSchemeTree() {
|
||||
}
|
||||
|
||||
// 根据方案查询测试项信息
|
||||
export function getTestRecordInfo(id:any) {
|
||||
export function getTestRecordInfo(id: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/getTestRecordById?testRecordId='+id,
|
||||
url: '/cs-device-boot/wlRecord/getTestRecordById?testRecordId=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
//新增修改方案
|
||||
export function addPlan(data:any) {
|
||||
export function addPlan(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/updateSchemeRecord',
|
||||
method: 'POST',
|
||||
@@ -25,7 +25,7 @@ export function addPlan(data:any) {
|
||||
}
|
||||
|
||||
//新增测试项
|
||||
export function addRecord(data:any) {
|
||||
export function addRecord(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/addRecord',
|
||||
method: 'POST',
|
||||
@@ -34,7 +34,7 @@ export function addRecord(data:any) {
|
||||
}
|
||||
|
||||
//新增测试项
|
||||
export function updateRecord(data:any) {
|
||||
export function updateRecord(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/updateTestRecord',
|
||||
method: 'POST',
|
||||
@@ -43,16 +43,15 @@ export function updateRecord(data:any) {
|
||||
}
|
||||
|
||||
//删除方案或测试项
|
||||
export function delRecord(data:any) {
|
||||
export function delRecord(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/deleteRecord?id='+data.id,
|
||||
method: 'DELETE',
|
||||
url: '/cs-device-boot/wlRecord/deleteRecord?id=' + data.id,
|
||||
method: 'DELETE'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//查询历史趋势折线图
|
||||
export function getHistoryTrend(data:any) {
|
||||
export function getHistoryTrend(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/queryCommonStatisticalByTest',
|
||||
method: 'POST',
|
||||
@@ -61,7 +60,7 @@ export function getHistoryTrend(data:any) {
|
||||
}
|
||||
|
||||
//查询设备列表
|
||||
export function getDeviceList(data:any) {
|
||||
export function getDeviceList(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/queryPage',
|
||||
method: 'POST',
|
||||
@@ -69,3 +68,20 @@ export function getDeviceList(data:any) {
|
||||
})
|
||||
}
|
||||
|
||||
//添加测试项中的设备基础数据
|
||||
export function addDevice(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/saveDataRecord',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除测试项中的设备基础数据
|
||||
export function delDevice(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/wlRecord/deleteDataRecord',
|
||||
method: 'DELETE',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user