80 lines
1.6 KiB
JavaScript
80 lines
1.6 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询场所管理列表
|
|
export function listLightPole(query) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询场所管理详细
|
|
export function getLightPole(id) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增场所管理
|
|
export function addLightPole(data) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 修改场所管理
|
|
export function updateLightPole(data) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除场所管理
|
|
export function delLightPole(id) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获取场所下设备列表信息
|
|
export function getLightDeviceList(id) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/getLightDeviceList/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 批量转移场所管理
|
|
export function batchUpdateBuilding({ ids, buildingId, buildingName }) {
|
|
return request({
|
|
url: `/smartlight/light/lightPole/batchUpdateBuilding/${ids}/${buildingId}/${buildingName}`,
|
|
method: 'put'
|
|
})
|
|
}
|
|
|
|
// 导入模板下载
|
|
export function importDownload(query) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/exportUrl',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导入信息
|
|
export function importData(data) {
|
|
return request({
|
|
url: '/smartlight/light/lightPole/importData',
|
|
method: 'post',
|
|
data,
|
|
responseType: 'blob'
|
|
})
|
|
}
|