This commit is contained in:
limqhz
2021-09-21 18:10:13 +08:00
parent c72e50c5e4
commit aa5faaaa2e
318 changed files with 44583 additions and 59 deletions

27
src/api/device.js Normal file
View File

@@ -0,0 +1,27 @@
import http from '@/utils/http'
/**
* 查询门禁设备
*/
export function find(id) {
return http.get('/device/' + id)
}
export function reconnect(id) {
return http.post('/device/reconnect/' + id)
}
/**
* 删除门禁设备
*/
export function remove(ids) {
return http.post('/device/delete', { 'id[]': ids })
}
/**
* 保存门禁设备
*/
export function save(params) {
return http.post('/device', params)
}