DeskTop.js 165 KB

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