|
@@ -404,6 +404,7 @@ U.MD.D.I.wankeAdminDeskIcon = [
|
|
|
{ "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
|
|
|
{ "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
{ "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
+ { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
|
|
|
{ "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
|
|
|
{ "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
{ "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
@@ -448,26 +449,27 @@ U.MD.D.I.MingdeTeacherDeskIcon = [
|
|
|
{ "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
{ "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
{ "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
|
|
|
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
|
|
|
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
|
|
|
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
|
|
|
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
|
|
|
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
|
|
|
+ // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
|
|
|
+ // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
|
|
|
+ // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
|
|
|
+ // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
|
|
|
+ // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
|
|
|
{ "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
|
|
|
{ "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
|
|
|
- { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
|
|
|
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
|
|
|
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
|
|
|
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
|
|
|
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
|
|
|
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
|
|
|
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
|
|
|
- { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
|
|
|
- { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
|
|
|
- { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
|
|
|
- { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
|
|
|
+ // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
|
|
|
+ // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
|
|
|
+ // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
|
|
|
+ // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
|
|
|
+ // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
|
|
|
+ // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
|
|
|
+ // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
|
|
|
+ // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
|
|
|
+ // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
|
|
|
+ // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
|
|
|
+ // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
|
|
|
{ "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
|
|
|
+ { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
|
|
|
];
|
|
|
|
|
|
//97c4ee8b-d010-4042-986d-e9d3c217264f
|
|
@@ -553,6 +555,66 @@ U.MD.D.I.siesteacherDeskIcon = [
|
|
|
{ "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
|
|
|
{ "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
|
|
|
];
|
|
|
+
|
|
|
+//福田
|
|
|
+U.MD.D.I.gdjgTeacherDeskIcon = [
|
|
|
+ { "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": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
+ { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
|
|
|
+ { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
|
|
|
+ { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
|
|
|
+ // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
|
|
|
+ // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
|
|
|
+ { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
+//gdjg
|
|
|
+U.MD.D.I.gdjgAdminDeskIcon = [
|
|
|
+ { "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": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
+ { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
|
|
|
+ { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
|
|
|
+ { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
|
|
|
+ { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
|
|
|
+ { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
+//hk
|
|
|
+U.MD.D.I.hkteacherDeskIcon = [
|
|
|
+ { "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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
|
|
|
+ { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
|
|
|
+ { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
+ { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
+ // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
|
|
|
+ // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
|
|
|
+ { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
|
|
|
+ // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
|
|
|
+ { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
|
|
|
+ { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
|
|
|
+];
|
|
|
+
|
|
|
+//云海
|
|
|
+U.MD.D.I.yunhaiTeacherDeskIcon = [
|
|
|
+ { "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": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
|
|
|
+ { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
|
|
|
+ { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
|
|
|
+ { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
|
|
|
+ { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
|
|
|
+ { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
|
|
|
+ { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
|
|
|
+ { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
|
|
|
+ { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
|
|
|
+ { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
|
|
|
+ { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
|
|
|
+];
|
|
|
//#region 桌面初始化a
|
|
|
|
|
|
/**
|
|
@@ -669,15 +731,19 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
|
|
|
_tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
|
|
|
_futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
|
|
|
_futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
|
|
|
+ _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
|
|
|
+ _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
|
|
|
_lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
|
|
|
_longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
|
|
|
_siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
|
|
|
_tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
|
|
|
+ _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
|
|
|
+ _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
|
|
|
_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", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-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", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776'];
|
|
|
+ var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-005056b86db5','b1095a3c-1d06-4ac8-854f-7c0d97f4ab41'];
|
|
|
+ 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", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5'];
|
|
|
//清楚桌面图标
|
|
|
el.innerHTML = "";
|
|
|
if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
|
|
@@ -918,6 +984,74 @@ U.MD.D.I.initDesktopIcons = function (el, type) {
|
|
|
$$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
|
|
|
$$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
|
|
|
}
|
|
|
+ }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
|
|
|
+ for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_yunhaiTeacherDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_yunhaiTeacherDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
|
|
|
+ for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_hkTeacherDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_hkTeacherDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
|
|
|
+ for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_gdjgAdminDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_gdjgAdminDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
+ }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
|
|
|
+ for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
|
|
|
+ _content = $$("div", {
|
|
|
+ className: "U_MD_D_KO",
|
|
|
+ "onmousedown": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_gdjgTeacherDeskIconInfo[i]]),
|
|
|
+ "onclick": U.UF.C.closure(function (obj) {
|
|
|
+ //防止拖动图标即打开了桌面应用
|
|
|
+ U.MD.D.click(this, obj);
|
|
|
+ }, [_gdjgTeacherDeskIconInfo[i]])
|
|
|
+ }, _frag); //
|
|
|
+ _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
|
|
|
+ $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
|
|
|
+ $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
|
|
|
+ }
|
|
|
}else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
|
|
|
for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
|
|
|
_content = $$("div", {
|
|
@@ -1694,6 +1828,12 @@ window.addEventListener('message', function (e) { // 监听 message 事件
|
|
|
U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
} else if (e.data.tools && e.data.tools == "3E") {
|
|
|
U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
+ } else if (e.data.tools && e.data.tools == "57y") {
|
|
|
+ U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
+ } else if (e.data.tools && e.data.tools == "57u") {
|
|
|
+ U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
|
|
|
+ } else if (e.data.tools && e.data.tools == "57teacher") {
|
|
|
+ U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -3628,7 +3768,7 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -4015,7 +4155,7 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' +
|
|
|
+ (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -4086,7 +4226,7 @@ U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -4473,7 +4613,7 @@ U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' +
|
|
|
+ (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -4544,7 +4684,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, stud
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi' + _userid
|
|
|
+ _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -4931,7 +5071,7 @@ U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, stud
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' + _userid +
|
|
|
+ (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -4996,7 +5136,7 @@ U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, stu
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi' + _userid
|
|
|
+ _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -5383,7 +5523,7 @@ U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, stu
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' + _userid +
|
|
|
+ (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -5437,9 +5577,7 @@ U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
|
|
|
if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
|
|
|
// resolve(res.value[0][0].text);
|
|
|
if (type == '2') {
|
|
|
- iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
|
|
|
- $(fileInput).val('');
|
|
|
- });
|
|
|
+ iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
|
|
|
} else if (type == '3') {
|
|
|
iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
|
|
|
}
|
|
@@ -5500,7 +5638,7 @@ U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -5733,7 +5871,7 @@ U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' +
|
|
|
+ (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -5805,7 +5943,7 @@ U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -6038,7 +6176,7 @@ U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
|
- str + '_loadLi' +
|
|
|
+ (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
|
|
|
"'" +
|
|
|
", " +
|
|
|
"'" +
|
|
@@ -6110,7 +6248,7 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
},
|
|
|
})
|
|
|
_box.appendChild(_loading)
|
|
|
- _box.id = str + '_loadLi'
|
|
|
+ _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
|
|
|
switch (str) {
|
|
|
case "whiteboard":
|
|
|
aTool = 1;
|
|
@@ -6128,7 +6266,7 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"电子白板",
|
|
|
_box, {
|
|
|
- "id": "whiteboards" + cid + stage + task + tool,
|
|
|
+ "id": "whiteboards_Yu" + cid + stage + task + tool,
|
|
|
"style": {
|
|
|
"width": "90%",
|
|
|
"height": "90%",
|
|
@@ -6170,7 +6308,7 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"思维导图",
|
|
|
_box, { //"/jsmind/example/demo.html"
|
|
|
- "id": "minds" + cid + stage + task + tool,
|
|
|
+ "id": "minds_Yu" + cid + stage + task + tool,
|
|
|
"style": {
|
|
|
"width": "90%",
|
|
|
"height": "90%",
|
|
@@ -6212,7 +6350,7 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
_formdiv = new U.UF.UI.form(
|
|
|
"协同文档",
|
|
|
_box, {
|
|
|
- "id": "docs" + cid + stage + task + tool,
|
|
|
+ "id": "docs_Yu" + cid + stage + task + tool,
|
|
|
"style": {
|
|
|
"width": "90%",
|
|
|
"height": "90%",
|
|
@@ -6242,6 +6380,51 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ case "CocoPi":
|
|
|
+ aTool = 57;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "allowpaymentrequest":"allowpaymentrequest",
|
|
|
+ "allow": "camera *; microphone *;display-capture;usb",
|
|
|
+ "webkitallowfullscreen": "", "mozallowfullscreen": "",
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "https://beta.v.cocorobo.cn/"
|
|
|
+ })
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "CocoPi",
|
|
|
+ _box, {
|
|
|
+ "id": "CocoPi_Yu" + 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/cocopi.png)"
|
|
|
+ },
|
|
|
+ "name": "CocoPi",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
if (_iframe) {
|
|
@@ -6275,6 +6458,16 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
} else {
|
|
|
_iframe.contentDocument.location.reload()
|
|
|
}
|
|
|
+ } else if (str == 'CocoPi') {
|
|
|
+ _iframe = _formdiv.querySelector('iframe')
|
|
|
+ let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
|
|
|
+ })
|
|
|
+ if (onloadListener) {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ } else {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ }
|
|
|
} else {
|
|
|
_iframe.onload = () => {
|
|
|
};
|
|
@@ -6291,10 +6484,13 @@ U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
|
|
|
} else if (aTool == 3) {
|
|
|
text = await U.MD.D.I.getEditorContent(_iframe);
|
|
|
type = '2'
|
|
|
+ } else if (aTool == 57) {
|
|
|
+ text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
|
|
|
+ type = '4'
|
|
|
}
|
|
|
_loading.style.display = 'flex'
|
|
|
|
|
|
- U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
|
|
|
+ U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -6321,9 +6517,7 @@ U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
|
|
|
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('');
|
|
|
- });
|
|
|
+ iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -6349,14 +6543,20 @@ U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
|
|
|
if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
|
|
|
// resolve(res.value[0][0].text);
|
|
|
if (type == '2') {
|
|
|
- iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
|
|
|
- $(fileInput).val('');
|
|
|
- });
|
|
|
+ iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
|
|
|
} else if (type == '3') {
|
|
|
iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
|
|
|
+ } else if (type == '4') {
|
|
|
+ iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
|
|
|
}
|
|
|
} else {
|
|
|
- iframe.contentWindow.h.app.updateScene({ elements: [] })
|
|
|
+ if (type == '2') {
|
|
|
+ iframe.contentWindow.editor.minder.importData('json', '')
|
|
|
+ } else if (type == '3') {
|
|
|
+ iframe.contentWindow.h.app.updateScene({ elements: [] })
|
|
|
+ } else if (type == '4') {
|
|
|
+ iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -6395,6 +6595,294 @@ U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span
|
|
|
// xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
|
|
|
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
// 设置请求头,表示请求体的编码格式
|
|
|
- xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
|
|
|
+ xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
|
|
|
// 设置请求体,使用url-encoded格式的数据
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+U.MD.D.I.openApplicationUpload = 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 = US.Config.bpbl + '/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: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
|
|
|
+ _loading.appendChild(_lchild)
|
|
|
+ var _box = $$('div', {
|
|
|
+ "style": {
|
|
|
+ "position": "relative",
|
|
|
+ "width": "100%",
|
|
|
+ "height": "100%",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ _box.appendChild(_loading)
|
|
|
+ _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
|
|
|
+ switch (str) {
|
|
|
+ case "CocoPi":
|
|
|
+ aTool = 57;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "allowpaymentrequest":"allowpaymentrequest",
|
|
|
+ "allow": "camera *; microphone *;display-capture;usb",
|
|
|
+ "webkitallowfullscreen": "", "mozallowfullscreen": "",
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "https://beta.v.cocorobo.cn/"
|
|
|
+ })
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "CocoPi",
|
|
|
+ _box, {
|
|
|
+ "id": "CocoPi_Upload" + 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/cocopi.png)"
|
|
|
+ },
|
|
|
+ "name": "CocoPi",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (_iframe) {
|
|
|
+ if (str == 'CocoPi') {
|
|
|
+ _iframe = _formdiv.querySelector('iframe')
|
|
|
+ let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
|
|
|
+ })
|
|
|
+ if (onloadListener) {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ } else {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _jie.onclick = async () => {
|
|
|
+ let text = ''
|
|
|
+ if (aTool == 57) {
|
|
|
+ text = _iframe.contentWindow.getLoadXmlStr()
|
|
|
+ }
|
|
|
+
|
|
|
+ _loading.style.display = 'flex'
|
|
|
+ console.log(_loading);
|
|
|
+ U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
|
|
|
+ _loading.style.display = 'none'
|
|
|
+ let _div = document.createElement('div')
|
|
|
+ _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
|
|
|
+ let _inner = document.createElement('div')
|
|
|
+ _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
|
|
|
+ _inner.innerHTML = "上传成功"
|
|
|
+ _div.appendChild(_inner)
|
|
|
+ _iframe.contentWindow.window.document.body.appendChild(_div)
|
|
|
+ _div.onclick = () => {
|
|
|
+ _iframe.contentWindow.window.document.body.removeChild(_div)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ _iframe.contentWindow.window.document.body.removeChild(_div)
|
|
|
+ }, 1000);
|
|
|
+ }, [], { "type": "POST", "withCredentials": true });
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
|
|
|
+ var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
|
|
|
+ _formdiv, //创建任务栏时同时弹出的窗体元素。
|
|
|
+ _userid = student.userid, //登录用户id
|
|
|
+ _username = student.student //用户名字
|
|
|
+ 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 = US.Config.bpbl + '/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: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
|
|
|
+ _loading.appendChild(_lchild)
|
|
|
+ var _box = $$('div', {
|
|
|
+ "style": {
|
|
|
+ "position": "relative",
|
|
|
+ "width": "100%",
|
|
|
+ "height": "100%",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ _box.appendChild(_loading)
|
|
|
+ _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
|
|
|
+ switch (str) {
|
|
|
+ case "CocoPi":
|
|
|
+ aTool = 57;
|
|
|
+ _iframe = $$("iframe", {
|
|
|
+ "allowpaymentrequest":"allowpaymentrequest",
|
|
|
+ "allow": "camera *; microphone *;display-capture;usb",
|
|
|
+ "webkitallowfullscreen": "", "mozallowfullscreen": "",
|
|
|
+ "frameborder": "no",
|
|
|
+ "border": "0",
|
|
|
+ "scrolling ": "no",
|
|
|
+ "style": {
|
|
|
+ "cssText": "border:0;width:100%;height:100%"
|
|
|
+ },
|
|
|
+ "src": "https://beta.v.cocorobo.cn/"
|
|
|
+ })
|
|
|
+ _box.appendChild(_iframe);
|
|
|
+ _box.appendChild(_jie);
|
|
|
+ _formdiv = new U.UF.UI.form(
|
|
|
+ "CocoPi-" + _username,
|
|
|
+ _box, {
|
|
|
+ "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
|
|
|
+ "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/cocopi.png)"
|
|
|
+ },
|
|
|
+ "name": "CocoPi",
|
|
|
+ "forms": _formdiv,
|
|
|
+ "click": function () {
|
|
|
+ U.MD.D.I.openApplication(str, obj, info);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (_iframe) {
|
|
|
+ if (str == 'CocoPi') {
|
|
|
+ _iframe = _formdiv.querySelector('iframe')
|
|
|
+ let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
|
|
|
+ U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
|
|
|
+ })
|
|
|
+ if (onloadListener) {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ } else {
|
|
|
+ _iframe.contentDocument.location.reload()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _jie.onclick = async () => {
|
|
|
+ let text = ''
|
|
|
+ if (aTool == 57) {
|
|
|
+ text = _iframe.contentWindow.getLoadXmlStr()
|
|
|
+ }
|
|
|
+
|
|
|
+ _loading.style.display = 'flex'
|
|
|
+ console.log(_loading);
|
|
|
+ U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
|
|
|
+ _loading.style.display = 'none'
|
|
|
+ let _div = document.createElement('div')
|
|
|
+ _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
|
|
|
+ let _inner = document.createElement('div')
|
|
|
+ _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
|
|
|
+ _inner.innerHTML = "上传成功"
|
|
|
+ _div.appendChild(_inner)
|
|
|
+ _iframe.contentWindow.window.document.body.appendChild(_div)
|
|
|
+ _div.onclick = () => {
|
|
|
+ _iframe.contentWindow.window.document.body.removeChild(_div)
|
|
|
+ }
|
|
|
+ setTimeout(() => {
|
|
|
+ _iframe.contentWindow.window.document.body.removeChild(_div)
|
|
|
+ }, 1000);
|
|
|
+ }, [], { "type": "POST", "withCredentials": true });
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
|
|
|
+ U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
|
|
|
+ if (res.value[0].length > 0) {
|
|
|
+ if (atool == 57) {
|
|
|
+ iframe.contentWindow.loadingXml(res.value[0][0].content)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (atool == 57) {
|
|
|
+ U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
|
|
|
+ // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, [], { "type": "POST", "withCredentials": true });
|
|
|
}
|