parent
ce602bf56a
commit
7b5efe40b9
7 changed files with 309 additions and 97 deletions
@ -1,42 +1,50 @@ |
|||||||
import request from '@/router/axios'; |
import request from "@/router/axios"; |
||||||
|
|
||||||
export const getList = (current, size, params) => { |
export const getList = (current, size, params) => { |
||||||
return request({ |
return request({ |
||||||
url: '/api/alarmInformation/list', |
url: "/api/alarmInformation/list", |
||||||
method: 'get', |
method: "get", |
||||||
params: { |
params: { |
||||||
...params, |
...params, |
||||||
current, |
current, |
||||||
size, |
size, |
||||||
} |
}, |
||||||
}) |
}); |
||||||
} |
}; |
||||||
|
|
||||||
export const getDetail = (code) => { |
export const getDetail = (code) => { |
||||||
return request({ |
return request({ |
||||||
url: '/api/blade-system/region/detail', |
url: "/api/blade-system/region/detail", |
||||||
method: 'get', |
method: "get", |
||||||
params: { |
params: { |
||||||
code |
code, |
||||||
} |
}, |
||||||
}) |
}); |
||||||
} |
}; |
||||||
|
|
||||||
export const remove = (id) => { |
export const remove = (id) => { |
||||||
return request({ |
return request({ |
||||||
url: '/api/blade-system/region/remove', |
url: "/api/blade-system/region/remove", |
||||||
method: 'post', |
method: "post", |
||||||
params: { |
params: { |
||||||
id, |
id, |
||||||
} |
}, |
||||||
}) |
}); |
||||||
} |
}; |
||||||
|
|
||||||
export const submit = (row) => { |
export const submit = (row) => { |
||||||
return request({ |
return request({ |
||||||
url: '/api/blade-system/region/submit', |
url: "/api/blade-system/region/submit", |
||||||
method: 'post', |
method: "post", |
||||||
data: row |
data: row, |
||||||
}) |
}); |
||||||
} |
}; |
||||||
|
|
||||||
|
// 测试接口
|
||||||
|
export const getAlarm = (query) => { |
||||||
|
return request({ |
||||||
|
url: "/api/appData/test001", |
||||||
|
method: "get", |
||||||
|
params: query, |
||||||
|
}); |
||||||
|
}; |
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in new issue