Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/pages/ass/list/index.vue
UI_2022-02-10
e 3 years ago
commit 19cb9be1d6
  1. 31
      src/pages/ass/list/index.vue
  2. 5
      src/pages/station/preview/index.vue

@ -329,7 +329,6 @@ export default {
this.listData[i].reportId = null
}
}
console.log(this.listData)
this.totals = res.total;
this.listData.forEach(i => {
i.show = false;
@ -399,7 +398,6 @@ export default {
this.curRow = row;
if (row.isEnableCode == 0) { // (0 1)
this.$post(`${this.api.enterExam}?assessmentId=${row.assessmentId}&classId=${row.classId}`).then(res => {
console.log(res)
this.curRow.curriculumId = res.info.systemId
this.projectId = res.projectId
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位纯数字邀请码");
this.$post(`${this.api.enterExam}?assessmentId=${this.item.assessmentId}&classId=${this.item.classId}&invitationCode=${this.invitationCode}`).then(res => {
util.successMsg("验证成功!");
console.log(res)
this.icVisible = false;
this.projectId = res.projectId
this.url = res.url
@ -441,18 +438,21 @@ export default {
this.invitationCode = "";
},
goSubSystem() {
let host = this.host;
util.cookies.set("assessmentId", this.curRow.id);
util.cookies.set("studentId", this.studentId);
util.cookies.set("userId", this.userId);
util.cookies.set("projectId", this.projectId);
util.cookies.set("startTime", this.curRow.startTime);
util.cookies.set("stopTime", this.curRow.stopTime);
let curriculumId = this.curRow.curriculumId;
let token = util.local.get(Setting.tokenKey);
let href = "";
let domainName = '';
console.log(curriculumId)
let host = this.host
let token = util.local.get(Setting.tokenKey)
const classId = this.classId
const classItem = this.classList.find(e => e.id == classId)
util.cookies.set("token", token)
util.cookies.set("assessmentId", this.assessmentId)
util.cookies.set("classId", classId)
util.cookies.set("className", classItem ? encodeURI(classItem.className) : '')
util.cookies.set("projectId", this.projectId)
util.cookies.set("courseId", this.cid)
util.cookies.set("startTime", this.curRow.startTime)
util.cookies.set("stopTime", this.curRow.stopTime)
let curriculumId = this.curRow.curriculumId
let href = ''
let domainName = ''
domainName = host.slice(0,host.length-6)
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}`;
}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}`;
}
// switch (curriculumId) {

@ -293,8 +293,7 @@ export default {
let userName = window.btoa(encodeURIComponent(this.userName));
if (id == 1) {
// href = `${host}pyTrials/#/`;
if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.125:8080/#/'
href = `${host}pyTrials/#/`;
} else if (id == 4) {
href = `${host}pyFinance/#/`;
} else if (id == 5) {
@ -326,6 +325,7 @@ export default {
window.open(`https://danbao.czcyedu.com/#/loginFromYyyf?userId=${this.userId}&userName=${userName}&userType=${roleId}&reqType=1&reqId=eb7d8355119d449184c548b07dc01ed9&caseId=1198241070647873538&authorization=87DIVy348Oxzj3ha&classId=1876&courserId=faaedd82adb9444285a5785e4a3dd4f9`);
}
// if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.125:8080/#/'
if (id != 21 && id != 22) {
util.cookies.set("userId", this.userId);
util.cookies.set("studentId", this.studentId);
@ -335,6 +335,7 @@ export default {
util.cookies.set("stopTime", "", -1);
util.cookies.set("token", token);
util.cookies.set("courseId", this.courseId);
util.cookies.set("systemId", id);
location.href = href;
}
}

Loading…
Cancel
Save