123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- // 设备组态API接口
- // 文件路径: src/api/device/configuration.js
- import request from '@/utils/request'
- // 查询设备组态列表
- export function getDeviceConfigurationList(query) {
- return request({
- url: '/device/configuration/list',
- method: 'get',
- params: query
- })
- }
- // 获取设备详细信息
- export function getDeviceConfiguration(deviceCode) {
- return request({
- url: '/device/configuration/' + deviceCode,
- method: 'get'
- })
- }
- // 获取设备点位列表
- export function getDevicePoints(deviceCode) {
- return request({
- url: '/device/configuration/points/' + deviceCode,
- method: 'get'
- })
- }
- // 获取点位详细信息
- export function getPointDetail(pointCode) {
- return request({
- url: '/device/configuration/point/' + pointCode,
- method: 'get'
- })
- }
- // 获取点位实时数据
- export function getPointRealTimeData(pointCode) {
- return request({
- url: '/device/configuration/point/realtime/' + pointCode,
- method: 'get'
- })
- }
- // 获取点位历史数据
- export function getPointHistoryData(query) {
- return request({
- url: '/device/configuration/point/history',
- method: 'get',
- params: query
- })
- }
- // 发送控制指令
- export function sendControlCommand(data) {
- return request({
- url: '/device/configuration/control',
- method: 'post',
- data: data
- })
- }
- // 获取设备组态图
- export function getDeviceSchema(deviceCode) {
- return request({
- url: '/device/configuration/schema/' + deviceCode,
- method: 'get'
- })
- }
- // 获取点位告警信息
- export function getPointAlarms(pointCode) {
- return request({
- url: '/device/configuration/point/alarms/' + pointCode,
- method: 'get'
- })
- }
- // 获取点位控制记录
- export function getPointControlRecords(pointCode) {
- return request({
- url: '/device/configuration/point/controls/' + pointCode,
- method: 'get'
- })
- }
|