|
@@ -1468,6 +1468,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
U.MD.D.I.openApplication("lineSearch")
|
|
|
} else if (e.data.tools && e.data.tools == "60") {
|
|
|
U.MD.D.I.openApplication("deepLearning")
|
|
|
+ } else if (e.data.tools && e.data.tools == "61") {
|
|
|
+ U.MD.D.I.openApplication("allHistory")
|
|
|
} else if (e.data.tools && e.data.tools == "28") {
|
|
|
U.MD.D.I.openApplication("translation")
|
|
|
} else if (e.data.tools && e.data.tools == "37") {
|
|
@@ -2657,6 +2659,18 @@ U.MD.D.I.openApplication = function (str, obj, info) {
|
|
|
}, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
_taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
break;
|
|
|
+ case "allHistory": //深度学习
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "全历史",
|
|
|
+ $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
|
|
|
+ "id": "allHistory",
|
|
|
+ "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, { "style": { "height": "36px" } }).form; //创建窗体
|
|
|
+ _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
|
|
|
+ break;
|
|
|
case "chatPDF": //ai编程
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"chatPDF",
|
|
@@ -3715,12 +3729,16 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
|
|
|
U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
|
|
|
})
|
|
|
} else if (str == 'whiteboard') {
|
|
|
- _iframe.onload = () => {
|
|
|
- _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
- _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
- _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ try {
|
|
|
+ _iframe.onload = () => {
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
+ _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
|
|
|
+ };
|
|
|
+ } catch (error) {
|
|
|
U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
|
|
|
- };
|
|
|
+ }
|
|
|
} else {
|
|
|
_iframe.onload = () => {
|
|
|
_iframe.contentWindow.document.body.appendChild(script1);
|