2024-08-08 11:08:55 +08:00
|
|
|
import { post, upload, uploads } from "../utils/request";
|
|
|
|
|
2024-08-15 16:11:23 +08:00
|
|
|
/** 登录 */
|
|
|
|
export const submitLogin = (params) => post("/app/admin/check", params);
|
|
|
|
|
|
|
|
/** 身份证去重 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getIDCardDeduplication = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/hasCardIdForApp", params);
|
|
|
|
|
|
|
|
/** 用户名去重 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getUserDeduplication = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/hasUserNameForApp", params);
|
|
|
|
|
|
|
|
/** 手机号去重 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getPhoneNumberDeduplication = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/hasPhoneForApp", params);
|
|
|
|
|
|
|
|
/** 注册 */
|
|
|
|
export const setRegister = (params) => post("/app/admin/register", params);
|
|
|
|
|
|
|
|
/** 忘记密码 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setForgotPassword = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/admin/forgetPassword", params);
|
|
|
|
|
|
|
|
/** 电子工牌 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getElectronicWorkCard = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/getUserDetailInfoByUserIdForApp", params);
|
|
|
|
|
|
|
|
/** 电子工牌二维码 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getElectronicWorkCardQRCode = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/generateQRCodeImageByUserId", params);
|
|
|
|
|
|
|
|
/** 就职单位列表 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getEmployedBy = (params) =>
|
|
|
|
post(
|
|
|
|
"/app/employmentApplyManagement/getEmploymentRecordByUserIdOrCorpInfoId",
|
|
|
|
params
|
2024-08-15 16:11:23 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
/** 离职申请 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setResignationApplication = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/employmentApplyManagement/edit", params);
|
|
|
|
|
|
|
|
/** 相关方扫码 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setRelatedPartyScanning = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/updateUserInfoAfterScanQRCode", params);
|
|
|
|
|
|
|
|
/** 数据字典 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getDataDictionary = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/dictionaries/getLevels", params);
|
|
|
|
|
|
|
|
/** 上传附件 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setUploadAttachments = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
upload("/app/imgFiles/addSingleImg", params);
|
|
|
|
|
|
|
|
/** 删除附件 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const removeUploadAttachments = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/imgFiles/deleteImg", params);
|
|
|
|
|
|
|
|
/** 相关方注册 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setRelatedPartyRegistration = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/saveUser", params);
|
|
|
|
|
|
|
|
/** 相关方修改 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setRelatedPartyUpdate = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/editUser", params);
|
|
|
|
|
|
|
|
/** 检查相关方单位流动人员数和单位总人数 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const checkRelatedUnitsPersonCount = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/checkUserCountForApp", params);
|
|
|
|
|
|
|
|
/** 服务单位列表 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getServiceUnitList = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/getRelatedUnitsListByUserId", params);
|
|
|
|
|
|
|
|
/** 服务单位查看 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getServiceUnitView = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/getRelatedUnitsDetailById", params);
|
|
|
|
|
|
|
|
/** 反馈问题附件 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setFeedbackUpload = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
upload("/app/feedback/upload", params);
|
|
|
|
|
|
|
|
/** 反馈问题提交 */
|
|
|
|
export const setFeedbackAdd = (params) => post("/app/feedback/add", params);
|
|
|
|
|
|
|
|
/** 版本更新 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getVersion = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/versionmanager/getVersion", params);
|
|
|
|
|
|
|
|
/** 修改密码 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setUpdatePassword = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/editUserPasswordByUserId", params);
|
|
|
|
|
|
|
|
/** 用户信息 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getUserInfo = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/getDetailByUserIdAndCorpInfoId", params);
|
|
|
|
|
|
|
|
/** 修改用户信息 */
|
|
|
|
export const setUserInfo = (params) => post("/app/user/edit", params);
|
|
|
|
|
|
|
|
/** 证书信息列表 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getCertificateInformationList = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/specialUser/list", params);
|
|
|
|
|
|
|
|
/** 证书信息查看 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getCertificateInformationView = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/specialUser/goEdit", params);
|
|
|
|
|
|
|
|
/** 证书信息添加 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setCertificateInformationAdd = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
upload("/app/specialUser/add", params);
|
|
|
|
|
|
|
|
/** 证书信息修改 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setCertificateInformationEdit = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
upload("/app/specialUser/edit", params);
|
|
|
|
|
|
|
|
/** 证书信息修改 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const setCertificateInformationEditPost = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/specialUser/edit", params);
|
|
|
|
|
|
|
|
/** 用户信息 */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getDeptTree = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/api/department/listzTree", params);
|
|
|
|
|
|
|
|
/** 获取EMPLOYMENTAPPLYMANAGEMENTID */
|
2024-08-08 11:08:55 +08:00
|
|
|
export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) =>
|
2024-08-15 16:11:23 +08:00
|
|
|
post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID", params);
|
|
|
|
|
|
|
|
/** 获取安全环境对话红点 */
|
|
|
|
export const getSafetyenvironmentalRedPoint = (params) => post("/app/safetyenvironmental/countCheck", params);
|
2024-08-08 11:08:55 +08:00
|
|
|
|
|
|
|
/** 获取隐患信息 */
|
|
|
|
export const getHiddenInfo = (params) => post("/app/hidden/goEdit", params);
|
|
|
|
|
|
|
|
/** 隐患级别树 */
|
|
|
|
export const getHiddenLevelTree = (params) =>
|
|
|
|
post("/dictionaries/listSelectTreeByTkiTree", params);
|
|
|
|
|
|
|
|
/** 隐患部位树 */
|
|
|
|
export const getHiddenPositionTree = (params) =>
|
|
|
|
post("/app/hidden/getTreehiddenRegionListAll", params);
|
|
|
|
|
|
|
|
/** 部门树 */
|
|
|
|
export const getDepartmentTree = (params) => post("/app/sys/listTree", params);
|
|
|
|
|
|
|
|
/** 人员 */
|
|
|
|
export const getPersonnelList = (params) => post("/app/sys/listUser", params);
|
|
|
|
|
|
|
|
/** 上传附件 */
|
|
|
|
export const setUploadFile = (params) => upload("/app/imgfiles/add", params);
|
|
|
|
|
|
|
|
/** 获取图片 */
|
|
|
|
export const getFileList = (params) => post("/app/imgfiles/listImgs", params);
|
|
|
|
|
|
|
|
/** 删除图片 */
|
|
|
|
export const setFileDelete = (params) => post("/app/imgfiles/delete", params);
|