代码初始化
This commit is contained in:
43
src/api/light/screenMonitor.js
Normal file
43
src/api/light/screenMonitor.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询照明信息屏列表
|
||||
export function listScreen(query) {
|
||||
return request({
|
||||
url: '/smartlight/infoScreen/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 控制信息屏开关、调光、调音量信息
|
||||
export function updateInfoScreen(data) {
|
||||
return request({
|
||||
url: `/smartlight/light/deviceControl/infoScreen/${data.ids}/${data.controlType}/${data.controlValue}`,
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 查询照明信息屏详情--基本信息
|
||||
export function getScreenBasic(id) {
|
||||
return request({
|
||||
url: '/smartlight/infoScreen/getInfo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询照明信息屏详情--上传信息
|
||||
export function getScreenUpload(id) {
|
||||
return request({
|
||||
url: '/smartlight/infoScreen/getInfoScreenData/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询照明信息屏详情--当前策略
|
||||
|
||||
// 历史数据
|
||||
export function getScreenHis(query) {
|
||||
return request({
|
||||
url: '/smartlight/infoScreen/history',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user