|
@@ -324,6 +324,32 @@ U.MD.D.I.tcOrganizerDeskIcon = [
|
|
|
{ "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
|
];
|
|
|
|
|
|
+U.MD.D.I.szscStudentDeskIcon = [
|
|
|
+ { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
+ { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
+U.MD.D.I.szscTeacherDeskIcon = [
|
|
|
+ // { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
|
|
|
+ { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
|
|
|
+ { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
+ { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
|
|
|
+ { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
|
|
|
+ { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
+U.MD.D.I.szscOrganizerDeskIcon = [
|
|
|
+ { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
|
|
|
+ { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
|
|
|
+ { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
+ // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
|
|
|
+ { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
|
|
|
+ { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
//#region 桌面初始化a
|
|
|
|
|
|
/**
|
|
@@ -405,9 +431,12 @@ U.MD.D.I.initDesktopIcons = function (el) {
|
|
|
_GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
|
|
|
_tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
|
|
|
_tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
|
|
|
- _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon;//腾讯学生
|
|
|
+ _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
|
|
|
+ _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
|
|
|
+ _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
|
|
|
+ _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
|
|
|
var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5","05b62310-8cda-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"];
|
|
|
+ var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5","ee40e8e3-e36c-4872-8105-cf395481012s"];
|
|
|
//清楚桌面图标
|
|
|
el.innerHTML = "";
|
|
|
//循环创建桌面图标
|
|
@@ -445,7 +474,24 @@ 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 && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
|
|
|
+ }else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
|
|
|
+ for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscStudentDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscStudentDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ } else if (_type == 2 && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
|
|
|
for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
|
|
|
_content = $$("div", {
|
|
|
className: "U_MD_D_KO",
|
|
@@ -683,6 +729,40 @@ 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 if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
|
|
|
+ for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscTeacherDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscTeacherDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
|
|
|
+ for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscOrganizerDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_szscOrganizerDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
} else {
|
|
|
for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
|
|
|
_content = $$("div", {
|
|
@@ -1042,6 +1122,8 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
} else if (e.data.tools && e.data.tools == "6s") {
|
|
|
U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
+ } else if (e.data.tools && e.data.tools == "3y") {
|
|
|
+ U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -2418,7 +2500,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" ? "师生项目" : "学生项目",
|
|
|
+ (_org == "150e3120-9195-11ed-b13d-005056b86db5" || _org == "ee40e8e3-e36c-4872-8105-cf395481012s") ? "师生项目" : "学生项目",
|
|
|
$$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "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' },
|
|
@@ -2430,7 +2512,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" ? "师生项目" : "学生项目",
|
|
|
+ (_org == "150e3120-9195-11ed-b13d-005056b86db5" || _org == "ee40e8e3-e36c-4872-8105-cf395481012s") ? "师生项目" : "学生项目",
|
|
|
$$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "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' },
|
|
@@ -3140,6 +3222,8 @@ U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
|
|
|
iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
|
|
|
$(fileInput).val('');
|
|
|
});
|
|
|
+ }else{
|
|
|
+ U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -3442,6 +3526,250 @@ U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
+ var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
|
|
|
+ _formdiv, //创建任务栏时同时弹出的窗体元素。
|
|
|
+ _userinfo = US.userInfo, //登录用户信息
|
|
|
+ _userid = US.userInfo.userid //登录用户id
|
|
|
+ let _iframe;
|
|
|
+ let _cid = cid,
|
|
|
+ _stage = stage,
|
|
|
+ _task = task,
|
|
|
+ _tool = tool;
|
|
|
+ var _jie = $$("div", {
|
|
|
+ "style": {
|
|
|
+ "position": "absolute",
|
|
|
+ "bottom": "50px",
|
|
|
+ "right": "50px",
|
|
|
+ "zIndex": "9999",
|
|
|
+ "backgroundColor": "#2268bc",
|
|
|
+ "color": "#fff",
|
|
|
+ "padding": "12px 20px",
|
|
|
+ "cursor": "pointer",
|
|
|
+ "borderRadius": "4px",
|
|
|
+ },
|
|
|
+ "innerHTML": "上传模板"
|
|
|
+ })
|
|
|
+ let aTool = ''
|
|
|
+ let _loading = document.createElement('div')
|
|
|
+ _loading.style = "width:100%;height:100%;background:#00000000;position:absolute;top:0;left:0;z-index:99999999999999;display: none;justify-content: center;align-items: center;"
|
|
|
+ // _loading.id = "";
|
|
|
+ let _lchild = document.createElement('div')
|
|
|
+ let _limg = document.createElement('img')
|
|
|
+ _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
|
|
|
+ _limg.style = "width: 26px;margin-right: 10px;"
|
|
|
+ _lchild.appendChild(_limg)
|
|
|
+ let _lspan = document.createElement('span')
|
|
|
+ _lspan.innerHTML = "上传中..."
|
|
|
+ _lchild.appendChild(_lspan)
|
|
|
+ _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
|
|
|
+ _loading.appendChild(_lchild)
|
|
|
+
|
|
|
+ var _box = $$('div', {
|
|
|
+ "style": {
|
|
|
+ "position": "relative",
|
|
|
+ "width": "100%",
|
|
|
+ "height": "100%",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ _box.appendChild(_loading)
|
|
|
+ _box.id = str + '_loadLi'
|
|
|
+ switch (str) {
|
|
|
+ case "whiteboard":
|
|
|
+ aTool = 1;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "https://iwb.cocorobo.cn/"
|
|
|
+ })
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "电子白板",
|
|
|
+ _box, {
|
|
|
+ "id": "whiteboards" + cid + stage + task + tool,
|
|
|
+ "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/whiteBoard.png)"
|
|
|
+ },
|
|
|
+ "name": "电子白板",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "mind":
|
|
|
+ aTool = 3;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "/kityminder-editor/dist/index.html"
|
|
|
+ });
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "思维导图",
|
|
|
+ _box, { //"/jsmind/example/demo.html"
|
|
|
+ "id": "minds" + cid + stage + task + tool,
|
|
|
+ "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/mindMapping.png)"
|
|
|
+ },
|
|
|
+ "name": "思维导图",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "doc":
|
|
|
+ aTool = 6;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "/Office/Word/WordEditArea.htm"
|
|
|
+ })
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "协同文档",
|
|
|
+ _box, {
|
|
|
+ "id": "docs" + cid + stage + task + tool,
|
|
|
+ "style": {
|
|
|
+ "width": "90%",
|
|
|
+ "height": "90%",
|
|
|
+ "overflow": 'hidden'
|
|
|
+ },
|
|
|
+ "onresize": function () { }
|
|
|
+ }, {
|
|
|
+ closecallback: function () { }
|
|
|
+ }, {
|
|
|
+ "style": {
|
|
|
+ "height": "36px"
|
|
|
+ }
|
|
|
+ }).form; //创建窗体
|
|
|
+
|
|
|
+ U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
|
|
|
+ $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
|
|
|
+ })
|
|
|
+ _taskbar = {
|
|
|
+ "id": str + _formdiv.id,
|
|
|
+ "style": {
|
|
|
+ "backgroundImage": "url(/img/icon/doc.png)"
|
|
|
+ },
|
|
|
+ "name": "协同文档",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ const script1 = document.createElement("script");
|
|
|
+ script1.type = "text/javascript";
|
|
|
+ // script1.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
|
|
|
+
|
|
|
+ // script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
|
|
|
+ // const script2 = document.createElement("script");
|
|
|
+ // script2.type = "text/javascript";
|
|
|
+
|
|
|
+ // script2.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
|
|
|
+ // script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
|
|
|
+ // const script3 = document.createElement("script");
|
|
|
+ // script3.type = "text/javascript";
|
|
|
+ // script3.charset = "UTF-8";
|
|
|
+
|
|
|
+ // script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
|
|
|
+ // const script4 = document.createElement("script");
|
|
|
+ // script4.type = "text/javascript";
|
|
|
+ // script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu4.js";
|
|
|
+
|
|
|
+ // script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
|
|
|
+
|
|
|
+ if (_iframe) {
|
|
|
+ if (str == 'doc') {
|
|
|
+ U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ })
|
|
|
+ } else if (str == 'mind') {
|
|
|
+ U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ _iframe.onload = () => {
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script1);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script2);
|
|
|
+ // _iframe.contentWindow.document.body.appendChild(script4);
|
|
|
+ };
|
|
|
+ }
|
|
|
+ _jie.onclick = async () => {
|
|
|
+ let text = ''
|
|
|
+ if (aTool == 6) {
|
|
|
+ text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
|
|
|
+ } else if (aTool == 3) {
|
|
|
+ text = await U.MD.D.I.getEditorContent(_iframe);
|
|
|
+ }
|
|
|
+ _loading.style.display = 'flex'
|
|
|
+
|
|
|
+ U.MD.D.I.setContents(cid, stage, task, tool, _userid, '2', _loading,_lspan)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //U.MD.D.I.openClick(str);
|
|
|
+ //如果有任务栏信息
|
|
|
+ // if (_taskbar) {
|
|
|
+ // U.MD.D.T.taskbar(_taskbar); //创建任务处理
|
|
|
+ // }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
|
|
|
var xmlhttp;
|
|
|
var Mac, Sn, DeviceId
|
|
@@ -3466,4 +3794,61 @@ U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
|
|
|
xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
|
|
|
xmlhttp.send();
|
|
|
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
|
|
|
+ var xmlhttp;
|
|
|
+ var Mac, Sn, DeviceId
|
|
|
+ if (window.XMLHttpRequest) {
|
|
|
+ // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
|
|
|
+ xmlhttp = new XMLHttpRequest();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // IE6, IE5 浏览器执行代码
|
|
|
+ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
+ }
|
|
|
+ xmlhttp.onreadystatechange = function () {
|
|
|
+ if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
|
|
+ if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
|
|
|
+ // resolve(res.value[0][0].text);
|
|
|
+ iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
|
|
|
+ $(fileInput).val('');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
|
|
|
+ xmlhttp.send();
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+U.MD.D.I.setContents = function (cid, s, task, t, uid, type, loading,span) {
|
|
|
+ var xmlhttp;
|
|
|
+ var Mac, Sn, DeviceId
|
|
|
+ if (window.XMLHttpRequest) {
|
|
|
+ // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
|
|
|
+ xmlhttp = new XMLHttpRequest();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // IE6, IE5 浏览器执行代码
|
|
|
+ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
+ }
|
|
|
+ xmlhttp.onreadystatechange = function () {
|
|
|
+ if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
|
|
+ if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
|
|
|
+ // resolve(res.value[0][0].text);
|
|
|
+ // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
|
|
|
+ // $(fileInput).val('');
|
|
|
+ // });
|
|
|
+ span.innerHTML = '上传成功'
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.style.display = 'none'
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
|
|
|
+ xmlhttp.send();
|
|
|
+
|
|
|
}
|