|
@@ -474,8 +474,10 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
|
|
|
window.addEventListener('message', function(e) { // 监听 message 事件
|
|
|
// alert(e.data.type);
|
|
|
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.openInApplication("studyDetail", e.data.cid, e.data.screenType, 3)
|
|
|
+ } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
|
|
|
+ U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
|
|
|
+ } 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");
|
|
@@ -568,7 +570,7 @@ U.MD.D.I.selectUser = function() {
|
|
|
}
|
|
|
}, [], { "type": "GET", "withCredentials": true });
|
|
|
}
|
|
|
-U.MD.D.I.openInApplication = function(str, data, screenType) {
|
|
|
+U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
|
|
|
var _userinfo = US.userInfo, //登录用户信息
|
|
|
_userid = US.userInfo.userid, //登录用户id
|
|
|
_oid = _userinfo.organizeid,
|
|
@@ -583,7 +585,7 @@ U.MD.D.I.openInApplication = function(str, data, screenType) {
|
|
|
} 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=" + 3 + "&cid=" + _classId + "&screenType=" + screenType }), {
|
|
|
+ $$("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=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
|
|
|
"id": "studyDetail",
|
|
|
"style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
|
|
|
"onresize": function() {}
|