import request from '@/utils/request'; // 获取项目列列表 export function getInfo(params) { return request({ url: `/scada/areaInfo/page`, method: 'get', params, }); } export const projectInfoAdd = data => { return request({ url: `/scada/areaInfo/add`, method: 'post', data, }); }; export const projectInfoEdit = data => { return request({ url: `/scada/areaInfo/edit`, method: 'put', data, }); }; export const projectInfoDelete = ids => { return request({ url: `/scada/areaInfo/${ids}`, method: 'delete', }); }; export const projectInfoGet = ids => { return request({ url: `/scada/areaInfo/${ids}`, method: 'get', }); }; export function getInfolist(params) { return request({ url: `/scada/areaInfo/list`, method: 'get', params, }); } export function stationInfolist(params) { return request({ url: `/scada/stationInfo/list`, method: 'get', params, }); } export function areaInfolist(params) { return request({ url: `/scada/areaInfo/list`, method: 'get', params, }); } //运行时段统计列表 export function deviceInfolist(params) { return request({ url: `/scada/deviceWorkRecord/page`, method: 'get', params, }); } //异常信息记录页面的列表接口 export function unusualTimeInfolist(params) { return request({ url: `/scada/unusualTimeSectionHistory/page`, method: 'get', params, }); } //运行时长统计列表接口 export const RecordWorkTotalTime = data => { return request({ url: `/scada/deviceWorkRecord/workTotalTime`, method: 'post', data, }); };