You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
3.7 KiB
163 lines
3.7 KiB
// 登录
|
|
exports.loginUrl = () => {
|
|
return `/login`
|
|
}
|
|
|
|
// 登出
|
|
exports.logoutUrl = () => {
|
|
return `/logout`
|
|
}
|
|
|
|
// 获取巡检总览
|
|
exports.getProjectList = () => {
|
|
return `/projectList`
|
|
}
|
|
|
|
// 获取点位布设信息
|
|
exports.getProjectGraph = (projectId) => {
|
|
return `/project/${projectId}/planarGraph`
|
|
}
|
|
exports.getDeployPoints = (pictureId) => {
|
|
return `/picture/${pictureId}/deploy/points`
|
|
}
|
|
exports.getProjectPoints = (projectId) => {
|
|
return `/project/${projectId}/all/points`
|
|
}
|
|
|
|
// 获取巡检计划
|
|
exports.getPatrolPlan = () => {
|
|
return `/patrolPlan`
|
|
}
|
|
|
|
// 开始巡检录入
|
|
exports.addPatrolRecord = () => {
|
|
return `/patrolRecord/add`
|
|
}
|
|
//上报问题
|
|
exports.reportQuest = () => {
|
|
return `/patrolRecord/reportQuest`
|
|
}
|
|
|
|
|
|
// 获取巡检记录
|
|
exports.getPatrolRecord = (patrolPlanId, startTime, endTime, alarm, pointId,query) => {
|
|
const {home } = query
|
|
return `/patrolRecord/${patrolPlanId}/${startTime}/${endTime}/${alarm}/${pointId}?home=${home}`
|
|
}
|
|
//设备
|
|
exports.getDevices = () => {
|
|
return `/devices`
|
|
}
|
|
|
|
|
|
//获取子系统的巡检记录
|
|
exports.getSubSystemPatrolAbout = (query) => {
|
|
const { STime, ETime,keywords } = query;
|
|
return `/patrolRecord/subSystemPatrolAbout?STime=${STime}&ETime=${ETime}&keywords=${keywords}`
|
|
}
|
|
|
|
// 获取点位信息
|
|
exports.getPointList = (query) => {
|
|
const {projectId } = query;
|
|
return `/patrolRecord/pointInfo?projectId=${projectId}`
|
|
}
|
|
|
|
exports.getPointInfoAll = (query) => {
|
|
const {projectId } = query;
|
|
return `/pointInfo/all?projectId=${projectId}`
|
|
}
|
|
|
|
|
|
// 获取点位最新一条巡检记录
|
|
exports.getdPointCurPatrolRecord = (pointId) => {
|
|
return `/patrolRecord/${pointId}/cur`
|
|
}
|
|
|
|
// 获取巡检模板
|
|
exports.getPatrolTemplate = (id) => {
|
|
return `/patrolTemplate?id=${id}`
|
|
}
|
|
// 获取巡检模板(所有的)
|
|
exports.getPatrolTemplates = () => {
|
|
return `/patrolTemplate`
|
|
}
|
|
|
|
//根据结构物获取巡检模板
|
|
exports.getTemplates = (query) => {
|
|
const {projectId } = query;
|
|
return `/patrolRecord/getTemplate?projectId=${projectId}`
|
|
}
|
|
|
|
exports.getPatrolRecordIssueHandle = () => {
|
|
return `/patrolRecord/issue/handle`
|
|
}
|
|
|
|
exports.getPatrolRecordIssueHandleById = (id) => {
|
|
return `/patrolRecord/issue/handle/${id}`
|
|
}
|
|
|
|
exports.getStructuresUsers = () => {
|
|
return `/structures/users`
|
|
}
|
|
|
|
exports.editPatrolRecordIssueHandle = (id) => {
|
|
return '/patrolRecord/issue/handle/' + id
|
|
}
|
|
|
|
// 获取结构物
|
|
exports.getStructuresList = () => {
|
|
return `/projectList`
|
|
}
|
|
|
|
// 获取巡检报告
|
|
exports.getPatrolReport = (query) => {
|
|
const { projectId, startTime, endTime } = query;
|
|
return `/patrolReport?projectId=${projectId}&startTime=${startTime}&endTime=${endTime}`
|
|
}
|
|
|
|
// 故障风险管理统计
|
|
exports.getPatrolRecordStatistic = (structures) => {
|
|
return `/patrolRecord/statistic?structures=${structures}`
|
|
}
|
|
|
|
// 查询子系统每日巡检
|
|
exports.getSubSystemPatrol = (day, subType) => {
|
|
return `/subSystemPatrol/day?day=${day}&subType=${subType}`
|
|
}
|
|
//根据sn号获取结构物以及点位
|
|
exports.getDetail = (id) => {
|
|
return `/card/detail/`+id
|
|
}
|
|
|
|
//获取智能断路器
|
|
exports.getThingsDeploy = () => {
|
|
return `/things/deploy`
|
|
}
|
|
//查询设备在离线
|
|
exports.getThingsStatus= () => {
|
|
return `/things/status`
|
|
}
|
|
//查询物联网卡
|
|
exports.getCardInfo= () => {
|
|
return `/things/card`
|
|
}
|
|
|
|
//获取结构物绑定相关信息
|
|
exports.getRelationList= () => {
|
|
return `/anxinyun/project/relation/list`
|
|
}
|
|
//查询空开设备的在离线以及开关
|
|
exports.createInvoke= () => {
|
|
return `/capabilities/invoke`
|
|
}
|
|
//获取资讯公告接口
|
|
exports.getAdvisoryNotices= (query) => {
|
|
const { home } = query;
|
|
return `/advisoryNotices/list?home=${home}`
|
|
}
|
|
|
|
|
|
exports.getNetworks= () => {
|
|
return `/network`
|
|
}
|
|
|
|
|