|
|
@@ -3,13 +3,13 @@
|
|
|
<div class="container">
|
|
|
<div class="leftBar" style="height: 100%">
|
|
|
<sidebarL
|
|
|
- v-if="!courseId && !cocoNoteType"
|
|
|
+ v-if="!courseId && !barpage.includes(cocoNoteType)"
|
|
|
@getPer="getPer"
|
|
|
@AddAppJson="AddAppJson"
|
|
|
ref="sidebarLRef"
|
|
|
></sidebarL>
|
|
|
<sidebarL2
|
|
|
- v-if="cocoNoteType"
|
|
|
+ v-if="barpage.includes(cocoNoteType)"
|
|
|
@AddAppJson="AddAppJson"
|
|
|
:cocoNoteType="cocoNoteType"
|
|
|
ref="sidebarLRef"
|
|
|
@@ -81,24 +81,14 @@
|
|
|
allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
|
frameborder="no"
|
|
|
@load="handleLoad"
|
|
|
- style="border: 0; width: 100%; height: 100vh"
|
|
|
+ style="border: 0; width: 100%;"
|
|
|
+ :style="{height: cocoNoteType ? 'calc(100vh - 60px)' : '100vh'}"
|
|
|
:src="item.json"
|
|
|
:ref="item.toolId"
|
|
|
>
|
|
|
</iframe>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div v-if="cocoNoteType">
|
|
|
- <iframe
|
|
|
- allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
|
|
|
- frameborder="no"
|
|
|
- @load="handleLoad"
|
|
|
- style="border: 0; width: 100%;"
|
|
|
- :style="{height: cocoNoteType ? 'calc(100vh - 60px)' : '100vh'}"
|
|
|
- :src="clearifa"
|
|
|
- >
|
|
|
- </iframe>
|
|
|
- </div> -->
|
|
|
<!-- 荔园首页定制工具,不保存缓存 -->
|
|
|
<!-- style="height: calc(100vh - 60px)" -->
|
|
|
<div v-if="clearifa">
|
|
|
@@ -293,6 +283,12 @@ export default {
|
|
|
x: 80, // 屏幕宽度减去元素宽度
|
|
|
y: window.innerHeight - 180, // 屏幕高度减去元素高度
|
|
|
}, // 初始位置
|
|
|
+ barpage:[
|
|
|
+ 'coconote',
|
|
|
+ 'person',
|
|
|
+ 'learning',
|
|
|
+ 'classroomOb'
|
|
|
+ ], //type页面侧边栏
|
|
|
positionCopy:{},
|
|
|
AppJSon: [],
|
|
|
imgA: require("../assets/img/drgB.png"),
|
|
|
@@ -302,9 +298,7 @@ export default {
|
|
|
clearifa: "",
|
|
|
msgNum: 0,
|
|
|
cocoNoteType: this.$route.query.type,
|
|
|
- // cocoNoteType: '666',
|
|
|
courseId: this.$route.query.courseid,
|
|
|
- // courseId: 'da5aa5b7-a98c-11f0-84cf-005056924926',
|
|
|
// 荔园集团下的学校
|
|
|
mergedList: [
|
|
|
"3823a6a5-1b6e-11f0-a66a-005056924926",
|
|
|
@@ -383,10 +377,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async cocoNoteif(){
|
|
|
- this.openApp3({
|
|
|
+ // 随机码登录跳转
|
|
|
+ this.openApp2({
|
|
|
stateL: true,
|
|
|
toolId: "synergyCourse",
|
|
|
- clearL: true,
|
|
|
});
|
|
|
|
|
|
if (this.cocoNoteType && this.courseId) {
|
|
|
@@ -431,21 +425,18 @@ export default {
|
|
|
this.addOp3('1', "", { courseid: this.courseId , type: (this.roleUser.type == 1 ? '_teacher' : '_student') + "CocoNote_open" }, "success")
|
|
|
} else {
|
|
|
this.$message.error("没有加入分组请先加入分组");
|
|
|
- // this.goToCourse3(this.courseId)
|
|
|
- this.openApp4({
|
|
|
+ this.openApp2({
|
|
|
stateL: true,
|
|
|
toolId: "synergyCourse/add",
|
|
|
- clearL: true,
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.courseId , type: (this.roleUser.type == 1 ? '_teacher' : '_student') + "CocoNote_open" }, '没有加入分组请先加入分组')
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.error("没有加入分组请先加入分组");
|
|
|
// this.goToCourse3(this.courseId)
|
|
|
- this.openApp4({
|
|
|
+ this.openApp2({
|
|
|
stateL: true,
|
|
|
toolId: "synergyCourse/add",
|
|
|
- clearL: true,
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.courseId , type: (this.roleUser.type == 1 ? '_teacher' : '_student') + "CocoNote_open" }, '没有加入分组请先加入分组')
|
|
|
}
|
|
|
@@ -613,74 +604,57 @@ export default {
|
|
|
},
|
|
|
// 生成学生跳转到课程详情的链接
|
|
|
async openApp2(val) {
|
|
|
- let url = "";
|
|
|
+ let url = '';
|
|
|
let argumentList = ["courseId","userid", "oid", "org","cid","tType","screenType"];
|
|
|
- if (this.betaL == "beta") {
|
|
|
- url = `https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/${val.toolId}`;
|
|
|
- } else {
|
|
|
- url = `https://pbl.cocorobo.cn/pbl-student-table/dist/#/${val.toolId}`;
|
|
|
- }
|
|
|
-
|
|
|
- await store.commit("user/SET_AppSIGN", val.toolId);
|
|
|
-
|
|
|
- let _userinfo = this.roleUser, //登录用户信息
|
|
|
- {
|
|
|
- userid: _userid,
|
|
|
- organizeid: _oid,
|
|
|
- org: _org,
|
|
|
- classid: _classid,
|
|
|
- } = _userinfo; // 解构赋值获取用户信息
|
|
|
- let queryString = "";
|
|
|
- if (argumentList && argumentList.length) {
|
|
|
- const paramsMap = {
|
|
|
- courseId: this.courseId,
|
|
|
- userid: _userid,
|
|
|
- oid: _oid,
|
|
|
- org: _org,
|
|
|
- cid: _classid,
|
|
|
- tType: this.roleUser.type,
|
|
|
- screenType :2
|
|
|
- };
|
|
|
-
|
|
|
- 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: this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
- "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}`;
|
|
|
+ let teabeta = 'https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/'
|
|
|
+ let teacn = 'https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/'
|
|
|
+ let teahk = 'https://pbl.cocorobo.hk/pbl-teacher-table/dist/#/'
|
|
|
+ let teacom = 'https://pbl.cocorobo.com/pbl-teacher-table/dist/#/'
|
|
|
+
|
|
|
+ let stubeta = 'https://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/'
|
|
|
+ let stucn = 'https://pbl.cocorobo.cn/pbl-student-table/dist/#/'
|
|
|
+ let stuhk = 'https://pbl.cocorobo.hk/pbl-student-table/dist/#/'
|
|
|
+ let stucom = 'https://pbl.cocorobo.com/pbl-student-table/dist/#/'
|
|
|
+
|
|
|
+ let appbeta = 'https://beta.app.cocorobo.cn/#/'
|
|
|
+
|
|
|
+ let teaPage = ['synergyCourse','synergyCourse/add','topTalent','classroomObservation']
|
|
|
+ let stuPage = ['courseDetail']
|
|
|
+ let apppage = ['learning','learning/studentProjectList']
|
|
|
+
|
|
|
+
|
|
|
+ if (this.$region == "beta") {
|
|
|
+ if (stuPage.includes(val.toolId)) {
|
|
|
+ url =stubeta + val.toolId;
|
|
|
+ } else if(teaPage.includes(val.toolId)){
|
|
|
+ url =teabeta + val.toolId;
|
|
|
+ } else if (apppage.includes(val.toolId)) {
|
|
|
+ url = appbeta + val.toolId;
|
|
|
+ }
|
|
|
+ } else if (this.$region == "hk") {
|
|
|
+ if (stuPage.includes(val.toolId)) {
|
|
|
+ url = stuhk+ val.toolId;
|
|
|
+ } else if(teaPage.includes(val.toolId)){
|
|
|
+ url =teahk + val.toolId;
|
|
|
+ } else if (apppage.includes(val.toolId)) {
|
|
|
+ url = appbeta + val.toolId;
|
|
|
+ }
|
|
|
+ } else if (this.$region == "com") {
|
|
|
+ if (stuPage.includes(val.toolId)) {
|
|
|
+ url = stucom + val.toolId;
|
|
|
+ } else if(teaPage.includes(val.toolId)){
|
|
|
+ url =teacom + val.toolId;
|
|
|
+ } else if (apppage.includes(val.toolId)) {
|
|
|
+ url = appbeta + val.toolId;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (stuPage.includes(val.toolId)) {
|
|
|
+ url = stucn + val.toolId;
|
|
|
+ }else if(teaPage.includes(val.toolId)){
|
|
|
+ url =teacn + val.toolId;
|
|
|
+ } else if (apppage.includes(val.toolId)) {
|
|
|
+ url = appbeta + val.toolId;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
await store.commit("user/SET_AppSIGN", val.toolId);
|
|
|
@@ -691,76 +665,63 @@ export default {
|
|
|
organizeid: _oid,
|
|
|
org: _org,
|
|
|
role: _role,
|
|
|
+ classid: _classid,
|
|
|
} = _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 = "";
|
|
|
- let argumentList = ["userid", "oid", "org","role"];
|
|
|
- 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,
|
|
|
- ly :1
|
|
|
- };
|
|
|
+ let paramsMap = ''
|
|
|
+ if (val.toolId == 'courseDetail') {
|
|
|
+ paramsMap = {
|
|
|
+ courseId: this.courseId,
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ cid: _classid,
|
|
|
+ tType: this.roleUser.type,
|
|
|
+ screenType :2
|
|
|
+ };
|
|
|
+ }else if (val.toolId == 'synergyCourse') {
|
|
|
+ paramsMap = {
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ ly :1
|
|
|
+ };
|
|
|
+ }else if (val.toolId == 'synergyCourse/add') {
|
|
|
+ paramsMap = {
|
|
|
+ cid: this.courseId,
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ ly :1
|
|
|
+ };
|
|
|
+ }else if (val.toolId == 'topTalent') {
|
|
|
+ paramsMap = {
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ tType: this.roleUser.type,
|
|
|
+ };
|
|
|
+ }else if (val.toolId == 'learning') {
|
|
|
+ paramsMap = {
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ role: _role,
|
|
|
+ };
|
|
|
+ }else if (val.toolId == 'classroomObservation') {
|
|
|
+ paramsMap = {
|
|
|
+ userid: _userid,
|
|
|
+ oid: _oid,
|
|
|
+ org: _org,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ console.log('paramsMap',paramsMap);
|
|
|
+ console.log('val.toolId',val.toolId);
|
|
|
|
|
|
const canshu = argumentList
|
|
|
.filter((param) => paramsMap[param] !== undefined || param === "type")
|
|
|
@@ -774,85 +735,34 @@ export default {
|
|
|
? (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: 'coconote' + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
- "success"
|
|
|
- );
|
|
|
- },
|
|
|
- // coconotetype网址登录到页面直接跳转到协同建构,未加入分组后提示加入分组
|
|
|
- async openApp4(val) {
|
|
|
- let url = "";
|
|
|
- let argumentList = ["userid", "oid", "org","role","cid"];
|
|
|
- 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 = {
|
|
|
- cid: this.courseId,
|
|
|
- userid: _userid,
|
|
|
- oid: _oid,
|
|
|
- org: _org,
|
|
|
- role: _role,
|
|
|
- ly :1
|
|
|
- };
|
|
|
-
|
|
|
- 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("&")
|
|
|
- : ""; // 生成查询字符串
|
|
|
+ console.log('queryString',queryString);
|
|
|
+
|
|
|
+ let _url = ''
|
|
|
+ if (val.toolId == 'synergyCourse' || val.toolId == 'synergyCourse/add') {
|
|
|
+ _url = url + queryString + '&person=person';
|
|
|
+ }else if (val.toolId == 'classroomObservation') {
|
|
|
+ _url = url + queryString + '&showIntroduceType=1';
|
|
|
+ }else if (val.toolId == 'study' && this.roleUser.type == 2) {
|
|
|
+ _url = _url.replace(/([?&])classId=([^&]*)/, '$1cid=$2');
|
|
|
+ } else{
|
|
|
+ _url = url + queryString;
|
|
|
}
|
|
|
-
|
|
|
- let _url = url + queryString;
|
|
|
console.log("_url", _url);
|
|
|
|
|
|
let pl = {
|
|
|
json: _url,
|
|
|
stateL: true,
|
|
|
toolId: val.toolId,
|
|
|
- clearL: val.clearL,
|
|
|
+ // clearL: val.clearL,
|
|
|
};
|
|
|
this.AddAppJson(pl)
|
|
|
// this.$emit("cutUrl", pl);
|
|
|
- this.addOp3(
|
|
|
- "1",
|
|
|
- "",
|
|
|
- { type: this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
- "success"
|
|
|
- );
|
|
|
+ // this.addOp3(
|
|
|
+ // "1",
|
|
|
+ // "",
|
|
|
+ // { type: this.prefixL + val.toolId + (this.roleUser.type == 1 ? '_teacher' : '_student') + "stu_open" },
|
|
|
+ // "success"
|
|
|
+ // );
|
|
|
},
|
|
|
// 获取学校权限与组织权限,优先使用学校权限,其次使用组织权限
|
|
|
async getPer() {
|
|
|
@@ -918,7 +828,10 @@ export default {
|
|
|
|
|
|
console.log('this.courseId',this.courseId);
|
|
|
console.log('this.cocoNoteType',this.cocoNoteType);
|
|
|
-
|
|
|
+ // 防止乱输入type展示出侧边栏与学生不能使用type进入课堂观察
|
|
|
+ if (!this.barpage.includes(this.cocoNoteType) || (this.cocoNoteType == 'classroomOb' && this.roleUser.type == 2)) {
|
|
|
+ this.cocoNoteType = ''
|
|
|
+ }
|
|
|
|
|
|
if (
|
|
|
!this.roleUser.cclassid &&
|
|
|
@@ -936,19 +849,38 @@ export default {
|
|
|
this.cocoNoteif()
|
|
|
return
|
|
|
}else if (this.cocoNoteType === 'person') {
|
|
|
- // 随机码登录跳转
|
|
|
- this.opentopTalent({
|
|
|
+ this.openApp2({
|
|
|
stateL: true,
|
|
|
toolId: "topTalent",
|
|
|
- clearL: true,
|
|
|
});
|
|
|
return
|
|
|
- }else if (this.courseId) {
|
|
|
+ }else if (this.cocoNoteType === 'classroomOb') {
|
|
|
+ if (this.roleUser.type == 1) {
|
|
|
+ this.openApp2({
|
|
|
+ stateL: true,
|
|
|
+ toolId: "classroomObservation",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }else if (this.cocoNoteType === 'learning') {
|
|
|
+ if (this.roleUser.type == 1) {
|
|
|
+ this.openApp2({
|
|
|
+ stateL: true,
|
|
|
+ toolId: "learning",
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.openApp2({
|
|
|
+ stateL: true,
|
|
|
+ toolId: "learning/studentProjectList",
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ return
|
|
|
+ }else if (this.courseId && this.roleUser.type == 1) {
|
|
|
// 随机码登录跳转
|
|
|
this.openApp2({
|
|
|
stateL: true,
|
|
|
toolId: "courseDetail",
|
|
|
- clearL: true,
|
|
|
});
|
|
|
return
|
|
|
}
|