lsc 1 年之前
父節點
當前提交
8c99e348f9
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      js/Desktop/DeskTop.js

+ 23 - 0
js/Desktop/DeskTop.js

@@ -2464,6 +2464,11 @@ window.addEventListener('message', function(e) { // 监听 message 事件
             typed:e.data.typed || '',
         }
         U.MD.D.I.openInApplication("index", _data)
+    } else if (e.data.tools && e.data.tools == "openDataClass") {
+        let _data = {
+            classid:e.data.classid || '',
+        }
+        U.MD.D.I.openInApplication("dataClass", _data)
     }
 
 });
@@ -2632,6 +2637,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 "dataClass":
+                    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/#/worksReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&cid=" + _classId + "&checkid="+  data.classid }), {
+                                "id": "dataClass",
+                                "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                                "onresize": function() {}
+                            }, {
+                                closecallback: function() {}
+                            }, { "style": { "height": "36px" } }).form; //创建窗体
+                        _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "数据报告", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                        break;
+                    }
     }
 
 }