diff --git a/src/api/index.js b/src/api/index.js index 222a960..83cf0c4 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -4,163 +4,163 @@ let uploadURL = Setting.upload.apiURL; let host1 = "http://39.108.250.202:8080/"; // 川大 export default { - queryToken: `${host}liuwanr/userInfo/queryToken`, + queryToken: `liuwanr/userInfo/queryToken`, - logins: `${host}users/users/user/login`, //登录 + logins: `users/users/user/login`, //登录 verification: `${host}users/users/user/captcha`,// 验证码图片 - isClient: `${host}users/users/user/isClient`,// 是否为客户 - getUserAllRoleByToken : `${host}users/role/getUserAllRoleByToken`, + isClient: `users/users/user/isClient`,// 是否为客户 + getUserAllRoleByToken : `users/role/getUserAllRoleByToken`, //实验台 - curriculumDetail: `${host}nakadai/nakadai/curriculum/curriculumDetail`, // 课程详情 - curriculumChapter: `${host}nakadai/curriculum/chapter/queryChaptersAndSubsections`, // 根据课程id查询章节小节,树状结构 - curriculumGetSubsection: `${host}nakadai/curriculum/subsection/getSubsection`, // 根据小节id获取预览文件地址 + curriculumDetail: `nakadai/nakadai/curriculum/curriculumDetail`, // 课程详情 + curriculumChapter: `nakadai/curriculum/chapter/queryChaptersAndSubsections`, // 根据课程id查询章节小节,树状结构 + curriculumGetSubsection: `nakadai/curriculum/subsection/getSubsection`, // 根据小节id获取预览文件地址 // 权限管理 - getUserRolesPermissionMenu: `${host}users/user-role/getUserRolesPermissionMenu`, + getUserRolesPermissionMenu: `users/user-role/getUserRolesPermissionMenu`, //学生管理 - resetPassword: `${host}users/users/userAccount/resetPwd`, // 密码重置 - updateAccountEnable: `${host}occupationlab/architecture/updateAccountEnable`, // 密码重置 - checkEmailOrPhone: `${host}occupationlab/architecture/checkEmailOrPhone`, // 新增学生前:校验手机号或者邮箱 - checkWorkNumOrAccount: `${host}occupationlab/architecture/checkWorkNumOrAccount`, // 新增/编辑学生前:校验学号或者学生账号 - delStudent: `${host}occupationlab/architecture/delStudent`, // 单个、批量删除学生 - addStudent: `${host}occupationlab/architecture/addStudent`, // 新增学生 - modifyStudent: `${host}occupationlab/architecture/modifyStudent`, // 编辑学生 - getStudentInfoByAccountId: `${host}occupationlab/architecture/getStudentInfoByAccountId`, // 查看学生信息 - getDetailByAccount: `${host}occupationlab/architecture/getDetailByAccount`, // 新增用户前调用:按帐户获取详细信息 + resetPassword: `users/users/userAccount/resetPwd`, // 密码重置 + updateAccountEnable: `occupationlab/architecture/updateAccountEnable`, // 密码重置 + checkEmailOrPhone: `occupationlab/architecture/checkEmailOrPhone`, // 新增学生前:校验手机号或者邮箱 + checkWorkNumOrAccount: `occupationlab/architecture/checkWorkNumOrAccount`, // 新增/编辑学生前:校验学号或者学生账号 + delStudent: `occupationlab/architecture/delStudent`, // 单个、批量删除学生 + addStudent: `occupationlab/architecture/addStudent`, // 新增学生 + modifyStudent: `occupationlab/architecture/modifyStudent`, // 编辑学生 + getStudentInfoByAccountId: `occupationlab/architecture/getStudentInfoByAccountId`, // 查看学生信息 + getDetailByAccount: `occupationlab/architecture/getDetailByAccount`, // 新增用户前调用:按帐户获取详细信息 importStudent: `${host}occupationlab/architecture/importStudent`, // 批量导入学生 exportFailure: `${host}occupationlab/architecture/exportFailure`, // 批量导入学生失败数据导出 - removeStudent: `${host}occupationlab/architecture/removeStudent`, // 移除学生 - organizationalStudentList: `${host}occupationlab/architecture/organizationalStudentList`, // 根据组织架构筛选学生列表 - studentList: `${host}occupationlab/architecture/studentList`, // 学生列表 - stuOrganizationTree: `${host}occupationlab/architecture/stuOrganizationTree`, // 学生组织架构树 - treeList: `${host}occupationlab/architecture/treeList`, // 学生组织架构树形列表 - saveOrg: `${host}occupationlab/architecture/save`, // 新增组织架构 - updateOrg: `${host}occupationlab/architecture/update`, // 编辑组织架构 - deleteOrg: `${host}occupationlab/architecture/delete`, // 删除组织架构 + removeStudent: `occupationlab/architecture/removeStudent`, // 移除学生 + organizationalStudentList: `occupationlab/architecture/organizationalStudentList`, // 根据组织架构筛选学生列表 + studentList: `occupationlab/architecture/studentList`, // 学生列表 + stuOrganizationTree: `occupationlab/architecture/stuOrganizationTree`, // 学生组织架构树 + treeList: `occupationlab/architecture/treeList`, // 学生组织架构树形列表 + saveOrg: `occupationlab/architecture/save`, // 新增组织架构 + updateOrg: `occupationlab/architecture/update`, // 编辑组织架构 + deleteOrg: `occupationlab/architecture/delete`, // 删除组织架构 studentTemplate: `http://39.108.250.202/template/学生导入模板.xlsx`, // 学生导入模板 // 测评管理 - questionsList: `${host}occupationlab/questions/list`, // 题库列表查询 - questionsSave: `${host}occupationlab/questions/save`, // 新增题目 - questionsUpdate: `${host}occupationlab/questions/update`, // 根据试题id修改试题信息 - questionsDetail: `${host}occupationlab/questions/detail`, // 查看当前题库信息 - questionsDelete: `${host}occupationlab/questions/delete`, // 根据主键删除 - questionsIsDisable: `${host}occupationlab/questions/isDisable`, // 是否禁用试题 + questionsList: `occupationlab/questions/list`, // 题库列表查询 + questionsSave: `occupationlab/questions/save`, // 新增题目 + questionsUpdate: `occupationlab/questions/update`, // 根据试题id修改试题信息 + questionsDetail: `occupationlab/questions/detail`, // 查看当前题库信息 + questionsDelete: `occupationlab/questions/delete`, // 根据主键删除 + questionsIsDisable: `occupationlab/questions/isDisable`, // 是否禁用试题 questionsTemplate: `http://39.108.250.202/template/试题导入模板.xlsx`, //excel模板文件下载 questionsImport: `${host}occupationlab/questions/importQuestion`, // 批量导入题库 questionsExportFailure: `${host}occupationlab/questions/exportFailure`, // 批量导入题库失败数据导出 - questionsInfo: `${host}occupationlab/questions/info`, // 测评规则信息的展示 - questionsUpdateRules: `${host}occupationlab/questions/updateEvaluationRules`, // 修改测评规则信息 + questionsInfo: `occupationlab/questions/info`, // 测评规则信息的展示 + questionsUpdateRules: `occupationlab/questions/updateEvaluationRules`, // 修改测评规则信息 // 考核管理 - pageByCondition: `${host}occupationlab/assessment/pageByCondition`, // 考核管理列表 - saveAssessment: `${host}occupationlab/assessment/saveAssessment`, // 创建考核 - modifyAssessment: `${host}occupationlab/assessment/modifyAssessment`, // 编辑考核 - enableAssessment: `${host}occupationlab/assessment/enableAssessment`, // 修改考核状态 - getDetailById: `${host}occupationlab/assessment/getDetailById`, // 根据考核Id查询考核详情 - deleteAssessment: `${host}occupationlab/assessment/deleteAssessment`, // 单个、批量删除 - collectPaper: `${host}occupationlab/assessment/collectPaper`, // 收卷(提前结束) - schoolCourse: `${host}nakadai/nakadai/curriculum/schoolCourse`, // 获取学校购买订单后的课程 - projectListByCourseId: `${host}occupationlab/projectManage/getSchoolProjectByAssessent`, // 根据课程id获取实训项目列表 + pageByCondition: `occupationlab/assessment/pageByCondition`, // 考核管理列表 + saveAssessment: `occupationlab/assessment/saveAssessment`, // 创建考核 + modifyAssessment: `occupationlab/assessment/modifyAssessment`, // 编辑考核 + enableAssessment: `occupationlab/assessment/enableAssessment`, // 修改考核状态 + getDetailById: `occupationlab/assessment/getDetailById`, // 根据考核Id查询考核详情 + deleteAssessment: `occupationlab/assessment/deleteAssessment`, // 单个、批量删除 + collectPaper: `occupationlab/assessment/collectPaper`, // 收卷(提前结束) + schoolCourse: `nakadai/nakadai/curriculum/schoolCourse`, // 获取学校购买订单后的课程 + projectListByCourseId: `occupationlab/projectManage/getSchoolProjectByAssessent`, // 根据课程id获取实训项目列表 // 成绩管理 - deleteExperimentalReport: `${host}occupationlab/achievement/deleteExperimentalReport`, // 单个、批量删除实验报告 - exportAssessmentInfo: `${host}occupationlab/achievement/exportAssessmentInfo`, // 批量导出考核成绩 - exportPracticeInfo: `${host}occupationlab/achievement/exportPracticeInfo`, // 批量导出练习成绩 - getAchievementInfo: `${host}occupationlab/achievement/getAchievementInfo`, // 管理端成绩管理 - getAssessmentDetail: `${host}occupationlab/achievement/getAssessmentDetail`, // 管理端考核成绩详情 - getPracticeDetail: `${host}occupationlab/achievement/getPracticeDetail`, // 管理端练习成绩详情 - myClass: `${host}occupationlab/achievement/myClass`, // 教师端:我的班级 - deleteReportById: `${host}occupationlab/achievement/deleteReportById`, // 批量删除成绩管理中的项目/批量删除成绩管理中的考核 - reportDetail: `${host}occupationlab/achievement/reportDetail`, // 查看实验报告 - schoolCourseByAchievement: `${host}nakadai/nakadai/curriculum/schoolCourseByAchievement`, // 获取学校购买订单后的课程 - spliceClass: `${host}occupationlab/achievement/spliceClass`, + deleteExperimentalReport: `occupationlab/achievement/deleteExperimentalReport`, // 单个、批量删除实验报告 + exportAssessmentInfo: `occupationlab/achievement/exportAssessmentInfo`, // 批量导出考核成绩 + exportPracticeInfo: `occupationlab/achievement/exportPracticeInfo`, // 批量导出练习成绩 + getAchievementInfo: `occupationlab/achievement/getAchievementInfo`, // 管理端成绩管理 + getAssessmentDetail: `occupationlab/achievement/getAssessmentDetail`, // 管理端考核成绩详情 + getPracticeDetail: `occupationlab/achievement/getPracticeDetail`, // 管理端练习成绩详情 + myClass: `occupationlab/achievement/myClass`, // 教师端:我的班级 + deleteReportById: `occupationlab/achievement/deleteReportById`, // 批量删除成绩管理中的项目/批量删除成绩管理中的考核 + reportDetail: `occupationlab/achievement/reportDetail`, // 查看实验报告 + schoolCourseByAchievement: `nakadai/nakadai/curriculum/schoolCourseByAchievement`, // 获取学校购买订单后的课程 + spliceClass: `occupationlab/achievement/spliceClass`, // 项目管理 - getSystemIdBySchool: `${host}occupationlab/projectManage/getSystemIdBySchool`, // 获取学校下拥有的系统 - avgValues: `${host}occupationlab/projectManage/avgValues`, // 平均分分配值 - deleteProjectManage: `${host}occupationlab/projectManage/deleteProjectManage`, // 新增项目管理 - getProjectBySystemId: `${host}occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目(项目中没有用上这个接口) - queryNameIsExist: `${host}occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重 - queryProjectManage: `${host}occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选) - updateIsOpen: `${host}occupationlab/projectManage/updateIsOpen`, // 更新开启状态 - getProjectDetail: `${host}occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情 - saveProjectDraft: `${host}occupationlab/projectManage/saveProjectDraft`, // 新增项目管理 - addProjectManage: `${host}occupationlab/projectManage/addProjectManage`, // 新增项目管理 - updateProjectManage: `${host}occupationlab/projectManage/updateProjectManage`, // 修改项目管理 - editProjectDraft: `${host}occupationlab/projectManage/editProjectDraft`, // 修改项目管理 - copyProjectManage: `${host}occupationlab/projectManage/copyProjectManage`, // 复制项目管理 + getSystemIdBySchool: `occupationlab/projectManage/getSystemIdBySchool`, // 获取学校下拥有的系统 + avgValues: `occupationlab/projectManage/avgValues`, // 平均分分配值 + deleteProjectManage: `occupationlab/projectManage/deleteProjectManage`, // 新增项目管理 + getProjectBySystemId: `occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目(项目中没有用上这个接口) + queryNameIsExist: `occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重 + queryProjectManage: `occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选) + updateIsOpen: `occupationlab/projectManage/updateIsOpen`, // 更新开启状态 + getProjectDetail: `occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情 + saveProjectDraft: `occupationlab/projectManage/saveProjectDraft`, // 新增项目管理 + addProjectManage: `occupationlab/projectManage/addProjectManage`, // 新增项目管理 + updateProjectManage: `occupationlab/projectManage/updateProjectManage`, // 修改项目管理 + editProjectDraft: `occupationlab/projectManage/editProjectDraft`, // 修改项目管理 + copyProjectManage: `occupationlab/projectManage/copyProjectManage`, // 复制项目管理 // 判分点 - getBcJudgmentPoint: `${host}judgment/bcJudgmentPoint/getTeacherJudgmentPoint`, // 获取编程类判分点列表(分页) - getLcJudgmentPoint: `${host}judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) - addProjectJudgment: `${host}occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 - updateProjectJudgment: `${host}occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 - deleteProjectJudgment: `${host}occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除 + getBcJudgmentPoint: `judgment/bcJudgmentPoint/getTeacherJudgmentPoint`, // 获取编程类判分点列表(分页) + getLcJudgmentPoint: `judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) + addProjectJudgment: `occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 + updateProjectJudgment: `occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 + deleteProjectJudgment: `occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除 // 赛事管理 - addContest: `${host}occupationlab/enterprise/match/contest/addContest`, - deleteContest: `${host}occupationlab/enterprise/match/contest/deleteContest`, - editContest: `${host}occupationlab/enterprise/match/contest/editContest`, - publishContest: `${host}occupationlab/enterprise/match/contest/publishContest`, - getContest: `${host}occupationlab/enterprise/match/contest/getContest`, - queryContestByCondition: `${host}occupationlab/enterprise/match/contest/queryContestByCondition`, + addContest: `occupationlab/enterprise/match/contest/addContest`, + deleteContest: `occupationlab/enterprise/match/contest/deleteContest`, + editContest: `occupationlab/enterprise/match/contest/editContest`, + publishContest: `occupationlab/enterprise/match/contest/publishContest`, + getContest: `occupationlab/enterprise/match/contest/getContest`, + queryContestByCondition: `occupationlab/enterprise/match/contest/queryContestByCondition`, // 竞赛进展 - addContestProgress: `${host}occupationlab/enterprise/match/contest-progress/addContestProgress`, - deleteContestProgress: `${host}occupationlab/enterprise/match/contest-progress/deleteContestProgress`, - getContestProgress: `${host}occupationlab/enterprise/match/contest-progress/getContestProgress`, - editContestProgress: `${host}occupationlab/enterprise/match/contest-progress/editContestProgress`, + addContestProgress: `occupationlab/enterprise/match/contest-progress/addContestProgress`, + deleteContestProgress: `occupationlab/enterprise/match/contest-progress/deleteContestProgress`, + getContestProgress: `occupationlab/enterprise/match/contest-progress/getContestProgress`, + editContestProgress: `occupationlab/enterprise/match/contest-progress/editContestProgress`, // 报名人员 - addApplicant: `${host}occupationlab/enterprise/match/applicant/addApplicant`, - disableContests: `${host}occupationlab/enterprise/match/applicant/disableContests`, - excelExport: `${host}occupationlab/enterprise/match/applicant/excelExport`, - queryApplicantByCondition: `${host}occupationlab/enterprise/match/applicant/queryApplicantByCondition`, - disableApplicant: `${host}occupationlab/enterprise/match/applicant/disableApplicant`, - batchExport: `${host}occupationlab/enterprise/match/applicant/batchExport`, + addApplicant: `occupationlab/enterprise/match/applicant/addApplicant`, + disableContests: `occupationlab/enterprise/match/applicant/disableContests`, + excelExport: `occupationlab/enterprise/match/applicant/excelExport`, + queryApplicantByCondition: `occupationlab/enterprise/match/applicant/queryApplicantByCondition`, + disableApplicant: `occupationlab/enterprise/match/applicant/disableApplicant`, + batchExport: `occupationlab/enterprise/match/applicant/batchExport`, // 栏目管理 - addColumn: `${host}occupationlab/enterprise/information/column/addColumn`, - deleteColumn: `${host}occupationlab/enterprise/information/column/deleteColumn`, - editColumn: `${host}occupationlab/enterprise/information/column/editColumn`, - queryAllColumns: `${host}occupationlab/enterprise/information/column/queryAllColumns`, - columnReorder: `${host}occupationlab/enterprise/information/column/reorder`, + addColumn: `occupationlab/enterprise/information/column/addColumn`, + deleteColumn: `occupationlab/enterprise/information/column/deleteColumn`, + editColumn: `occupationlab/enterprise/information/column/editColumn`, + queryAllColumns: `occupationlab/enterprise/information/column/queryAllColumns`, + columnReorder: `occupationlab/enterprise/information/column/reorder`, // 内容管理 - addArticle: `${host}occupationlab/enterprise/information/article/addArticle`, - deleteArticles: `${host}occupationlab/enterprise/information/article/deleteArticles`, - editArticle: `${host}occupationlab/enterprise/information/article/editArticle`, - enableArticle: `${host}occupationlab/enterprise/information/article/enableArticle`, - getArticle: `${host}occupationlab/enterprise/information/article/getArticle`, - getArticles: `${host}occupationlab/enterprise/information/article/getArticles`, - queryArticleByCondition: `${host}occupationlab/enterprise/information/article/queryArticleByCondition`, - articleSort: `${host}occupationlab/enterprise/information/article/articleSort`, + addArticle: `occupationlab/enterprise/information/article/addArticle`, + deleteArticles: `occupationlab/enterprise/information/article/deleteArticles`, + editArticle: `occupationlab/enterprise/information/article/editArticle`, + enableArticle: `occupationlab/enterprise/information/article/enableArticle`, + getArticle: `occupationlab/enterprise/information/article/getArticle`, + getArticles: `occupationlab/enterprise/information/article/getArticles`, + queryArticleByCondition: `occupationlab/enterprise/information/article/queryArticleByCondition`, + articleSort: `occupationlab/enterprise/information/article/articleSort`, // 课程管理 - queryCourseByCondition: `${host}occupationlab/management/edu/course/queryCourseByCondition`, // 课程列表分页条件查询 - addCourse: `${host}occupationlab/management/edu/course/addCourse`, // 添加课程 - deleteCourse: `${host}occupationlab/management/edu/course/deleteCourse`, // 根据id删除课程 - deleteCourses: `${host}occupationlab/management/edu/course/deleteCourses`, // 批量删除课程 - editCourse: `${host}occupationlab/management/edu/course/editCourse`, // 修改课程 - enableCourse: `${host}occupationlab/management/schoolCourse/enableGlCourse`, // 是否启用管理端课程 - getCourse: `${host}occupationlab/management/edu/course/getCourse`, // 根据id查询课程 + queryCourseByCondition: `occupationlab/management/edu/course/queryCourseByCondition`, // 课程列表分页条件查询 + addCourse: `occupationlab/management/edu/course/addCourse`, // 添加课程 + deleteCourse: `occupationlab/management/edu/course/deleteCourse`, // 根据id删除课程 + deleteCourses: `occupationlab/management/edu/course/deleteCourses`, // 批量删除课程 + editCourse: `occupationlab/management/edu/course/editCourse`, // 修改课程 + enableCourse: `occupationlab/management/schoolCourse/enableGlCourse`, // 是否启用管理端课程 + getCourse: `occupationlab/management/edu/course/getCourse`, // 根据id查询课程 // 分类管理 - queryGlClassification: `${host}occupationlab/management/edu/courseClassification/queryGlClassification`, - deleteClassification: `${host}occupationlab/management/edu/courseClassification/deleteClassification`, - addClassification: `${host}occupationlab/management/edu/courseClassification/addClassification`, - editClassification: `${host}occupationlab/management/edu/courseClassification/editClassification`, + queryGlClassification: `occupationlab/management/edu/courseClassification/queryGlClassification`, + deleteClassification: `occupationlab/management/edu/courseClassification/deleteClassification`, + addClassification: `occupationlab/management/edu/courseClassification/addClassification`, + editClassification: `occupationlab/management/edu/courseClassification/editClassification`, // 课程章节管理 - addChapter: `${host}occupationlab/management/edu/courseChapter/addChapter`, - chapterReorder: `${host}occupationlab/management/edu/courseChapter/chapterReorder`, - deleteChapter: `${host}occupationlab/management/edu/courseChapter/deleteChapter`, - editChapter: `${host}occupationlab/management/edu/courseChapter/editChapter`, - queryChaptersAndSubsections: `${host}occupationlab/management/edu/courseChapter/queryChaptersAndSubsections`, - reorder: `${host}occupationlab/management/edu/courseChapter/reorder`, + addChapter: `occupationlab/management/edu/courseChapter/addChapter`, + chapterReorder: `occupationlab/management/edu/courseChapter/chapterReorder`, + deleteChapter: `occupationlab/management/edu/courseChapter/deleteChapter`, + editChapter: `occupationlab/management/edu/courseChapter/editChapter`, + queryChaptersAndSubsections: `occupationlab/management/edu/courseChapter/queryChaptersAndSubsections`, + reorder: `occupationlab/management/edu/courseChapter/reorder`, // 课程小节管理 - addSubsection: `${host}occupationlab/management/edu/courseSubsection/addSubsection`, // 添加小节 - deleteSubsection: `${host}occupationlab/management/edu/courseSubsection/deleteSubsection`, // 根据id删除小节 - editSubsection: `${host}occupationlab/management/edu/courseSubsection/editSubsection`, // 修改小节 - getSubsection: `${host}occupationlab/management/edu/courseSubsection/getSubsection`, // 根据小节id获取预览文件地址 + addSubsection: `occupationlab/management/edu/courseSubsection/addSubsection`, // 添加小节 + deleteSubsection: `occupationlab/management/edu/courseSubsection/deleteSubsection`, // 根据id删除小节 + editSubsection: `occupationlab/management/edu/courseSubsection/editSubsection`, // 修改小节 + getSubsection: `occupationlab/management/edu/courseSubsection/getSubsection`, // 根据小节id获取预览文件地址 // 阿里云文件/视频管理 fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 @@ -169,73 +169,73 @@ export default { removeMoreVideo: `${uploadURL}oss/manage/removeMoreVideo`, // 批量删除视频文件 removeVideo: `${uploadURL}oss/manage/removeVideo`, // 删除视频文件 - queryProvince: `${host}nakadai/nakadai/province/queryProvince`, //查询省份 - queryCity: `${host}nakadai/nakadai/city/queryCity`, //查询城市 - querySchoolData: `${host}nakadai/nakadai/school/querySchool`, //根据学校名称查询学校信息 - queryCourseDiscipline: `${host}nakadai/nakadai/subject/courseDiscipline`, //查询课程学科 - queryCourseProfessionalClass: `${host}nakadai/nakadai/subject/courseProfessionalClass`, //查询专业类 - queryCourseProfessional: `${host}nakadai/nakadai/subject/courseProfessional`, //查询专业 + queryProvince: `nakadai/nakadai/province/queryProvince`, //查询省份 + queryCity: `nakadai/nakadai/city/queryCity`, //查询城市 + querySchoolData: `nakadai/nakadai/school/querySchool`, //根据学校名称查询学校信息 + queryCourseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, //查询课程学科 + queryCourseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, //查询专业类 + queryCourseProfessional: `nakadai/nakadai/subject/courseProfessional`, //查询专业 // 个人中心 - uploadUserAvatars: `${host}users/users/userAccount/updateUserAvatars`, //更改头像 - queryUserInfoDetails: `${host}users/users/userAccount/queryUserInfoDetails`,//个人中心信息展示 - updatePersonCenter: `${host}users/users/userAccount/updatePersonCenter`,//个人中心信息修改 - examinePassword: `${host}users/users/userAccount/examinePassword`,//更换密码 - bindPhoneOrEmail: `${host}users/users/userAccount/bindPhoneOrEmail`,// 绑定手机或邮箱 - sendPhoneOrEmailCode: `${host}users/users/userAccount/sendPhoneOrEmailCode`,// 更换手机号或邮箱--发送手机验证码 + uploadUserAvatars: `users/users/userAccount/updateUserAvatars`, //更改头像 + queryUserInfoDetails: `users/users/userAccount/queryUserInfoDetails`,//个人中心信息展示 + updatePersonCenter: `users/users/userAccount/updatePersonCenter`,//个人中心信息修改 + examinePassword: `users/users/userAccount/examinePassword`,//更换密码 + bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,// 绑定手机或邮箱 + sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,// 更换手机号或邮箱--发送手机验证码 // 系统设置 // 员工组织架构 - professionalList: `${host}occupationlab/staff/professionalList`, //查询专业列表 - staffGradeList: `${host}occupationlab/staff/staffGradeList`, //根据专业id查询年级 - saveProfessional: `${host}occupationlab/staff/saveProfessional`, //新增专业 - updateProfessional: `${host}occupationlab/staff/updateProfessional`, //编辑专业 - deleteProfessional: `${host}occupationlab/staff/deleteProfessional`, //删除专业 - saveGrade: `${host}occupationlab/staff/saveGrade`, //新增年级 - updateGrade: `${host}occupationlab/staff/updateGrade`, //编辑年级 - deleteGrade: `${host}occupationlab/staff/deleteGrade`, //删除年级 + professionalList: `occupationlab/staff/professionalList`, //查询专业列表 + staffGradeList: `occupationlab/staff/staffGradeList`, //根据专业id查询年级 + saveProfessional: `occupationlab/staff/saveProfessional`, //新增专业 + updateProfessional: `occupationlab/staff/updateProfessional`, //编辑专业 + deleteProfessional: `occupationlab/staff/deleteProfessional`, //删除专业 + saveGrade: `occupationlab/staff/saveGrade`, //新增年级 + updateGrade: `occupationlab/staff/updateGrade`, //编辑年级 + deleteGrade: `occupationlab/staff/deleteGrade`, //删除年级 // 员工管理 - saveStaff: `${host}occupationlab/staff/saveStaff`, //新增员工 - staffDetail: `${host}occupationlab/staff/staffDetail`, //员工详情 - modifyStaff: `${host}occupationlab/staff/modifyStaff`, //编辑员工 - delStaff: `${host}occupationlab/staff/delStaff`, //删除员工 - staffList: `${host}occupationlab/staff/staffList`, //员工列表 + saveStaff: `occupationlab/staff/saveStaff`, //新增员工 + staffDetail: `occupationlab/staff/staffDetail`, //员工详情 + modifyStaff: `occupationlab/staff/modifyStaff`, //编辑员工 + delStaff: `occupationlab/staff/delStaff`, //删除员工 + staffList: `occupationlab/staff/staffList`, //员工列表 staffTemplate: `http://39.108.250.202/template/员工用户导入模板.xlsx`, //员工用户导入模板 exportFailureStaff: `${host}occupationlab/staff/exportFailure`, //批量导入员工失败数据导出 importStaff: `${host}occupationlab/staff/importStaff`, //批量导入员工 // 角色管理 - batchRemove: `${host}users/role/batchRemove`, //批量删除角色 - checkRoleIsExist: `${host}users/role/checkRoleIsExist`, //判断该角色是否存在 - delRoleByAccountId: `${host}users/role/delRoleByAccountId`, //删除某用户下的某个角色 - roleList: `${host}users/role/list`, //角色分页列表查询 - obtainDetails: `${host}users/role/obtainDetails`, //获取角色详情 - saveOrUpdate: `${host}users/role/saveOrUpdate`, //新增或更新角色 - queryAllMenus: `${host}users/users/permission/queryAllMenus`, //查询所有菜单 + batchRemove: `users/role/batchRemove`, //批量删除角色 + checkRoleIsExist: `users/role/checkRoleIsExist`, //判断该角色是否存在 + delRoleByAccountId: `users/role/delRoleByAccountId`, //删除某用户下的某个角色 + roleList: `users/role/list`, //角色分页列表查询 + obtainDetails: `users/role/obtainDetails`, //获取角色详情 + saveOrUpdate: `users/role/saveOrUpdate`, //新增或更新角色 + queryAllMenus: `users/users/permission/queryAllMenus`, //查询所有菜单 // 系统logo设置 - logoDetail: `${host}occupationlab/sys/logo/detail`, //查看系统设置信息 - logoSave: `${host}occupationlab/sys/logo/save`, //新增系统设置信息 - logoUpdate: `${host}occupationlab/sys/logo/update`, //编辑系统设置信息 + logoDetail: `occupationlab/sys/logo/detail`, //查看系统设置信息 + logoSave: `occupationlab/sys/logo/save`, //新增系统设置信息 + logoUpdate: `occupationlab/sys/logo/update`, //编辑系统设置信息 // 教师评语 - addComment: `${host}evaluation/comment/addComment`, - queryComment: `${host}evaluation/comment/queryComment`, - updateComment: `${host}evaluation/comment/updateComment`, + addComment: `evaluation/comment/addComment`, + queryComment: `evaluation/comment/queryComment`, + updateComment: `evaluation/comment/updateComment`, // 老师签名照 - daleteSignature: `${host}evaluation/signature/daleteSignature`, - querySignature: `${host}evaluation/signature/querySignature`, - uploadSignature: `${host}evaluation/signature/uploadSignature`, + daleteSignature: `evaluation/signature/daleteSignature`, + querySignature: `evaluation/signature/querySignature`, + uploadSignature: `evaluation/signature/uploadSignature`, // 判分点 - queryListTrading: `${host}judgment/tradingJudgmentPoints/query`, - queryDetailsTrading: `${host}judgment/tradingJudgmentPoints/queryDetails`, + queryListTrading: `judgment/tradingJudgmentPoints/query`, + queryDetailsTrading: `judgment/tradingJudgmentPoints/queryDetails`, // 科大 - queryPoint: `${host}kdSys/queryPoint`, - querySubject: `${host}kdSys/querySubject`, - queryItem: `${host}kdSys/queryItem`, + queryPoint: `kdSys/queryPoint`, + querySubject: `kdSys/querySubject`, + queryItem: `kdSys/queryItem`, // 川大 firstLevel: `${host1}sichuan/point/firstLevel`, secondaryLevel: `${host1}sichuan/point/secondaryLevel`, diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index 65b617f..9ce736d 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -296,7 +296,7 @@ export default { let roleId = this.roleId == 4 ? 0 : 1; let userName = window.btoa(encodeURIComponent(this.userName)); if (id == 11) { - href = `${Setting.bankPath}/#/index/list?token=${token}&cid=${this.courseId}&systemId=${this.assessmentList[0].systemId}&projectId=&assessmentId=&classId=&stopTime=&test=true` + location.href = `${Setting.bankPath}/#/index/list?token=${token}&cid=${this.courseId}&systemId=${this.assessmentList[0].systemId}&projectId=&assessmentId=&classId=&stopTime=&test=true` } else if (id == 21) { window.open(`http://121.37.29.24:80/yyyflogin?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=3989a0ad671849b99dcbdcc208782333&caseId=9681f86902314b10bc752909121f9ab9&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=7ff5d4715b114b7398b6f26c20fac460`); } else if (id == 22) { @@ -308,7 +308,7 @@ export default { href = `${location.origin}/pyTrials` // 8个python子系统都跳这个地址,子系统会通过cookie里的systemId识别展示哪套系统 } } - if (id != 21 && id != 22) { + if (id != 21 && id != 22 && id != 11) { util.cookies.set("assessmentId", "", -1); util.cookies.set("projectId", "", -1); util.cookies.set("startTime", "", -1); diff --git a/src/pages/student/list/index.vue b/src/pages/student/list/index.vue index f8b9e57..ea98e0c 100644 --- a/src/pages/student/list/index.vue +++ b/src/pages/student/list/index.vue @@ -800,11 +800,13 @@ export default { } }).catch(err => { this.$post(`${this.api.getDetailByAccount}?workNumber=${this.form.workNumber}&platformId=${Setting.platformId}&type=1`).then(res => { + const { data } = res this.showTree = true; - let classId = res.data.classList.map(e => e.id); - this.form.classId = classId.toString(); + let classId = data.classList.map(e => e.id).toString(); + this.form = data + this.form.classId = classId + this.defaultCheckedKeys = classId.split(",").map(i => Number(i)); delete this.form.classList; - // this.showTree = true; this.accountReapeat = false; this.$refs.form.clearValidate(); }).catch(res => {}); diff --git a/src/setting.js b/src/setting.js index 0f609dd..28da661 100644 --- a/src/setting.js +++ b/src/setting.js @@ -9,10 +9,10 @@ const isBeta = url.includes("120.78.198.231"); //是否职站测试 const isPro = url.includes("occupationlab.com"); //是否职站生产 const isTest = url.includes('39.108.250.202'); //是否中台测试服 -let bankPath = '' // 银行系统地址 -let jumpPath = ""; -let host = ""; -let title = ""; +let bankPath = `${location.origin}/banksystem` // 银行系统地址 +let jumpPath = `${location.origin}/judgmentPoint` +let host = `${location.origin}:9000/` +let title = '职站服务端管理系统' if (isHh) { // 河海 @@ -25,28 +25,16 @@ if (isHh) { } else if (isBeta) { // 职站测试 host = "http://120.78.198.231/"; - title = "职站服务端管理系统"; } else if (isPro) { // 职站生产 - host = "http://www.occupationlab.com:9000/"; bankPath = `http://www.huorantech.cn/banksystem` jumpPath = `http://www.huorantech.cn/judgmentPoint/` - title = "职站服务端管理系统"; -} else if (isTest){ - jumpPath = "http://39.108.250.202/judgmentPoint/"; - host = "http://39.108.250.202:9000/"; - bankPath = `${bankPath}/banksystem` - title = "职站服务端管理系统"; } else if (isDev) { jumpPath = "http://192.168.31.125:8087/"; bankPath = `http://192.168.31.125:8093` - // host = "http://www.occupationlab.com:9000/";//线上 // host = "http://39.108.250.202:9000/"; // 中台测试服 host = "http://192.168.31.151:9000/"; // 榕 // host = 'http://192.168.31.137:9000/'; // 赓 - title = "职站服务端管理系统"; -} else { - console.log("其它版本"); } const Setting = {