diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index d45d351..fdf7030 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -134,6 +134,7 @@ export default { methods:{ handleSelect(index){ this.onRoutes = index + this.$store.commit('setOrderParam', null) this.$store.commit('setInfoTab', '1') this.$store.commit('setColumnId', '') sessionStorage.setItem('sideBar',index) diff --git a/src/setting.js b/src/setting.js index 1ed2e9f..57df0a0 100644 --- a/src/setting.js +++ b/src/setting.js @@ -45,7 +45,7 @@ const Setting = { isDev, isPro, // 是否使用动态路由 - dynamicRoute: false, + dynamicRoute: true, /** * @description 默认密码 */ diff --git a/src/store/index.js b/src/store/index.js index 1fa371b..c168885 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -26,7 +26,8 @@ const store = new Vuex.Store({ platformSource: 0, columnId: '', tabId: '1', - dataPer: [] + dataPer: [], + orderParam: null }, actions: { setSystemId({ state,commit },systemId) { @@ -52,6 +53,15 @@ const store = new Vuex.Store({ SET_USERNAME (state, userName) { state.userName = userName }, + SET_C_PAGE: (state, page) => { + state.customerPage = page + }, + SET_M_PAGE: (state, page) => { + state.matchPage = page + }, + SET_M_SOURCE: (state, platformSource) => { + state.platformSource = platformSource + }, courseData (state, payload) { state.courseId = payload.course_id }, @@ -88,21 +98,16 @@ const store = new Vuex.Store({ setDataPer(state, dataPer) { state.dataPer = dataPer }, - SET_C_PAGE: (state, page) => { - state.customerPage = page - }, - SET_M_PAGE: (state, page) => { - state.matchPage = page - }, - SET_M_SOURCE: (state, platformSource) => { - state.platformSource = platformSource - }, setColumnId: (state, columnId) => { state.columnId = columnId }, setInfoTab: (state, tabId) => { state.tabId = tabId }, + setOrderParam: (state, orderParam) => { + state.orderParam = orderParam + }, + } }); diff --git a/src/utils/api.js b/src/utils/api.js index c696171..fc49dfd 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -2,7 +2,6 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL const host1 = 'http://192.168.31.51:9000/' -const host2 = 'http://121.37.12.51/' const uploadURL = Setting.uploadURL export default { @@ -147,7 +146,6 @@ export default { deleteSubsection: `nakadai/nakadai/curriculum/subsection/deleteSubsection`, //根据id删除小节 editSubsection: `nakadai/nakadai/curriculum/subsection/editSubsection`, //修改小节 getSubsection: `nakadai/nakadai/curriculum/subsection/getSubsection`, //根据小节id获取预览文件地址 - // 理论课程 delTheoreticalCourse: `occupationlab/occupationlab/theoreticalCourse/batchDeletion`, @@ -158,6 +156,7 @@ export default { disabledTheoreticalCourse: `occupationlab/occupationlab/theoreticalCourse/disabledEvents`, checkRepeatTheoreticalCourse: `occupationlab/occupationlab/theoreticalCourse/checkRepeat`, getRedisCache: `occupationlab/occupationlab/theoreticalCourse/getRedisCache`, + getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`, // 理论课程分类管理 checkRepeatClassification: `occupationlab/occupationlab/theoreticalCourseClassification/checkRepeat`, delClassification: `occupationlab/occupationlab/theoreticalCourseClassification/batchDeletion`, @@ -314,6 +313,10 @@ export default { editCompetitionContent: `competition/competition/content/editCompetitionContent`, getCompetitionContent: `competition/competition/content/getCompetitionContent`, // 赛事附件 + delComAnnex: `competition/competition/annex/delete`, + saveComAnnex: `competition/competition/annex/save`, + updateComAnnex: `competition/competition/annex/update`, + // 赛事公告附件 delAnnex: `competition/competition/announcementAnnex/delete`, saveAnnex: `competition/competition/announcementAnnex/save`, updateAnnex: `competition/competition/announcementAnnex/update`, @@ -349,6 +352,7 @@ export default { stageSelectParticipants: `competition/competition/teamParticipant/stageSelectParticipants`, updateUser: `users/users/userInfo/updateUser`, enquireAboutSchoolStudents: `users/users/userAccount/enquireAboutSchoolStudents`, + cancelParticipant: `competition/competition/teamParticipant/cancelParticipant`, // 赛事公告 addAnnouncement: `competition/competition/announcement/addAnnouncement`, amendmentAnnouncement: `competition/competition/announcement/amendmentAnnouncement`, @@ -356,6 +360,7 @@ export default { 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`, @@ -377,7 +382,7 @@ export default { 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`, + gradeImport: `http://121.37.12.51/template/赛事成绩导入模板.xlsx`, + rankImportTeam: `http://121.37.12.51/template/赛事排名导入模板(团队赛).xlsx`, + rankImportPerson: `http://121.37.12.51/template/赛事排名导入模板(个人赛).xlsx`, }; \ No newline at end of file diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index a29a4dc..9aabc35 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -187,6 +187,7 @@ +