|
@@ -436,12 +436,18 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
|
|
|
*/
|
|
|
window.addEventListener('message', function(e) { // 监听 message 事件
|
|
|
// alert(e.data.type);
|
|
|
- if (e.data.type && e.data.type == "1") { //项目管理传入
|
|
|
- U.MD.D.I.openInApplication("studyDetail", e.data.cid)
|
|
|
+ if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
|
|
|
+ U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType)
|
|
|
} else if (e.data.close && e.data.close == "1") { //更新用户信息
|
|
|
U.MD.D.I.selectUser();
|
|
|
} else if (e.data.allScreen && e.data.allScreen == "1") {
|
|
|
- var _formel = document.getElementById("study") || document.getElementById("studyDetail") || document.getElementById("studentStudy");
|
|
|
+ var _formel = document.getElementById("study");
|
|
|
+ U.UF.F.windowZooming(_formel);
|
|
|
+ } else if (e.data.allScreen && e.data.allScreen == "2") {
|
|
|
+ var _formel = document.getElementById("studyDetail");
|
|
|
+ U.UF.F.windowZooming(_formel);
|
|
|
+ } else if (e.data.allScreen && e.data.allScreen == "3") {
|
|
|
+ var _formel = document.getElementById("studentStudy");
|
|
|
U.UF.F.windowZooming(_formel);
|
|
|
} else if (e.data.tools && e.data.tools == "1") {
|
|
|
// U.MD.D.I.openApplication("whiteboard")
|
|
@@ -486,7 +492,7 @@ U.MD.D.I.selectUser = function() {
|
|
|
}
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|
|
|
-U.MD.D.I.openInApplication = function(str, data) {
|
|
|
+U.MD.D.I.openInApplication = function(str, data, screenType) {
|
|
|
var _userinfo = US.userInfo, //登录用户信息
|
|
|
_userid = US.userInfo.userid, //登录用户id
|
|
|
_oid = _userinfo.organizeid,
|
|
@@ -501,7 +507,7 @@ U.MD.D.I.openInApplication = function(str, data) {
|
|
|
} else {
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"项目详情",
|
|
|
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data + "&tType=" + _type + "&cid=" + _classId }), {
|
|
|
+ $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + screenType }), {
|
|
|
"id": "studyDetail",
|
|
|
"style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
@@ -522,7 +528,10 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
_userid = obj.userid || US.userInfo.userid, //登录用户id
|
|
|
_oid = obj.organizeid || _userinfo.organizeid,
|
|
|
_type = US.userInfo.type,
|
|
|
- _classId = US.userInfo.classid;
|
|
|
+ _classId = US.userInfo.classid,
|
|
|
+ _TscreenType = 1
|
|
|
+ _screenType = 2,
|
|
|
+ _SscreenType = 3;
|
|
|
if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
|
|
|
switch (str) {
|
|
|
|
|
@@ -672,7 +681,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
case "studentStudy":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"学习中心",
|
|
|
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
+ $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
"id": "studentStudy",
|
|
|
"style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
@@ -886,7 +895,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
case "studentStudy":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"学习中心",
|
|
|
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
+ $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
"id": "studentStudy",
|
|
|
"style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
@@ -1149,7 +1158,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"学习中心",
|
|
|
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
+ $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
"id": "study",
|
|
|
"style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
@@ -1333,7 +1342,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"学习中心",
|
|
|
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
+ $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
|
|
|
"id": "study",
|
|
|
"style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|
|
@@ -1461,7 +1470,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
|
|
|
closecallback: function() {}
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/program.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
- break;//
|
|
|
+ break; //
|
|
|
case "MindMap": //MindMap
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"MindMap",
|