lsc 1 year ago
parent
commit
da8362066d
1 changed files with 20 additions and 0 deletions
  1. 20 0
      js/Desktop/DeskTop.js

+ 20 - 0
js/Desktop/DeskTop.js

@@ -2731,6 +2731,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         //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 == "3train") { //培训管理传入
+        U.MD.D.I.openInApplication("studyDetailTrain", 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") { //课程管理传入
@@ -3002,6 +3004,24 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             }
+        case "studyDetailTrain":
+                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;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailTrain?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
+                        "id": "studyDetailTrain",
+                        "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
+                        "onresize": function () { }
+                    }, {
+                        closecallback: function () { }
+                    }, { "style": { "height": "36px" } }).form; //创建窗体
+                    _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                    break;
+                }
         case "studyDetailS":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {