From 4179b85fe5e594e8fd93d4cdf3b47dd4aee9c11b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 23 Nov 2023 18:05:25 +0800 Subject: [PATCH] fix --- src/pages/assessment/add/index.vue | 2 +- src/pages/assessment/list/index.vue | 3 +- src/pages/match/list/index.vue | 5 ++- src/pages/station/preview/index.vue | 65 +++++++++++++++++++---------- 4 files changed, 48 insertions(+), 27 deletions(-) diff --git a/src/pages/assessment/add/index.vue b/src/pages/assessment/add/index.vue index 626c60c..7422587 100644 --- a/src/pages/assessment/add/index.vue +++ b/src/pages/assessment/add/index.vue @@ -529,7 +529,7 @@ export default { this.form.curriculumId = curItem.cid this.submiting = true if (this.form.id) { - this.$post(this.api.modifyAssessment, this.form).then(res => { + this.$post(this.api.modifyAssessment, this.form).then(async res => { this.updateTime = 0 util.successMsg("修改成功"); cb ? cb() : this.$router.back() diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index b741e1b..b92f74b 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -459,7 +459,8 @@ export default { this.$router.push(`/achievement/project?id=${row.id}&projectName=${row.projectName}&permissions=1`) }, start (row) { - this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => { + this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(async res => { + await this.$post(`${this.api.refreshPageNotification}?content=3-${row.id}`) util.successMsg("启动成功!"); this.getData(1); }).catch(err => { diff --git a/src/pages/match/list/index.vue b/src/pages/match/list/index.vue index 6668d1f..5b70224 100644 --- a/src/pages/match/list/index.vue +++ b/src/pages/match/list/index.vue @@ -393,12 +393,13 @@ export default { const data = [] row.competitionStageList.map(e => { const stage = row.playingStages.find(n => n.contentId === e.contentId && n.newEndTime) - if (stage && stage.newEndTime) stage.endTime = this.formatDate('yyyy-MM-dd hh:mm:ss', stage.newEndTime) + if (stage && stage.newEndTime) stage.endTime = util.formatDate('yyyy-MM-dd hh:mm:ss', stage.newEndTime) data.push(stage || e) }) this.$post(this.api.editCompetitionContent, { competitionContents: data - }).then(res => { + }).then(async res => { + await this.$post(`${this.api.refreshPageNotification}?content=1`) util.successMsg('修改成功') this.modifyVisible = false this.getData() diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index 078f35f..b02bdf3 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -72,6 +72,18 @@
+