lsc 5 hónapja
szülő
commit
b122ed04ae
1 módosított fájl, 27 hozzáadás és 1 törlés
  1. 27 1
      js/Desktop/DeskTop.js

+ 27 - 1
js/Desktop/DeskTop.js

@@ -21,7 +21,7 @@ U.MD.D.I.teacherDeskIcon = [
     // { "Name": "AI Chat", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
     { "Name": "CocoNote", "Url": "futureClass", "style": { "cssText": "background-image:url(/img/icon/futureClass.png)" } },
     { "Name": "AI Chat+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
-    { "Name": "Teacher Management", "Url": "testTeacher", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
+    { "Name": "Teacher Management", "Url": "testTeacherSies", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
     { "Name": "Teacher Center", "Url": "testStudentSies", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
 ];
 
@@ -4912,6 +4912,32 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/testStudent.png)" }, "name": "评测管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
 
+            break;
+        case "testTeacherSies":
+            _formdiv = new U.UF.UI.form(
+                "Teacher Management",
+                $$("iframe", {  "allow": "camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read", "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/#/test?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
+                "id": "testTeacherSies",
+                "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/testTeacher.png)" }, "name": "Teacher Management", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+
+            break;
+        case "testStudentSies":
+            _formdiv = new U.UF.UI.form(
+                "Teacher Center",
+                $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/testPerson?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId + "&role=" + _role }), {
+                "id": "testStudentSies",
+                "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/testStudent.png)" }, "name": "Teacher Center", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+
             break;
     }