Files
admin-govern/src/api/cs-device-boot/planData.ts

96 lines
2.2 KiB
TypeScript
Raw Normal View History

2024-06-18 16:35:53 +08:00
import createAxios from '@/utils/request'
// 方案列表
export function getSchemeTree() {
return createAxios({
url: '/cs-device-boot/wlRecord/schemeTree',
method: 'GET'
})
}
// 根据方案查询测试项信息
2024-06-19 20:32:10 +08:00
export function getTestRecordInfo(id: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
2024-06-19 20:32:10 +08:00
url: '/cs-device-boot/wlRecord/getTestRecordById?testRecordId=' + id,
2024-06-18 16:35:53 +08:00
method: 'GET'
})
}
//新增修改方案
2024-06-19 20:32:10 +08:00
export function addPlan(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
url: '/cs-device-boot/wlRecord/updateSchemeRecord',
method: 'POST',
data
})
}
//新增测试项
2024-06-19 20:32:10 +08:00
export function addRecord(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
url: '/cs-device-boot/wlRecord/addRecord',
method: 'POST',
data
})
}
//新增测试项
2024-06-19 20:32:10 +08:00
export function updateRecord(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
url: '/cs-device-boot/wlRecord/updateTestRecord',
method: 'POST',
data
})
}
//删除方案或测试项
2024-06-19 20:32:10 +08:00
export function delRecord(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
2024-06-19 20:32:10 +08:00
url: '/cs-device-boot/wlRecord/deleteRecord?id=' + data.id,
method: 'DELETE'
2024-06-18 16:35:53 +08:00
})
}
//查询历史趋势折线图
2024-06-19 20:32:10 +08:00
export function getHistoryTrend(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
url: '/cs-device-boot/wlRecord/queryCommonStatisticalByTest',
method: 'POST',
data
})
}
//查询设备列表
2024-06-19 20:32:10 +08:00
export function getDeviceList(data: any) {
2024-06-18 16:35:53 +08:00
return createAxios({
url: '/cs-device-boot/wlRecord/queryPage',
method: 'POST',
data
})
}
2024-06-19 20:32:10 +08:00
//添加测试项中的设备基础数据
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
})
}
2024-12-17 20:57:07 +08:00
//方案数据-》根据测试项获取暂态事件
export function getEventByItem(data: any) {
return createAxios({
url: '/cs-harmonic-boot/data/getEventByItem',
method: 'POST',
params: data
})
}