DeskTop.js 164 KB

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