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 @@
- 编辑
+ 编辑
- 参赛信息与成绩
+ 参赛信息与成绩