班级操作等

chengdu
yujialong 4 years ago
parent 32b68b557e
commit aef27ebccd
  1. 4
      src/components/page/Assessment.vue
  2. 4
      src/utils/core.js

@ -205,7 +205,7 @@ export default {
let list = this.listDataAll let list = this.listDataAll
let recordList = res.data.list let recordList = res.data.list
list.map(n => { list.map(n => {
let same = recordList.find(e => e.className == n.className) let same = recordList.find(e => e.className == n.className && e.experimentalName == n.experimentalName)
if(same){ if(same){
n.reportId = same.reportId n.reportId = same.reportId
} }
@ -236,7 +236,7 @@ export default {
}else if(row.status == 3){ }else if(row.status == 3){
return this.$message.warning('该实验已经结束') return this.$message.warning('该实验已经结束')
}else{ }else{
this.core.toSubSystem(row.className,row.id) this.core.toSubSystem(row.className,row.id,row.classId)
} }
}, },
show(row) { show(row) {

@ -159,8 +159,8 @@ function getCaption(obj){
return obj; return obj;
} }
function toSubSystem(className = '',id = ''){ function toSubSystem(className = '',id = '',classId = ''){
let href = `${config.subSystem}?auth=${btoa(store.state.token)}&userName=${store.state.userName}&class=${className}&id=${id}` let href = `${config.subSystem}?auth=${btoa(store.state.token)}&userName=${store.state.userName}&class=${className}&id=${id}&classId=${classId}`
location.href = href location.href = href
} }

Loading…
Cancel
Save