You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
581 lines
11 KiB
JavaScript
581 lines
11 KiB
JavaScript
import request from "../request";
|
|
//获取登录
|
|
export function loginJoggle(data) {
|
|
return request({
|
|
url: "/api/login",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//获取装置总数图表
|
|
export function getTermStatistics(data) {
|
|
return request({
|
|
url: "/api/getTermStatistics",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
//获取一周的装置告警
|
|
export function getWeekAlarmStatistics(data) {
|
|
return request({
|
|
url: "/api/getWeekAlarmStatistics",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
//获取当天告警分类统计
|
|
export function getTodayAlarmStatistics(data) {
|
|
return request({
|
|
url: "/api/getTodayAlarmStatistics",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
//首页查看数据
|
|
export function getOnlineTerminalList(data) {
|
|
return request({
|
|
url: "/api/getOnlineTerminalList",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
//导出数据
|
|
export function getOnlineTerminalListExcel() {
|
|
return request({
|
|
url: "/api/getOnlineTerminalListExcel",
|
|
method: "post",
|
|
responseType: "blob",
|
|
});
|
|
}
|
|
|
|
//修改用户
|
|
export function updateUserApi(data) {
|
|
return request({
|
|
url: "/api/updateUser",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//实时监控
|
|
//获取线路树状结构
|
|
export function getdyTreeListJoggle(data) {
|
|
return request({
|
|
url: "/api/getdyTreeList",
|
|
method: "get",
|
|
params: data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//获取所有杆塔下的图片列表,实时监控
|
|
|
|
export function getTowerAndPhotoList(data) {
|
|
return request({
|
|
url: "/api/getTowerAndPhotoList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//获取通道
|
|
export function getChannelByTermidJoggle(data) {
|
|
return request({
|
|
url: "/api/getChannelByTermid",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//获取图片接口
|
|
export function getTerminalPhotoListJoggle(data) {
|
|
return request({
|
|
url: "/api/getTerminalPhotoList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//判断装置是否在线
|
|
export function getTermStatus(data) {
|
|
return request({
|
|
url: "/api/getTermStatus",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//统一调用接口命令
|
|
|
|
export function setTermCamera(data) {
|
|
return request({
|
|
url: "/api/setTermCamera",
|
|
method: "post",
|
|
data,
|
|
// headers: {
|
|
// "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
// },
|
|
});
|
|
}
|
|
//统一返回数据
|
|
export function getTermCameraRequest(data) {
|
|
return request({
|
|
url: "/api/getTermCameraRequest",
|
|
method: "post",
|
|
data,
|
|
// headers: {
|
|
// "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
// },
|
|
});
|
|
}
|
|
|
|
//手动拍 获取装置状态
|
|
export function getTakePicStatusJoggle(data) {
|
|
return request({
|
|
url: "/api/getTakePicStatus",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
|
|
//手动拍照获取最新图片
|
|
export function getTakePicPhotoStatusJoggle(data) {
|
|
return request({
|
|
url: "/api/getTakePicPhotoStatus",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
export function getDeviceList(data) {
|
|
return request({
|
|
url: "/api/getTerminalStatus",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//获取最新装置信息aaa
|
|
export function getinfoStatus(data) {
|
|
return request({
|
|
url: "/api/getLastTermInfo",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//获取最新装置信息
|
|
export function getNewDeviceList(data) {
|
|
return request({
|
|
url: "/api/getLastedTerminalStatus",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//声光报警
|
|
export function alarmMarkJoggle(data) {
|
|
return request({
|
|
url: "/api/alarmMark",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
// 获取GPS位置
|
|
export function getTermGPSJoggle(data) {
|
|
return request({
|
|
url: "/api/getTermGPS",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//setTermGPS 开启关闭gps
|
|
export function setTermGPSJoggle(data) {
|
|
return request({
|
|
url: "/api/setTermGPS",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//获取GPS位置触发
|
|
export function getTermGPSPosition(data) {
|
|
return request({
|
|
url: "/api/getTermGPSPosition",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
// 获取GPS位置
|
|
|
|
export function getTermLastGPSPosition(data) {
|
|
return request({
|
|
url: "/api/getTermLastGPSPosition",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
|
|
//历史图片
|
|
//获取电压-线路-杆塔等信息
|
|
export function getSearchInfo(data) {
|
|
return request({
|
|
url: "/api/getLineAndGt",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//获取实时图片数据
|
|
export function getRealtimePhoto(data) {
|
|
return request({
|
|
url: "/api/getPhotoList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//手动拍照
|
|
export function takePicJoggle(data) {
|
|
return request({
|
|
url: "/api/takePic",
|
|
method: "get",
|
|
|
|
params: data,
|
|
// data,
|
|
// headers: {
|
|
// "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
// },
|
|
});
|
|
}
|
|
|
|
//用户管理
|
|
|
|
//全局设置通道
|
|
|
|
export function updateAlarmChannel(data) {
|
|
return request({
|
|
url: "/api/updateAlarmChannel",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
|
|
//获取电压等级列表
|
|
export function getdyListJoggle(data) {
|
|
return request({
|
|
url: "/api/getdyList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//1.线路列表信息
|
|
export function getLineListJoggle(data) {
|
|
return request({
|
|
url: "/api/getLineList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//2.添加单个或者多个线路信息
|
|
export function addLineJoggle(data) {
|
|
return request({
|
|
url: "/api/addLine",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//3.删除新路信息
|
|
export function deleteLineJoggle(data) {
|
|
return request({
|
|
url: "/api/deleteLine",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//4.修改信息
|
|
export function updateLineJoggle(data) {
|
|
return request({
|
|
url: "/api/updateLine",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//杆塔信息
|
|
//1.获取杆塔列表
|
|
export function getTowerListApi(data) {
|
|
return request({
|
|
url: "/api/getTowerList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//2.获取线路编号列表
|
|
export function getLineListApi(data) {
|
|
return request({
|
|
url: "/api/getLineList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//3.新增杆塔信息
|
|
export function addTowerApi(data) {
|
|
return request({
|
|
url: "/api/addTower",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//4.修改杆塔信息
|
|
export function updateTowerApi(data) {
|
|
return request({
|
|
url: "/api/updateTower",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//5.删除杆塔信息
|
|
export function delTowerApi(data) {
|
|
return request({
|
|
url: "/api/deleteTower",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//通道管理
|
|
//1.获取通道列表
|
|
export function getChannelListapi(data) {
|
|
return request({
|
|
url: "/api/getChannelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//2.新增通道
|
|
export function addChannelapi(data) {
|
|
return request({
|
|
url: "/api/addChannelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//3.删除通道
|
|
export function deleteChannelapi(data) {
|
|
return request({
|
|
url: "/api/deleteChannelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//4.修改通道
|
|
export function updateChannelapi(data) {
|
|
return request({
|
|
url: "/api/updateChannelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//拍照装置管理 接口增删改查
|
|
//获取列表
|
|
export function getTerminalJoggle(data) {
|
|
return request({
|
|
url: "/api/getTerminalList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//添加设备信息
|
|
export function addTerminalJoggle(data) {
|
|
return request({
|
|
url: "/api/addTerminal",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//添加设备---获取-线路-杆塔
|
|
export function getLineAndGtInfo(data) {
|
|
return request({
|
|
url: "/api/getLineAndGtList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//修改设备信息
|
|
export function updateTerminalJoggle(data) {
|
|
return request({
|
|
url: "/api/updateTerminal",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//删除设备信息
|
|
export function deleteTerminalJoggle(data) {
|
|
return request({
|
|
url: "/api/deleteTerminal",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//导出数据
|
|
|
|
export function getTerminalListExcel() {
|
|
return request({
|
|
url: "/api/getTerminalListExcel",
|
|
method: "post",
|
|
responseType: "blob",
|
|
});
|
|
}
|
|
//获取所有通道列表
|
|
|
|
export function getAllChannelListJoggle(data) {
|
|
return request({
|
|
url: "/api/getAllChannelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//规约版本
|
|
export function getProtocolList(data) {
|
|
return request({
|
|
url: "/api/getProtocolList",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|
|
//获取通道的接口
|
|
|
|
export function getChannelListJoggle(data) {
|
|
return request({
|
|
url: "/api/getChannelByTermid",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//装置复位
|
|
export function resetTerminalApi(data) {
|
|
return request({
|
|
url: "/api/resetTerminal",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//图像参数--获取图像分辨率
|
|
export function getResolutionRatio(data) {
|
|
return request({
|
|
url: "/api/getResolutionList",
|
|
method: "post",
|
|
data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
},
|
|
});
|
|
}
|
|
//获取设备接口
|
|
|
|
export function getCoordinate(data) {
|
|
return request({
|
|
url: "/api/getCoordinate",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//绘制坐标保存
|
|
|
|
export function updateCoordinate(data) {
|
|
return request({
|
|
url: "/api/updateCoordinate",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
|
|
//拍照时间表设置
|
|
//1.获取任务规则列表接口
|
|
export function getScheduleRulelListJoggle(data) {
|
|
return request({
|
|
url: "/api/getScheduleRulelList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//2.新增任务规则
|
|
export function addScheduleRulel(data) {
|
|
return request({
|
|
url: "/api/addSchelduleRuleList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//3.删除任务规则
|
|
export function deleteScheduleRulel(data) {
|
|
return request({
|
|
url: "/api/deleteSchelduleRule",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//4.修改任务规则
|
|
export function updateScheduleRulel(data) {
|
|
return request({
|
|
url: "/api/updateSchelduleRule",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//5.获取所有通道
|
|
export function getScheduleRulelAccessList(data) {
|
|
return request({
|
|
url: "/api/getChannelTreeList",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//6.设置时间表通道
|
|
export function setScheduleRulel(data) {
|
|
return request({
|
|
url: "/api/relateSchelduleRule",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//7.查询设备时间表
|
|
export function getSchedulenr(data) {
|
|
return request({
|
|
url: "/api/getChannelSchelduleRule",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//根据通道编号获取设备列表
|
|
export function getTermListByChannelJoggle(data) {
|
|
return request({
|
|
url: "/api/getTermListByChannel ",
|
|
method: "post",
|
|
data,
|
|
});
|
|
}
|
|
//调节焦距
|
|
|
|
export function updateTermCamera(data) {
|
|
return request({
|
|
url: "/api/updateTermCamera",
|
|
method: "get",
|
|
params: data,
|
|
});
|
|
}
|