Explorar o código

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/CocoRoboDesktop into beta

root %!s(int64=2) %!d(string=hai) anos
pai
achega
a81fde5d23
Modificáronse 1 ficheiros con 27 adicións e 1 borrados
  1. 27 1
      js/Desktop/DeskTop.js

+ 27 - 1
js/Desktop/DeskTop.js

@@ -1241,12 +1241,17 @@ window.addEventListener('message', function (e) { // 监听 message 事件
     } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
         //3是展示全部阶段  2学生 1老师 4专家
-    } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
+    } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
+        U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
+        //3是展示全部阶段  2学生 1老师 4专家
+    }  else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
+    } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
+        U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
         U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
     } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
@@ -1304,6 +1309,9 @@ window.addEventListener('message', function (e) { // 监听 message 事件
     } else if (e.data.allScreen && e.data.allScreen == "2s") {
         var _formel = document.getElementById("studyDetailS");
         U.UF.F.windowZooming(_formel);
+    } else if (e.data.allScreen && e.data.allScreen == "2studio") {
+        var _formel = document.getElementById("studyDetailStudio");
+        U.UF.F.windowZooming(_formel);
     } else if (e.data.allScreen && e.data.allScreen == "2NT") {
         var _formel = document.getElementById("studyDetailNT");
         U.UF.F.windowZooming(_formel);
@@ -1472,6 +1480,24 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "studyDetailStudio":
+            if (!_userinfo || Object.keys(_userinfo).length === 0) {
+                setTimeout(() => {
+                    U.MD.U.L.login();
+                }, 2000);
+            } else {
+                _formdiv = new U.UF.UI.form(
+                    "工作详情",
+                    $$("iframe", { "allow": "camera *; microphone *;display-capture", "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/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
+                    "id": "studyDetailStudio",
+                    "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
+                    "onresize": function () { }
+                }, {
+                    closecallback: function () { }
+                }, { "style": { "height": "36px" } }).form; //创建窗体
+                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
+            }
         case "studyDetailS5":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {