diff --git a/src/setting.js b/src/setting.js index 9a12b7a..2b84faf 100644 --- a/src/setting.js +++ b/src/setting.js @@ -11,7 +11,7 @@ if (isDev) { jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统 host = 'http://121.37.12.51/' // host = 'https://huorantech.cn/' - // host = 'http://192.168.31.51:9000/'// 榕 + host = 'http://192.168.31.51:9000/'// 榕 // host = 'http://192.168.31.116:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' diff --git a/src/store/index.js b/src/store/index.js index c168885..32bd85e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -27,7 +27,8 @@ const store = new Vuex.Store({ columnId: '', tabId: '1', dataPer: [], - orderParam: null + orderParam: null, + competitionCache: null }, actions: { setSystemId({ state,commit },systemId) { @@ -107,6 +108,9 @@ const store = new Vuex.Store({ setOrderParam: (state, orderParam) => { state.orderParam = orderParam }, + setCompetitionCache: (state, param) => { + state.competitionCache = param + }, } }); diff --git a/src/utils/api.js b/src/utils/api.js index 130c547..8b4d508 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -337,7 +337,7 @@ export default { disableContests: `competition/competition/registration/disableContests`, disableRegistration: `competition/competition/registration/disableRegistration`, excelExport: `${host}competition/competition/registration/excelExport`, - exportDataInBatches: `competition/competition/registration/exportDataInBatches`, + exportDataInBatches: `${host}competition/competition/registration/exportDataInBatches`, queryRegistrationByCondition: `competition/competition/registration/queryRegistrationByCondition`, searchTeam: `competition/competition/team/searchTeam`, joinCompetitionTeam: `competition/competition/team/joinCompetitionTeam`, @@ -383,6 +383,10 @@ export default { queryPublicationSource: `competition/competition/rank/queryPublicationSource`, releaseVerification: `competition/competition/rank/releaseVerification`, totalRankingScoreDetails: `competition/competition/rank/totalRankingScoreDetails`, + batchRelease: `competition/competition/rank/batchRelease`, + manuallyUploadedRankings: `competition/competition/rank/manuallyUploadedRankings`, + toggleTheSortingMode: `competition/competition/rank/toggleTheSortingMode`, + selectTheLastSortStatus: `competition/competition/rank/selectTheLastSortStatus`, gradeImport: `http://121.37.12.51/template/赛事成绩导入模板.xlsx`, rankImportTeam: `http://121.37.12.51/template/赛事排名导入模板(团队赛).xlsx`, rankImportPerson: `http://121.37.12.51/template/赛事排名导入模板(个人赛).xlsx`, diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index faa95f8..3534e87 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -583,6 +583,12 @@ export default { if (!systemsAll.find(n => n.systemId == e.systemId)) e.disabled = true }) this.assessmentData = aList + + const cList = data.competitionConfig + cList.map(e => { + if (!systemsAll.find(n => n.systemId == e.systemId)) e.disabled = true + }) + this.matches = cList }); }).catch(err => { }); @@ -704,7 +710,7 @@ export default { this.configVisible = true; this.pageNo = 1; this.getConfig(); - this.checkeds = JSON.parse(JSON.stringify(type ? this.assessmentData : this.practiceData)) + this.checkeds = JSON.parse(JSON.stringify(type == 1 ? this.assessmentData : type == 2 ? this.matches : this.practiceData)) }, // 获取系统 getConfig() { diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index ae20265..654753b 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -73,6 +73,7 @@ export default { data() { return { id: this.$route.query.id || '', + cache: this.$store.state.competitionCache, publishStatus: 0, competitionId: '', step: 1, @@ -93,9 +94,17 @@ export default { step4 }, mounted() { - + }, methods: { + // 如果是从第三步里的自定义项目入口进去后返回的,则要直接进入第三步 + resumeData() { + if (this.cache) { + this.step = 3 + this.editing = true + this.showBtns = false + } + }, // 展示loading showLoad() { this.loadIns = Loading.service() diff --git a/src/views/match/add/set.vue b/src/views/match/add/set.vue index d72dce3..a4934f5 100644 --- a/src/views/match/add/set.vue +++ b/src/views/match/add/set.vue @@ -55,7 +55,7 @@