Browse Source

Merge branch 'beta'

lsc 5 months ago
parent
commit
402a7344c0
1 changed files with 26 additions and 6 deletions
  1. 26 6
      js/Desktop/DeskTop.js

+ 26 - 6
js/Desktop/DeskTop.js

@@ -626,6 +626,7 @@ U.MD.D.I.siesteacherDeskIcon = [
     { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
     { "Name": "教师管理", "Url": "testTeacherSies", "style": { "cssText": "background-image:url(/img/icon/testTeacher.png)" } },
     { "Name": "教师中心", "Url": "testStudentSies", "style": { "cssText": "background-image:url(/img/icon/testStudent.png)" } },
+    { "Name": "工作流中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
 ];
 
 //教科院实小教师桌面图标的全局变量
@@ -727,7 +728,7 @@ U.MD.D.I.hkteacherDeskIcon = [
     // { "Name": "AI Agent", "Url": "aiagent", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
     { "Name": "综合看板", "Url": "dataBoardNew", "style": { "cssText": "background-image:url(/img/icon/dataBoardNew.png)" } },
     { "Name": "AI助手+", "Url": "aigpt", "style": { "cssText": "background-image:url(/img/icon/aigpt.png)" } },
-    { "Name": "应用中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
+    { "Name": "工作流中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
 ];
 
 //hk
@@ -1004,7 +1005,7 @@ U.MD.D.I.szjkyTeacherDeskIcon = [
     // { "Name": "课堂观察", "Url": "classroomObservation", "style": { "cssText": "background-image:url(/img/icon/classroomObservation.png)" } },
     // { "Name": "学生PBL", "Url": "pblCourse", "style": { "cssText": "background-image:url(/img/icon/pblCourse.png)" } },
     { "Name": "知识建构", "Url": "aiKnowledge", "style": { "cssText": "background-image:url(/img/icon/aiKnowledge.png)" } },
-    { "Name": "应用中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
+    { "Name": "工作流中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
 ];
 
 //未来教育基地
@@ -1034,7 +1035,7 @@ U.MD.D.I.szjkyAdminDeskIcon = [
     // { "Name": "课堂观察", "Url": "classroomObservation", "style": { "cssText": "background-image:url(/img/icon/classroomObservation.png)" } },
     // { "Name": "学生PBL", "Url": "pblCourse", "style": { "cssText": "background-image:url(/img/icon/pblCourse.png)" } },
     { "Name": "知识建构", "Url": "aiKnowledge", "style": { "cssText": "background-image:url(/img/icon/aiKnowledge.png)" } },
-    { "Name": "应用中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
+    { "Name": "工作流中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
 ];
 
 //未来教育基地
@@ -2101,7 +2102,7 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
             { "Name": "学生PBL", "Url": "pblCourse", "style": { "cssText": "background-image:url(/img/icon/pblCourse.png)" } },
             { "Name": "知识建构", "Url": "aiKnowledge", "style": { "cssText": "background-image:url(/img/icon/aiKnowledge.png)" } },
             { "Name": "教师管理", "Url": "teacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
-            { "Name": "应用中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
+            { "Name": "工作流中心", "Url": "appStore", "style": { "cssText": "background-image:url(/img/icon/appStore.png)" } },
         )
     }
 
@@ -4805,6 +4806,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openInApplication("openCourseEUpdate", e.data.cid)
     }else if (e.data.tools && e.data.tools == "openCourseAiUpdate") {
         U.MD.D.I.openInApplication("openCourseAiUpdate", e.data.cid)
+    }else if (e.data.tools && e.data.tools == "openCourseAiUpdate2") {
+        U.MD.D.I.openInApplication("openCourseAiUpdate2", e.data.cid)
     }else if (e.data.tools && e.data.tools == "openNewCourseUpdate") {
         U.MD.D.I.openInApplication("openNewCourseUpdate", e.data.cid)
     }else if (e.data.tools && e.data.tools == "inviteLoginSz") {
@@ -5125,6 +5128,23 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
                 }, { "style": { "height": "36px" } }).form; //创建窗体
                 break;
             }
+        case "openCourseAiUpdate2":
+                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/#/addCourseEAi?cid=" + data + "&userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
+                        "id": "openCourseUpdate",
+                        "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
+                        "onresize": function () { }
+                    }, {
+                        closecallback: function () { }
+                    }, { "style": { "height": "36px" } }).form; //创建窗体
+                    break;
+                }
         case "openCourseNewUpdate":
                 if (!_userinfo || Object.keys(_userinfo).length === 0) {
                     setTimeout(() => {
@@ -7185,7 +7205,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
                 break;
         case "appStore":
                 _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": "//cloud.cocorobo.cn/aigpt/#/appCenter?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
                     "id": "pblCourse",
                     "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
@@ -7193,7 +7213,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/appStore.png)" }, "name": "应用中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/appStore.png)" }, "name": "工作流中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
                 break;
     }