|
|
|
|
import request from "../request";
|
|
|
|
|
|
|
|
|
|
//登陆接口
|
|
|
|
|
|
|
|
|
|
export function login(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/login",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//首页数据接口
|
|
|
|
|
export function getLineDataByVoltage(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getLineDataByVoltage",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getCapturePointDataByDanger(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getCapturePointDataByDanger",
|
|
|
|
|
method: "post",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getHostDeviceDataByVoltage(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getHostDeviceDataByVoltage",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function getCompanyDeviceInfo(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getCompanyDeviceInfo",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getPhotoAlarmDataByAlarmType(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getPhotoAlarmDataByAlarmType",
|
|
|
|
|
method: "post",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function getByName(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/inspectionOpinions/getByName",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//雷达图数据
|
|
|
|
|
export function getLastYearAlarmReasons(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/main/getLastYearAlarmReasons",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function get1(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/get1",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
export function get2(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/get2",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//图片轮巡 Post请求:
|
|
|
|
|
export function picLoop(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/realData/listCompanyScan",
|
|
|
|
|
method: "post",
|
|
|
|
|
data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//预警
|
|
|
|
|
export function list(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/photoAlarm/list",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取左侧树状图 http://180.166.218.222:7200/stritl/line/getTreeLineCompany
|
|
|
|
|
|
|
|
|
|
export function getListCompany(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/line/getTreeLine",
|
|
|
|
|
method: "post",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//获取右侧表格
|
|
|
|
|
export function getTowerList(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/stritl/towerLogic/getTowerLogicList",
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//实时监控页面
|
|
|
|
|
//获取线路树状结构
|
|
|
|
|
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/getChannelList",
|
|
|
|
|
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,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//线路信息管理接口数据
|
|
|
|
|
//获取电压等级列表
|
|
|
|
|
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,
|
|
|
|
|
});
|
|
|
|
|
}
|