|
|
|
// 堤防相关接口
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 巡查计划管理-获取人员信息
|
|
|
|
export function getPersonnelInformation(id) {
|
|
|
|
return request({
|
|
|
|
url: `/system/user/${id}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查项目管理-巡视检查列表
|
|
|
|
export function postEmbankmentInspectionChecklist(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/checking/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查项目管理-巡视检查详情
|
|
|
|
export function getEmbankmentInspectionCheck(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/checking/${id}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查项目管理-新增巡视检查
|
|
|
|
export function postEmbankmentInspection(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/checking',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查项目管理-修改巡视检查
|
|
|
|
export function putEmbankmentInspection(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/checking',
|
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查项目管理-堤防巡视检查
|
|
|
|
export function deleteEmbankmentInspection(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/checking/${id}`,
|
|
|
|
method: 'delete',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-查询巡视检查列表
|
|
|
|
export function postInspectionPlanlist(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/plan/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-巡视检查详情
|
|
|
|
export function getInspectionPlan(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/plan/${id}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-新增巡视检查
|
|
|
|
export function postInspectionPlan(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/plan',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-堤防巡视检查
|
|
|
|
export function putInspectionPlan(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/plan',
|
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-堤防巡视检查
|
|
|
|
export function deleteInspectionPlan(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/plan/${id}`,
|
|
|
|
method: 'delete',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-巡查点位设置
|
|
|
|
export function postInspectionRoute(id, data) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/plan/points/${id}`,
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查计划管理-获取巡查点位
|
|
|
|
export function getInspectionRoute(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/plan/points/${id}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查记录-巡查记录列表
|
|
|
|
export function postInspectionRecordsList(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/record/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查记录-新增巡查记录
|
|
|
|
export function postNewInspectionRecords(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/record',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 巡查记录-巡查记录轨迹列表
|
|
|
|
export function postInspectionRecordsTrajectoryList(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/trace/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修计划管理-维修计划列表
|
|
|
|
export function postMaintenancePlanList(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/plan/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修计划管理-新增维修计划
|
|
|
|
export function postNewMaintenancePlan(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/plan',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修计划管理-更新维修计划
|
|
|
|
export function putUpdateMaintenancePlan(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/plan',
|
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修计划管理-删除维修计划
|
|
|
|
export function deleteMaintenancePlan(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/yh/plan/${id}`,
|
|
|
|
method: 'delete'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修计划管理-维修计划详情
|
|
|
|
export function getMaintenancePlan(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/yh/plan/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修记录-维修记录列表
|
|
|
|
export function postMaintenanceRecordsList(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/record/list',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修记录-新增维修记录
|
|
|
|
export function postNewMaintenanceRecords(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/record',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修记录-更新维修记录
|
|
|
|
export function putUpdateMaintenanceRecords(data) {
|
|
|
|
return request({
|
|
|
|
url: '/run/df/yh/record',
|
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修记录-删除维修记录
|
|
|
|
export function deleteMaintenanceRecords(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/yh/record/${id}`,
|
|
|
|
method: 'delete'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 维修记录-维修记录详情
|
|
|
|
export function getMaintenanceRecords(id) {
|
|
|
|
return request({
|
|
|
|
url: `/run/df/yh/record/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|