back_on_before_page

dev_2022-05-11
luoJunYong.123 3 years ago
parent fe1e2aff7e
commit 755b291309
  1. 16
      src/pages/achievement/ass/index.vue
  2. 2
      src/pages/achievement/teach/index.vue
  3. 3
      src/pages/assessment/list/index.vue
  4. 3
      src/pages/match/manage/index.vue
  5. 3
      src/router/index.js

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

@ -115,7 +115,7 @@ export default {
created() {
this.classList = JSON.parse(this.$route.query.classList);
const activeName = sessionStorage.getItem('activeName')
if(activeName) {
if(activeName && this.classList.some(item => item.id === activeName)) {
this.classId = activeName
this.activeName = activeName
}else {

@ -236,8 +236,9 @@ export default {
beginTimer() {
this.ticker = setInterval(() => {
if(this.sss == 0){
this.ticker = null;
clearInterval(this.ticker);
this.ticker = null;
}else{
for (let i = 0; i < this.listData.length; i++) {
const item = this.listData[i];

@ -50,7 +50,8 @@ export default {
});
},
beforeDestroy() {
// EventBus.$off()
// EventBus
EventBus.$off()
},
methods: {
goBack() {

@ -267,7 +267,8 @@ router.beforeEach(function(to, from, next) {
}
}
// 根据路由元信息设置文档标题
window.document.title = to.meta.title ? to.meta.title : "";
// window.document.title = to.meta.title ? to.meta.title : "";
window.document.title = "教师管理端"
next();
});
Loading…
Cancel
Save