lsc 2 éve
szülő
commit
a8c600153a
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      js/Desktop/DeskTop.js

+ 4 - 3
js/Desktop/DeskTop.js

@@ -479,7 +479,8 @@ U.MD.D.I.openInApplication = function(str, data) {
     var _userinfo = US.userInfo, //登录用户信息
         _userid = US.userInfo.userid, //登录用户id
         _oid = _userinfo.organizeid,
-        _type = US.userInfo.type;
+        _type = US.userInfo.type,
+        _classId = US.userInfo.classid;
     switch (str) {
         case "studyDetail":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
@@ -489,7 +490,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 }), {
+                    $$("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 }), {
                         "id": "studyDetail",
                         "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                         "onresize": function() {}
@@ -935,7 +936,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
 
                 _formdiv = new U.UF.UI.form(
                     "学生管理",
-                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid }), {
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId }), {
                         "id": "student",
                         "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
                         "onresize": function() {}