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

+ 13 - 13
js/Desktop/DeskTop.js

@@ -400,7 +400,7 @@ U.MD.D.I.initDesktopIcons = function (el) {
         _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
         _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon;//腾讯学生
     var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5"];
-    var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d","383f207d-4ced-4eeb-a15a-7b0a2f3abe7b","150e3120-9195-11ed-b13d-005056b86db5"];
+    var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5"];
     //清楚桌面图标
     el.innerHTML = "";
     //循环创建桌面图标
@@ -438,7 +438,7 @@ U.MD.D.I.initDesktopIcons = function (el) {
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
             $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
         }
-    }   else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
+    } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
         for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
             _content = $$("div", {
                 className: "U_MD_D_KO",
@@ -506,7 +506,7 @@ U.MD.D.I.initDesktopIcons = function (el) {
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
             $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
         }
-    }else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
+    } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
         for (i = 0; i < _szulsDeskIcon.length; i++) {
             _content = $$("div", {
                 className: "U_MD_D_KO",
@@ -659,7 +659,7 @@ U.MD.D.I.initDesktopIcons = function (el) {
             $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
             $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
         }
-    }else {
+    } else {
         for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
             _content = $$("div", {
                 className: "U_MD_D_KO",
@@ -894,10 +894,10 @@ window.addEventListener('message', function (e) { // 监听 message 事件
     if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
         //3是展示全部阶段  2学生 1老师 4专家
-    }else if (e.data.screenType && e.data.screenType == "2s") { //项目管理传入
+    } else if (e.data.screenType && e.data.screenType == "2s") { //项目管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
         //3是展示全部阶段  2学生 1老师 4专家
-    }  else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
+    } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
         U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
     } else if (e.data.screenType && e.data.screenType == "3s") { //项目管理传入
         U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
@@ -953,7 +953,7 @@ window.addEventListener('message', function (e) { // 监听 message 事件
     } else if (e.data.allScreen && e.data.allScreen == "2s") {
         var _formel = document.getElementById("studyDetailS");
         U.UF.F.windowZooming(_formel);
-    }else if (e.data.allScreen && e.data.allScreen == "4s") {
+    } else if (e.data.allScreen && e.data.allScreen == "4s") {
         var _formel = document.getElementById("studyDetailS");
         U.UF.F.topWindow(_formel);
     } else if (e.data.tools && e.data.tools == "1") {
@@ -2388,7 +2388,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             break;
         case "studentCourse": //学生项目 学生
             _formdiv = new U.UF.UI.form(
-                "学生项目",
+                _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
                 "id": "studentCourse",
                 "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
@@ -2400,7 +2400,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             break;
         case "studentCourseS": //学生项目 老师
             _formdiv = new U.UF.UI.form(
-                "学生项目",
+                _org == "150e3120-9195-11ed-b13d-005056b86db5" ? "师生项目" : "学生项目",
                 $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                 "id": "studentCourseS",
                 "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
@@ -2445,7 +2445,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/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
-            break;  
+            break;
         case "tcData": //腾讯我的资料
             _formdiv = new U.UF.UI.form(
                 "我的资料",
@@ -2457,7 +2457,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/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
-            break;      
+            break;
         case "tcNotice": //腾讯消息通知
             _formdiv = new U.UF.UI.form(
                 "消息通知",
@@ -2469,8 +2469,8 @@ 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/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
-            break;        
-            
+            break;
+
     }