错误管理增删改查

This commit is contained in:
mmc
2026-07-08 16:43:25 +08:00
parent f8fef3e40b
commit 1c229f32b0
3 changed files with 246 additions and 344 deletions

View File

@@ -331,16 +331,6 @@ export function getErrorListApi(params) {
params
});
}
// 查询错误列表(不分页)
export function getErrorListAllApi(params) {
return request({
url: '/system/error/list',
method: 'get',
params
});
}
// 查询错误详情
export function getErrorDetailApi(id) {
return request({
@@ -349,28 +339,35 @@ export function getErrorDetailApi(id) {
});
}
// 新增错误
export function addErrorApi(data) {
// 查询错误列表(不分页)
export function getErrorListAllApi(data) {
return request({
url: '/system/error',
url: '/iot/errorIdentification/list',
method: 'post',
data
});
}
// 修改错误
export function updateErrorApi(data) {
// 新增修改错误
export function addErrorApi(data) {
return request({
url: '/system/error',
method: 'put',
url: '/iot/errorIdentification/save',
method: 'post',
data
});
}
// 删除错误
export function deleteErrorApi(ids) {
export function deleteErrorApi(data) {
return request({
url: `/system/error/${ids}`,
method: 'delete'
url: `/iot/errorIdentification/delete`,
method: 'post',
data
});
}