import http from '@/http/api.js'
|
|
export const add = (data) => {
|
return http.request({
|
url: 'blade-place/place/add',
|
method: 'POST',
|
data: data
|
})
|
}
|
|
export const getLocationRecord = (params) => {
|
return http.request({
|
url: 'blade-place/place/page',
|
method: 'GET',
|
params
|
})
|
}
|
|
export const getPlaceDetail = (params) => {
|
return http.request({
|
url: '/blade-place/place/getDetail',
|
method: 'GET',
|
params
|
})
|
}
|
|
//场所检查列表
|
export const getPlaceCheckList = (params) => {
|
return http.request({
|
url: '/blade-placeCheck/placeCheck/page',
|
method: 'GET',
|
params
|
})
|
}
|
|
//场所检查
|
export const addPlaceCheck = (data) => {
|
return http.request({
|
url: '/blade-placeCheck/placeCheck/save',
|
method: 'POST',
|
data: data
|
})
|
}
|
|
export const addPlaceCheckTwo = (data) => {
|
return http.request({
|
url: '/blade-placeCheck/placeCheck/saveTwo',
|
method: 'POST',
|
data: data
|
})
|
}
|
|
|
export const getPlaceCheckDetail = (params) => {
|
return http.request({
|
url: '/blade-placeCheck/placeCheck/detail',
|
method: 'GET',
|
params
|
})
|
}
|
|
//获取消防检查项
|
export const getPlaceCheckItem = (params) => {
|
return http.request({
|
url: '/patrol/patrolGroup/getPatrolGroupTree',
|
method: 'GET',
|
params
|
})
|
}
|
|
//获取场所整改详情
|
export const getPlaceCheckReformDetail = (params) => {
|
return http.request({
|
url: '/blade-taskPlaceRectification/taskPlaceRectification/detailByTaskId',
|
method: 'GET',
|
params
|
})
|
}
|
|
|
//场所整改提交
|
export const addPlaceCheckReform = (data) => {
|
return http.request({
|
url: '/blade-taskPlaceRectification/taskPlaceRectification/updateRectification',
|
method: 'POST',
|
data: data
|
})
|
}
|
|
|
//审核场所整改
|
export const auditPlaceCheckReform = (data) => {
|
return http.request({
|
url: '/blade-taskPlaceRectification/taskPlaceRectification/applyRectification',
|
method: 'POST',
|
data: data
|
})
|
}
|
|
|
export const getPlaceList = (params) => {
|
return http.request({
|
url: '/blade-doorplateAddress/doorplateAddress/getPlaceList',
|
method: 'GET',
|
params
|
})
|
}
|
|
|
export const getNearbyPlaceList = (params) => {
|
return http.request({
|
url: '/blade-place/place/getNearbyPlaceList',
|
method: 'GET',
|
params
|
})
|
}
|