|
|
@ -110,6 +110,7 @@ export default { |
|
|
|
briefIntroduction: "", // 课程简介 |
|
|
|
briefIntroduction: "", // 课程简介 |
|
|
|
teachingObjectives: "", // 课程目标 |
|
|
|
teachingObjectives: "", // 课程目标 |
|
|
|
assessmentList: "", // 考核列表 |
|
|
|
assessmentList: "", // 考核列表 |
|
|
|
|
|
|
|
systemIds: '', |
|
|
|
curLink: "", // 当前选中 |
|
|
|
curLink: "", // 当前选中 |
|
|
|
playAuth: "", |
|
|
|
playAuth: "", |
|
|
|
player: null, |
|
|
|
player: null, |
|
|
@ -154,6 +155,7 @@ export default { |
|
|
|
this.briefIntroduction = data.briefIntroduction; |
|
|
|
this.briefIntroduction = data.briefIntroduction; |
|
|
|
this.teachingObjectives = data.teachingObjectives; |
|
|
|
this.teachingObjectives = data.teachingObjectives; |
|
|
|
this.assessmentList = data.assessmentConfig; |
|
|
|
this.assessmentList = data.assessmentConfig; |
|
|
|
|
|
|
|
this.systemIds = data.systemIds |
|
|
|
}, |
|
|
|
}, |
|
|
|
async getChapter() { |
|
|
|
async getChapter() { |
|
|
|
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); |
|
|
|
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); |
|
|
@ -288,7 +290,7 @@ export default { |
|
|
|
this.currentPage = 1; |
|
|
|
this.currentPage = 1; |
|
|
|
}, |
|
|
|
}, |
|
|
|
goSystem() { // 进入实验系统 |
|
|
|
goSystem() { // 进入实验系统 |
|
|
|
let id = this.assessmentList[0].systemId; |
|
|
|
const id = this.systemIds |
|
|
|
let href = '' |
|
|
|
let href = '' |
|
|
|
let token = util.local.get(Setting.tokenKey); |
|
|
|
let token = util.local.get(Setting.tokenKey); |
|
|
|
let roleId = this.roleId == 4 ? 0 : 1; |
|
|
|
let roleId = this.roleId == 4 ? 0 : 1; |
|
|
@ -313,6 +315,7 @@ export default { |
|
|
|
util.cookies.set("stopTime", "", -1); |
|
|
|
util.cookies.set("stopTime", "", -1); |
|
|
|
util.cookies.set("token", token); |
|
|
|
util.cookies.set("token", token); |
|
|
|
util.cookies.set("courseId", this.courseId); |
|
|
|
util.cookies.set("courseId", this.courseId); |
|
|
|
|
|
|
|
util.cookies.set("curriculumName", escape(this.curriculumName)); |
|
|
|
util.cookies.set("systemId", id); |
|
|
|
util.cookies.set("systemId", id); |
|
|
|
location.href = href; |
|
|
|
location.href = href; |
|
|
|
} |
|
|
|
} |
|
|
|