import request from "@/router/axios.js" /** * 获取从业人员数据 * @param {*} params * @returns */ export const getPlacePractitionerPage = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-placePractitioner/placePractitioner/page', method: 'get', params }) } /** * 阵地控制 * @param {*} resBusId * @returns */ export const getTaskLabelReportingEventPage = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-taskLabelReportingEvent/taskLabelReportingEvent/page', method: 'get', params }) } /** * 反诈宣传 * @param {*} resBusId * @returns */ export const getTaskLabelAntiFraudPage = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-backblastPubRecord/backblastPubRecord/page', method: 'get', params }) } /** * 反诈预警列表 * @param {*} resBusId * @returns */ export const getBackblastWarnHanRec = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-backblastWarnHanRec/backblastWarnHanRec/page', method: 'get', params }) } /** * 扫码报警 * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const getPoliceAlarmRecordsPage = (type = 1, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-policeAlarmRecords/policeAlarmRecords/page', method: 'get', params: { ...params, current, size } }) } /** * 消防检查 * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const getPlaceCheckPage = (type = 1, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-placeCheck/placeCheck/page', method: 'get', params: { ...params, current, size } }) } /** * 消防自查 * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const getTaskPlaceSelfCheckPage = (houseType = 1, type, resBusId, size, current) => { let params = { resBusId } if (houseType != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-taskPlaceSelfCheck/taskPlaceSelfCheck/page', method: 'get', params: { type, ...params, current, size } }) } /** * 出租屋 * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const getHouseRentalPage = (type = 1, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-houseRental/houseRental/page', method: 'get', params: { ...params, current, size } }) } /** * 居住证申请列表 * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const geTaskResidencePermitApplyPage = (type = 1, reportType, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-taskResidencePermitApply/taskResidencePermitApply/page', method: 'get', params: { reportType, ...params, current, size } }) } /** * 租客列表 * @param {*} relationship * @param {*} resBusId * @param {*} size * @param {*} current * @returns */ export const getTenantPage = (type = 1, relationship, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-household/household/selectTenantPage', method: 'get', params: { relationship, ...params, current, size } }) } export const getTaskNoFraudReporting = (type = 1, resBusId, size, current) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/page', method: 'get', params: { ...params, current, size } }) } /** * * @param {*} id * @returns */ export const getTaskNoFraudReportingInfo = (id) => { return request({ url: '/api/blade-taskNoFraudReporting/taskNoFraudReporting/getInfo', method: 'get', params: { id } }) } /** * * @param {*} id * @returns */ export const getHouseRentalDetail = (id) => { return request({ url: '/api/blade-houseRental/houseRental/getDetail', method: 'get', params: { id } }) } /** * 题目树 * @param {*} type * @param {*} childType * @returns */ export const getPatrolGroupTree = (type, childType) => { return request({ url: '/api/patrol/patrolGroup/getPatrolGroupTree', method: 'get', params: { type, childType } }) } /** * 自来水用户信息 * @param {*} params * @returns */ export const getZlsYhxx = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/zlsYhxx/zlsYhxx/page', method: 'get', params }) } /** * 维修基金信息 * @param {*} params * @returns */ export const getWxjj = (type = 1, resBusId) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/wxjj/wxjj/page', method: 'get', params }) } /** * 维修基金信息 * @param {*} params * @returns */ export const getHouseDetailEvent = (resBusId, type = 1) => { let params = { resBusId } if (type != 1) { params = { buildId: resBusId } } return request({ url: '/api/villagePersonInfo/villagePersonInfo/getHouseDetailEvent', method: 'get', params }) } export const getUserUseWaterPage = (key_words) => { return request({ url: `/useWaterApi/zls_cbsj.php?api_action=getData&key_words=${key_words}`, method: 'get', }) }