|
|
@ -291,21 +291,6 @@ export default { |
|
|
|
this.classId = classId |
|
|
|
this.classId = classId |
|
|
|
} |
|
|
|
} |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
// if(this.getQueryVariable('projectId')) { |
|
|
|
|
|
|
|
// let params = { |
|
|
|
|
|
|
|
// "systemId":sessionStorage.getItem('systemId'), |
|
|
|
|
|
|
|
// "cId":sessionStorage.getItem('cid'), |
|
|
|
|
|
|
|
// "permissions":0, |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// getProjectBySystemId(params).then((data)=>{ |
|
|
|
|
|
|
|
// if(data.status == 200){ |
|
|
|
|
|
|
|
// //获取当前时间 |
|
|
|
|
|
|
|
// this.topicList = data.data.projects |
|
|
|
|
|
|
|
// this.selectProjects({projectId: this.topicList[0].projectId}) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// }else { |
|
|
|
|
|
|
|
if(tokens || token){ |
|
|
|
if(tokens || token){ |
|
|
|
this.projectPermissions = this.projectId ? 1 : 0 |
|
|
|
this.projectPermissions = this.projectId ? 1 : 0 |
|
|
|
this.assessmentId && this.projectId && this.checkVer() |
|
|
|
this.assessmentId && this.projectId && this.checkVer() |
|
|
@ -319,7 +304,6 @@ export default { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getQueryVariable(name) { |
|
|
|
getQueryVariable(name) { |
|
|
|