|
@@ -2,22 +2,23 @@ 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'
|
|
|
+ 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 getListAll = () => defHttp.post({ url: Api.getList });
|
|
|
//分站编辑
|
|
|
export const getEdit = (params) => defHttp.put({ url: Api.getEdit, params });
|
|
|
//启动新设备
|
|
@@ -25,12 +26,12 @@ export const runDeviceMonitor = (params) => defHttp.post({ url: Api.runDeviceMon
|
|
|
//编辑设备名称
|
|
|
export const update158DevName = (params) => defHttp.post({ url: Api.update158DevName, params });
|
|
|
// 分站设备调试
|
|
|
-export const updateDebugStatus = (params) => defHttp.post({ url: Api.updateDebugStatus,params },{ joinParamsToUrl: true });
|
|
|
+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 });
|
|
|
+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 get158StationDevices = (params) => defHttp.post({ url: Api.get158StationDevices, params }, { joinParamsToUrl: true });
|
|
|
//读取分站设备数据
|
|
|
-export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead,params },{ joinParamsToUrl: true });
|
|
|
+export const set158StationRead = (params) => defHttp.post({ url: Api.set158StationRead, params }, { joinParamsToUrl: true });
|