|
|
|
import request from "../request";
|
|
|
|
|
|
|
|
//实时监控页面
|
|
|
|
//获取线路树状结构
|
|
|
|
export function getdyTreeListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getdyTreeList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//获取图片接口
|
|
|
|
export function getTerminalPhotoListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getTerminalPhotoList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//获取通道的接口
|
|
|
|
|
|
|
|
export function getChannelListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getChannelByTermid",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//根据装置号获取通道接口
|
|
|
|
|
|
|
|
export function getChannelByTermidJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getChannelByTermid",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//图片轮巡
|
|
|
|
//获取图片轮巡接口
|
|
|
|
export function getPictureList(data){
|
|
|
|
return request({
|
|
|
|
url: "/test/getPhotoBanner",
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//实时查询
|
|
|
|
//获取电压-线路-杆塔等信息
|
|
|
|
export function getSearchInfo(data){
|
|
|
|
return request({
|
|
|
|
url: "/test/getLineAndGt",
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//杆塔信息
|
|
|
|
//1.获取杆塔列表
|
|
|
|
export function getTowerListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getTowerList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//2.获取线路编号列表
|
|
|
|
export function getLineListApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getLineList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//3.新增杆塔信息
|
|
|
|
export function addTowerApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/addTower",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//4.修改杆塔信息
|
|
|
|
export function updateTowerApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/updateTower",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//5.删除杆塔信息
|
|
|
|
export function delTowerApi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/deleteTower",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//拍照时间表设置
|
|
|
|
//1.获取任务规则列表接口
|
|
|
|
export function getScheduleRulelListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getScheduleRulelList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//2.新增任务规则
|
|
|
|
export function addScheduleRulel(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/addSchelduleRuleList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//3.删除任务规则
|
|
|
|
export function deleteScheduleRulel(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/deleteSchelduleRule",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//4.修改任务规则
|
|
|
|
export function updateScheduleRulel(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/updateSchelduleRule",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//5.获取所有通道
|
|
|
|
export function getScheduleRulelAccessList(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getChannelTreeList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//6.设置时间表通道
|
|
|
|
export function setScheduleRulel(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/relateSchelduleRule",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//7.查询设备时间表
|
|
|
|
export function getSchedulenr(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getChannelSchelduleRule",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//通道管理
|
|
|
|
//1.获取通道列表
|
|
|
|
export function getChannelListapi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getChannelList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//2.新增通道
|
|
|
|
export function addChannelapi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/addChannelList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//3.删除通道
|
|
|
|
export function deleteChannelapi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/deleteChannelList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//4.修改通道
|
|
|
|
export function updateChannelapi(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/updateChannelList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//线路信息管理接口数据
|
|
|
|
//获取电压等级列表
|
|
|
|
export function getdyListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getdyList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//1.线路列表信息
|
|
|
|
export function getLineListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getLineList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//2.添加单个或者多个线路信息
|
|
|
|
export function addLineJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/addLine",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//3.删除新路信息
|
|
|
|
export function deleteLineJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/deleteLine",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//4.修改信息
|
|
|
|
export function updateLineJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/updateLine",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//拍照装置管理 接口增删改查
|
|
|
|
//获取列表
|
|
|
|
export function getTerminalJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getTerminalList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//添加设备信息
|
|
|
|
|
|
|
|
export function addTerminalJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/addTerminal",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//修改设备信息
|
|
|
|
|
|
|
|
export function updateTerminalJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/updateTerminal",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//删除设备信息
|
|
|
|
|
|
|
|
export function deleteTerminalJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/deleteTerminal",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//图像采集装置设置 列表
|
|
|
|
export function getImageResolutionListJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getImageResolutionList",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//设置图像参数 setImageParams
|
|
|
|
|
|
|
|
//查询图像分辨率 getImageParams
|
|
|
|
|
|
|
|
// 获取GPS位置
|
|
|
|
export function getTermGPSJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getTermGPS",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//setTermGPS 开启关闭gps
|
|
|
|
export function setTermGPSJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/setTermGPS",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//手动拍照
|
|
|
|
export function getLatestPhotoJoggle(data) {
|
|
|
|
return request({
|
|
|
|
url: "/test/getLatestPhoto",
|
|
|
|
method: "post",
|
|
|
|
data,
|
|
|
|
});
|
|
|
|
}
|