lsc 1 年之前
父節點
當前提交
d422d287a0
共有 2 個文件被更改,包括 15 次插入1 次删除
  1. 二進制
      img/icon/aigptCourse.png
  2. 15 1
      js/Desktop/DeskTop.js

二進制
img/icon/aigptCourse.png


+ 15 - 1
js/Desktop/DeskTop.js

@@ -3123,6 +3123,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openInApplication("hanUrl", '', '', '')
     } else if (e.data.tools && e.data.tools == "46") {
         U.MD.D.I.openApplication("project")
+    } else if (e.data.tools && e.data.tools == "71") {
+        U.MD.D.I.openApplication("aigptCourse")
     } else if (e.data.tools && e.data.tools == "1s") {
         U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
     } else if (e.data.tools && e.data.tools == "3s") {
@@ -5412,8 +5414,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/Record.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Record.png)" }, "name": "观察记录", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
             break;
+        case "aigptCourse":
+                _formdiv = new U.UF.UI.form(
+                    "AI智能体",
+                    $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aigpt/?userid" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role + '#/AgentVue' }), {
+                    "id": "aigptCourse",
+                    "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/aigptCourse.png)" }, "name": "AI智能体", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+                break;
     }