|
|
@@ -276,9 +276,9 @@ export default {
|
|
|
betaL: this.$region,
|
|
|
clearifa: "",
|
|
|
msgNum: 0,
|
|
|
- cocoNoteType: this.$route.query.type,
|
|
|
+ cocoNoteType: '',
|
|
|
// cocoNoteType: '666',
|
|
|
- courseId: this.$route.query.courseid,
|
|
|
+ courseId: '',
|
|
|
// courseId: 'da5aa5b7-a98c-11f0-84cf-005056924926',
|
|
|
// 荔园集团下的学校
|
|
|
mergedList: [
|
|
|
@@ -644,6 +644,66 @@ export default {
|
|
|
"success"
|
|
|
);
|
|
|
},
|
|
|
+ // 拔尖人才网址登录到页面直接跳转到拔尖人才
|
|
|
+ async opentopTalent(val) {
|
|
|
+ let url = "";
|
|
|
+ let argumentList = ["userid", "oid", "org","role","tType"];
|
|
|
+ if (this.betaL == "beta") {
|
|
|
+ url = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/${val.toolId}`;
|
|
|
+ } else {
|
|
|
+ url = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/${val.toolId}`;
|
|
|
+ }
|
|
|
+
|
|
|
+ await store.commit("user/SET_AppSIGN", val.toolId);
|
|
|
+
|
|
|
+ let _userinfo = this.roleUser, //登录用户信息
|
|
|
+ {
|
|
|
+ userid: _userid,
|
|
|
+ organizeid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ } = _userinfo; // 解构赋值获取用户信息
|
|
|
+ let queryString = "";
|
|
|
+ if (argumentList && argumentList.length) {
|
|
|
+ const paramsMap = {
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ tType: this.roleUser.type,
|
|
|
+ };
|
|
|
+
|
|
|
+ const canshu = argumentList
|
|
|
+ .filter((param) => paramsMap[param] !== undefined || param === "type")
|
|
|
+ .map((param) =>
|
|
|
+ param === "type"
|
|
|
+ ? `tType=${paramsMap["tType"]}`
|
|
|
+ : `${param}=${paramsMap[param]}`
|
|
|
+ );
|
|
|
+
|
|
|
+ queryString = canshu.length
|
|
|
+ ? (url.includes("?") ? "&" : "?") + canshu.join("&")
|
|
|
+ : ""; // 生成查询字符串
|
|
|
+ }
|
|
|
+
|
|
|
+ let _url = url + queryString;
|
|
|
+ console.log("_url", _url);
|
|
|
+
|
|
|
+ let pl = {
|
|
|
+ json: _url,
|
|
|
+ stateL: true,
|
|
|
+ toolId: val.toolId,
|
|
|
+ clearL: val.clearL,
|
|
|
+ };
|
|
|
+ this.AddAppJson(pl)
|
|
|
+ // this.$emit("cutUrl", pl);
|
|
|
+ this.addOp3(
|
|
|
+ "1",
|
|
|
+ "",
|
|
|
+ { type: 'person' + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
+ "success"
|
|
|
+ );
|
|
|
+ },
|
|
|
// coconotetype网址登录到页面直接跳转到协同建构
|
|
|
async openApp3(val) {
|
|
|
let url = "";
|
|
|
@@ -700,7 +760,7 @@ export default {
|
|
|
this.addOp3(
|
|
|
"1",
|
|
|
"",
|
|
|
- { type: this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
+ { type: 'coconote' + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
"success"
|
|
|
);
|
|
|
},
|
|
|
@@ -814,9 +874,16 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
console.log("重新获取数据");
|
|
|
- console.log('this.$route.query.courseId',this.$route.query.courseid);
|
|
|
- let pagetype = this.getUrlParam(window.parent.location.href, 'type');
|
|
|
- console.log('pagetype',pagetype);
|
|
|
+ // console.log('this.$route.query.courseId',this.$route.query.courseid);
|
|
|
+
|
|
|
+ this.cocoNoteType = this.getUrlParam(window.parent.location.href, 'type');
|
|
|
+ this.courseId = this.getUrlParam(window.parent.location.href, 'courseid');
|
|
|
+ // this.courseId = this.$route.query.courseid
|
|
|
+ // this.cocoNoteType = this.$route.query.type
|
|
|
+
|
|
|
+ console.log('this.courseId',this.courseId);
|
|
|
+ console.log('this.cocoNoteType',this.cocoNoteType);
|
|
|
+
|
|
|
|
|
|
if (
|
|
|
!this.roleUser.cclassid &&
|
|
|
@@ -830,9 +897,17 @@ export default {
|
|
|
// this.getMsg()
|
|
|
// 跨学科app跳转
|
|
|
|
|
|
- if(pagetype === 'coconote'){
|
|
|
+ if(this.cocoNoteType === 'coconote'){
|
|
|
this.cocoNoteif()
|
|
|
return
|
|
|
+ }else if (this.cocoNoteType === 'person') {
|
|
|
+ // 随机码登录跳转
|
|
|
+ this.opentopTalent({
|
|
|
+ stateL: true,
|
|
|
+ toolId: "topTalent",
|
|
|
+ clearL: true,
|
|
|
+ });
|
|
|
+ return
|
|
|
}else if (this.courseId) {
|
|
|
// 随机码登录跳转
|
|
|
this.openApp2({
|