|
@@ -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") {
|
|
@@ -3456,6 +3458,23 @@ U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
break;
|
|
|
}
|
|
|
+ case "openCourseNewUpdate":
|
|
|
+ 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/#/newAddCourse?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 "inviteLoginSz":
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"随机码登录",
|
|
@@ -5375,7 +5394,7 @@ U.MD.D.I.openApplication = function (str, obj, info) {
|
|
|
break;
|
|
|
case "szdjgPython": //python编程
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
- "python编程",
|
|
|
+ "Python编程",
|
|
|
$$("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": "https://cloud.cocorobo.cn/course_resource/cocoblockly-x/python/index.html" }), {
|
|
|
"id": "szdjgPython",
|
|
|
"style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
|
|
@@ -5395,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;
|
|
|
}
|
|
|
|
|
|
|