From 743ff5e560d63eaafa27fd1ae68568005214865f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 1 Jun 2023 15:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E3=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 6 + src/layouts/header/index.vue | 19 +- src/pages/expSystem/backstage/addModel.vue | 6 +- src/pages/expSystem/backstage/model.vue | 30 +- src/pages/expSystem/backstage/modelType.vue | 10 +- src/pages/expSystem/backstage/sourceModel.vue | 142 +-- src/pages/expSystem/backstage/sourceType.vue | 95 +- src/pages/match/list/index.vue | 832 ++++++++++-------- src/pages/match/manage/matchRank.vue | 30 +- src/pages/station/preview/index.vue | 36 +- 10 files changed, 700 insertions(+), 506 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 47bb0d6..afcd549 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -232,6 +232,9 @@ export default { toggleTheSortingMode: `competition/competition/rank/toggleTheSortingMode`, selectTheLastSortStatus: `competition/competition/rank/selectTheLastSortStatus`, cancelImport: `competition/competition/rank/cancelImport`, + addCompetitionStageRankingTime: `competition/competitionReleaseTime/addCompetitionStageRankingTime`, + cancelCompetitionStageRankingTime: `competition/competitionReleaseTime/cancelCompetitionStageRankingTime`, + getCompetitionStageRankingTime: `competition/competitionReleaseTime/getCompetitionStageRankingTime`, gradeImport: `https://www.occupationlab.com/template/赛事成绩导入模板.xlsx`, rankImportTeam: `https://www.occupationlab.com/template/赛事排名导入模板(团队赛).xlsx`, rankImportPerson: `https://www.occupationlab.com/template/赛事排名导入模板(个人赛).xlsx`, @@ -434,6 +437,9 @@ export default { referenceDemoList: `nakadai/nakadai/model/reference/demo/referenceDemoList`, getAllModelList: `nakadai/nakadai/model/reference/demo/getAllModelList`, synchronizationMdel: `nakadai/nakadai/model/reference/demo/synchronizationMdel`, + builtInClassificationByNakadai: `nakadai/nakadai/model/reference/builtInClassificationByNakadai`, + disableModelDemo: `nakadai/nakadai/model/demo/disabledEvents`, + synchronizationMdelByOccupationlab: `nakadai/nakadai/model/reference/demo/synchronizationMdelByOccupationlab`, // 教师评语 addComment: `evaluation/cevaluation/comment/addComment`, diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index e314cb2..e55aed4 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -73,7 +73,7 @@ diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue index 9d4f2de..e84988a 100644 --- a/src/pages/match/list/index.vue +++ b/src/pages/match/list/index.vue @@ -1,125 +1,207 @@ @@ -406,7 +488,7 @@ export default { } } -@media(max-width: 1640px) { +@media (max-width: 1640px) { .page .page-content .tool .filter { flex-wrap: wrap; margin-bottom: -15px; diff --git a/src/pages/match/manage/matchRank.vue b/src/pages/match/manage/matchRank.vue index 8ecdb8c..ce5c6bb 100644 --- a/src/pages/match/manage/matchRank.vue +++ b/src/pages/match/manage/matchRank.vue @@ -40,9 +40,12 @@ 发布排名 - + {{ publishTime }}发布排名 + 取消发布 + 取 消 确 定 + @click="publishTimeSubmit">确 定 @@ -409,6 +412,7 @@ export default { stageId: 0, stageName: '总分' }) + this.getPublishTime() this.getData() }).catch(res => { }); }, @@ -416,7 +420,6 @@ export default { typeChange (val) { this.$post(`${this.api.toggleTheSortingMode}?competitionId=${this.id}&stageId=${this.active || this.stageId}&isOverallRanking=${this.active ? 0 : 1}&whetherToManuallyPublish=${this.type}`).then(res => { }).catch(res => { }) - // this.$post(`${this.api.whetherToPublish}?competitionId=${this.id}&stageId=${this.active || this.stageId}&isOverallRanking=${this.active ? 0 : 1}&publicationType=${this.type}`).then(({ whetherToPublish }) => { // if (whetherToPublish && !val) this.sourceType = '0' this.getRank() @@ -588,9 +591,26 @@ export default { }).catch(res => { }) // this.publishSubmit() }, + // 获取定时发布排名 + async getPublishTime () { + const res = this.$post(this.api.getCompetitionStageRankingTime, { + competitionId: this.id, + isOverallRanking: this.active ? 0 : 1, + publicationType: this.type, + stageId: this.active || this.stageId, + }) + }, // 定时发布排名 - publishSubmit () { - + async publishTimeSubmit () { + this.$post(this.api.addCompetitionStageRankingTime, { + competitionId: this.id, + isOverallRanking: this.active ? 0 : 1, + publicationType: this.type, + stageId: this.active || this.stageId, + releaseTime: util.formatDate("yyyy-MM-dd hh:mm:ss", this.publishTime) + }) + util.successMsg('发布成功') + this.publishVisible = false }, // 取消发布排名 cancelPublish (publish) { diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index 0c491f5..f2d7cf3 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -392,11 +392,11 @@ export default { data () { return { editorConfig, - courseId: this.$route.query.courseId, - mallId: this.$route.query.mallId || '', - curriculumName: this.$route.query.curriculumName, - commentId: this.$route.query.commentId, // 从右上角消息通知点进来用来定位评论的 - notifyId: this.$route.query.notifyId, + mallId: '', + courseId: '', + curriculumName: '', + commentId: '', // 从右上角消息通知点进来用来定位评论的 + notifyId: '', chapter: this.$route.query.chapter, section: this.$route.query.section, fromAdmin: this.$route.query.admin, // 是否从产品中心or实验台进来 @@ -479,6 +479,17 @@ export default { ]) }, watch: { + '$route': { + handler () { + this.mallId = this.$route.query.mallId || '' + this.courseId = +this.$route.query.courseId + this.curriculumName = this.$route.query.curriculumName + this.commentId = this.$route.query.commentId // 从右上角消息通知点进来用来定位评论的 + this.notifyId = this.$route.query.notifyId + this.init() + }, + immediate: true + }, noteKeyword: function (val) { clearTimeout(this.searchTimer); this.searchTimer = setTimeout(() => { @@ -487,11 +498,7 @@ export default { } }, mounted () { - this.insertScript(); - this.getData(); - this.addRecord() - this.getNote() - this.getComment() + this.init() }, methods: { goBack () { @@ -499,6 +506,13 @@ export default { this.$router.back() : this.$router.push('/station') }, + init () { + this.insertScript(); + this.getData(); + this.addRecord() + this.getNote() + this.getComment() + }, async getData () { let { data } = await this.$post(`${this.api.curriculumDetail}?cid=${this.courseId}&mallId=${this.mallId}`); this.courseName = data.curriculumName; @@ -654,7 +668,7 @@ export default { content, pid: row ? row.commentId : 0, replyAccountId: row.createAccountId || '', - status: reply ? 2 : 1 + status: row ? 2 : 1 }).then(res => { this.comment = '' this.getComment()