Browse Source

体系设置

zengyicheng 2 years ago
parent
commit
1d0fbbd4b4
3 changed files with 41 additions and 10 deletions
  1. BIN
      img/icon/courseDesign.png
  2. BIN
      img/icon/sys.png
  3. 41 10
      js/Desktop/DeskTop.js

BIN
img/icon/courseDesign.png


BIN
img/icon/sys.png


+ 41 - 10
js/Desktop/DeskTop.js

@@ -13,7 +13,7 @@ U.MD.D.I.teacherDeskIcon = [
     { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
     { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
     { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
-    { "Name": "评价管理", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
+    { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
     { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
     { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
     { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
@@ -25,7 +25,8 @@ U.MD.D.I.teacherDeskIcon = [
     { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
     { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
     { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
-    { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } }
+    { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
+    { "Name": "体系设置", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/sys.png)" } }
 ];
 
 U.MD.D.I.studentDeskIcon = [
@@ -47,7 +48,7 @@ U.MD.D.I.studentDeskIcon = [
 U.MD.D.I.schoolDeskIcon = [
     { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
     { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
-    { "Name": "评价管理", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
+    { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
     { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
     { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
     { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
@@ -56,6 +57,7 @@ U.MD.D.I.schoolDeskIcon = [
     { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
     { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
     { "Name": "训练服务器", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
+    { "Name": "体系设置", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/sys.png)" } }
 ];
 
 //#region 桌面初始化a
@@ -393,9 +395,12 @@ U.MD.D.isOverlap = function(el, childs, postionarray) {
 window.addEventListener('message', function(e) { // 监听 message 事件
     // alert(e.data.type);
     if (e.data.type && e.data.type == "1") { //项目管理传入
-        U.MD.D.I.openInApplication("study", e.data.cid)
+        U.MD.D.I.openInApplication("studyDetail", e.data.cid)
     } else if (e.data.close && e.data.close == "1") { //更新用户信息
         U.MD.D.I.selectUser();
+    } else if (e.data.allScreen && e.data.allScreen == "1") {
+        var _formel = document.getElementById("study") || document.getElementById("studyDetail");
+        U.UF.F.windowZooming(_formel);
     } else if (e.data.tools && e.data.tools == "1") {
         U.MD.D.I.openApplication("whiteboard")
     } else if (e.data.tools && e.data.tools == "2") {
@@ -430,7 +435,7 @@ U.MD.D.I.openInApplication = function(str, data) {
         _userid = US.userInfo.userid, //登录用户id
         _oid = _userinfo.organizeid;
     switch (str) {
-        case "study":
+        case "studyDetail":
             if (!_userinfo || Object.keys(_userinfo).length === 0) {
                 setTimeout(() => {
                     U.MD.U.L.login();
@@ -439,7 +444,7 @@ U.MD.D.I.openInApplication = function(str, data) {
                 _formdiv = new U.UF.UI.form(
                     "项目详情",
                     $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&courseId=" + data }), {
-                        "id": "study",
+                        "id": "studyDetail",
                         "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
                         "onresize": function() {}
                     }, {
@@ -669,7 +674,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             case "evaluate":
 
                 _formdiv = new U.UF.UI.form(
-                    "评价管理",
+                    "学生评价",
                     $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
                         "id": "evaluate",
                         "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
@@ -677,7 +682,20 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                     }, {
                         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); } }
+                _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;
+            case "sys":
+
+                _formdiv = new U.UF.UI.form(
+                    "体系设置",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
+                        "id": "sys",
+                        "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/sys.png)" }, "name": "体系设置", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
             case "class":
 
@@ -878,7 +896,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
             case "evaluate":
 
                 _formdiv = new U.UF.UI.form(
-                    "评价管理",
+                    "学生评价",
                     $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid }), {
                         "id": "evaluate",
                         "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
@@ -886,7 +904,7 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                     }, {
                         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); } }
+                _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;
             case "notice":
 
@@ -1013,6 +1031,19 @@ U.MD.D.I.openApplication = function(str, obj, info) {
                     }, { "style": { "height": "36px" } }).form; //创建窗体
                 _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "训练服务器", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
+            case "sys":
+
+                _formdiv = new U.UF.UI.form(
+                    "体系设置",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid }), {
+                        "id": "sys",
+                        "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/sys.png)" }, "name": "体系设置", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
         }
     }