lsc há 1 ano atrás
pai
commit
a09aa06f50
1 ficheiros alterados com 18 adições e 1 exclusões
  1. 18 1
      js/Desktop/DeskTop.js

+ 18 - 1
js/Desktop/DeskTop.js

@@ -3453,7 +3453,7 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                     _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-teacher-table/dist/#/newAddCourse?cid=" + data + "&userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
-                        "id": "openCourseUpdate",
+                        "id": "openCourseNewUpdate",
                         "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
                         "onresize": function () { }
                     }, {
@@ -3478,6 +3478,23 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
                 break;
             }
+        case "openCourseNewUpdate":
+                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-teacher-table/dist/#/newAddCourse?cid=" + data + "&userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
+                        "id": "openCourseUpdate",
+                        "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                        "onresize": function () { }
+                    }, {
+                        closecallback: function () { }
+                    }, { "style": { "height": "36px" } }).form; //创建窗体
+                    break;
+                }
         case "inviteLoginSz":
             _formdiv = new U.UF.UI.form(
                 "随机码登录",