|
|
@ -104,18 +104,26 @@ export default { |
|
|
|
token: util.local.get(Setting.tokenKey), |
|
|
|
token: util.local.get(Setting.tokenKey), |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
created() { |
|
|
|
|
|
|
|
this.getData(); |
|
|
|
this.classInfo = JSON.parse(this.$route.query.classInfo) |
|
|
|
this.classInfo = JSON.parse(this.$route.query.classInfo) |
|
|
|
for(var i=0;i<this.classInfo.length;i++){ |
|
|
|
for(var i=0;i<this.classInfo.length;i++){ |
|
|
|
let id = this.classInfo[i].id |
|
|
|
let id = this.classInfo[i].id |
|
|
|
this.classInfo[i].id = id.toString() |
|
|
|
this.classInfo[i].id = id.toString() |
|
|
|
} |
|
|
|
} |
|
|
|
this.activeName= this.classInfo[0].id |
|
|
|
const activeName2 = sessionStorage.getItem('activeName2') |
|
|
|
|
|
|
|
if(activeName2 && this.classInfo.some(item => item.id === activeName2)) { |
|
|
|
|
|
|
|
this.classId = activeName2 |
|
|
|
|
|
|
|
this.activeName = activeName2 |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.classId = this.classInfo[0].id; |
|
|
|
|
|
|
|
this.activeName = this.classInfo[0].id; |
|
|
|
|
|
|
|
} |
|
|
|
this.id = this.$route.query.id |
|
|
|
this.id = this.$route.query.id |
|
|
|
this.getData(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
handleClick(tab, event) { |
|
|
|
handleClick(tab, event) { |
|
|
|
|
|
|
|
sessionStorage.setItem('activeName2', tab.name) |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData() { |
|
|
@ -144,6 +152,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
show(row) { |
|
|
|
show(row) { |
|
|
|
|
|
|
|
// console.log(row) |
|
|
|
|
|
|
|
|
|
|
|
if (this.systemId == 2) { |
|
|
|
if (this.systemId == 2) { |
|
|
|
this.$router.push(`showexperimentOption?id=${row.reportId}&stuId=${row.userId}&studentName=${row.studentName}&class=${row.class}`); |
|
|
|
this.$router.push(`showexperimentOption?id=${row.reportId}&stuId=${row.userId}&studentName=${row.studentName}&class=${row.class}`); |
|
|
|
} else if (this.systemId == 3) { |
|
|
|
} else if (this.systemId == 3) { |
|
|
|