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.

76 lines
1.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.getPatrolRecord = (patrolPlanId, startTime, endTime, alarm, pointId) => {
return `/patrolRecord/${patrolPlanId}/${startTime}/${endTime}/${alarm}/${pointId}`
}
// 获取点位最新一条巡检记录
exports.getdPointCurPatrolRecord = (pointId) => {
return `/patrolRecord/${pointId}/cur`
}
// 获取巡检模板
exports.getPatrolTemplate = (id) => {
return `/patrolTemplate?id=${id}`
}
2 years ago
exports.getPatrolRecordIssueHandle = () => {
return `/patrolRecord/issue/handle`
2 years ago
}
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}`
}