|
|
@ -329,7 +329,6 @@ export default { |
|
|
|
this.listData[i].reportId = null |
|
|
|
this.listData[i].reportId = null |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.listData) |
|
|
|
|
|
|
|
this.totals = res.total; |
|
|
|
this.totals = res.total; |
|
|
|
this.listData.forEach(i => { |
|
|
|
this.listData.forEach(i => { |
|
|
|
i.show = false; |
|
|
|
i.show = false; |
|
|
@ -399,7 +398,6 @@ export default { |
|
|
|
this.curRow = row; |
|
|
|
this.curRow = row; |
|
|
|
if (row.isEnableCode == 0) { // 是否启用邀请码(0、未启用 1、启用) |
|
|
|
if (row.isEnableCode == 0) { // 是否启用邀请码(0、未启用 1、启用) |
|
|
|
this.$post(`${this.api.enterExam}?assessmentId=${row.assessmentId}&classId=${row.classId}`).then(res => { |
|
|
|
this.$post(`${this.api.enterExam}?assessmentId=${row.assessmentId}&classId=${row.classId}`).then(res => { |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
this.curRow.curriculumId = res.info.systemId |
|
|
|
this.curRow.curriculumId = res.info.systemId |
|
|
|
this.projectId = res.projectId |
|
|
|
this.projectId = res.projectId |
|
|
|
this.url = res.url |
|
|
|
this.url = res.url |
|
|
@ -425,7 +423,6 @@ export default { |
|
|
|
if (!this.invitationCode || String(this.invitationCode).length < 6 || isNaN(this.invitationCode)) return util.warningMsg("请输入6位纯数字邀请码"); |
|
|
|
if (!this.invitationCode || String(this.invitationCode).length < 6 || isNaN(this.invitationCode)) return util.warningMsg("请输入6位纯数字邀请码"); |
|
|
|
this.$post(`${this.api.enterExam}?assessmentId=${this.item.assessmentId}&classId=${this.item.classId}&invitationCode=${this.invitationCode}`).then(res => { |
|
|
|
this.$post(`${this.api.enterExam}?assessmentId=${this.item.assessmentId}&classId=${this.item.classId}&invitationCode=${this.invitationCode}`).then(res => { |
|
|
|
util.successMsg("验证成功!"); |
|
|
|
util.successMsg("验证成功!"); |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
this.icVisible = false; |
|
|
|
this.icVisible = false; |
|
|
|
this.projectId = res.projectId |
|
|
|
this.projectId = res.projectId |
|
|
|
this.url = res.url |
|
|
|
this.url = res.url |
|
|
@ -441,18 +438,21 @@ export default { |
|
|
|
this.invitationCode = ""; |
|
|
|
this.invitationCode = ""; |
|
|
|
}, |
|
|
|
}, |
|
|
|
goSubSystem() { |
|
|
|
goSubSystem() { |
|
|
|
let host = this.host; |
|
|
|
let host = this.host |
|
|
|
util.cookies.set("assessmentId", this.curRow.id); |
|
|
|
let token = util.local.get(Setting.tokenKey) |
|
|
|
util.cookies.set("studentId", this.studentId); |
|
|
|
const classId = this.classId |
|
|
|
util.cookies.set("userId", this.userId); |
|
|
|
const classItem = this.classList.find(e => e.id == classId) |
|
|
|
util.cookies.set("projectId", this.projectId); |
|
|
|
util.cookies.set("token", token) |
|
|
|
util.cookies.set("startTime", this.curRow.startTime); |
|
|
|
util.cookies.set("assessmentId", this.assessmentId) |
|
|
|
util.cookies.set("stopTime", this.curRow.stopTime); |
|
|
|
util.cookies.set("classId", classId) |
|
|
|
let curriculumId = this.curRow.curriculumId; |
|
|
|
util.cookies.set("className", classItem ? encodeURI(classItem.className) : '') |
|
|
|
let token = util.local.get(Setting.tokenKey); |
|
|
|
util.cookies.set("projectId", this.projectId) |
|
|
|
let href = ""; |
|
|
|
util.cookies.set("courseId", this.cid) |
|
|
|
let domainName = ''; |
|
|
|
util.cookies.set("startTime", this.curRow.startTime) |
|
|
|
console.log(curriculumId) |
|
|
|
util.cookies.set("stopTime", this.curRow.stopTime) |
|
|
|
|
|
|
|
let curriculumId = this.curRow.curriculumId |
|
|
|
|
|
|
|
let href = '' |
|
|
|
|
|
|
|
let domainName = '' |
|
|
|
domainName = host.slice(0,host.length-6) |
|
|
|
domainName = host.slice(0,host.length-6) |
|
|
|
if (curriculumId == 11){ |
|
|
|
if (curriculumId == 11){ |
|
|
|
//线上 |
|
|
|
//线上 |
|
|
@ -460,6 +460,7 @@ export default { |
|
|
|
//测试与本地 |
|
|
|
//测试与本地 |
|
|
|
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; |
|
|
|
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
// href = 'http://192.168.31.125:8080/#/' |
|
|
|
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; |
|
|
|
href = `${domainName}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; |
|
|
|
} |
|
|
|
} |
|
|
|
// switch (curriculumId) { |
|
|
|
// switch (curriculumId) { |
|
|
|