diff --git a/src/api/index.js b/src/api/index.js index 1742eb8..ae526fc 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -2,7 +2,7 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL const uploadURL = Setting.upload.apiURL; const host1 = "https://www.occupationlab.com:8080/" -const host2 = 'http://192.168.31.137:9000/' +const host2 = 'http://192.168.31.51:9000/' export default { queryToken: `liuwanr/userInfo/queryToken`, @@ -113,39 +113,93 @@ export default { // 赛事 - contestPageConditionQueryByOccupationlab: `occupationlab/occupationlab/enterprise/match/contest/contestPageConditionQueryByOccupationlab`, - addContest: `occupationlab/occupationlab/enterprise/match/contest/addContest`, - editContest: `occupationlab/occupationlab/enterprise/match/contest/editContest`, - deleteContest: `occupationlab/occupationlab/enterprise/match/contest/deleteContest`, - getContest: `occupationlab/occupationlab/enterprise/match/contest/getContest`, - deleteAnnex: `occupationlab/occupationlab/contest/annex/delete`, - saveAnnex: `occupationlab/occupationlab/contest/annex/save`, - getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`, - disabledEvents: `occupationlab/occupationlab/enterprise/match/contest/disabledEvents`, - batchDeleteContest: `occupationlab/occupationlab/enterprise/match/contest/batchDeleteContest`, + competitionPageConditionQueryByOccupationlab: `competition/competition/management/competitionPageConditionQueryByOccupationlab`, + addCompetition: `competition/competition/management/addCompetition`, + batchDeleteCompetition: `competition/competition/management/batchDeleteCompetition`, + checkTheStatusOfTheCompetition: `competition/competition/management/checkTheStatusOfTheCompetition`, + disabledEventsCompetition: `competition/competition/management/disabledEvents`, + editCompetition: `competition/competition/management/editCompetition`, + getCompetition: `competition/competition/management/getCompetition`, + getProjectAssessmentByCompetition: `occupationlab/occupationlab/projectManage/getProjectAssessmentByCompetition`, + publishCompetition: `competition/competition/management/publishCompetition`, + detailsOfCompetitionStage: `${host1}competition/competition/management/detailsOfCompetitionStage`, + entryInformation: `competition/competition/team/entryInformation`, + getCustomerOrder: `nakadai/nakadai/valueModuleManagement/getCustomerOrder`, + curriculumList: `nakadai/nakadai/curriculum/schoolCourse`, + queryCustomer: `nakadai/nakadai/customer/queryCustomer`, + // 赛事内容 + addCompetitionContent: `competition/competition/content/addCompetitionContent`, + editCompetitionContent: `competition/competition/content/editCompetitionContent`, + getCompetitionContent: `competition/competition/content/getCompetitionContent`, + // 赛事附件 + delAnnex: `competition/competition/announcementAnnex/delete`, + saveAnnex: `competition/competition/announcementAnnex/save`, + updateAnnex: `competition/competition/announcementAnnex/update`, + viewAttachments: `competition/competition/announcementAnnex/viewAttachments`, + // 赛事规则 + addCompetitionRule: `competition/competition/rule/addCompetitionRule`, + editCompetitionRule: `competition/competition/rule/editCompetitionRule`, + getCompetitionRule: `competition/competition/rule/getCompetitionRule`, + queryCompetitionStageBySetupId: `competition/competition/stage/queryCompetitionStageBySetupId`, // 竞赛进展 - addContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/addContestProgress`, - deleteContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/deleteContestProgress`, - getContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/getContestProgress`, - editContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/editContestProgress`, + addCompetitionProgress: `competition/competition/progress/addCompetitionProgress`, + deleteCompetitionProgress: `competition/competition/progress/deleteCompetitionProgress`, + editCompetitionProgress: `competition/competition/progress/editCompetitionProgress`, + getCompetitionProgress: `competition/competition/progress/getCompetitionProgress`, // 报名人员 - addApplicant: `occupationlab/occupationlab/enterprise/match/applicant/addApplicant`, - disableContests: `occupationlab/occupationlab/enterprise/match/applicant/disableContests`, - excelExport: `${host}occupationlab/occupationlab/enterprise/match/applicant/excelExport`, - queryApplicantByCondition: `occupationlab/occupationlab/enterprise/match/applicant/queryApplicantByCondition`, - disableApplicant: `occupationlab/occupationlab/enterprise/match/applicant/disableApplicant`, - exportDataInBatches: `${host}occupationlab/occupationlab/enterprise/match/applicant/exportDataInBatches`, + addCompetitionRegistration: `competition/competition/registration/addCompetitionRegistration`, + cancelRegistration: `competition/competition/registration/cancelRegistration`, + disableContests: `competition/competition/registration/disableContests`, + disableRegistration: `competition/competition/registration/disableRegistration`, + excelExport: `competition/competition/registration/excelExport`, + exportDataInBatches: `competition/competition/registration/exportDataInBatches`, + queryRegistrationByCondition: `competition/competition/registration/queryRegistrationByCondition`, + searchTeam: `competition/competition/team/searchTeam`, + joinCompetitionTeam: `competition/competition/team/joinCompetitionTeam`, + addCompetitionTeam: `competition/competition/team/addCompetitionTeam`, + studentAccountApplication: `users/users/register/studentAccountApplication`, + checkPhoneOrEmailExist: `users/users/userInfo/checkPhoneOrEmailExist`, + editCompetitionTeam: `competition/competition/team/editCompetitionTeam`, + addAnAdvisor: `competition/competition/teamInstructor/addAnAdvisor`, + deleteAnAdvisor: `competition/competition/teamInstructor/deleteAnAdvisor`, + captainOfTransfer: `competition/competition/team/captainOfTransfer`, + removeTheLine: `competition/competition/team/removeTheLine`, + stageSelectParticipants: `competition/competition/teamParticipant/stageSelectParticipants`, + updateUser: `users/users/userInfo/updateUser`, + enquireAboutSchoolStudents: `users/users/userAccount/enquireAboutSchoolStudents`, // 赛事公告 - addAnnouncement: `occupationlab/occupationlab/contest/announcement/addAnnouncement`, - amendmentAnnouncement: `occupationlab/occupationlab/contest/announcement/amendmentAnnouncement`, - deleteAnnouncement: `occupationlab/occupationlab/contest/announcement/deleteAnnouncement`, - disableAnnouncement: `occupationlab/occupationlab/contest/announcement/disableAnnouncement`, - queryAnnouncementByContestId: `occupationlab/occupationlab/contest/announcement/queryAnnouncementByContestId`, - queryAnnouncementDetails: `occupationlab/occupationlab/contest/announcement/queryAnnouncementDetails`, - deleteAnnouncementAnnex: `occupationlab/occupationlab/contestAnnouncementAnnex/delete`, - saveAnnouncementAnnex: `occupationlab/occupationlab/contestAnnouncementAnnex/save`, - + addAnnouncement: `competition/competition/announcement/addAnnouncement`, + amendmentAnnouncement: `competition/competition/announcement/amendmentAnnouncement`, + deleteAnnouncement: `competition/competition/announcement/deleteAnnouncement`, + disableAnnouncement: `competition/competition/announcement/disableAnnouncement`, + queryAnnouncementByCompetitionId: `competition/competition/announcement/queryAnnouncementByCompetitionId`, + queryAnnouncementDetails: `competition/competition/announcement/queryAnnouncementDetails`, + saveAnnouncementAnnex: `competition/competition/announcementAnnex/save`, + // 赛事成绩 + batchDeleteContestGrade: `${host1}competition/competition/performance/batchDeleteContestGrade`, + batchImportGrades: `${host1}competition/competition/performance/batchImportGrades`, + exportExperimentalResultsInBatch: `${host1}competition/competition/performance/exportExperimentalResultsInBatch`, + performanceExportFailure: `${host1}competition/competition/performance/exportFailure`, + rankExportFailure: `${host1}competition/competition/rank/exportFailure`, + stageGradeManagementList: `${host1}competition/competition/performance/stageGradeManagementList`, + stageRaceRanking: `${host1}competition/competition/rank/stageRaceRanking`, + overallStandingsInThePointsRace: `${host1}competition/competition/rank/overallStandingsInThePointsRace`, + batchImportRanking: `${host1}competition/competition/rank/batchImportRanking`, + publishRanking: `${host1}competition/competition/rank/publishRanking`, + stageTeamScoreDetails: `${host1}competition/competition/rank/stageTeamScoreDetails`, + multipleStageTeamScoreDetails: `${host1}competition/competition/rank/multipleStageTeamScoreDetails`, + detailsOfTotalTeamScores: `${host1}competition/competition/rank/detailsOfTotalTeamScores`, + cancelRanking: `${host1}competition/competition/rank/cancelRanking`, + reportDetail: `${host1}occupationlab/occupationlab/achievement/reportDetail`, + deleteLastPublication: `${host1}competition/competition/rank/deleteLastPublication`, + whetherToPublish: `${host1}competition/competition/rank/whetherToPublish`, + manuallyRankTheUploadList: `${host1}competition/competition/rank/manuallyRankTheUploadList`, + queryPublicationSource: `${host1}competition/competition/rank/queryPublicationSource`, + releaseVerification: `${host1}competition/competition/rank/releaseVerification`, + gradeImport: `${host2}template/赛事成绩导入模板.xlsx`, + rankImportTeam: `${host2}template/赛事排名导入模板(团队赛).xlsx`, + rankImportPerson: `${host2}template/赛事排名导入模板(个人赛).xlsx`, // 栏目管理 addColumn: `occupationlab/occupationlab/information/column/addColumn`, deleteColumn: `occupationlab/occupationlab/information/column/deleteColumn`, diff --git a/src/const/match.js b/src/const/match.js new file mode 100644 index 0000000..c6c17e1 --- /dev/null +++ b/src/const/match.js @@ -0,0 +1,48 @@ +/** + * 大赛配置 + * */ + + export default { + rules: [ + { + id: 0, + name: '积分赛' + }, + { + id: 1, + name: '淘汰赛' + }, + { + id: 2, + name: '单项赛' + } + ], + methods: [ + { + id: 0, + name: '实操' + }, + { + id: 1, + name: '理论' + }, + { + id: 2, + name: '线下' + } + ], + teamCalculationMethods: [ + { + id: 0, + name: '最高分' + }, + { + id: 1, + name: '平均分' + }, + { + id: 2, + name: '总分' + } + ], +} \ No newline at end of file diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 7f6541c..a39b4c9 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -1,6 +1,6 @@