| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 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',
- remove158Substation = '/safety/ventanalyDeviceInfo/remove158Substation', //删除158分站及其关联传感器
- get158SetLog = '/safety/ventanalySubStation/get158SetLog', //操作记录
- remove158Device = '/safety/ventanalyDeviceInfo/remove158Device', //删除158分站传感器
- set158StationDevicesRead = '/safety/ventanalyDeviceInfo/set158StationDevicesRead',
- update130DevName = '/safety/ventanalyDeviceInfo/update130DevName',
- get130StationData = '/safety/ventanalyDeviceInfo/get130StationData',
- set130StationData = '/safety/ventanalyDeviceInfo/set130StationData',
- get130StationDevices = '/safety/ventanalyDeviceInfo/get130StationDevices',
- set130StationRead = '/safety/ventanalyDeviceInfo/set130StationRead',
- remove130Substation = '/safety/ventanalyDeviceInfo/remove130Substation', //删除130分站及其关联传感器
- get130SetLog = '/safety/ventanalySubStation/get130SetLog', //操作记录
- remove130Device = '/safety/ventanalyDeviceInfo/remove130Device', //删除130分站传感器
- set130StationDevicesRead = '/safety/ventanalyDeviceInfo/set130StationDevicesRead',
- get130List = '/safety/ventanalyDeviceInfo/get130DeviceListBySubId',
- }
- // 分站查询接口
- export const subStationList = (params) => defHttp.get({ url: Api.subStationList, params });
- // 分站详细信息列表
- export const getList = (params) => defHttp.post({ url: Api.getList, params });
- //分站全部列表
- export const getListAll = () => defHttp.post({ url: Api.getList });
- //分站编辑
- 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 });
- //删除158分站及其关联传感器
- export const remove158Substation = (params) => defHttp.post({ url: Api.remove158Substation, params }, { joinParamsToUrl: true });
- //158分站操作记录
- export const get158SetLog = (params) => defHttp.post({ url: Api.get158SetLog, params }, { joinParamsToUrl: true });
- //删除158分站传感器
- export const remove158Device = (params) => defHttp.post({ url: Api.remove158Device, params },{ joinParamsToUrl: true });
- //158监测详情读取列表
- export const set158StationDevicesRead = (params) => defHttp.post({ url: Api.set158StationDevicesRead, params }, { joinParamsToUrl: true });
- //编辑设备名称
- export const update130DevName = (params) => defHttp.post({ url: Api.update130DevName, params });
- // 分站详情列表
- export const get130StationData = () => defHttp.post({ url: Api.get130StationData });
- // 分站详情下发
- export const set130StationData = (params) => defHttp.post({ url: Api.set130StationData, params }, { joinParamsToUrl: true });
- // 根据分站ID获取分站下设备
- export const get130StationDevices = (params) => defHttp.post({ url: Api.get130StationDevices, params }, { joinParamsToUrl: true });
- //读取分站设备数据
- export const set130StationRead = (params) => defHttp.post({ url: Api.set130StationRead, params }, { joinParamsToUrl: true });
- //删除130分站及其关联传感器
- export const remove130Substation = (params) => defHttp.post({ url: Api.remove130Substation, params }, { joinParamsToUrl: true });
- //130分站操作记录
- export const get130SetLog = (params) => defHttp.post({ url: Api.get130SetLog, params }, { joinParamsToUrl: true });
- //删除130分站传感器
- export const remove130Device = (params) => defHttp.post({ url: Api.remove130Device, params });
- //130监测详情读取列表
- export const set130StationDevicesRead = (params) => defHttp.post({ url: Api.set130StationDevicesRead, params }, { joinParamsToUrl: true });
- // 分站详细信息列表
- export const get130List = (params?) => defHttp.post({ url: Api.get130List, params });
|