错误管理增删改查
This commit is contained in:
@@ -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
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user