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.
69 lines
1.5 KiB
69 lines
1.5 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.getPatrolPlan = () => {
|
|
return `/patrolPlan`
|
|
}
|
|
|
|
// 开始巡检录入
|
|
exports.addPatrolRecord = () => {
|
|
return `/patrolRecord/add`
|
|
}
|
|
|
|
// 获取巡检记录
|
|
exports.getPatrolRecord = (patrolPlanId, startTime, endTime, alarm, pointId) => {
|
|
return `/patrolRecord/${patrolPlanId}/${startTime}/${endTime}/${alarm}/${pointId}`
|
|
}
|
|
|
|
// 获取巡检模板
|
|
exports.getPatrolTemplate = (id) => {
|
|
return `/patrolTemplate?id=${id}`
|
|
}
|
|
|
|
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}`
|
|
}
|