|
|
@ -158,7 +158,7 @@ function getCaption(obj){ |
|
|
|
return obj; |
|
|
|
return obj; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function toSubSystem(className = '',id = '',classId = ''){ |
|
|
|
function toSubSystem(className = '',id = '',classId = '',pattern = ''){ |
|
|
|
sessionStorage.setItem("token",store.state.token);//token
|
|
|
|
sessionStorage.setItem("token",store.state.token);//token
|
|
|
|
sessionStorage.setItem("userName",store.state.userName);//用户名
|
|
|
|
sessionStorage.setItem("userName",store.state.userName);//用户名
|
|
|
|
sessionStorage.setItem("class",className);//班级名
|
|
|
|
sessionStorage.setItem("class",className);//班级名
|
|
|
@ -185,9 +185,12 @@ function toSubSystem(className = '',id = '',classId = ''){ |
|
|
|
let projectId = res.Info.projectId |
|
|
|
let projectId = res.Info.projectId |
|
|
|
let pattern = res.Info.pattern |
|
|
|
let pattern = res.Info.pattern |
|
|
|
sessionStorage.setItem("id",projectId) |
|
|
|
sessionStorage.setItem("id",projectId) |
|
|
|
|
|
|
|
location.href = pattern === 0 ? config.subSystem1 : config.subSystem2 |
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
location.href = config.subSystem1 |
|
|
|
} |
|
|
|
} |
|
|
|
location.href = config.subSystem |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function encodeString(str) { |
|
|
|
function encodeString(str) { |
|
|
|