DeskTop.js 164 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  15. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  16. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  17. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  18. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  19. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  20. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  21. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  22. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  23. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  24. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  25. { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  26. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  27. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  28. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  29. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  30. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  31. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  32. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  33. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  34. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  35. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  36. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  37. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  38. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  39. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  40. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  41. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  42. { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  43. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  44. ];
  45. U.MD.D.I.studentDeskIcon = [
  46. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  47. { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  48. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  49. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  50. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  51. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  52. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  53. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  54. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  55. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  56. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  57. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  58. { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  59. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  60. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  61. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  62. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  63. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  64. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  65. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  66. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  67. // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  68. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  69. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  70. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  71. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  72. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  73. ];
  74. U.MD.D.I.schoolDeskIcon = [
  75. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  76. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  77. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  78. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  79. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  80. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  81. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  82. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  83. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  84. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  85. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  86. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  87. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  88. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  89. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  90. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  91. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  92. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  93. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  94. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  95. ];
  96. U.MD.D.I.orgDeskIcon = [
  97. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  98. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  99. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  100. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  101. ];
  102. U.MD.D.I.orgStemDeskIcon = [
  103. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  104. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  105. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  106. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  107. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  109. { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  110. { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  111. ];
  112. U.MD.D.I.hanDeskIcon = [
  113. { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  114. { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  115. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  116. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  117. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  118. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  119. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  120. { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  121. { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. ];
  123. U.MD.D.I.GMteacherDeskIcon = [
  124. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  125. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  126. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  127. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  128. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  129. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  130. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  131. { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
  132. ];
  133. U.MD.D.I.GMorganizerDeskIcon = [
  134. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  135. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  136. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  137. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  138. // { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  139. { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  140. { "Name": "学校管理", "Url": "schoolGM", "style": { "cssText": "background-image:url(/img/icon/gm/school.png)" } },
  141. { "Name": "教师管理", "Url": "teacherGM", "style": { "cssText": "background-image:url(/img/icon/gm/teacher.png)" } },
  142. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  143. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  144. { "Name": "项目审核", "Url": "examineGM", "style": { "cssText": "background-image:url(/img/icon/gm/examine.png)" } },
  145. { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
  146. ];
  147. U.MD.D.I.GMstudentDeskIcon = [
  148. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  149. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  150. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  151. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  152. { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
  153. ];
  154. U.MD.D.I.teacherDeskIcon = [
  155. { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  156. { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  157. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  158. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  159. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  160. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  161. { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  162. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  163. ];
  164. //#region 桌面初始化a
  165. /**
  166. * 初始化桌面的起始函数
  167. *
  168. */
  169. U.MD.D.I.init = function () {
  170. if ($("#U_MD_D_K")[0]) {
  171. //初始化桌面图标
  172. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
  173. // var clickUrl = ':12588/requestIp.php';
  174. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  175. // U.MD.D.I.Ip = data;
  176. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  177. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  178. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  179. // })
  180. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  181. // })
  182. }
  183. }
  184. /**
  185. * 隐藏任务栏
  186. *
  187. * @param {element} 桌面元素
  188. */
  189. U.MD.D.I.hiddenTaskbar = function (el) {
  190. //任务栏位置变小
  191. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  192. //桌面的位置变大
  193. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  194. }
  195. /**
  196. * 隐藏任务栏
  197. *
  198. * @param {element} 桌面元素
  199. */
  200. U.MD.D.I.hiddenTaskbarout = function (el) {
  201. //任务栏位置变小
  202. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  203. //任务栏位置变化
  204. U.selectEl(el).css({ "bottom": "-60px" });
  205. //桌面的位置变大
  206. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  207. }
  208. }
  209. /**
  210. * 初始化打印桌面图标
  211. *
  212. * @param {element} 桌面元素
  213. */
  214. U.MD.D.I.initDesktopIcons = function (el) {
  215. var i, //用于循环
  216. _content, //桌面图标元素
  217. _iconcontent, //桌面图标元素
  218. _frag = $$("frag"), //定义一个碎片元素
  219. _type = US.userInfo.type,
  220. _org = US.userInfo.org,
  221. _oid = US.userInfo.organizeid,
  222. _role = US.userInfo.role,
  223. _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
  224. _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
  225. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  226. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  227. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  228. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  229. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  230. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon; //获取光明学校桌面图标
  231. _GMorganizerDesktopIconInfo = U.MD.D.I.GMorganizerDeskIcon; //获取光明学校桌面图标
  232. //清楚桌面图标
  233. el.innerHTML = "";
  234. //循环创建桌面图标
  235. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5" && _org != "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  236. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  237. _content = $$("div", {
  238. className: "U_MD_D_KO",
  239. "onmousedown": U.UF.C.closure(function (obj) {
  240. //防止拖动图标即打开了桌面应用
  241. U.MD.D.click(this, obj);
  242. }, [_studentDesktopIconInfo[i]]),
  243. "onclick": U.UF.C.closure(function (obj) {
  244. //防止拖动图标即打开了桌面应用
  245. U.MD.D.click(this, obj);
  246. }, [_studentDesktopIconInfo[i]])
  247. }, _frag); //
  248. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  249. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  250. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  251. }
  252. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  253. for (i = 0; i < _hanDeskIcon.length; i++) {
  254. _content = $$("div", {
  255. className: "U_MD_D_KO",
  256. "onmousedown": U.UF.C.closure(function (obj) {
  257. //防止拖动图标即打开了桌面应用
  258. U.MD.D.click(this, obj);
  259. }, [_hanDeskIcon[i]]),
  260. "onclick": U.UF.C.closure(function (obj) {
  261. //防止拖动图标即打开了桌面应用
  262. U.MD.D.click(this, obj);
  263. }, [_hanDeskIcon[i]])
  264. }, _frag); //
  265. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  266. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  267. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  268. }
  269. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  270. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  271. _content = $$("div", {
  272. className: "U_MD_D_KO",
  273. "onmousedown": U.UF.C.closure(function (obj) {
  274. //防止拖动图标即打开了桌面应用
  275. U.MD.D.click(this, obj);
  276. }, [_orgStemDeskIcon[i]]),
  277. "onclick": U.UF.C.closure(function (obj) {
  278. //防止拖动图标即打开了桌面应用
  279. U.MD.D.click(this, obj);
  280. }, [_orgStemDeskIcon[i]])
  281. }, _frag); //
  282. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  283. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  284. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  285. }
  286. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d" && _role == 0) {
  287. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  288. _content = $$("div", {
  289. className: "U_MD_D_KO",
  290. "onmousedown": U.UF.C.closure(function (obj) {
  291. //防止拖动图标即打开了桌面应用
  292. U.MD.D.click(this, obj);
  293. }, [_orgDesktopIconInfo[i]]),
  294. "onclick": U.UF.C.closure(function (obj) {
  295. //防止拖动图标即打开了桌面应用
  296. U.MD.D.click(this, obj);
  297. }, [_orgDesktopIconInfo[i]])
  298. }, _frag); //
  299. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  300. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  301. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  302. }
  303. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217" && _role === 1) {
  304. for (i = 0; i < _GMorganizerDesktopIconInfo.length; i++) {
  305. _content = $$("div", {
  306. className: "U_MD_D_KO",
  307. "onmousedown": U.UF.C.closure(function (obj) {
  308. //防止拖动图标即打开了桌面应用
  309. U.MD.D.click(this, obj);
  310. }, [_GMorganizerDesktopIconInfo[i]]),
  311. "onclick": U.UF.C.closure(function (obj) {
  312. //防止拖动图标即打开了桌面应用
  313. U.MD.D.click(this, obj);
  314. }, [_GMorganizerDesktopIconInfo[i]])
  315. }, _frag); //
  316. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  317. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMorganizerDesktopIconInfo[i].style }, _iconcontent);
  318. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMorganizerDesktopIconInfo[i].Name }, _iconcontent);
  319. }
  320. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  321. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  322. _content = $$("div", {
  323. className: "U_MD_D_KO",
  324. "onmousedown": U.UF.C.closure(function (obj) {
  325. //防止拖动图标即打开了桌面应用
  326. U.MD.D.click(this, obj);
  327. }, [_schoolDesktopIconInfo[i]]),
  328. "onclick": U.UF.C.closure(function (obj) {
  329. //防止拖动图标即打开了桌面应用
  330. U.MD.D.click(this, obj);
  331. }, [_schoolDesktopIconInfo[i]])
  332. }, _frag); //
  333. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  334. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  335. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  336. }
  337. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  338. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  339. _content = $$("div", {
  340. className: "U_MD_D_KO",
  341. "onmousedown": U.UF.C.closure(function (obj) {
  342. //防止拖动图标即打开了桌面应用
  343. U.MD.D.click(this, obj);
  344. }, [_studentDesktopIconInfo[i]]),
  345. "onclick": U.UF.C.closure(function (obj) {
  346. //防止拖动图标即打开了桌面应用
  347. U.MD.D.click(this, obj);
  348. }, [_studentDesktopIconInfo[i]])
  349. }, _frag); //
  350. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  351. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  352. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  353. }
  354. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  355. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  356. _content = $$("div", {
  357. className: "U_MD_D_KO",
  358. "onmousedown": U.UF.C.closure(function (obj) {
  359. //防止拖动图标即打开了桌面应用
  360. U.MD.D.click(this, obj);
  361. }, [_GMteacherDesktopIconInfo[i]]),
  362. "onclick": U.UF.C.closure(function (obj) {
  363. //防止拖动图标即打开了桌面应用
  364. U.MD.D.click(this, obj);
  365. }, [_GMteacherDesktopIconInfo[i]])
  366. }, _frag); //
  367. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  368. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  369. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  370. }
  371. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  372. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  373. _content = $$("div", {
  374. className: "U_MD_D_KO",
  375. "onmousedown": U.UF.C.closure(function (obj) {
  376. //防止拖动图标即打开了桌面应用
  377. U.MD.D.click(this, obj);
  378. }, [_GMstudentDesktopIconInfo[i]]),
  379. "onclick": U.UF.C.closure(function (obj) {
  380. //防止拖动图标即打开了桌面应用
  381. U.MD.D.click(this, obj);
  382. }, [_GMstudentDesktopIconInfo[i]])
  383. }, _frag); //
  384. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  385. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  386. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  387. }
  388. } else {
  389. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  390. _content = $$("div", {
  391. className: "U_MD_D_KO",
  392. "onmousedown": U.UF.C.closure(function (obj) {
  393. //防止拖动图标即打开了桌面应用
  394. U.MD.D.click(this, obj);
  395. }, [_teacherDesktopIconInfo[i]]),
  396. "onclick": U.UF.C.closure(function (obj) {
  397. //防止拖动图标即打开了桌面应用
  398. U.MD.D.click(this, obj);
  399. }, [_teacherDesktopIconInfo[i]])
  400. }, _frag); //
  401. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  402. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  403. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  404. }
  405. }
  406. //加载好后给图标定位
  407. U.MD.D.iconPostion($(_frag).Child());
  408. //把图标加载到页面
  409. el.appendChild(_frag);
  410. }
  411. /**
  412. * 显示任务栏
  413. *
  414. * @param {element} 桌面元素
  415. */
  416. U.MD.D.I.displayTaskbar = function (el) {
  417. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  418. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  419. //任务栏位置变化
  420. U.selectEl(el).css({ "bottom": "0px" });
  421. //桌面位置变话
  422. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  423. }
  424. }
  425. //#region 桌面图标拖动逻辑
  426. /**
  427. * 桌面排列图标
  428. *
  429. * @param {element} 桌面元素
  430. * @param {object} 上下相距的距离
  431. * @param {object} 左右相距的距离
  432. * @return {object} 命名空间
  433. */
  434. U.MD.D.iconPostion = function (childs, top, left) {
  435. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  436. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  437. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  438. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  439. for (i = 0; i < childs.length; i++) {
  440. //如果竖排top超过了范围处理
  441. if (left + 150 > US.width - 10) {
  442. //left超过了页面范围处理,则向上重叠打印处理
  443. if ((top + 180) > US.Height) {
  444. top -= 150;
  445. left -= 150;
  446. }
  447. //没有超过范围,那么left+90添加到下一个竖排打印
  448. else {
  449. top += 150;
  450. left = ol;
  451. };
  452. }
  453. //给图标的位置赋值
  454. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px" });
  455. if (i < childs.length - 1) {
  456. //页面图标每次向下加95
  457. left += 150;
  458. }
  459. }
  460. //返回最后调用的图标的位置
  461. return [top, left];
  462. }
  463. /**
  464. * 桌面点击事件逻辑
  465. *
  466. * @param {element} 桌面元素
  467. * @param {object} 上下相距的距离
  468. * @param {object} 左右相距的距离
  469. * @return {object} 命名空间
  470. */
  471. U.MD.D.click = function (el, obj) {
  472. var _buttonnumber = event.button; //点击的按钮的事件值
  473. var _userinfo = US.userInfo;
  474. U.UF.EV.stopBubble(); //阻止向上冒泡
  475. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  476. if (_buttonnumber < 2) {
  477. //如果是click事件的处理
  478. if (event.type == "click") {
  479. //如果元素在mousemove事件中没有移动则出发click事件
  480. if (!U.MD.D.I.IsDrag) {
  481. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  482. U.alert("请先登录您的账号!");
  483. setTimeout(() => {
  484. U.MD.U.L.login();
  485. }, 2000);
  486. } else {
  487. //打开应用处理
  488. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  489. }
  490. }
  491. }
  492. //如果是mouse事件的处理
  493. else {
  494. //拖动处理,添加拖动和拖动结束事件
  495. //U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  496. }
  497. U.MD.D.I.IsDrag = false;
  498. }
  499. }
  500. /**
  501. * 拖动的处理
  502. *
  503. */
  504. U.MD.D.iconMove = function () {
  505. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  506. //U.MD.D.I.IsDrag = true;
  507. U.MD.D.I.IsDrag = false;
  508. }
  509. /**
  510. * 拖动结束后,这里是定位处理,以网状的形式定位
  511. *
  512. * @param {element} 拖动的元素
  513. * @return {object} 命名空间
  514. */
  515. U.MD.D.iconUp = function (el) {
  516. var _top = 20,
  517. _left = 20,
  518. _margin,
  519. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  520. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  521. if (_positioninfo["OT"] > 20) {
  522. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  523. _margin = ((_positioninfo["OT"] - 20) % 150 > 55 && _positioninfo["OT"] + 150 < US.height) ? 1 : 0;
  524. _top = (Math.floor((_positioninfo["OT"] - 20) / 150) + _margin) * 150 + 20;
  525. }
  526. if (_positioninfo["OL"] > 20) {
  527. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  528. _margin = ((_positioninfo["OL"] - 20) % 150 > 45 && _positioninfo["OL"] + 150 < US.width) ? 1 : 0;
  529. _left = (Math.floor((_positioninfo["OL"] - 20) / 150) + _margin) * 150 + 20
  530. }
  531. //while循环判断么一个重叠的元素
  532. do {
  533. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  534. _top = _positioninfo[0] + 150; //得到定位后的top
  535. _left = _positioninfo[1]; //得到定位后的left
  536. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  537. }
  538. /**
  539. * 判断拖动后图标是否重叠
  540. *
  541. * @param {element} 拖动的元素
  542. * @param {element} 桌面所有的元素
  543. * @param {array} 拖动元素的位置
  544. ----------[0] 上 top
  545. ----------[1] 左 left
  546. * @return {object} 命名空间
  547. */
  548. U.MD.D.isOverlap = function (el, childs, postionarray) {
  549. //循环所有的图标
  550. for (var i = 0; i < childs.length; i++) {
  551. //判断有没有和该图标诶子重叠的元素
  552. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  553. return childs[i]; //如果有返回
  554. }
  555. }
  556. }
  557. //#endregion
  558. //#endregion
  559. //#region 桌面应用
  560. /**
  561. * 打开应用
  562. *
  563. * @param {string} 类型
  564. -----------------Disk 网盘系统
  565. -----------------PDisk 学习系统网盘
  566. -----------------Poto 图片
  567. -----------------Video 视频
  568. -----------------Music 音乐
  569. -----------------Word word
  570. -----------------Excel excel
  571. -----------------Txt 记事本
  572. -----------------PB 学习系统
  573. -----------------Blog 朋友圈系统
  574. -----------------FTP ftp系统
  575. -----------------Group 好友群
  576. -----------------SY 首页系统
  577. -----------------Set 个人设置
  578. -----------------XSet 系统设置
  579. -----------------App 我们所有的app
  580. -----------------BC c.1473.cn 平台
  581. -----------------CWeb d.1473.cn 变成平台
  582. -----------------其他的外联系统 我们统一用iframe打开
  583. * @param {array} 类型
  584. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  585. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  586. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  587. 如果第一个参数为其他,则无第二个参数
  588. * @returns {array}
  589. */
  590. window.addEventListener('message', function (e) { // 监听 message 事件
  591. // alert(e.data.type);
  592. if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
  593. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  594. //3是展示全部阶段 2学生 1老师 4专家
  595. } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
  596. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  597. } else if (e.data.screenType && e.data.screenType == "2gm") { //项目管理传入
  598. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  599. //3是展示全部阶段 2学生 1老师 4专家
  600. } else if (e.data.screenType && e.data.screenType == "3gm") { //项目管理传入
  601. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  602. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  603. U.MD.D.I.selectUser();
  604. } else if (e.data.allScreen && e.data.allScreen == "1") {
  605. var _formel = document.getElementById("study");
  606. U.UF.F.windowZooming(_formel);
  607. } else if (e.data.allScreen && e.data.allScreen == "2") {
  608. var _formel = document.getElementById("studyDetail");
  609. U.UF.F.windowZooming(_formel);
  610. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  611. var _formel = document.getElementById("studyDetail");
  612. U.UF.F.windowZooming(_formel);
  613. } else if (e.data.allScreen && e.data.allScreen == "3") {
  614. var _formel = document.getElementById("studentStudy");
  615. U.UF.F.windowZooming(_formel);
  616. } else if (e.data.allScreen && e.data.allScreen == "6") {
  617. var _formel = document.getElementById("study");
  618. //如果最大化了,那么就把他缩小
  619. // if (_formel.ismaximize) {
  620. // return;
  621. // }
  622. // U.UF.F.windowZooming(_formel);
  623. U.UF.F.topWindow(_formel);
  624. } else if (e.data.allScreen && e.data.allScreen == "4") {
  625. var _formel = document.getElementById("studyDetail");
  626. //如果最大化了,那么就把他缩小
  627. // if (_formel.ismaximize) {
  628. // return;
  629. // }
  630. // U.UF.F.windowZooming(_formel);
  631. U.UF.F.topWindow(_formel);
  632. } else if (e.data.allScreen && e.data.allScreen == "5") {
  633. var _formel = document.getElementById("studentStudy");
  634. // if (_formel.ismaximize) {
  635. // return;
  636. // }
  637. // U.UF.F.windowZooming(_formel);
  638. U.UF.F.topWindow(_formel);
  639. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  640. var _formel = document.getElementById("study");
  641. // if (_formel.ismaximize) {
  642. // return;
  643. // }
  644. // U.UF.F.windowZooming(_formel);
  645. U.UF.F.topWindow(_formel);
  646. } else if (e.data.tools && e.data.tools == "1") {
  647. // U.MD.D.I.openApplication("whiteboard")
  648. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  649. } else if (e.data.tools && e.data.tools == "2") {
  650. U.MD.D.I.openApplication("note")
  651. } else if (e.data.tools && e.data.tools == "3") {
  652. // U.MD.D.I.openApplication("mind")
  653. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  654. } else if (e.data.tools && e.data.tools == "4") {
  655. U.MD.D.I.openApplication("investigation")
  656. } else if (e.data.tools && e.data.tools == "6") {
  657. // U.MD.D.I.openApplication("doc")
  658. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  659. } else if (e.data.tools && e.data.tools == "7") {
  660. // U.MD.D.I.openApplication("mindNetwork")
  661. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  662. } else if (e.data.tools && e.data.tools == "8") {
  663. U.MD.D.I.openApplication("library")
  664. } else if (e.data.tools && e.data.tools == "17") {
  665. U.MD.D.I.openApplication("stuLibrary")
  666. } else if (e.data.tools && e.data.tools == "18") {
  667. U.MD.D.I.openApplication("train")
  668. } else if (e.data.tools && e.data.tools == "21") {
  669. U.MD.D.I.openApplication("program")
  670. } else if (e.data.tools && e.data.tools == "22") {
  671. U.MD.D.I.openApplication("AIprogram2")
  672. } else if (e.data.tools && e.data.tools == "23") {
  673. U.MD.D.I.openApplication("Pythonprogram")
  674. } else if (e.data.tools && e.data.tools == "24") {
  675. U.MD.D.I.openApplication("AIprogram")
  676. } else if (e.data.tools && e.data.tools == "25") {
  677. U.MD.D.I.openApplication("sys")
  678. } else if (e.data.tools && e.data.tools == "26") {
  679. // U.MD.D.I.openApplication("courseDesign")
  680. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  681. } else if (e.data.tools && e.data.tools == "31") {
  682. U.MD.D.I.openApplication("netWorkPanel")
  683. } else if (e.data.tools && e.data.tools == "32") {
  684. U.MD.D.I.openApplication("codeEdit")
  685. } else if (e.data.tools && e.data.tools == "28") {
  686. U.MD.D.I.openApplication("translation")
  687. } else if (e.data.tools && e.data.tools == "37") {
  688. U.MD.D.I.openApplication("mohe")
  689. } else if (e.data.tools && e.data.tools == "38") {
  690. U.MD.D.I.openApplication("24game")
  691. } else if (e.data.tools && e.data.tools == "39") {
  692. U.MD.D.I.openApplication("GeoGebra")
  693. } else if (e.data.tools && e.data.tools == "43") {
  694. U.MD.D.I.openApplication("studentEvaluate")
  695. } else if (e.data.tools && e.data.tools == "44") {
  696. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  697. } else if (e.data.tools && e.data.tools == "46") {
  698. U.MD.D.I.openApplication("project")
  699. }
  700. });
  701. U.MD.D.I.selectUser = function () {
  702. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  703. if (res.value[0].length > 0) {
  704. US.userInfo = res.value[0][0];
  705. $(".userName")[0].innerHTML = US.userInfo.username;
  706. }
  707. }, [], { "type": "GET", "withCredentials": true });
  708. }
  709. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  710. var _userinfo = US.userInfo, //登录用户信息
  711. _userid = US.userInfo.userid, //登录用户id
  712. _oid = _userinfo.organizeid,
  713. _type = US.userInfo.type,
  714. _org = US.userInfo.org,
  715. _classId = US.userInfo.classid;
  716. if (_type == 4) {
  717. tType = 4
  718. }
  719. switch (str) {
  720. case "studyDetail":
  721. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  722. setTimeout(() => {
  723. U.MD.U.L.login();
  724. }, 2000);
  725. } else {
  726. _formdiv = new U.UF.UI.form(
  727. "项目详情",
  728. $$("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-student-table/dist/#/courseDetail?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  729. "id": "studyDetail",
  730. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  731. "onresize": function () { }
  732. }, {
  733. closecallback: function () { }
  734. }, { "style": { "height": "36px" } }).form; //创建窗体
  735. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  736. break;
  737. }
  738. case "studyDetailGM":
  739. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  740. setTimeout(() => {
  741. U.MD.U.L.login();
  742. }, 2000);
  743. } else {
  744. // _formdiv = new U.UF.UI.form(
  745. // "项目详情",
  746. // $$("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-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  747. // "id": "studyDetail",
  748. // "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  749. // "onresize": function () { }
  750. // }, {
  751. // closecallback: function () { }
  752. // }, { "style": { "height": "36px" } }).form; //创建窗体
  753. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  754. window.open("https://pbl.cocorobo.cn/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType, "学习中心", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  755. break;
  756. }
  757. case "hanUrl":
  758. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  759. setTimeout(() => {
  760. U.MD.U.L.login();
  761. }, 2000);
  762. } else {
  763. _formdiv = new U.UF.UI.form(
  764. "汉字宫",
  765. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//school.hanzigon.cn/?appid=734714090237947#/material/video?grade_id=62&lesson_code=621&id=2432" }), {
  766. "id": "hanUrl",
  767. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  768. "onresize": function () { }
  769. }, {
  770. closecallback: function () { }
  771. }, { "style": { "height": "36px" } }).form; //创建窗体
  772. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  773. break;
  774. }
  775. }
  776. }
  777. U.MD.D.I.openApplication = function (str, obj, info) {
  778. obj = obj || {};
  779. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  780. _formdiv, //创建任务栏时同时弹出的窗体元素。
  781. _userinfo = US.userInfo, //登录用户信息
  782. _userid = obj.userid || US.userInfo.userid, //登录用户id
  783. _oid = obj.organizeid || _userinfo.organizeid,
  784. _type = US.userInfo.type,
  785. _org = US.userInfo.org,
  786. _role = US.userInfo.role,
  787. _classId = US.userInfo.classid,
  788. _TscreenType = 1
  789. _screenType = 2,
  790. _SscreenType = 3;
  791. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  792. switch (str) {
  793. case "studnetProject": //好友打开
  794. _formdiv = new U.UF.UI.form(
  795. "我的项目",
  796. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  797. "id": "studnetProject",
  798. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  799. "onresize": function () { }
  800. }, {
  801. closecallback: function () { }
  802. }, { "style": { "height": "36px" } }).form; //创建窗体
  803. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  804. break;
  805. case "studentEvaluate": //好友打开
  806. _formdiv = new U.UF.UI.form(
  807. "我的评价",
  808. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  809. "id": "studentEvaluate",
  810. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  811. "onresize": function () { }
  812. }, {
  813. closecallback: function () { }
  814. }, { "style": { "height": "36px" } }).form; //创建窗体
  815. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  816. break;
  817. case "my":
  818. _formdiv = new U.UF.UI.form(
  819. "我的资料",
  820. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  821. "id": "my",
  822. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  823. "onresize": function () { }
  824. }, {
  825. closecallback: function () { }
  826. }, { "style": { "height": "36px" } }).form; //创建窗体
  827. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  828. break;
  829. case "program":
  830. _formdiv = new U.UF.UI.form(
  831. "编程平台",
  832. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  833. "id": "program",
  834. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  835. "onresize": function () { }
  836. }, {
  837. closecallback: function () { }
  838. }, { "style": { "height": "36px" } }).form; //创建窗体
  839. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  840. break;
  841. case "library":
  842. _formdiv = new U.UF.UI.form(
  843. "素材库",
  844. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  845. "id": "library",
  846. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  847. "onresize": function () { }
  848. }, {
  849. closecallback: function () { }
  850. }, { "style": { "height": "36px" } }).form; //创建窗体
  851. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  852. break;
  853. case "whiteboard":
  854. _formdiv = new U.UF.UI.form(
  855. "电子白板",
  856. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  857. "id": "whiteboard",
  858. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  859. "onresize": function () { }
  860. }, {
  861. closecallback: function () { }
  862. }, { "style": { "height": "36px" } }).form; //创建窗体
  863. _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); } }
  864. break;
  865. case "investigation":
  866. _formdiv = new U.UF.UI.form(
  867. "问卷调查",
  868. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  869. "id": "investigation",
  870. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  871. "onresize": function () { }
  872. }, {
  873. closecallback: function () { }
  874. }, { "style": { "height": "36px" } }).form; //创建窗体
  875. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  876. break;
  877. case "note":
  878. _formdiv = new U.UF.UI.form(
  879. "便签分类",
  880. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  881. "id": "note",
  882. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  883. "onresize": function () { }
  884. }, {
  885. closecallback: function () { }
  886. }, { "style": { "height": "36px" } }).form; //创建窗体
  887. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  888. break;
  889. // case "score":
  890. // _formdiv = new U.UF.UI.form(
  891. // "量规评分",
  892. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  893. // "id": "score",
  894. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  895. // "onresize": function() {}
  896. // }, {
  897. // closecallback: function() {}
  898. // }, { "style": { "height": "36px" } }).form; //创建窗体
  899. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  900. // break;
  901. case "mind":
  902. _formdiv = new U.UF.UI.form(
  903. "思维导图",
  904. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  905. "id": "mind",
  906. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  907. "onresize": function () { }
  908. }, {
  909. closecallback: function () { }
  910. }, { "style": { "height": "36px" } }).form; //创建窗体
  911. _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); } }
  912. break;
  913. case "doc":
  914. // U.MD.D.I.isRoom();
  915. _formdiv = new U.UF.UI.form(
  916. "协同文档",
  917. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  918. "id": "doc",
  919. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  920. "onresize": function () { }
  921. }, {
  922. closecallback: function () { }
  923. }, { "style": { "height": "36px" } }).form; //创建窗体
  924. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  925. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  926. // })
  927. _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); } }
  928. break;
  929. case "studentStudy":
  930. _formdiv = new U.UF.UI.form(
  931. "学习中心",
  932. $$("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-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  933. "id": "studentStudy",
  934. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  935. "onresize": function () { }
  936. }, {
  937. closecallback: function () { }
  938. }, { "style": { "height": "36px" } }).form; //创建窗体
  939. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  940. break;
  941. case "train": //好友打开
  942. _formdiv = new U.UF.UI.form(
  943. "训练平台",
  944. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  945. "id": "train",
  946. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  947. "onresize": function () { }
  948. }, {
  949. closecallback: function () { }
  950. }, { "style": { "height": "36px" } }).form; //创建窗体
  951. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  952. break;
  953. case "mindNetwork": //好友打开
  954. _formdiv = new U.UF.UI.form(
  955. "思维网格",
  956. $$("iframe", { "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/#/Grid?userid=" + _userid + "&org=" + _org }), {
  957. "id": "mindNetwork",
  958. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  959. "onresize": function () { }
  960. }, {
  961. closecallback: function () { }
  962. }, { "style": { "height": "36px" } }).form; //创建窗体
  963. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  964. break;
  965. case "studentClassRoom": //好友打开
  966. _formdiv = new U.UF.UI.form(
  967. "实时课堂",
  968. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  969. "id": "studentClassRoom",
  970. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  971. "onresize": function () { }
  972. }, {
  973. closecallback: function () { }
  974. }, { "style": { "height": "36px" } }).form; //创建窗体
  975. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  976. setTimeout(() => {
  977. U.UF.F.windowZooming(_formdiv)
  978. }, 0);
  979. break;
  980. }
  981. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  982. switch (str) {
  983. case "studnetProject": //好友打开
  984. _formdiv = new U.UF.UI.form(
  985. "我的项目",
  986. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/project?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), {
  987. "id": "studnetProject",
  988. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  989. "onresize": function () { }
  990. }, {
  991. closecallback: function () { }
  992. }, { "style": { "height": "36px" } }).form; //创建窗体
  993. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  994. break;
  995. case "studentEvaluate": //好友打开
  996. _formdiv = new U.UF.UI.form(
  997. "我的评价",
  998. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  999. "id": "studentEvaluate",
  1000. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1001. "onresize": function () { }
  1002. }, {
  1003. closecallback: function () { }
  1004. }, { "style": { "height": "36px" } }).form; //创建窗体
  1005. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1006. break;
  1007. case "my":
  1008. _formdiv = new U.UF.UI.form(
  1009. "我的资料",
  1010. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1011. "id": "my",
  1012. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1013. "onresize": function () { }
  1014. }, {
  1015. closecallback: function () { }
  1016. }, { "style": { "height": "36px" } }).form; //创建窗体
  1017. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1018. break;
  1019. case "program":
  1020. _formdiv = new U.UF.UI.form(
  1021. "编程平台",
  1022. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1023. "id": "program",
  1024. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1025. "onresize": function () { }
  1026. }, {
  1027. closecallback: function () { }
  1028. }, { "style": { "height": "36px" } }).form; //创建窗体
  1029. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1030. break;
  1031. case "library":
  1032. _formdiv = new U.UF.UI.form(
  1033. "素材库",
  1034. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1035. "id": "library",
  1036. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1037. "onresize": function () { }
  1038. }, {
  1039. closecallback: function () { }
  1040. }, { "style": { "height": "36px" } }).form; //创建窗体
  1041. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1042. break;
  1043. case "whiteboard":
  1044. _formdiv = new U.UF.UI.form(
  1045. "电子白板",
  1046. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1047. "id": "whiteboard",
  1048. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1049. "onresize": function () { }
  1050. }, {
  1051. closecallback: function () { }
  1052. }, { "style": { "height": "36px" } }).form; //创建窗体
  1053. _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); } }
  1054. break;
  1055. case "investigation":
  1056. _formdiv = new U.UF.UI.form(
  1057. "问卷调查",
  1058. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1059. "id": "investigation",
  1060. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1061. "onresize": function () { }
  1062. }, {
  1063. closecallback: function () { }
  1064. }, { "style": { "height": "36px" } }).form; //创建窗体
  1065. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1066. break;
  1067. case "note":
  1068. _formdiv = new U.UF.UI.form(
  1069. "便签分类",
  1070. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1071. "id": "note",
  1072. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1073. "onresize": function () { }
  1074. }, {
  1075. closecallback: function () { }
  1076. }, { "style": { "height": "36px" } }).form; //创建窗体
  1077. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1078. break;
  1079. // case "score":
  1080. // _formdiv = new U.UF.UI.form(
  1081. // "量规评分",
  1082. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1083. // "id": "score",
  1084. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1085. // "onresize": function() {}
  1086. // }, {
  1087. // closecallback: function() {}
  1088. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1089. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1090. // break;
  1091. case "mind":
  1092. _formdiv = new U.UF.UI.form(
  1093. "思维导图",
  1094. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1095. "id": "mind",
  1096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1097. "onresize": function () { }
  1098. }, {
  1099. closecallback: function () { }
  1100. }, { "style": { "height": "36px" } }).form; //创建窗体
  1101. _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); } }
  1102. break;
  1103. case "doc":
  1104. // U.MD.D.I.isRoom();
  1105. _formdiv = new U.UF.UI.form(
  1106. "协同文档",
  1107. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1108. "id": "doc",
  1109. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1110. "onresize": function () { }
  1111. }, {
  1112. closecallback: function () { }
  1113. }, { "style": { "height": "36px" } }).form; //创建窗体
  1114. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1115. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1116. })
  1117. _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); } }
  1118. break;
  1119. case "train": //好友打开
  1120. _formdiv = new U.UF.UI.form(
  1121. "训练平台",
  1122. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1123. "id": "train",
  1124. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1125. "onresize": function () { }
  1126. }, {
  1127. closecallback: function () { }
  1128. }, { "style": { "height": "36px" } }).form; //创建窗体
  1129. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1130. break;
  1131. case "studentStudy":
  1132. _formdiv = new U.UF.UI.form(
  1133. "学习中心",
  1134. $$("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-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _SscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1135. "id": "studentStudy",
  1136. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1137. "onresize": function () { }
  1138. }, {
  1139. closecallback: function () { }
  1140. }, { "style": { "height": "36px" } }).form; //创建窗体
  1141. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1142. break;
  1143. case "mindNetwork": //好友打开
  1144. _formdiv = new U.UF.UI.form(
  1145. "思维网格",
  1146. $$("iframe", { "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/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1147. "id": "mindNetwork",
  1148. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1149. "onresize": function () { }
  1150. }, {
  1151. closecallback: function () { }
  1152. }, { "style": { "height": "36px" } }).form; //创建窗体
  1153. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1154. break;
  1155. case "studentClassRoom": //好友打开
  1156. _formdiv = new U.UF.UI.form(
  1157. "实时课堂",
  1158. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/liveRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1159. "id": "studentClassRoom",
  1160. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1161. "onresize": function () { }
  1162. }, {
  1163. closecallback: function () { }
  1164. }, { "style": { "height": "36px" } }).form; //创建窗体
  1165. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1166. setTimeout(() => {
  1167. U.UF.F.windowZooming(_formdiv)
  1168. }, 0);
  1169. break;
  1170. }
  1171. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1172. //选择应用处理
  1173. switch (str) {
  1174. case "project": //好友打开
  1175. _formdiv = new U.UF.UI.form(
  1176. "项目管理",
  1177. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1178. "id": "project",
  1179. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1180. "onresize": function () { }
  1181. }, {
  1182. closecallback: function () { }
  1183. }, { "style": { "height": "36px" } }).form; //创建窗体
  1184. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1185. break;
  1186. case "student":
  1187. _formdiv = new U.UF.UI.form(
  1188. "学生管理",
  1189. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  1190. "id": "student",
  1191. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1192. "onresize": function () { }
  1193. }, {
  1194. closecallback: function () { }
  1195. }, { "style": { "height": "36px" } }).form; //创建窗体
  1196. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1197. break;
  1198. case "evaluate":
  1199. _formdiv = new U.UF.UI.form(
  1200. "学生评价",
  1201. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1202. "id": "evaluate",
  1203. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1204. "onresize": function () { }
  1205. }, {
  1206. closecallback: function () { }
  1207. }, { "style": { "height": "36px" } }).form; //创建窗体
  1208. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1209. break;
  1210. case "sys":
  1211. _formdiv = new U.UF.UI.form(
  1212. "目标管理",
  1213. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1214. "id": "sys",
  1215. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1216. "onresize": function () { }
  1217. }, {
  1218. closecallback: function () { }
  1219. }, { "style": { "height": "36px" } }).form; //创建窗体
  1220. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1221. break;
  1222. case "courseDesign":
  1223. _formdiv = new U.UF.UI.form(
  1224. "课程设计",
  1225. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1226. "id": "courseDesign",
  1227. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1228. "onresize": function () { }
  1229. }, {
  1230. closecallback: function () { }
  1231. }, { "style": { "height": "36px" } }).form; //创建窗体
  1232. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1233. break;
  1234. case "program":
  1235. _formdiv = new U.UF.UI.form(
  1236. "编程平台",
  1237. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1238. "id": "program",
  1239. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1240. "onresize": function () { }
  1241. }, {
  1242. closecallback: function () { }
  1243. }, { "style": { "height": "36px" } }).form; //创建窗体
  1244. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1245. break;
  1246. case "class":
  1247. _formdiv = new U.UF.UI.form(
  1248. "班级管理",
  1249. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1250. "id": "class",
  1251. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1252. "onresize": function () { }
  1253. }, {
  1254. closecallback: function () { }
  1255. }, { "style": { "height": "36px" } }).form; //创建窗体
  1256. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1257. break;
  1258. case "my":
  1259. _formdiv = new U.UF.UI.form(
  1260. "我的资料",
  1261. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1262. "id": "my",
  1263. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1264. "onresize": function () { }
  1265. }, {
  1266. closecallback: function () { }
  1267. }, { "style": { "height": "36px" } }).form; //创建窗体
  1268. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1269. break;
  1270. case "notice":
  1271. _formdiv = new U.UF.UI.form(
  1272. "通知公告",
  1273. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1274. "id": "notice",
  1275. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1276. "onresize": function () { }
  1277. }, {
  1278. closecallback: function () { }
  1279. }, { "style": { "height": "36px" } }).form; //创建窗体
  1280. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1281. break;
  1282. case "library":
  1283. _formdiv = new U.UF.UI.form(
  1284. "素材库",
  1285. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1286. "id": "library",
  1287. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1288. "onresize": function () { }
  1289. }, {
  1290. closecallback: function () { }
  1291. }, { "style": { "height": "36px" } }).form; //创建窗体
  1292. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1293. break;
  1294. case "whiteboard":
  1295. _formdiv = new U.UF.UI.form(
  1296. "电子白板",
  1297. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1298. "id": "whiteboard",
  1299. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1300. "onresize": function () { }
  1301. }, {
  1302. closecallback: function () { }
  1303. }, { "style": { "height": "36px" } }).form; //创建窗体
  1304. _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); } }
  1305. break;
  1306. case "investigation":
  1307. _formdiv = new U.UF.UI.form(
  1308. "问卷调查",
  1309. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1310. "id": "investigation",
  1311. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1312. "onresize": function () { }
  1313. }, {
  1314. closecallback: function () { }
  1315. }, { "style": { "height": "36px" } }).form; //创建窗体
  1316. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1317. break;
  1318. case "note":
  1319. _formdiv = new U.UF.UI.form(
  1320. "便签分类",
  1321. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1322. "id": "note",
  1323. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1324. "onresize": function () { }
  1325. }, {
  1326. closecallback: function () { }
  1327. }, { "style": { "height": "36px" } }).form; //创建窗体
  1328. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1329. break;
  1330. // case "score":
  1331. // _formdiv = new U.UF.UI.form(
  1332. // "量规评分",
  1333. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn" }), {
  1334. // "id": "score",
  1335. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1336. // "onresize": function() {}
  1337. // }, {
  1338. // closecallback: function() {}
  1339. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1340. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1341. // break;
  1342. case "mind":
  1343. _formdiv = new U.UF.UI.form(
  1344. "思维导图",
  1345. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1346. "id": "mind",
  1347. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1348. "onresize": function () { }
  1349. }, {
  1350. closecallback: function () { }
  1351. }, { "style": { "height": "36px" } }).form; //创建窗体
  1352. _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); } }
  1353. break;
  1354. case "doc":
  1355. // U.MD.D.I.isRoom();
  1356. _formdiv = new U.UF.UI.form(
  1357. "协同文档",
  1358. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1359. "id": "doc",
  1360. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1361. "onresize": function () { }
  1362. }, {
  1363. closecallback: function () { }
  1364. }, { "style": { "height": "36px" } }).form; //创建窗体
  1365. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1366. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1367. })
  1368. _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); } }
  1369. break;
  1370. case "study":
  1371. _formdiv = new U.UF.UI.form(
  1372. "学习中心",
  1373. $$("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-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1374. "id": "study",
  1375. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1376. "onresize": function () { }
  1377. }, {
  1378. closecallback: function () { }
  1379. }, { "style": { "height": "36px" } }).form; //创建窗体
  1380. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1381. break;
  1382. case "mindNetwork": //好友打开
  1383. _formdiv = new U.UF.UI.form(
  1384. "思维网格",
  1385. $$("iframe", { "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/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1386. "id": "mindNetwork",
  1387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1388. "onresize": function () { }
  1389. }, {
  1390. closecallback: function () { }
  1391. }, { "style": { "height": "36px" } }).form; //创建窗体
  1392. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1393. break;
  1394. case "train": //好友打开
  1395. _formdiv = new U.UF.UI.form(
  1396. "训练平台",
  1397. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1398. "id": "mindNetwork",
  1399. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1400. "onresize": function () { }
  1401. }, {
  1402. closecallback: function () { }
  1403. }, { "style": { "height": "36px" } }).form; //创建窗体
  1404. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1405. break;
  1406. case "teacherClassRoom": //好友打开
  1407. _formdiv = new U.UF.UI.form(
  1408. "实时课堂",
  1409. $$("iframe", { "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/#/classRoom?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1410. "id": "teacherClassRoom",
  1411. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1412. "onresize": function () { }
  1413. }, {
  1414. closecallback: function () { }
  1415. }, { "style": { "height": "36px" } }).form; //创建窗体
  1416. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1417. setTimeout(() => {
  1418. U.UF.F.windowZooming(_formdiv)
  1419. }, 0);
  1420. break;
  1421. }
  1422. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1423. switch (str) {
  1424. case "project": //好友打开
  1425. _formdiv = new U.UF.UI.form(
  1426. "项目管理",
  1427. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1428. "id": "project",
  1429. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1430. "onresize": function () { }
  1431. }, {
  1432. closecallback: function () { }
  1433. }, { "style": { "height": "36px" } }).form; //创建窗体
  1434. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1435. break;
  1436. case "evaluate":
  1437. _formdiv = new U.UF.UI.form(
  1438. "学生评价",
  1439. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1440. "id": "evaluate",
  1441. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1442. "onresize": function () { }
  1443. }, {
  1444. closecallback: function () { }
  1445. }, { "style": { "height": "36px" } }).form; //创建窗体
  1446. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1447. break;
  1448. case "notice":
  1449. _formdiv = new U.UF.UI.form(
  1450. "通知公告",
  1451. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/notice?userid=" + _userid + "&org=" + _org }), {
  1452. "id": "notice",
  1453. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1454. "onresize": function () { }
  1455. }, {
  1456. closecallback: function () { }
  1457. }, { "style": { "height": "36px" } }).form; //创建窗体
  1458. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1459. break;
  1460. case "stuLibrary":
  1461. _formdiv = new U.UF.UI.form(
  1462. "学习资料",
  1463. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studyLibrary?userid=" + _userid + "&org=" + _org }), {
  1464. "id": "stuLibrary",
  1465. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1466. "onresize": function () { }
  1467. }, {
  1468. closecallback: function () { }
  1469. }, { "style": { "height": "36px" } }).form; //创建窗体
  1470. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1471. break;
  1472. case "program":
  1473. _formdiv = new U.UF.UI.form(
  1474. "编程平台",
  1475. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1476. "id": "program",
  1477. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1478. "onresize": function () { }
  1479. }, {
  1480. closecallback: function () { }
  1481. }, { "style": { "height": "36px" } }).form; //创建窗体
  1482. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1483. break;
  1484. case "whiteboard":
  1485. _formdiv = new U.UF.UI.form(
  1486. "电子白板",
  1487. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1488. "id": "whiteboard",
  1489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1490. "onresize": function () { }
  1491. }, {
  1492. closecallback: function () { }
  1493. }, { "style": { "height": "36px" } }).form; //创建窗体
  1494. _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); } }
  1495. break;
  1496. case "investigation":
  1497. _formdiv = new U.UF.UI.form(
  1498. "问卷调查",
  1499. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1500. "id": "investigation",
  1501. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1502. "onresize": function () { }
  1503. }, {
  1504. closecallback: function () { }
  1505. }, { "style": { "height": "36px" } }).form; //创建窗体
  1506. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1507. break;
  1508. case "mind":
  1509. _formdiv = new U.UF.UI.form(
  1510. "思维导图",
  1511. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  1512. "id": "mind",
  1513. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1514. "onresize": function () { }
  1515. }, {
  1516. closecallback: function () { }
  1517. }, { "style": { "height": "36px" } }).form; //创建窗体
  1518. _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); } }
  1519. break;
  1520. case "doc":
  1521. // U.MD.D.I.isRoom();
  1522. _formdiv = new U.UF.UI.form(
  1523. "协同文档",
  1524. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  1525. "id": "doc",
  1526. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1527. "onresize": function () { }
  1528. }, {
  1529. closecallback: function () { }
  1530. }, { "style": { "height": "36px" } }).form; //创建窗体
  1531. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1532. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1533. })
  1534. _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); } }
  1535. break;
  1536. case "study":
  1537. _formdiv = new U.UF.UI.form(
  1538. "学习中心",
  1539. $$("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-student-table/dist/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1540. "id": "study",
  1541. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1542. "onresize": function () { }
  1543. }, {
  1544. closecallback: function () { }
  1545. }, { "style": { "height": "36px" } }).form; //创建窗体
  1546. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1547. break;
  1548. case "mindNetwork": //好友打开
  1549. _formdiv = new U.UF.UI.form(
  1550. "思维网格",
  1551. $$("iframe", { "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/#/Grid?userid=" + _userid + "&org=" + _org }), {
  1552. "id": "mindNetwork",
  1553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1554. "onresize": function () { }
  1555. }, {
  1556. closecallback: function () { }
  1557. }, { "style": { "height": "36px" } }).form; //创建窗体
  1558. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1559. break;
  1560. case "train": //好友打开
  1561. _formdiv = new U.UF.UI.form(
  1562. "训练平台",
  1563. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1564. "id": "train",
  1565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1566. "onresize": function () { }
  1567. }, {
  1568. closecallback: function () { }
  1569. }, { "style": { "height": "36px" } }).form; //创建窗体
  1570. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1571. break;
  1572. case "sys":
  1573. _formdiv = new U.UF.UI.form(
  1574. "目标管理",
  1575. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1576. "id": "sys",
  1577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1578. "onresize": function () { }
  1579. }, {
  1580. closecallback: function () { }
  1581. }, { "style": { "height": "36px" } }).form; //创建窗体
  1582. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1583. break;
  1584. case "courseDesign":
  1585. _formdiv = new U.UF.UI.form(
  1586. "课程设计",
  1587. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  1588. "id": "courseDesign",
  1589. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1590. "onresize": function () { }
  1591. }, {
  1592. closecallback: function () { }
  1593. }, { "style": { "height": "36px" } }).form; //创建窗体
  1594. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "课程设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1595. break;
  1596. }
  1597. } else if (!_type) {
  1598. switch (str) {
  1599. case "my":
  1600. _formdiv = new U.UF.UI.form(
  1601. "我的资料",
  1602. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1603. "id": "my",
  1604. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1605. "onresize": function () { }
  1606. }, {
  1607. closecallback: function () { }
  1608. }, { "style": { "height": "36px" } }).form; //创建窗体
  1609. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1610. break;
  1611. }
  1612. }
  1613. switch (str) {
  1614. // AIprogram2 AI体验 aihub.cocorobo.cn
  1615. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  1616. // AIprogram AI编程 ai-blockly.cocorobo.cn
  1617. case "AIprogram2": //AI体验
  1618. _formdiv = new U.UF.UI.form(
  1619. "AI体验",
  1620. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  1621. "id": "AIprogram2",
  1622. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1623. "onresize": function () { }
  1624. }, {
  1625. closecallback: function () { }
  1626. }, { "style": { "height": "36px" } }).form; //创建窗体
  1627. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1628. break;
  1629. case "Pythonprogram": //python编程
  1630. _formdiv = new U.UF.UI.form(
  1631. "Python编程",
  1632. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  1633. "id": "Pythonprogram",
  1634. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1635. "onresize": function () { }
  1636. }, {
  1637. closecallback: function () { }
  1638. }, { "style": { "height": "36px" } }).form; //创建窗体
  1639. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1640. break;
  1641. case "AIprogram": //ai编程
  1642. _formdiv = new U.UF.UI.form(
  1643. "AI编程平台",
  1644. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  1645. "id": "AIprogram",
  1646. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1647. "onresize": function () { }
  1648. }, {
  1649. closecallback: function () { }
  1650. }, { "style": { "height": "36px" } }).form; //创建窗体
  1651. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1652. break;
  1653. case "resources": //国家教育
  1654. _formdiv = new U.UF.UI.form(
  1655. "国家教育",
  1656. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  1657. "id": "resources",
  1658. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1659. "onresize": function () { }
  1660. }, {
  1661. closecallback: function () { }
  1662. }, { "style": { "height": "36px" } }).form; //创建窗体
  1663. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1664. break;
  1665. case "codeEdit": //源码编辑
  1666. _formdiv = new U.UF.UI.form(
  1667. "源码编辑",
  1668. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  1669. "id": "codeEdit",
  1670. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1671. "onresize": function () { }
  1672. }, {
  1673. closecallback: function () { }
  1674. }, { "style": { "height": "36px" } }).form; //创建窗体
  1675. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1676. break; //
  1677. case "MindMap": //MindMap
  1678. _formdiv = new U.UF.UI.form(
  1679. "MindMap",
  1680. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  1681. "id": "MindMap",
  1682. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1683. "onresize": function () { }
  1684. }, {
  1685. closecallback: function () { }
  1686. }, { "style": { "height": "36px" } }).form; //创建窗体
  1687. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1688. break;
  1689. case "netWorkPanel": //netWorkPanel
  1690. _formdiv = new U.UF.UI.form(
  1691. "netWorkPanel",
  1692. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  1693. "id": "netWorkPanel",
  1694. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1695. "onresize": function () { }
  1696. }, {
  1697. closecallback: function () { }
  1698. }, { "style": { "height": "36px" } }).form; //创建窗体
  1699. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/netWorkPanel.png)" }, "name": "netWorkPanel", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1700. break;
  1701. case "GeoGebra": //GeoGebra
  1702. _formdiv = new U.UF.UI.form(
  1703. "GeoGebra",
  1704. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  1705. "id": "GeoGebra",
  1706. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1707. "onresize": function () { }
  1708. }, {
  1709. closecallback: function () { }
  1710. }, { "style": { "height": "36px" } }).form; //创建窗体
  1711. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/GeoGebra.png)" }, "name": "GeoGebra", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1712. break;
  1713. case "translation": //翻译
  1714. _formdiv = new U.UF.UI.form(
  1715. "翻译",
  1716. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  1717. "id": "translation",
  1718. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  1719. "onresize": function () { }
  1720. }, {
  1721. closecallback: function () { }
  1722. }, { "style": { "height": "36px" } }).form; //创建窗体
  1723. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/translation.png)" }, "name": "翻译", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1724. break;
  1725. case "mohe": //魔盒
  1726. _formdiv = new U.UF.UI.form(
  1727. "魔盒识字",
  1728. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  1729. "id": "mohe",
  1730. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1731. "onresize": function () { }
  1732. }, {
  1733. closecallback: function () { }
  1734. }, { "style": { "height": "36px" } }).form; //创建窗体
  1735. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mohe.png)" }, "name": "魔盒识字", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1736. break;
  1737. case "24game": //24点
  1738. _formdiv = new U.UF.UI.form(
  1739. "24点",
  1740. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  1741. "id": "24game",
  1742. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  1743. "onresize": function () { }
  1744. }, {
  1745. closecallback: function () { }
  1746. }, { "style": { "height": "36px" } }).form; //创建窗体
  1747. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1748. break;
  1749. case "case":
  1750. _formdiv = new U.UF.UI.form(
  1751. "项目进展",
  1752. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesign?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1753. "id": "case",
  1754. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1755. "onresize": function () { }
  1756. }, {
  1757. closecallback: function () { }
  1758. }, { "style": { "height": "36px" } }).form; //创建窗体
  1759. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1760. break;
  1761. case "snf":
  1762. _formdiv = new U.UF.UI.form(
  1763. "赛诺梵",
  1764. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//try.cynovan.com/standard/?trial=true&data=%7B%22username%22%3A%22cynovanDemo%22%2C%22password%22%3A%22cynovanDemo%22%7D&redirect_uri=http://janus.cynovan.com/#/app/workflow/menu/1/r/6343ce2ac00fa32609d1f91b" }), {
  1765. "id": "snf",
  1766. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1767. "onresize": function () { }
  1768. }, {
  1769. closecallback: function () { }
  1770. }, { "style": { "height": "36px" } }).form; //创建窗体
  1771. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1772. break;
  1773. case "hanFamily":
  1774. _formdiv = new U.UF.UI.form(
  1775. "汉字家族",
  1776. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  1777. "id": "hanFamily",
  1778. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1779. "onresize": function () { }
  1780. }, {
  1781. closecallback: function () { }
  1782. }, { "style": { "height": "36px" } }).form; //创建窗体
  1783. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1784. break;
  1785. case "hanClassics":
  1786. _formdiv = new U.UF.UI.form(
  1787. "国学经典",
  1788. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  1789. "id": "hanClassics",
  1790. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1791. "onresize": function () { }
  1792. }, {
  1793. closecallback: function () { }
  1794. }, { "style": { "height": "36px" } }).form; //创建窗体
  1795. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1796. break;
  1797. case "hanTraining":
  1798. _formdiv = new U.UF.UI.form(
  1799. "笔画训练",
  1800. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  1801. "id": "hanTraining",
  1802. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1803. "onresize": function () { }
  1804. }, {
  1805. closecallback: function () { }
  1806. }, { "style": { "height": "36px" } }).form; //创建窗体
  1807. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1808. break;
  1809. case "hanClass":
  1810. _formdiv = new U.UF.UI.form(
  1811. "书法课堂",
  1812. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  1813. "id": "hanClass",
  1814. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1815. "onresize": function () { }
  1816. }, {
  1817. closecallback: function () { }
  1818. }, { "style": { "height": "36px" } }).form; //创建窗体
  1819. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1820. break;
  1821. case "han":
  1822. _formdiv = new U.UF.UI.form(
  1823. "汉字宫",
  1824. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  1825. "id": "han",
  1826. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1827. "onresize": function () { }
  1828. }, {
  1829. closecallback: function () { }
  1830. }, { "style": { "height": "36px" } }).form; //创建窗体
  1831. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1832. break;
  1833. case "projectGM": //项目管理
  1834. // _formdiv = new U.UF.UI.form(
  1835. // "项目管理",
  1836. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1837. // "id": "projectGM",
  1838. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1839. // "onresize": function () { }
  1840. // }, {
  1841. // closecallback: function () { }
  1842. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1843. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1844. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1845. break;
  1846. case "studyGM"://学习中心
  1847. // _formdiv = new U.UF.UI.form(
  1848. // "学习中心",
  1849. // $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1850. // "id": "study",
  1851. // "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1852. // "onresize": function () { }
  1853. // }, {
  1854. // closecallback: function () { }
  1855. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1856. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "学习中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1857. window.open("https://pbl.cocorobo.cn/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType, "学习中心", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1858. break;
  1859. // studentGM
  1860. case "studentGM"://学生管理
  1861. // _formdiv = new U.UF.UI.form(
  1862. // "学生管理",
  1863. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  1864. // "id": "studentGM",
  1865. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1866. // "onresize": function () { }
  1867. // }, {
  1868. // closecallback: function () { }
  1869. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1870. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1871. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org, "学生管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1872. break;
  1873. case "evaluateGM"://学生评价
  1874. // _formdiv = new U.UF.UI.form(
  1875. // "学生评价",
  1876. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1877. // "id": "evaluateGM",
  1878. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1879. // "onresize": function () { }
  1880. // }, {
  1881. // closecallback: function () { }
  1882. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1883. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1884. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "学生评价", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1885. break;
  1886. // classGM
  1887. case "classGM"://班级管理
  1888. //_formdiv = new U.UF.UI.form(
  1889. // "班级管理",
  1890. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1891. // "id": "classGM",
  1892. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1893. // "onresize": function () { }
  1894. // }, {
  1895. // closecallback: function () { }
  1896. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1897. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1898. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "班级管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1899. break;
  1900. // dataGM
  1901. case "dataGM":
  1902. // _formdiv = new U.UF.UI.form(
  1903. // "我的资料",
  1904. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  1905. // "id": "dataGM",
  1906. // "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1907. // "onresize": function () { }
  1908. // }, {
  1909. // closecallback: function () { }
  1910. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1911. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1912. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org, "我的资料", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1913. break;
  1914. // caseGM
  1915. case "caseGM"://项目进展
  1916. // _formdiv = new U.UF.UI.form(
  1917. // "项目进展",
  1918. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1919. // "id": "caseGM",
  1920. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1921. // "onresize": function () { }
  1922. // }, {
  1923. // closecallback: function () { }
  1924. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1925. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1926. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目进展", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1927. break;
  1928. // meterialGM
  1929. case "meterialGM"://素材库
  1930. // _formdiv = new U.UF.UI.form(
  1931. // "素材库",
  1932. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  1933. // "id": "meterialGM",
  1934. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1935. // "onresize": function () { }
  1936. // }, {
  1937. // closecallback: function () { }
  1938. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1939. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1940. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org, "素材库", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1941. break;
  1942. // evaluateSGM
  1943. case "evaluateSGM": //我的评价
  1944. // _formdiv = new U.UF.UI.form(
  1945. // "我的评价",
  1946. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1947. // "id": "evaluateSGM",
  1948. // "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1949. // "onresize": function () { }
  1950. // }, {
  1951. // closecallback: function () { }
  1952. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1953. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/evaluate.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1954. window.open("https://pbl.cocorobo.cn/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "我的评价", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1955. break;
  1956. case "schoolGM": //学校管理
  1957. // _formdiv = new U.UF.UI.form(
  1958. // "学校管理",
  1959. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/schoolGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1960. // "id": "schoolGM",
  1961. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1962. // "onresize": function () { }
  1963. // }, {
  1964. // closecallback: function () { }
  1965. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1966. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1967. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/schoolGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "学校管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1968. break;
  1969. case "teacherGM": //教师管理
  1970. // _formdiv = new U.UF.UI.form(
  1971. // "教师管理",
  1972. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/teacherGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1973. // "id": "teacherGM",
  1974. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1975. // "onresize": function () { }
  1976. // }, {
  1977. // closecallback: function () { }
  1978. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1979. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1980. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/teacherGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "教师管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1981. break;
  1982. case "examineGM": //教师管理
  1983. // _formdiv = new U.UF.UI.form(
  1984. // "项目审核",
  1985. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/examineGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1986. // "id": "examineGM",
  1987. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1988. // "onresize": function () { }
  1989. // }, {
  1990. // closecallback: function () { }
  1991. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1992. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/examine.png)" }, "name": "项目审核", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1993. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/examineGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目审核", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  1994. break;
  1995. case "messageGM": //消息通知
  1996. // _formdiv = new U.UF.UI.form(
  1997. // "消息通知",
  1998. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/noticeGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  1999. // "id": "messageGM",
  2000. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2001. // "onresize": function () { }
  2002. // }, {
  2003. // closecallback: function () { }
  2004. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2005. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/examine.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2006. window.open("https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/noticeGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role, "消息通知", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  2007. break;
  2008. }
  2009. //U.MD.D.I.openClick(str);
  2010. //如果有任务栏信息
  2011. if (_taskbar) {
  2012. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2013. }
  2014. }
  2015. // U.MD.D.I.openClick = function(str){
  2016. // var click = '';
  2017. // switch(str){
  2018. // case 'friend':
  2019. // click = '我的好友';
  2020. // break;
  2021. // case 'domain':
  2022. // click = '域名管理';
  2023. // break;
  2024. // case 'disk':
  2025. // click = '我的云盘';
  2026. // break;
  2027. // case 'word':
  2028. // click = 'Word';
  2029. // break;
  2030. // case 'excel':
  2031. // click = 'Execl';
  2032. // break;
  2033. // case 'txt':
  2034. // click = '文本文件';
  2035. // break;
  2036. // case 'lookupFriend':
  2037. // click = '查找好友';
  2038. // break;
  2039. // case 'ftp':
  2040. // click = 'FTP';
  2041. // break;
  2042. // case 'group':
  2043. // click = '群组';
  2044. // break;
  2045. // case 'set':
  2046. // click = '我的设置';
  2047. // break;
  2048. // case 'systemSet':
  2049. // click = '系统设置';
  2050. // break;
  2051. // case 'boomYun':
  2052. // click = '互联办公';
  2053. // break;
  2054. // case 'xz':
  2055. // click = '云端下载';
  2056. // break;
  2057. // case 'client':
  2058. // click = '有思浏览器';
  2059. // break;
  2060. // case 'backEndProgramming':
  2061. // click = '在线后台编程';
  2062. // break;
  2063. // case 'frontEndProgramming':
  2064. // click = '在线前端编程';
  2065. // break;
  2066. // default: break;
  2067. // }
  2068. // if(U.MD.D.I.Ip && click){
  2069. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  2070. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  2071. // })
  2072. // }
  2073. // }
  2074. /**
  2075. *函数作用:ajax简易函数,使用post格式
  2076. *@param url {data} 后台地址
  2077. *@param data {data} 参数json
  2078. *@param fn {data} 回调函数
  2079. *
  2080. */
  2081. // U.MD.D.I.Mysqlrequest = function(url,fn){
  2082. // var xhr = new XMLHttpRequest();
  2083. // xhr.open("GET",url,true);
  2084. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  2085. // xhr.onreadystatechange = function(){
  2086. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  2087. // fn.call(this,xhr.responseText);
  2088. // }
  2089. // };
  2090. // xhr.send();
  2091. // }
  2092. /*判断是否是内网IP*/
  2093. // U.MD.D.I.isInnerIPFn = function(str){
  2094. // var curPageUrl = str;
  2095. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  2096. // curPageUrl =curPageUrl.replace(reg1,'');
  2097. // // console.log('curPageUrl-1 '+curPageUrl);
  2098. // var reg2 = /\:+/g;//替换冒号为一点
  2099. // curPageUrl =curPageUrl.replace(reg2,'.');
  2100. // // console.log('curPageUrl-2 '+curPageUrl);
  2101. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  2102. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  2103. // if(curPageUrl[2] != '16'){
  2104. // return ipAddress;
  2105. // }else{
  2106. // return false;
  2107. // }
  2108. // }
  2109. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  2110. // //compatibility for firefox and chrome
  2111. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  2112. // var pc = new myPeerConnection({
  2113. // iceServers: []
  2114. // }),
  2115. // noop = function() {},
  2116. // localIPs = {},
  2117. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  2118. // key;
  2119. // function iterateIP(ip) {
  2120. // if (!localIPs[ip]) onNewIP(ip);
  2121. // localIPs[ip] = true;
  2122. // }
  2123. // //create a bogus data channel
  2124. // pc.createDataChannel("");
  2125. // // create offer and set local description
  2126. // pc.createOffer().then(function(sdp) {
  2127. // sdp.sdp.split('\n').forEach(function(line) {
  2128. // if (line.indexOf('candidate') < 0) return;
  2129. // line.match(ipRegex).forEach(iterateIP);
  2130. // });
  2131. // pc.setLocalDescription(sdp, noop, noop);
  2132. // }).catch(function(reason) {
  2133. // // An error occurred, so handle the failure to connect
  2134. // });
  2135. // //sten for candidate events
  2136. // pc.onicecandidate = function(ice) {
  2137. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  2138. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  2139. // };
  2140. // }
  2141. // U.MD.D.I.getUserIpBool = function(callback){
  2142. // U.MD.D.I.getUserIP(function(ip){
  2143. // alert("Got IP! :" + ip);
  2144. // });
  2145. //}
  2146. //#endregion
  2147. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  2148. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2149. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2150. _userinfo = US.userInfo, //登录用户信息
  2151. _userid = US.userInfo.userid //登录用户id
  2152. let _iframe;
  2153. let _cid = cid,
  2154. _stage = stage,
  2155. _task = task,
  2156. _tool = tool;
  2157. var _jie = $$("div", {
  2158. "style": {
  2159. "position": "absolute",
  2160. "bottom": "50px",
  2161. "right": "50px",
  2162. "zIndex": "9999",
  2163. "backgroundColor": "#2268bc",
  2164. "color": "#fff",
  2165. "padding": "12px 20px",
  2166. "cursor": "pointer",
  2167. "borderRadius": "4px",
  2168. },
  2169. "innerHTML": "提交作业"
  2170. })
  2171. let aTool = ''
  2172. let _loading = document.createElement('div')
  2173. _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;"
  2174. // _loading.id = "";
  2175. let _lchild = document.createElement('div')
  2176. let _limg = document.createElement('img')
  2177. _limg.src = 'https://pbl.cocorobo.cn/pbl-student-table/dist/js/loading.gif'
  2178. _limg.style = "width: 26px;margin-right: 10px;"
  2179. _lchild.appendChild(_limg)
  2180. let _lspan = document.createElement('span')
  2181. _lspan.innerHTML = "上传中..."
  2182. _lchild.appendChild(_lspan)
  2183. _lchild.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;display:flex;align-items:center;"
  2184. _loading.appendChild(_lchild)
  2185. var _box = $$('div', {
  2186. "style": {
  2187. "position": "relative",
  2188. "width": "100%",
  2189. "height": "100%",
  2190. },
  2191. })
  2192. _box.appendChild(_loading)
  2193. _box.id = str + '_loadLi'
  2194. switch (str) {
  2195. case "whiteboard":
  2196. aTool = 1;
  2197. _iframe = $$("iframe", {
  2198. "frameborder": "no",
  2199. "border": "0",
  2200. "scrolling ": "no",
  2201. "style": {
  2202. "cssText": "border:0;width:100%;height:100%"
  2203. },
  2204. "src": "https://iwb.cocorobo.cn/"
  2205. })
  2206. _box.appendChild(_iframe);
  2207. _box.appendChild(_jie);
  2208. _formdiv = new U.UF.UI.form(
  2209. "电子白板",
  2210. _box, {
  2211. "id": "whiteboard",
  2212. "style": {
  2213. "width": "90%",
  2214. "height": "90%",
  2215. "overflow": 'hidden'
  2216. },
  2217. "onresize": function () { }
  2218. }, {
  2219. closecallback: function () { }
  2220. }, {
  2221. "style": {
  2222. "height": "36px"
  2223. }
  2224. }).form; //创建窗体
  2225. _taskbar = {
  2226. "id": str + _formdiv.id,
  2227. "style": {
  2228. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  2229. },
  2230. "name": "电子白板",
  2231. "forms": _formdiv,
  2232. "click": function () {
  2233. U.MD.D.I.openApplication(str, obj, info);
  2234. }
  2235. }
  2236. break;
  2237. case "mind":
  2238. // aTool = 3;
  2239. // _iframe = $$("iframe", {
  2240. // "frameborder": "no",
  2241. // "border": "0",
  2242. // "scrolling ": "no",
  2243. // "style": {
  2244. // "cssText": "border:0;width:100%;height:100%"
  2245. // },
  2246. // "src": "/kityminder-editor/dist/index.html"
  2247. // })
  2248. // _box.appendChild(_iframe);
  2249. // _box.appendChild(_jie);
  2250. // _formdiv = new U.UF.UI.form(
  2251. // "思维导图",
  2252. // _box, { //"/jsmind/example/demo.html"
  2253. // "id": "mind",
  2254. // "style": {
  2255. // "width": "90%",
  2256. // "height": "90%",
  2257. // "overflow": 'hidden'
  2258. // },
  2259. // "onresize": function () { }
  2260. // }, {
  2261. // closecallback: function () { }
  2262. // }, {
  2263. // "style": {
  2264. // "height": "36px"
  2265. // }
  2266. // }).form; //创建窗体
  2267. // _taskbar = {
  2268. // "id": str + _formdiv.id,
  2269. // "style": {
  2270. // "backgroundImage": "url(/img/icon/mindMapping.png)"
  2271. // },
  2272. // "name": "思维导图",
  2273. // "forms": _formdiv,
  2274. // "click": function () {
  2275. // U.MD.D.I.openApplication(str, obj, info);
  2276. // }
  2277. // }
  2278. let test = window.open("https://cloud.cocorobo.cn/kityminder-editor/dist/index.html", "思维导图", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
  2279. test.location.reload;
  2280. break;
  2281. case "MindMap":
  2282. aTool = 3;
  2283. _iframe = $$("iframe", {
  2284. "frameborder": "no",
  2285. "border": "0",
  2286. "scrolling ": "no",
  2287. "style": {
  2288. "cssText": "border:0;width:100%;height:100%"
  2289. },
  2290. "src": "//cloud.cocorobo.cn/mind/"
  2291. })
  2292. _box.appendChild(_iframe);
  2293. _box.appendChild(_jie);
  2294. _formdiv = new U.UF.UI.form(
  2295. "思维导图",
  2296. _box, { //"/jsmind/example/demo.html"
  2297. "id": "mind",
  2298. "style": {
  2299. "width": "90%",
  2300. "height": "90%",
  2301. "overflow": 'hidden'
  2302. },
  2303. "onresize": function () { }
  2304. }, {
  2305. closecallback: function () { }
  2306. }, {
  2307. "style": {
  2308. "height": "36px"
  2309. }
  2310. }).form; //创建窗体
  2311. _taskbar = {
  2312. "id": str + _formdiv.id,
  2313. "style": {
  2314. "backgroundImage": "url(/img/icon/mindMapping.png)"
  2315. },
  2316. "name": "思维导图",
  2317. "forms": _formdiv,
  2318. "click": function () {
  2319. U.MD.D.I.openApplication(str, obj, info);
  2320. }
  2321. }
  2322. break;
  2323. case "doc":
  2324. aTool = 6;
  2325. _iframe = $$("iframe", {
  2326. "frameborder": "no",
  2327. "border": "0",
  2328. "scrolling ": "no",
  2329. "style": {
  2330. "cssText": "border:0;width:100%;height:100%"
  2331. },
  2332. "src": "/Office/Word/WordEditArea.htm"
  2333. })
  2334. _box.appendChild(_iframe);
  2335. _box.appendChild(_jie);
  2336. _formdiv = new U.UF.UI.form(
  2337. "协同文档",
  2338. _box, {
  2339. "id": "doc",
  2340. "style": {
  2341. "width": "90%",
  2342. "height": "90%",
  2343. "overflow": 'hidden'
  2344. },
  2345. "onresize": function () { }
  2346. }, {
  2347. closecallback: function () { }
  2348. }, {
  2349. "style": {
  2350. "height": "36px"
  2351. }
  2352. }).form; //创建窗体
  2353. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2354. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2355. })
  2356. _taskbar = {
  2357. "id": str + _formdiv.id,
  2358. "style": {
  2359. "backgroundImage": "url(/img/icon/doc.png)"
  2360. },
  2361. "name": "协同文档",
  2362. "forms": _formdiv,
  2363. "click": function () {
  2364. U.MD.D.I.openApplication(str, obj, info);
  2365. }
  2366. }
  2367. break;
  2368. case "mindNetwork": //好友打开
  2369. aTool = 7;
  2370. _iframe = $$("iframe", {
  2371. "webkitallowfullscreen": "",
  2372. "mozallowfullscreen": "",
  2373. "allowfullscreen": "",
  2374. "frameborder": "no",
  2375. "border": "0",
  2376. "scrolling ": "no",
  2377. "style": {
  2378. "cssText": "border:0; width:100%; height:100%;"
  2379. },
  2380. "src": "https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  2381. })
  2382. _box.appendChild(_iframe);
  2383. _box.appendChild(_jie);
  2384. _formdiv = new U.UF.UI.form(
  2385. "思维网格",
  2386. _box, {
  2387. "id": "mindNetwork",
  2388. "style": {
  2389. "width": "90%",
  2390. "height": "90%",
  2391. "overflow": 'hidden'
  2392. },
  2393. "onresize": function () { }
  2394. }, {
  2395. closecallback: function () { }
  2396. }, {
  2397. "style": {
  2398. "height": "36px"
  2399. }
  2400. }).form; //创建窗体
  2401. _taskbar = {
  2402. "id": str + _formdiv.id,
  2403. "style": {
  2404. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  2405. },
  2406. "name": "思维网格",
  2407. "forms": _formdiv,
  2408. "click": function () {
  2409. U.MD.D.I.openApplication(str, obj, info);
  2410. }
  2411. }
  2412. break;
  2413. case "courseDesign":
  2414. _iframe = $$("iframe", {
  2415. "webkitallowfullscreen": "",
  2416. "mozallowfullscreen": "",
  2417. "allowfullscreen": "",
  2418. "frameborder": "no",
  2419. "border": "0",
  2420. "scrolling ": "no",
  2421. "style": {
  2422. "cssText": "border:0; width:100%; height:100%;"
  2423. },
  2424. "src": "/course-design-vue"
  2425. })
  2426. _box.appendChild(_iframe);
  2427. _box.appendChild(_jie);
  2428. _formdiv = new U.UF.UI.form(
  2429. "课程设计",
  2430. _box, {
  2431. "id": "courseDesign",
  2432. "style": {
  2433. "width": "90%",
  2434. "height": "90%",
  2435. "overflow": 'hidden'
  2436. },
  2437. "onresize": function () { }
  2438. }, {
  2439. closecallback: function () { }
  2440. }, {
  2441. "style": {
  2442. "height": "36px"
  2443. }
  2444. }).form; //创建窗体
  2445. _taskbar = {
  2446. "id": str + _formdiv.id,
  2447. "style": {
  2448. "backgroundImage": "url(/img/icon/courseDesign.png)"
  2449. },
  2450. "name": "课程设计",
  2451. "forms": _formdiv,
  2452. "click": function () {
  2453. U.MD.D.I.openApplication(str, obj, info);
  2454. }
  2455. }
  2456. break;
  2457. }
  2458. const script1 = document.createElement("script");
  2459. script1.type = "text/javascript";
  2460. script1.src =
  2461. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  2462. const script2 = document.createElement("script");
  2463. script2.type = "text/javascript";
  2464. script2.src =
  2465. "https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  2466. const script3 = document.createElement("script");
  2467. script3.type = "text/javascript";
  2468. script3.charset = "UTF-8";
  2469. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  2470. const script4 = document.createElement("script");
  2471. script4.type = "text/javascript";
  2472. script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
  2473. if (_iframe) {
  2474. if (str == 'doc') {
  2475. U.UF.DL.iframeLoad(_iframe, function () {
  2476. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  2477. _iframe.contentWindow.document.body.appendChild(script1);
  2478. _iframe.contentWindow.document.body.appendChild(script2);
  2479. // _iframe.contentWindow.document.body.appendChild(script3);
  2480. _iframe.contentWindow.document.body.appendChild(script4);
  2481. })
  2482. } else if (str == 'courseDesign') {
  2483. U.UF.DL.iframeLoad(_iframe, function () {
  2484. // _iframe.contentWindow.U.MD.O.W.load();
  2485. // _iframe.contentWindow.document.body.appendChild(script1);
  2486. _iframe.contentWindow.document.body.appendChild(script2);
  2487. _iframe.contentWindow.document.body.appendChild(script4);
  2488. })
  2489. } else {
  2490. _iframe.onload = () => {
  2491. _iframe.contentWindow.document.body.appendChild(script1);
  2492. _iframe.contentWindow.document.body.appendChild(script2);
  2493. // _iframe.contentWindow.document.body.appendChild(script3);
  2494. _iframe.contentWindow.document.body.appendChild(script4);
  2495. };
  2496. }
  2497. _jie.onclick = () => {
  2498. let text = ''
  2499. if(aTool == 6){
  2500. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  2501. }
  2502. _loading.style.display = 'flex'
  2503. console.log(_loading);
  2504. var _ajs = _iframe.contentWindow.document.createElement("script");
  2505. _ajs.type = "text/javascript";
  2506. _ajs.innerHTML =
  2507. // 'console.log(' + _loading + ');\n' +
  2508. 'var _js = document.createElement("script");\n' +
  2509. '_js.type="text/javascript";\n' +
  2510. '_js.charset="UTF-8";\n' +
  2511. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  2512. "_js.onload = function(){\n" +
  2513. ' var a = document.getElementsByTagName("img")\n' +
  2514. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  2515. " html2canvas(document.body,{allowTaint: true,useCORS: true}).then(canvas => {\n" +
  2516. '  var base64Url = canvas.toDataURL("image/png");\n' +
  2517. 'var base64 = "<img src=" + base64Url + " />"\n' +
  2518. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  2519. "beforeUpload_shishi(file," +
  2520. "'" +
  2521. _userid +
  2522. "'" +
  2523. ", " +
  2524. "'" +
  2525. _cid +
  2526. "'" +
  2527. ", " +
  2528. "'" +
  2529. _stage +
  2530. "'" +
  2531. ", " +
  2532. "'" +
  2533. _task +
  2534. "'" +
  2535. ", " +
  2536. "'" +
  2537. _tool +
  2538. "'" +
  2539. ", " +
  2540. "'" +
  2541. str + '_loadLi' +
  2542. "'" +
  2543. ", " +
  2544. "'" +
  2545. aTool +
  2546. "'" +
  2547. ", " +
  2548. "`" +
  2549. text +
  2550. "`" +
  2551. ")\n" +
  2552. " });\n" +
  2553. "}\n" +
  2554. "document.head.appendChild(_js);\n";
  2555. _iframe.contentWindow.document.head.appendChild(_ajs);
  2556. }
  2557. }
  2558. //U.MD.D.I.openClick(str);
  2559. //如果有任务栏信息
  2560. if (_taskbar) {
  2561. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  2562. }
  2563. }