From 0698977aef292684e2524bbf25b2c9aa51f40677 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 19 Apr 2023 17:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E3=80=81=E8=80=83=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/assessment/list/index.vue | 33 ++++++++++++++++++++++++-- src/pages/match/manage/matchSignup.vue | 7 +++--- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 7027242..a7445fa 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -115,6 +115,14 @@ + + + +
+

该课程订阅期限已到期,请联系院校管理员续费

+ +
+
@@ -187,6 +195,7 @@ export default { multipleSelection: [], // 多选 listLoading:false,// 列表加载 ticker: null, // 倒计时定时器 + buyVisible: false }; }, computed: { @@ -320,22 +329,32 @@ export default { console.log(err); }); }, + // 查询是否过期 + async getStatus(cid) { + const res = await this.$get(this.api.whetherToRenewTheFee, { + cid + }) + this.buyVisible = !res.isRenew + // 1正常显示资源,0显示续费 + return res.isRenew + }, add() { this.$router.push("add"); }, edit(row) { - this.$router.push(`add?id=${row.id}`); + this.getStatus(row.curriculumId) && this.$router.push(`add?id=${row.id}`); }, show(row) { this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`) }, start(row) { + this.getStatus(row.curriculumId) && this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => { util.successMsg("启动成功!"); this.getData(1); }).catch(err => { console.log(err); - }); + }) }, finish(row) { this.$confirm("确定要提前结束吗?", "提示", { @@ -415,4 +434,14 @@ export default { .el-radio.is-bordered + .el-radio.is-bordered { margin-left: 0; } +.buy { + text-align: center; + .tips { + margin-bottom: 10px; + font-size: 14px; + } + img { + width: 85%; + } +} \ No newline at end of file diff --git a/src/pages/match/manage/matchSignup.vue b/src/pages/match/manage/matchSignup.vue index 2bd562e..92e781e 100644 --- a/src/pages/match/manage/matchSignup.vue +++ b/src/pages/match/manage/matchSignup.vue @@ -15,7 +15,7 @@
- 新增 + 新增 批量导出
@@ -39,10 +39,11 @@