|
|
|
|
/**
|
|
|
|
|
* 执法端接口
|
|
|
|
|
*/
|
|
|
|
|
import { _get, _post,_form,_delete } from "../http/index";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 执法计划列表
|
|
|
|
|
* @param {*} params
|
|
|
|
|
* @param {*} success
|
|
|
|
|
* @param {*} error
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const queryEnforcementInspectionProgramList = (params, success, error) => _get("/app/code/enforcementInspectionProgram/queryList", params, success, error);
|
|
|
|
|
/**
|
|
|
|
|
* 执法计划列表 无权限接口
|
|
|
|
|
* @param {*} params
|
|
|
|
|
* @param {*} success
|
|
|
|
|
* @param {*} error
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const queryEnforcementInspectionProgramListNoPermission = (params, success, error) => _get("/app/code/enforcementInspectionProgram/queryListNoPermission", params, success, error);
|
|
|
|
|
/**
|
|
|
|
|
* 添加年度执法计划
|
|
|
|
|
* @param {*} params
|
|
|
|
|
* @param {*} success
|
|
|
|
|
* @param {*} error
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const addEnforcementInspectionProgram = (params, success, error) =>_post("/app/code/enforcementInspectionProgram/add", params, success, error)
|
|
|
|
|
|
|
|
|
|
//保存执法信息登记
|
|
|
|
|
export const addEnforcementRegistration = (params, success, error) => _post("/app/code/registration/add",params,success,error)
|
|
|
|
|
export const editEnforcementRegistration = (params, success, error) => _post("/app/code/registration/edit",params,success,error)
|
|
|
|
|
export const getRegByUserIdAndZero = (id, success, error) => _get("/app/code/registration/getByUserIdAndZero",null,success,error)
|
|
|
|
|
export const getByIdToDataFillIn = (id, success, error) => _get("/app/code/registration/getByIdToDataFillIn/" + id,null,success,error)
|
|
|
|
|
|
|
|
|
|
//查询历史检查信息
|
|
|
|
|
export const queryRegistrationList = (params, success, error) => _get("/app/code/registration/queryList",params,success,error)
|
|
|
|
|
|
|
|
|
|
//查询预警列表
|
|
|
|
|
// export const queryEarlyWarning = (params, success, error) => _get("/code/registration/queryEarlyWarning",params,success,error)
|
|
|
|
|
export const queryEarlyWarning = (params, success, error) => _get("/app/code/LawEnforcementWarningList/queryList",params,success,error)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询用户信息
|
|
|
|
|
* @param {*} params
|
|
|
|
|
* @param {*} success
|
|
|
|
|
* @param {*} error
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const queryUserInfo = (params, success, error) => _get("/app/getUserInfo",params,success,error)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询执法登记信息详情
|
|
|
|
|
* @param {*} params
|
|
|
|
|
* @param {*} success
|
|
|
|
|
* @param {*} error
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export const queryEnforcementRegistrationById = (id, success, error) =>_get("/app/code/registration/queryById/" + id,null,success,error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询附件
|
|
|
|
|
export const getAttr = (id, success, error) => _get("/app/code/registration/queryFiles/" + id,null,success,error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询统计分析数据
|
|
|
|
|
export const queryStatisticalData = (params, success, error) => _get("/app/statistical/statisticalData",params,success,error)
|
|
|
|
|
|
|
|
|
|
// 查询执法登记详情
|
|
|
|
|
export const queryRegistrationById = (id,success, error) =>_get("/app/code/registration/queryById/" + id,null,success,error)
|