diff --git a/src/setting.js b/src/setting.js index 2b84faf..9a83c3b 100644 --- a/src/setting.js +++ b/src/setting.js @@ -11,8 +11,8 @@ 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.116:9000/'// 赓 + // host = 'http://192.168.31.51:9000/'// 榕 + host = 'http://192.168.31.116:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' } @@ -45,7 +45,7 @@ const Setting = { isDev, isPro, // 是否使用动态路由 - dynamicRoute: true, + dynamicRoute: false, /** * @description 默认密码 */ diff --git a/src/utils/api.js b/src/utils/api.js index d4240dc..903dccb 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -295,36 +295,46 @@ export default { partnerAccountMergeList: `nakadai/nakadai/partnerAccount/partnerAccountMergeList`, // 赛事 - contestPageConditionQueryByNakadai: `occupationlab/occupationlab/enterprise/match/contest/contestPageConditionQueryByNakadai`, - 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`, + CompetitionPageConditionQueryByNakadai: `competition/competition/management/competitionPageConditionQueryByNakadai`, + 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`, + disabledEventsCompetition: `competition/competition/management/disabledEvents`, + // 赛事内容 + 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`, // 竞赛进展 - 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`, // 赛事公告 - 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`, + queryAnnouncementByContestId: `competition/competition/announcement/queryAnnouncementByContestId`, + queryAnnouncementDetails: `competition/competition/announcement/queryAnnouncementDetails`, }; \ No newline at end of file diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index fccb2e0..adfbbee 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -5,576 +5,75 @@ + +
大赛发布类型
+ + + 仅发布信息 + 设置完整比赛 + + + + + + + +
- - - - -
- -

上传封面

-
-
-

展示宽度为220,高度140,JPG/PNG/GIF,3MB以内

-
-
-
- - - -
- -

上传封面

-
-
-

展示宽度为1920,高度300,JPG/PNG/GIF,3MB以内

-
-
-
- -
- 本校内 -
-
- 全平台 -
-
- 指定区域、院校 - 选择院校 - {{ rangeName }} -
-
- -
- -
-
- -
-
- - - -
-
-
- -
-
- - - -
-
- -
- - - - - - - - - - - - 点击上传 -
-

支持扩展名:.rar .zip .doc .docx .pdf .jpg...

-
-
-
- - 保存 - 发布 - 预览 - -
+ + + +
+ 保存{{ releaseType ? '草稿' : '' }} + 发布 + 保存并下一步 + 预览 + 取消 +
- - -
- - - {{tag.label}} - -
- - - 取 消 - 确 定 - -
\ No newline at end of file diff --git a/src/views/match/add/step1.vue b/src/views/match/add/step1.vue new file mode 100644 index 0000000..54b541b --- /dev/null +++ b/src/views/match/add/step1.vue @@ -0,0 +1,803 @@ + + + + + \ No newline at end of file diff --git a/src/views/match/add/step2.vue b/src/views/match/add/step2.vue new file mode 100644 index 0000000..a5905ef --- /dev/null +++ b/src/views/match/add/step2.vue @@ -0,0 +1,362 @@ + + + + + \ No newline at end of file diff --git a/src/views/match/add/step3.vue b/src/views/match/add/step3.vue new file mode 100644 index 0000000..6f2dfed --- /dev/null +++ b/src/views/match/add/step3.vue @@ -0,0 +1,534 @@ + + + + + \ No newline at end of file diff --git a/src/views/match/list/index.vue b/src/views/match/list/index.vue index 60fd639..cc15ee1 100644 --- a/src/views/match/list/index.vue +++ b/src/views/match/list/index.vue @@ -211,7 +211,7 @@ export default { methods: { getList() { const { form } = this - this.$post(this.api.contestPageConditionQueryByNakadai, { + this.$post(this.api.CompetitionPageConditionQueryByNakadai, { pageNum: this.page, pageSize: this.pageSize, competitionScope: form.competitionScope === '' ? null : form.competitionScope, @@ -268,7 +268,7 @@ export default { type: "warning" }) .then(() => { - this.$post(`${this.api.deleteContest}?contestId=${row.id}`).then(res => { + this.$post(`${this.api.batchDeleteCompetition}?competitionIds=${row.id}`).then(res => { util.successMsg("删除成功"); this.getData(); }).catch(res => { @@ -277,27 +277,6 @@ export default { .catch(() => { }); }, - delAllData() { - if (this.multipleSelection.length != "") { - this.$confirm("此删除操作不可逆,是否确认删除选中项?", "提示", { - type: "warning" - }).then(() => { - let delList = this.multipleSelection.map(item => { - return item.id; - }); - this.$post(this.api.deleteContest, delList).then(res => { - this.multipleSelection = []; - this.$refs.table.clearSelection(); - util.successMsg("删除成功"); - this.getData(); - }).catch(res => { - }); - }).catch(() => { - }); - } else { - util.errorMsg("请先选择数据 !"); - } - }, handleSelectionChange(val) { this.multipleSelection = val; }, @@ -307,8 +286,8 @@ export default { this.$confirm("确定要删除吗?", "提示", { type: "warning" }).then(() => { - let ids = this.multipleSelection.map(i => 'contestIds=' + i.id); - this.$post(`${this.api.batchDeleteContest}?${ids.join('&')}`).then(res => { + let ids = this.multipleSelection.map(i => 'competitionIds=' + i.id); + this.$post(`${this.api.batchDeleteCompetition}?${ids.join('&')}`).then(res => { this.getData(); this.$message.success("删除成功"); this.$refs.table.clearSelection()