You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
import request from '@/utils/request'
|
|
|
|
// 查询设备列表
|
|
export function getdeviceList(query) {
|
|
return request({
|
|
url: '/business/device/query',
|
|
method: 'get',
|
|
params: {
|
|
...query,
|
|
deviceType:5
|
|
}
|
|
})
|
|
}
|
|
|
|
// 查询设备列表
|
|
export function getBoardDeviceInfo(deviceId) {
|
|
return request({
|
|
// url: `/business/board/realtimeProperty/${deviceId}`,
|
|
url: `/business/device/properties/realtime/${deviceId}/3A`,
|
|
// url: `/business/device/batchFunctions`,
|
|
method: 'GET',
|
|
params: {}
|
|
})
|
|
}
|
|
|
|
// 敏感字段检测
|
|
export function checkBoardContent(content) {
|
|
return request({
|
|
url: `/business/dcInfoBoardVocabulary/checkBoardContent`,
|
|
method: 'get',
|
|
params:{
|
|
content
|
|
}
|
|
})
|
|
}
|
|
|
|
// 保存情报板发布日志
|
|
export function saveBoardReleaseLog(data) {
|
|
return request({
|
|
url: `/business/boardReleaseLog`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function publishToBoard(data) {
|
|
return request({
|
|
// url: '/business/board/batch/publish',
|
|
url: `/broadcast/broadcastFunctionCall`,
|
|
method: 'post',
|
|
// data: data
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
|