| 123456789101112131415161718192021222324252627282930313233343536 |
- import { defHttp } from '/@/utils/http/axios';
- enum Api {
- subStationList = '/safety/ventanalySubStation/alllist',
- getList='/safety/ventanalyDeviceInfo/getDeviceListBySubId',
- getEdit='/safety/ventanalySubStation/edit',
- runDeviceMonitor='/safety/ventanalyDeviceInfo/runDeviceMonitor',
- update158DevName='/safety/ventanalyDeviceInfo/update158DevName',
- updateDebugStatus='/safety/ventanalyDeviceInfo/updateDebugStatus',
- get158StationData='/safety/ventanalyDeviceInfo/get158StationData',
- set158StationData='/safety/ventanalyDeviceInfo/set158StationData',
- get158StationDevices='/safety/ventanalyDeviceInfo/get158StationDevices',
- set158StationRead='/safety/ventanalyDeviceInfo/set158StationRead'
- }
- // 分站查询接口
- export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
- // 分站详细信息列表
- export const getList = (params) => defHttp.post({ url: Api.getList, params });
- //分站编辑
- export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
- //启动新设备
- export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMonitor, params });
- //编辑设备名称
- export const update158DevName = (params) => defHttp.post({ url: Api.update158DevName, params });
- // 分站设备调试
- export const updateDebugStatus = (params) => defHttp.post({ url: Api.updateDebugStatus,params },{ joinParamsToUrl: true });
- // 分站详情列表
- export const get158StationData = () => defHttp.post({ url: Api.get158StationData });
- // 分站详情下发
- export const set158StationData = (params) => defHttp.post({ url: Api.set158StationData,params },{ joinParamsToUrl: true });
- // 根据分站ID获取分站下设备
- export const get158StationDevices = (params) => defHttp.post({ url: Api.get158StationDevices,params },{ joinParamsToUrl: true });
- //读取分站设备数据
- export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead,params },{ joinParamsToUrl: true });
|