|
|
|
@ -95,6 +95,7 @@ export default { |
|
|
|
|
components: { pdf, breadcrumb }, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
systemIds: '', |
|
|
|
|
courseId: this.$route.query.courseId, |
|
|
|
|
curriculumName: this.$route.query.curriculumName, |
|
|
|
|
video: "http://liuwanr.oss-cn-shenzhen.aliyuncs.com/mp4/20200519/1589871025648.mp4", |
|
|
|
@ -148,6 +149,7 @@ export default { |
|
|
|
|
this.briefIntroduction = data.briefIntroduction; |
|
|
|
|
this.teachingObjectives = data.teachingObjectives; |
|
|
|
|
this.assessmentList = data.assessmentConfig; |
|
|
|
|
this.systemIds = data.systemIds |
|
|
|
|
}, |
|
|
|
|
async getChapter() { |
|
|
|
|
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); |
|
|
|
@ -277,7 +279,7 @@ export default { |
|
|
|
|
this.currentPage = 1; |
|
|
|
|
}, |
|
|
|
|
goSystem() { // 进入实验系统 |
|
|
|
|
let id = this.assessmentList[0].systemId; |
|
|
|
|
const id = this.systemIds |
|
|
|
|
let href = '' |
|
|
|
|
let token = util.local.get(Setting.tokenKey); |
|
|
|
|
let roleId = this.roleId == 4 ? 0 : 1; |
|
|
|
@ -303,6 +305,7 @@ export default { |
|
|
|
|
util.cookies.set("stopTime", "", -1); |
|
|
|
|
util.cookies.set("token", token); |
|
|
|
|
util.cookies.set("courseId", this.courseId); |
|
|
|
|
util.cookies.set("curriculumName", escape(this.curriculumName)); |
|
|
|
|
util.cookies.set("systemId", id); |
|
|
|
|
location.href = href; |
|
|
|
|
} |
|
|
|
|