DeskTop.js 160 KB

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