lsc 1 year ago
parent
commit
a7f588eebb
2 changed files with 14 additions and 0 deletions
  1. BIN
      img/icon/source.png
  2. 14 0
      js/Desktop/DeskTop.js

BIN
img/icon/source.png


+ 14 - 0
js/Desktop/DeskTop.js

@@ -607,6 +607,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
             { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
             { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
             { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
+            { "Name": "教师资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
         )
         _easyDesktopIconInfo.push(
             { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
@@ -3232,6 +3233,19 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
 
+            break;
+        case "source": 
+            _formdiv = new U.UF.UI.form(
+                "教师资源",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org  + "&role=" + _role }), {
+                "id": "source",
+                "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+
             break;
     }