|
|
@ -115,14 +115,6 @@ |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="pageNum"></el-pagination> |
|
|
|
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="pageNum"></el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 购买弹框 --> |
|
|
|
|
|
|
|
<el-dialog title="温馨提示" :visible.sync="buyVisible" width="420px" center :close-on-click-modal="false"> |
|
|
|
|
|
|
|
<div class="buy"> |
|
|
|
|
|
|
|
<p class="tips">该课程订阅期限已到期,请联系院校管理员续费</p> |
|
|
|
|
|
|
|
<img src="@/assets/img/wechat-code.jpeg" alt=""> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -195,7 +187,6 @@ export default { |
|
|
|
multipleSelection: [], // 多选 |
|
|
|
multipleSelection: [], // 多选 |
|
|
|
listLoading:false,// 列表加载 |
|
|
|
listLoading:false,// 列表加载 |
|
|
|
ticker: null, // 倒计时定时器 |
|
|
|
ticker: null, // 倒计时定时器 |
|
|
|
buyVisible: false |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -329,32 +320,22 @@ export default { |
|
|
|
console.log(err); |
|
|
|
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() { |
|
|
|
add() { |
|
|
|
this.$router.push("add"); |
|
|
|
this.$router.push("add"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
edit(row) { |
|
|
|
edit(row) { |
|
|
|
this.getStatus(row.curriculumId) && this.$router.push(`add?id=${row.id}`); |
|
|
|
this.$router.push(`add?id=${row.id}`); |
|
|
|
}, |
|
|
|
}, |
|
|
|
show(row) { |
|
|
|
show(row) { |
|
|
|
this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`) |
|
|
|
this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`) |
|
|
|
}, |
|
|
|
}, |
|
|
|
start(row) { |
|
|
|
start(row) { |
|
|
|
this.getStatus(row.curriculumId) && |
|
|
|
|
|
|
|
this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => { |
|
|
|
this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => { |
|
|
|
util.successMsg("启动成功!"); |
|
|
|
util.successMsg("启动成功!"); |
|
|
|
this.getData(1); |
|
|
|
this.getData(1); |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
finish(row) { |
|
|
|
finish(row) { |
|
|
|
this.$confirm("确定要提前结束吗?", "提示", { |
|
|
|
this.$confirm("确定要提前结束吗?", "提示", { |
|
|
@ -434,14 +415,4 @@ export default { |
|
|
|
.el-radio.is-bordered + .el-radio.is-bordered { |
|
|
|
.el-radio.is-bordered + .el-radio.is-bordered { |
|
|
|
margin-left: 0; |
|
|
|
margin-left: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
.buy { |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
.tips { |
|
|
|
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
img { |
|
|
|
|
|
|
|
width: 85%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |