diff --git a/api/index.js b/api/index.js index ba3fd25..f015655 100644 --- a/api/index.js +++ b/api/index.js @@ -1,78 +1,80 @@ -import {post, upload, uploads} from "../utils/request"; -import {setSecurityMeasures} from "@/utils/submitHomeworkProcess"; +import { post, upload, uploads } from '../utils/request' +import { setSecurityMeasures } from '@/utils/submitHomeworkProcess' -export const submitLogin = (params) => post("/app/admin/check", params) // 登录 -export const getIDCardDeduplication = (params) => post("/app/user/goCheck", params) // 身份证去重 -export const getUserDeduplication = (params) => post("/app/user/goCheck", params) // 用户名去重 -export const getPhoneNumberDeduplication = (params) => post("/app/user/hasPhoneForApp", params) // 手机号去重 -export const setRegister = (params) => post("/app/admin/register", params) // 注册 -export const setForgotPassword = (params) => post("/app/admin/forgetPassword", params) // 忘记密码 -export const getElectronicWorkCard = (params) => post("/app/user/getUserDetailInfoByUserIdForApp", params) // 电子工牌 -export const getElectronicWorkCardQRCode = (params) => post("/app/user/generateQRCodeImageByUserId", params) // 电子工牌二维码 -export const getEmployedBy = (params) => post("/app/employmentApplyManagement/getEmploymentRecordByUserIdOrCorpInfoId", params) // 就职单位列表 -export const setResignationApplication = (params) => post("/app/employmentApplyManagement/edit", params) // 离职申请 -export const resign = (params) => post("/app/user/resign", params) // 离职申请 -export const setRelatedPartyScanning = (params) => post("/app/user/updateUserInfoAfterScanQRCode", params) // 相关方扫码 -export const getDataDictionary = (params) => post("/app/dictionaries/getLevels", params) // 数据字典 -export const setUploadAttachments = (params) => upload("/app/imgFiles/addSingleImg", params) // 上传附件 -export const removeUploadAttachments = (params) => post("/app/imgFiles/deleteImg", params) // 删除附件 -export const setRelatedPartyRegistration = (params) => post("/app/user/saveUser", params) // 相关方注册 -export const setRelatedPartyUpdate = (params) => post("/app/user/editUser", params) // 相关方修改 -export const checkRelatedUnitsPersonCount = (params) => post("/app/user/checkUserCountForApp", params) // 检查相关方单位流动人员数和单位总人数 -export const getServiceUnitList = (params) => post("/app/user/getRelatedUnitsListByUserId", params) // 服务单位列表 -export const getServiceUnitView = (params) => post("/app/user/getRelatedUnitsDetailById", params) // 服务单位查看 -export const setFeedbackUpload = (params) => upload("/app/feedback/upload", params) //反馈问题附件 -export const setFeedbackAdd = (params) => post("/app/feedback/add", params) //反馈问题提交 -export const getVersion = (params) => post("/app/versionmanager/getVersion", params) //版本更新 -export const setUpdatePassword = (params) => post("/app/user/editUserPasswordByUserId", params) //修改密码 -export const getUserInfo = (params) => post("/app/user/getDetailByUserIdAndCorpInfoId", params) //用户信息 -export const setUserInfo = (params) => post("/app/user/edit", params) //修改用户信息 -export const setEntry = (params) => post("/app/user/entry", params) //用户入职 -export const getCertificateInformationList = (params) => post("/app/specialUser/list", params) //证书信息列表 -export const getCertificateInformationView = (params) => post("/app/specialUser/goEdit", params) //证书信息查看 -export const setCertificateInformationAdd = (params) => uploads("/app/specialUser/add", params) //证书信息添加 -export const setCertificateInformationEdit = (params) => uploads("/app/specialUser/edit", params) //证书信息修改 -export const setCertificateInformationEditPost = (params) => post("/app/specialUser/edit", params) //证书信息修改 -export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息 -export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID", - params) //获取EMPLOYMENTAPPLYMANAGEMENTID +export const submitLogin = (params) => post('/app/admin/check', params) // 登录 +export const getIDCardDeduplication = (params) => post('/app/user/goCheck', params) // 身份证去重 +export const getUserDeduplication = (params) => post('/app/user/goCheck', params) // 用户名去重 +export const getPhoneNumberDeduplication = (params) => post('/app/user/hasPhoneForApp', params) // 手机号去重 +export const setRegister = (params) => post('/app/admin/register', params) // 注册 +export const setForgotPassword = (params) => post('/app/admin/forgetPassword', params) // 忘记密码 +export const getElectronicWorkCard = (params) => post('/app/user/getUserDetailInfoByUserIdForApp', params) // 电子工牌 +export const getElectronicWorkCardQRCode = (params) => post('/app/user/generateQRCodeImageByUserId', params) // 电子工牌二维码 +export const getEmployedBy = (params) => post('/app/employmentApplyManagement/getEmploymentRecordByUserIdOrCorpInfoId', params) // 就职单位列表 +export const setResignationApplication = (params) => post('/app/employmentApplyManagement/edit', params) // 离职申请 +export const resign = (params) => post('/app/user/resign', params) // 离职申请 +export const setRelatedPartyScanning = (params) => post('/app/user/updateUserInfoAfterScanQRCode', params) // 相关方扫码 +export const getDataDictionary = (params) => post('/app/dictionaries/getLevels', params) // 数据字典 +export const setUploadAttachments = (params) => upload('/app/imgFiles/addSingleImg', params) // 上传附件 +export const removeUploadAttachments = (params) => post('/app/imgFiles/deleteImg', params) // 删除附件 +export const setRelatedPartyRegistration = (params) => post('/app/user/saveUser', params) // 相关方注册 +export const setRelatedPartyUpdate = (params) => post('/app/user/editUser', params) // 相关方修改 +export const checkRelatedUnitsPersonCount = (params) => post('/app/user/checkUserCountForApp', params) // 检查相关方单位流动人员数和单位总人数 +export const getServiceUnitList = (params) => post('/app/user/getRelatedUnitsListByUserId', params) // 服务单位列表 +export const getServiceUnitView = (params) => post('/app/user/getRelatedUnitsDetailById', params) // 服务单位查看 +export const setFeedbackUpload = (params) => upload('/app/feedback/upload', params) //反馈问题附件 +export const setFeedbackAdd = (params) => post('/app/feedback/add', params) //反馈问题提交 +export const getVersion = (params) => post('/app/versionmanager/getVersion', params) // 版本更新 +export const setUpdatePassword = (params) => post('/app/user/editUserPasswordByUserId', params) //修改密码 +export const getUserInfo = (params) => post('/app/user/getDetailByUserIdAndCorpInfoId', params) //用户信息 +export const setUserInfo = (params) => post('/app/user/edit', params) //修改用户信息 +export const setEntry = (params) => post('/app/user/entry', params) //用户入职 +export const getCertificateInformationList = (params) => post('/app/specialUser/list', params) //证书信息列表 +export const getCertificateInformationView = (params) => post('/app/specialUser/goEdit', params) //证书信息查看 +export const setCertificateInformationAdd = (params) => uploads('/app/specialUser/add', params) //证书信息添加 +export const setCertificateInformationEdit = (params) => uploads('/app/specialUser/edit', params) //证书信息修改 +export const setCertificateInformationEditPost = (params) => post('/app/specialUser/edit', params) //证书信息修改 +export const getDeptTree = (params) => post('/api/department/listzTree', params) //用户信息 +export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post('/app/user/getEMPLOYMENTAPPLYMANAGEMENTID', params) //获取EMPLOYMENTAPPLYMANAGEMENTID // 以下接口八项作业流程使用 -export const getCorpInfoList = (params) => post("/app/util/getCorp", params) //获取公司列表 -export const getConfinedSpaceSelectList = (params) => post("/app/csSpe/getSpace", params) //获取受限空间名称选择列表 -export const getConfinedSpaceGasInfo = (params) => post("/app/csSpe/getGasInfo",params) //获取受限空间气体检测详情 -export const setConfinedSpaceGasInfoSave = (params) => post("/app/csSpe/initGas", params) //受限空间气体检测详情保存 -export const setConfinedSpaceGasDelete = (params) => post("/app/csSpe/deleteGas", params) //保存受限空间气体检测删除 -export const getHotWorkGasAll = (params) => post("/app/elSpe/getAll", params) // 获取动火作业的所有受限空间气体检测数据 -export const getHotWorkGasInfo = (params) => post("/app/elSpe/getInfo", params) //获取动火作业的受限空间气体检测详情 -export const getHotWorkGasInfoSave = (params) => post("/app/elSpe/init", params) //获取动火作业的受限空间气体检测详情保存 -export const getHotWorkGasDelete = (params) => post("/app/elSpe/delete", params) // 动火作业的受限空间气体检测删除 -export const setHotWorkRecord = (params) => post("/app/deHw/initRecord", params) // 动火作业延迟监火保存记录 -export const deleteHotWorkRecord = (params) => post("/app/deHw/deleteRecord", params) //获取动火作业的受限空间气体检测详情 -export const getHotWorkRecord = (params) => post("/app/deHw/getRecords", params) //获取动火作业的受限空间气体检测详情保存 -export const getOtherAssignmentsSelectList = (params) => post("/app/Task/getAllUnEndList", params) //关联的其他特殊作业及安全作业票编号选择列表 -export const getRiskIdentificationResultsSelectList = (params) => post("/app/eightWork/getInfo", params) //风险辨识结果选择列表 -export const getHotWorkMethodSelectList = (params) => post("/app/util/getDicList", params) // 动火方法选择列表 -export const getQyDicList = (params) => post("/app/util/otherSysDic", params) // 动火方法选择列表 -export const setTaskSave = (params) => post("/app/Task/init", params) //八项作业、隐患整改、安全环保检查任务保存更新接口 -export const getCurrentNextOperation = (params) => post("/app/Task/getSupplementInfo", params) //获取当前任务的下一步操作 -export const addFormInfo = (params) => post("/app/Task/addSupplementInfo", params) //审批过程中添加其他信息 -export const getDepartmentTree = (params) => post("/app/util/getDepartmentTree", params) //获取部门树 -export const getUserList = (params) => post("/app/util/getUserList", params) //获取人员 -export const getToDoTaskList = (params) => post("/app/Task/getAllList", params) //获取待办列表 -export const getTaskTechnologicalProcess = (params) => post("/app/Task/getAgencyList", params) //获取流程 -export const getTaskInfo = (params) => post("/app/Task/getInfo", params) //查看信息 -export const setTaskFile = (params) => upload("/app/util/uploadFile", params) //上传文件 -export const setTaskSign = (params) => post("/app/Task/sign", params) //审批意见签字提交 -export const setSecurityMeasuresSave = (params) => post("/app/Task/setQues", params) //安全措施提交 -export const setOtherSecurityMeasuresSave = (params) => post("/app/Task/setOtherQues", params) //其它安全措施提交 -export const getHistoricalApprovalRecords = (params) => post("/app/Task/getHis", params); // 历史审批记录 +export const getCorpInfoList = (params) => post('/app/util/getCorp', params) //获取公司列表 +export const getConfinedSpaceSelectList = (params) => post('/app/csSpe/getSpace', params) //获取受限空间名称选择列表 +export const getConfinedSpaceGasInfo = (params) => post('/app/csSpe/getGasInfo', params) //获取受限空间气体检测详情 +export const setConfinedSpaceGasInfoSave = (params) => post('/app/csSpe/initGas', params) //受限空间气体检测详情保存 +export const setConfinedSpaceGasDelete = (params) => post('/app/csSpe/deleteGas', params) //保存受限空间气体检测删除 +export const getHotWorkGasAll = (params) => post('/app/elSpe/getAll', params) // 获取动火作业的所有受限空间气体检测数据 +export const getHotWorkGasInfo = (params) => post('/app/elSpe/getInfo', params) //获取动火作业的受限空间气体检测详情 +export const getHotWorkGasInfoSave = (params) => post('/app/elSpe/init', params) //获取动火作业的受限空间气体检测详情保存 +export const getHotWorkGasDelete = (params) => post('/app/elSpe/delete', params) // 动火作业的受限空间气体检测删除 +export const setHotWorkRecord = (params) => post('/app/deHw/initRecord', params) // 动火作业延迟监火保存记录 +export const deleteHotWorkRecord = (params) => post('/app/deHw/deleteRecord', params) //获取动火作业的受限空间气体检测详情 +export const getHotWorkRecord = (params) => post('/app/deHw/getRecords', params) //获取动火作业的受限空间气体检测详情保存 +export const getOtherAssignmentsSelectList = (params) => post('/app/Task/getAllUnEndList', params) //关联的其他特殊作业及安全作业票编号选择列表 +export const getRiskIdentificationResultsSelectList = (params) => post('/app/eightWork/getInfo', params) //风险辨识结果选择列表 +export const getHotWorkMethodSelectList = (params) => post('/app/util/getDicList', params) // 动火方法选择列表 +export const getQyDicList = (params) => post('/app/util/otherSysDic', params) // 动火方法选择列表 +export const setTaskSave = (params) => post('/app/Task/init', params) //八项作业、隐患整改、安全环保检查任务保存更新接口 +export const getCurrentNextOperation = (params) => post('/app/Task/getSupplementInfo', params) //获取当前任务的下一步操作 +export const addFormInfo = (params) => post('/app/Task/addSupplementInfo', params) //审批过程中添加其他信息 +export const getDepartmentTree = (params) => post('/app/util/getDepartmentTree', params) //获取部门树 +export const getUserList = (params) => post('/app/util/getUserList', params) //获取人员 +export const getToDoTaskList = (params) => post('/app/Task/getAllList', params) //获取待办列表 +export const getTaskTechnologicalProcess = (params) => post('/app/Task/getAgencyList', params) //获取流程 +export const getTaskInfo = (params) => post('/app/Task/getInfo', params) //查看信息 +export const setTaskFile = (params) => upload('/app/util/uploadFile', params) //上传文件 +export const setTaskSign = (params) => post('/app/Task/sign', params) //审批意见签字提交 +export const setSecurityMeasuresSave = (params) => post('/app/Task/setQues', params) //安全措施提交 +export const setOtherSecurityMeasuresSave = (params) => post('/app/Task/setOtherQues', params) //其它安全措施提交 +export const getHistoricalApprovalRecords = (params) => post('/app/Task/getHis', params) // 历史审批记录 // 结束 // **************************************************** // ************* 以下接口培训管理流程使用 *************** // ********************* start *********************** -export const getIsUploadFace = (params) => post("/app/user/getUserFace", params); // 获取是否上传人脸信息 -export const getClassList = (params) => post("/app/stagestudentrelation/pageTaskByUser", params); //获取班级列表 -export const joinClass = (params) => uploads("/app/student/joinClass", params); // 实名认证信息提交 +export const getIsUploadFace = (params) => post('/app/user/getUserFace', params) // 获取是否上传人脸信息 +export const getClassList = (params) => post('/app/stagestudentrelation/pageTaskByUser', params) //获取班级列表 +export const joinClass = (params) => uploads('/app/student/joinClass', params) // 实名认证信息提交 +export const getTaskScoreInfo = (params) => post('/app/stageexam/findResult', params) // 考试成绩详情 +export const getExamExercises = (params) => post('/app/stageexam/getExam', params) // 考试习题 +export const setTestPaperSubmission = (params) => post('/app/stageexam/submit', params) // 考试交卷 // ********************* end *********************** diff --git a/pages/train_management/course_exam.vue b/pages/train_management/course_exam.vue index 77f3356..c09b446 100644 --- a/pages/train_management/course_exam.vue +++ b/pages/train_management/course_exam.vue @@ -1,463 +1,477 @@ diff --git a/pages/train_management/exam_record.vue b/pages/train_management/exam_record.vue index 1c05db3..00235a4 100644 --- a/pages/train_management/exam_record.vue +++ b/pages/train_management/exam_record.vue @@ -92,6 +92,8 @@