DeskTop.js 313 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418
  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": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  382. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  383. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  384. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  385. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  386. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  387. ];
  388. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  389. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  390. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  391. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  392. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  393. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  394. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  395. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  398. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  399. ];
  400. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  401. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  402. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  403. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  404. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  405. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  406. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. //明德教师桌面图标的全局变量
  413. U.MD.D.I.MingdeTeacherDeskIcon = [
  414. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  422. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  423. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  424. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  425. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  426. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  427. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  430. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  431. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  432. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  433. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  434. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  435. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  436. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  437. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  438. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  439. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  440. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  441. ];
  442. //97c4ee8b-d010-4042-986d-e9d3c217264f
  443. //教师桌面图标的全局变量
  444. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  445. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  446. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  449. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  450. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  451. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  452. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  453. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  454. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  455. ];
  456. //福田
  457. U.MD.D.I.futianTeacherDeskIcon = [
  458. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  459. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  460. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  461. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  462. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  463. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  464. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  465. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  466. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //福田
  470. U.MD.D.I.futianAdminDeskIcon = [
  471. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  472. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  473. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  474. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  475. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  476. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  477. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  478. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  479. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  480. ];
  481. //lotech
  482. U.MD.D.I.lotechTeacherDeskIcon = [
  483. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  484. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  485. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  491. ];
  492. //#region 桌面初始化a
  493. /**
  494. * 初始化桌面的起始函数
  495. *
  496. */
  497. U.MD.D.I.init = function () {
  498. if ($("#U_MD_D_K")[0]) {
  499. //初始化桌面图标
  500. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  501. // var clickUrl = ':12588/requestIp.php';
  502. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  503. // U.MD.D.I.Ip = data;
  504. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  505. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  506. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  507. // })
  508. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  509. // })
  510. }
  511. }
  512. /**
  513. * 模式切换
  514. *
  515. */
  516. U.MD.D.I.ModeCheck = function (type) {
  517. if (US.Config.type == type) {
  518. return
  519. }
  520. US.Config.type = type
  521. $('.U_PBL_Check .active')[0].className = ''
  522. if (type == 1) {
  523. $('.U_PBL_Check div')[0].className = 'active'
  524. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  525. } else {
  526. $('.U_PBL_Check div')[1].className = 'active'
  527. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  528. }
  529. //初始化桌面图标
  530. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  531. }
  532. /**
  533. * 隐藏任务栏
  534. *
  535. * @param {element} 桌面元素
  536. */
  537. U.MD.D.I.hiddenTaskbar = function (el) {
  538. //任务栏位置变小
  539. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  540. //桌面的位置变大
  541. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  542. }
  543. /**
  544. * 隐藏任务栏
  545. *
  546. * @param {element} 桌面元素
  547. */
  548. U.MD.D.I.hiddenTaskbarout = function (el) {
  549. //任务栏位置变小
  550. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  551. //任务栏位置变化
  552. U.selectEl(el).css({ "bottom": "-60px" });
  553. //桌面的位置变大
  554. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  555. }
  556. }
  557. /**
  558. * 初始化打印桌面图标
  559. *
  560. * @param {element} 桌面元素
  561. */
  562. U.MD.D.I.initDesktopIcons = function (el, type) {
  563. var i, //用于循环
  564. _content, //桌面图标元素
  565. _iconcontent, //桌面图标元素
  566. _frag = $$("frag"), //定义一个碎片元素
  567. _type = US.userInfo.type,
  568. _org = US.userInfo.org,
  569. _oid = US.userInfo.organizeid,
  570. _role = US.userInfo.role,
  571. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  572. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  573. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  574. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  575. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  576. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  577. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  578. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  579. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  580. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  581. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  582. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  583. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  584. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  585. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  586. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  587. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  588. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  589. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  590. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  591. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  592. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  593. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  594. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  595. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  596. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  597. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  598. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  599. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  600. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  601. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4'];
  602. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776'];
  603. //清楚桌面图标
  604. el.innerHTML = "";
  605. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  606. _teacherDesktopIconInfo.push(
  607. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  608. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  609. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  610. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  611. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  612. )
  613. _easyDesktopIconInfo.push(
  614. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  615. )
  616. }
  617. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  618. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  619. if(el.Name == '项目管理'){
  620. el.Name = 'PBL项目'
  621. }
  622. return el
  623. })
  624. }
  625. if (_oid == '4c686762-1d0a-11ed-8c78-005056b86db5') {
  626. _teacherDesktopIconInfo.push(
  627. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  628. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  629. )
  630. }
  631. if (_oid != '4c686762-1d0a-11ed-8c78-005056b86db5' && _oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  632. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  633. return el.Name != '魔盒识字' && el.Name != '24点'
  634. })
  635. }
  636. if ((_oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") && _type == 2) {
  637. _studentDesktopIconInfo.push(
  638. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  639. )
  640. }
  641. //循环创建桌面图标
  642. if (type == 1) {
  643. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  644. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  645. _content = $$("div", {
  646. className: "U_MD_D_KO",
  647. "onmousedown": U.UF.C.closure(function (obj) {
  648. //防止拖动图标即打开了桌面应用
  649. U.MD.D.click(this, obj);
  650. }, [_studentDesktopIconInfo[i]]),
  651. "onclick": U.UF.C.closure(function (obj) {
  652. //防止拖动图标即打开了桌面应用
  653. U.MD.D.click(this, obj);
  654. }, [_studentDesktopIconInfo[i]])
  655. }, _frag); //
  656. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  657. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  658. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  659. }
  660. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  661. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  662. _content = $$("div", {
  663. className: "U_MD_D_KO",
  664. "onmousedown": U.UF.C.closure(function (obj) {
  665. //防止拖动图标即打开了桌面应用
  666. U.MD.D.click(this, obj);
  667. }, [_studentDesktopIconInfo[i]]),
  668. "onclick": U.UF.C.closure(function (obj) {
  669. //防止拖动图标即打开了桌面应用
  670. U.MD.D.click(this, obj);
  671. }, [_studentDesktopIconInfo[i]])
  672. }, _frag); //
  673. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  674. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  675. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  676. }
  677. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  678. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  679. _content = $$("div", {
  680. className: "U_MD_D_KO",
  681. "onmousedown": U.UF.C.closure(function (obj) {
  682. //防止拖动图标即打开了桌面应用
  683. U.MD.D.click(this, obj);
  684. }, [_tcStudentDeskIconInfo[i]]),
  685. "onclick": U.UF.C.closure(function (obj) {
  686. //防止拖动图标即打开了桌面应用
  687. U.MD.D.click(this, obj);
  688. }, [_tcStudentDeskIconInfo[i]])
  689. }, _frag); //
  690. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  691. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  692. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  693. }
  694. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  695. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  696. _content = $$("div", {
  697. className: "U_MD_D_KO",
  698. "onmousedown": U.UF.C.closure(function (obj) {
  699. //防止拖动图标即打开了桌面应用
  700. U.MD.D.click(this, obj);
  701. }, [_szscStudentDeskIconInfo[i]]),
  702. "onclick": U.UF.C.closure(function (obj) {
  703. //防止拖动图标即打开了桌面应用
  704. U.MD.D.click(this, obj);
  705. }, [_szscStudentDeskIconInfo[i]])
  706. }, _frag); //
  707. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  708. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  709. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  710. }
  711. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  712. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  713. _content = $$("div", {
  714. className: "U_MD_D_KO",
  715. "onmousedown": U.UF.C.closure(function (obj) {
  716. //防止拖动图标即打开了桌面应用
  717. U.MD.D.click(this, obj);
  718. }, [_studentDesktopIconInfo3[i]]),
  719. "onclick": U.UF.C.closure(function (obj) {
  720. //防止拖动图标即打开了桌面应用
  721. U.MD.D.click(this, obj);
  722. }, [_studentDesktopIconInfo3[i]])
  723. }, _frag); //
  724. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  725. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  726. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  727. }
  728. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  729. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  730. _content = $$("div", {
  731. className: "U_MD_D_KO",
  732. "onmousedown": U.UF.C.closure(function (obj) {
  733. //防止拖动图标即打开了桌面应用
  734. U.MD.D.click(this, obj);
  735. }, [_studentDesktopIconInfo2[i]]),
  736. "onclick": U.UF.C.closure(function (obj) {
  737. //防止拖动图标即打开了桌面应用
  738. U.MD.D.click(this, obj);
  739. }, [_studentDesktopIconInfo2[i]])
  740. }, _frag); //
  741. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  742. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  743. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  744. }
  745. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  746. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  747. _content = $$("div", {
  748. className: "U_MD_D_KO",
  749. "onmousedown": U.UF.C.closure(function (obj) {
  750. //防止拖动图标即打开了桌面应用
  751. U.MD.D.click(this, obj);
  752. }, [_wanketeacherDesktopIconInfo[i]]),
  753. "onclick": U.UF.C.closure(function (obj) {
  754. //防止拖动图标即打开了桌面应用
  755. U.MD.D.click(this, obj);
  756. }, [_wanketeacherDesktopIconInfo[i]])
  757. }, _frag); //
  758. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  759. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  760. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  761. }
  762. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  763. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  764. _content = $$("div", {
  765. className: "U_MD_D_KO",
  766. "onmousedown": U.UF.C.closure(function (obj) {
  767. //防止拖动图标即打开了桌面应用
  768. U.MD.D.click(this, obj);
  769. }, [_wankeAdminDesktopIconInfo[i]]),
  770. "onclick": U.UF.C.closure(function (obj) {
  771. //防止拖动图标即打开了桌面应用
  772. U.MD.D.click(this, obj);
  773. }, [_wankeAdminDesktopIconInfo[i]])
  774. }, _frag); //
  775. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  776. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  777. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  778. }
  779. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  780. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  781. _content = $$("div", {
  782. className: "U_MD_D_KO",
  783. "onmousedown": U.UF.C.closure(function (obj) {
  784. //防止拖动图标即打开了桌面应用
  785. U.MD.D.click(this, obj);
  786. }, [_teacherDesktopIconInfo2[i]]),
  787. "onclick": U.UF.C.closure(function (obj) {
  788. //防止拖动图标即打开了桌面应用
  789. U.MD.D.click(this, obj);
  790. }, [_teacherDesktopIconInfo2[i]])
  791. }, _frag); //
  792. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  793. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  794. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  795. }
  796. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  797. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  798. _content = $$("div", {
  799. className: "U_MD_D_KO",
  800. "onmousedown": U.UF.C.closure(function (obj) {
  801. //防止拖动图标即打开了桌面应用
  802. U.MD.D.click(this, obj);
  803. }, [_lotechTeacherDeskIconInfo[i]]),
  804. "onclick": U.UF.C.closure(function (obj) {
  805. //防止拖动图标即打开了桌面应用
  806. U.MD.D.click(this, obj);
  807. }, [_lotechTeacherDeskIconInfo[i]])
  808. }, _frag); //
  809. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  810. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  811. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  812. }
  813. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  814. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  815. _content = $$("div", {
  816. className: "U_MD_D_KO",
  817. "onmousedown": U.UF.C.closure(function (obj) {
  818. //防止拖动图标即打开了桌面应用
  819. U.MD.D.click(this, obj);
  820. }, [_futianAdminDeskIconInfo[i]]),
  821. "onclick": U.UF.C.closure(function (obj) {
  822. //防止拖动图标即打开了桌面应用
  823. U.MD.D.click(this, obj);
  824. }, [_futianAdminDeskIconInfo[i]])
  825. }, _frag); //
  826. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  827. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  828. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  829. }
  830. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  831. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  832. _content = $$("div", {
  833. className: "U_MD_D_KO",
  834. "onmousedown": U.UF.C.closure(function (obj) {
  835. //防止拖动图标即打开了桌面应用
  836. U.MD.D.click(this, obj);
  837. }, [_futianTeacherDeskIconInfo[i]]),
  838. "onclick": U.UF.C.closure(function (obj) {
  839. //防止拖动图标即打开了桌面应用
  840. U.MD.D.click(this, obj);
  841. }, [_futianTeacherDeskIconInfo[i]])
  842. }, _frag); //
  843. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  844. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  845. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  846. }
  847. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  848. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  849. _content = $$("div", {
  850. className: "U_MD_D_KO",
  851. "onmousedown": U.UF.C.closure(function (obj) {
  852. //防止拖动图标即打开了桌面应用
  853. U.MD.D.click(this, obj);
  854. }, [_MingdeTeacherDeskIcon[i]]),
  855. "onclick": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_MingdeTeacherDeskIcon[i]])
  859. }, _frag); //
  860. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  861. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  862. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  863. }
  864. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  865. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  866. _content = $$("div", {
  867. className: "U_MD_D_KO",
  868. "onmousedown": U.UF.C.closure(function (obj) {
  869. //防止拖动图标即打开了桌面应用
  870. U.MD.D.click(this, obj);
  871. }, [_lhsAdminDesktopIconInfo[i]]),
  872. "onclick": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_lhsAdminDesktopIconInfo[i]])
  876. }, _frag); //
  877. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  878. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  879. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  880. }
  881. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  882. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  883. _content = $$("div", {
  884. className: "U_MD_D_KO",
  885. "onmousedown": U.UF.C.closure(function (obj) {
  886. //防止拖动图标即打开了桌面应用
  887. U.MD.D.click(this, obj);
  888. }, [_lhsteacherDesktopIconInfo[i]]),
  889. "onclick": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_lhsteacherDesktopIconInfo[i]])
  893. }, _frag); //
  894. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  895. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  896. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  897. }
  898. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  899. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  900. _content = $$("div", {
  901. className: "U_MD_D_KO",
  902. "onmousedown": U.UF.C.closure(function (obj) {
  903. //防止拖动图标即打开了桌面应用
  904. U.MD.D.click(this, obj);
  905. }, [_zhoujiateacherDesktopIconInfo[i]]),
  906. "onclick": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_zhoujiateacherDesktopIconInfo[i]])
  910. }, _frag); //
  911. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  912. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  913. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  914. }
  915. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  916. for (i = 0; i < _hanDeskIcon.length; i++) {
  917. _content = $$("div", {
  918. className: "U_MD_D_KO",
  919. "onmousedown": U.UF.C.closure(function (obj) {
  920. //防止拖动图标即打开了桌面应用
  921. U.MD.D.click(this, obj);
  922. }, [_hanDeskIcon[i]]),
  923. "onclick": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_hanDeskIcon[i]])
  927. }, _frag); //
  928. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  929. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  930. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  931. }
  932. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  933. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  934. _content = $$("div", {
  935. className: "U_MD_D_KO",
  936. "onmousedown": U.UF.C.closure(function (obj) {
  937. //防止拖动图标即打开了桌面应用
  938. U.MD.D.click(this, obj);
  939. }, [_orgStemDeskIcon[i]]),
  940. "onclick": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_orgStemDeskIcon[i]])
  944. }, _frag); //
  945. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  946. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  947. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  948. }
  949. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  950. for (i = 0; i < _szulsDeskIcon.length; i++) {
  951. _content = $$("div", {
  952. className: "U_MD_D_KO",
  953. "onmousedown": U.UF.C.closure(function (obj) {
  954. //防止拖动图标即打开了桌面应用
  955. U.MD.D.click(this, obj);
  956. }, [_szulsDeskIcon[i]]),
  957. "onclick": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_szulsDeskIcon[i]])
  961. }, _frag); //
  962. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  963. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  964. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  965. }
  966. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  967. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  968. _content = $$("div", {
  969. className: "U_MD_D_KO",
  970. "onmousedown": U.UF.C.closure(function (obj) {
  971. //防止拖动图标即打开了桌面应用
  972. U.MD.D.click(this, obj);
  973. }, [_orgDesktopIconInfo[i]]),
  974. "onclick": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_orgDesktopIconInfo[i]])
  978. }, _frag); //
  979. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  980. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  981. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  982. }
  983. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  984. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  985. _content = $$("div", {
  986. className: "U_MD_D_KO",
  987. "onmousedown": U.UF.C.closure(function (obj) {
  988. //防止拖动图标即打开了桌面应用
  989. U.MD.D.click(this, obj);
  990. }, [_schoolDesktopIconInfo[i]]),
  991. "onclick": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_schoolDesktopIconInfo[i]])
  995. }, _frag); //
  996. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  997. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  998. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  999. }
  1000. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1001. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1002. _content = $$("div", {
  1003. className: "U_MD_D_KO",
  1004. "onmousedown": U.UF.C.closure(function (obj) {
  1005. //防止拖动图标即打开了桌面应用
  1006. U.MD.D.click(this, obj);
  1007. }, [_GMteacherDesktopIconInfo[i]]),
  1008. "onclick": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_GMteacherDesktopIconInfo[i]])
  1012. }, _frag); //
  1013. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1014. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1015. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1016. }
  1017. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1018. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1019. _content = $$("div", {
  1020. className: "U_MD_D_KO",
  1021. "onmousedown": U.UF.C.closure(function (obj) {
  1022. //防止拖动图标即打开了桌面应用
  1023. U.MD.D.click(this, obj);
  1024. }, [_SONGteacherDesktopIconInfo[i]]),
  1025. "onclick": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_SONGteacherDesktopIconInfo[i]])
  1029. }, _frag); //
  1030. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1031. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1032. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1033. }
  1034. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1035. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1036. _content = $$("div", {
  1037. className: "U_MD_D_KO",
  1038. "onmousedown": U.UF.C.closure(function (obj) {
  1039. //防止拖动图标即打开了桌面应用
  1040. U.MD.D.click(this, obj);
  1041. }, [_GMstudentDesktopIconInfo[i]]),
  1042. "onclick": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_GMstudentDesktopIconInfo[i]])
  1046. }, _frag); //
  1047. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1048. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1049. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1050. }
  1051. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1052. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1053. _content = $$("div", {
  1054. className: "U_MD_D_KO",
  1055. "onmousedown": U.UF.C.closure(function (obj) {
  1056. //防止拖动图标即打开了桌面应用
  1057. U.MD.D.click(this, obj);
  1058. }, [_tcTeacherDeskIconInfo[i]]),
  1059. "onclick": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_tcTeacherDeskIconInfo[i]])
  1063. }, _frag); //
  1064. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1065. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1066. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1067. }
  1068. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1069. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1070. _content = $$("div", {
  1071. className: "U_MD_D_KO",
  1072. "onmousedown": U.UF.C.closure(function (obj) {
  1073. //防止拖动图标即打开了桌面应用
  1074. U.MD.D.click(this, obj);
  1075. }, [_tcOrganizerDeskIconInfo[i]]),
  1076. "onclick": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_tcOrganizerDeskIconInfo[i]])
  1080. }, _frag); //
  1081. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1082. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1083. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1084. }
  1085. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1086. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1087. _content = $$("div", {
  1088. className: "U_MD_D_KO",
  1089. "onmousedown": U.UF.C.closure(function (obj) {
  1090. //防止拖动图标即打开了桌面应用
  1091. U.MD.D.click(this, obj);
  1092. }, [_szscTeacherDeskIconInfo[i]]),
  1093. "onclick": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_szscTeacherDeskIconInfo[i]])
  1097. }, _frag); //
  1098. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1099. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1100. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1101. }
  1102. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1103. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1104. _content = $$("div", {
  1105. className: "U_MD_D_KO",
  1106. "onmousedown": U.UF.C.closure(function (obj) {
  1107. //防止拖动图标即打开了桌面应用
  1108. U.MD.D.click(this, obj);
  1109. }, [_szscOrganizerDeskIconInfo[i]]),
  1110. "onclick": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_szscOrganizerDeskIconInfo[i]])
  1114. }, _frag); //
  1115. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1116. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1117. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1118. }
  1119. } else {
  1120. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1121. _content = $$("div", {
  1122. className: "U_MD_D_KO",
  1123. "onmousedown": U.UF.C.closure(function (obj) {
  1124. //防止拖动图标即打开了桌面应用
  1125. U.MD.D.click(this, obj);
  1126. }, [_teacherDesktopIconInfo[i]]),
  1127. "onclick": U.UF.C.closure(function (obj) {
  1128. //防止拖动图标即打开了桌面应用
  1129. U.MD.D.click(this, obj);
  1130. }, [_teacherDesktopIconInfo[i]])
  1131. }, _frag); //
  1132. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1133. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1134. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1135. }
  1136. }
  1137. } else {
  1138. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1139. _content = $$("div", {
  1140. className: "U_MD_D_KO",
  1141. style: { 'width': '124px', 'height': '145px' },
  1142. "onmousedown": U.UF.C.closure(function (obj) {
  1143. //防止拖动图标即打开了桌面应用
  1144. U.MD.D.click(this, obj);
  1145. }, [_easyDesktopIconInfo[i]]),
  1146. "onclick": U.UF.C.closure(function (obj) {
  1147. //防止拖动图标即打开了桌面应用
  1148. U.MD.D.click(this, obj);
  1149. }, [_easyDesktopIconInfo[i]])
  1150. }, _frag); //
  1151. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1152. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1153. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1154. }
  1155. }
  1156. if (type == 1) {
  1157. //加载好后给图标定位
  1158. U.MD.D.iconPostion($(_frag).Child());
  1159. } else {
  1160. //加载好后给图标定位
  1161. U.MD.D.iconPostion2($(_frag).Child());
  1162. }
  1163. //把图标加载到页面
  1164. el.appendChild(_frag);
  1165. }
  1166. /**
  1167. * 显示任务栏
  1168. *
  1169. * @param {element} 桌面元素
  1170. */
  1171. U.MD.D.I.displayTaskbar = function (el) {
  1172. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1173. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1174. //任务栏位置变化
  1175. U.selectEl(el).css({ "bottom": "0px" });
  1176. //桌面位置变话
  1177. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1178. }
  1179. }
  1180. //#region 桌面图标拖动逻辑
  1181. /**
  1182. * 桌面排列图标
  1183. *
  1184. * @param {element} 桌面元素
  1185. * @param {object} 上下相距的距离
  1186. * @param {object} 左右相距的距离
  1187. * @return {object} 命名空间
  1188. */
  1189. U.MD.D.iconPostion = function (childs, top, left) {
  1190. var i; //用于循环处理
  1191. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1192. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1193. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1194. for (i = 0; i < childs.length; i++) {
  1195. //如果竖排top超过了范围处理
  1196. if (top + 95 > US.height - 10) {
  1197. //left超过了页面范围处理,则向上重叠打印处理
  1198. if ((left + 180) > US.width) {
  1199. top -= 110;
  1200. left -= 90;
  1201. }
  1202. //没有超过范围,那么left+90添加到下一个竖排打印
  1203. else {
  1204. left += 90;
  1205. top = 15;
  1206. };
  1207. }
  1208. //给图标的位置赋值
  1209. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1210. if (i < childs.length - 1) {
  1211. //页面图标每次向下加95
  1212. top += 95;
  1213. }
  1214. }
  1215. //返回最后调用的图标的位置
  1216. return [top, left];
  1217. }
  1218. /**
  1219. * 桌面排列图标
  1220. *
  1221. * @param {element} 桌面元素
  1222. * @param {object} 上下相距的距离
  1223. * @param {object} 左右相距的距离
  1224. * @return {object} 命名空间
  1225. */
  1226. U.MD.D.iconPostion2 = function (childs, top, left) {
  1227. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1228. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1229. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1230. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1231. for (i = 0; i < childs.length; i++) {
  1232. //如果竖排top超过了范围处理
  1233. if (left + 150 > US.width - 10) {
  1234. //left超过了页面范围处理,则向上重叠打印处理
  1235. if ((top + 180) > US.Height) {
  1236. top -= 150;
  1237. left -= 150;
  1238. }
  1239. //没有超过范围,那么left+90添加到下一个竖排打印
  1240. else {
  1241. top += 150;
  1242. left = ol;
  1243. };
  1244. }
  1245. //给图标的位置赋值
  1246. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1247. if (i < childs.length - 1) {
  1248. //页面图标每次向下加95
  1249. left += 150;
  1250. }
  1251. }
  1252. //返回最后调用的图标的位置
  1253. return [top, left];
  1254. }
  1255. /**
  1256. * 桌面点击事件逻辑
  1257. *
  1258. * @param {element} 桌面元素
  1259. * @param {object} 上下相距的距离
  1260. * @param {object} 左右相距的距离
  1261. * @return {object} 命名空间
  1262. */
  1263. U.MD.D.click = function (el, obj) {
  1264. var _buttonnumber = event.button; //点击的按钮的事件值
  1265. var _userinfo = US.userInfo;
  1266. U.UF.EV.stopBubble(); //阻止向上冒泡
  1267. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1268. if (_buttonnumber < 2) {
  1269. //如果是click事件的处理
  1270. if (event.type == "click") {
  1271. //如果元素在mousemove事件中没有移动则出发click事件
  1272. if (!U.MD.D.I.IsDrag) {
  1273. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1274. U.alert("请先登录您的账号!");
  1275. setTimeout(() => {
  1276. U.MD.U.L.login();
  1277. }, 2000);
  1278. } else {
  1279. //打开应用处理
  1280. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1281. }
  1282. }
  1283. }
  1284. //如果是mouse事件的处理
  1285. else {
  1286. if (US.Config.type == '1') {
  1287. //拖动处理,添加拖动和拖动结束事件
  1288. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1289. }
  1290. }
  1291. U.MD.D.I.IsDrag = false;
  1292. }
  1293. }
  1294. /**
  1295. * 拖动的处理
  1296. *
  1297. */
  1298. U.MD.D.iconMove = function () {
  1299. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1300. U.MD.D.I.IsDrag = true;
  1301. }
  1302. /**
  1303. * 拖动结束后,这里是定位处理,以网状的形式定位
  1304. *
  1305. * @param {element} 拖动的元素
  1306. * @return {object} 命名空间
  1307. */
  1308. U.MD.D.iconUp = function (el) {
  1309. var _top = 15,
  1310. _left = 20,
  1311. _margin,
  1312. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1313. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1314. if (_positioninfo["OT"] > 15) {
  1315. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1316. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1317. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1318. }
  1319. if (_positioninfo["OL"] > 20) {
  1320. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1321. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1322. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1323. }
  1324. //while循环判断么一个重叠的元素
  1325. do {
  1326. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1327. _top = _positioninfo[0] + 95; //得到定位后的top
  1328. _left = _positioninfo[1]; //得到定位后的left
  1329. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1330. }
  1331. /**
  1332. * 判断拖动后图标是否重叠
  1333. *
  1334. * @param {element} 拖动的元素
  1335. * @param {element} 桌面所有的元素
  1336. * @param {array} 拖动元素的位置
  1337. ----------[0] 上 top
  1338. ----------[1] 左 left
  1339. * @return {object} 命名空间
  1340. */
  1341. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1342. //循环所有的图标
  1343. for (var i = 0; i < childs.length; i++) {
  1344. //判断有没有和该图标诶子重叠的元素
  1345. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1346. return childs[i]; //如果有返回
  1347. }
  1348. }
  1349. }
  1350. //#endregion
  1351. //#endregion
  1352. //#region 桌面应用
  1353. /**
  1354. * 打开应用
  1355. *
  1356. * @param {string} 类型
  1357. -----------------Disk 网盘系统
  1358. -----------------PDisk 学习系统网盘
  1359. -----------------Poto 图片
  1360. -----------------Video 视频
  1361. -----------------Music 音乐
  1362. -----------------Word word
  1363. -----------------Excel excel
  1364. -----------------Txt 记事本
  1365. -----------------PB 学习系统
  1366. -----------------Blog 朋友圈系统
  1367. -----------------FTP ftp系统
  1368. -----------------Group 好友群
  1369. -----------------SY 首页系统
  1370. -----------------Set 个人设置
  1371. -----------------XSet 系统设置
  1372. -----------------App 我们所有的app
  1373. -----------------BC c.1473.cn 平台
  1374. -----------------CWeb d.1473.cn 变成平台
  1375. -----------------其他的外联系统 我们统一用iframe打开
  1376. * @param {array} 类型
  1377. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1378. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1379. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1380. 如果第一个参数为其他,则无第二个参数
  1381. * @returns {array}
  1382. */
  1383. window.addEventListener('message', function (e) { // 监听 message 事件
  1384. // alert(e.data.type);
  1385. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1386. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1387. //3是展示全部阶段 2学生 1老师 4专家
  1388. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1389. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1390. //3是展示全部阶段 2学生 1老师 4专家
  1391. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1392. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1393. //3是展示全部阶段 2学生 1老师 4专家
  1394. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1395. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1396. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1397. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1398. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1399. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1400. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1401. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1402. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1403. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1404. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1405. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1406. //3是展示全部阶段 2学生 1老师 4专家
  1407. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1408. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1409. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1410. U.MD.D.I.selectUser();
  1411. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1412. var _formel = document.getElementById("study");
  1413. U.UF.F.windowZooming(_formel);
  1414. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1415. var _formel = document.getElementById("studyDetail");
  1416. U.UF.F.windowZooming(_formel);
  1417. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1418. var _formel = document.getElementById("studyDetail");
  1419. U.UF.F.windowZooming(_formel);
  1420. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1421. var _formel = document.getElementById("studentStudy");
  1422. U.UF.F.windowZooming(_formel);
  1423. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1424. // var _formel = document.getElementById("study");
  1425. //如果最大化了,那么就把他缩小
  1426. // if (_formel.ismaximize) {
  1427. // return;
  1428. // }
  1429. // U.UF.F.windowZooming(_formel);
  1430. // U.UF.F.topWindow(_formel);
  1431. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1432. // var _formel = document.getElementById("studyDetail");
  1433. //如果最大化了,那么就把他缩小
  1434. // if (_formel.ismaximize) {
  1435. // return;
  1436. // }
  1437. // U.UF.F.windowZooming(_formel);
  1438. // U.UF.F.topWindow(_formel);
  1439. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1440. // var _formel = document.getElementById("studentStudy");
  1441. // if (_formel.ismaximize) {
  1442. // return;
  1443. // }
  1444. // U.UF.F.windowZooming(_formel);
  1445. // U.UF.F.topWindow(_formel);
  1446. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1447. var _formel = document.getElementById("study");
  1448. // if (_formel.ismaximize) {
  1449. // return;
  1450. // }
  1451. // U.UF.F.windowZooming(_formel);
  1452. U.UF.F.topWindow(_formel);
  1453. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1454. var _formel = document.getElementById("studentIndex");
  1455. U.UF.F.windowZooming(_formel);
  1456. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1457. var _formel = document.getElementById("studyDetailS");
  1458. U.UF.F.windowZooming(_formel);
  1459. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1460. var _formel = document.getElementById("studioIndex");
  1461. U.UF.F.windowZooming(_formel);
  1462. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1463. var _formel = document.getElementById("studyDetailStudio");
  1464. U.UF.F.windowZooming(_formel);
  1465. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1466. var _formel = document.getElementById("studyDetailStudio");
  1467. U.UF.F.windowZooming(_formel);
  1468. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1469. var _formel = document.getElementById("studyDetailNT");
  1470. U.UF.F.windowZooming(_formel);
  1471. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1472. var _formel = document.getElementById("studyDetailS");
  1473. U.UF.F.windowZooming(_formel);
  1474. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1475. var _formel = document.getElementById("studyDetailS");
  1476. U.UF.F.topWindow(_formel);
  1477. } else if (e.data.tools && e.data.tools == "1") {
  1478. // U.MD.D.I.openApplication("whiteboard")
  1479. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1480. } else if (e.data.tools && e.data.tools == "2") {
  1481. U.MD.D.I.openApplication("note")
  1482. } else if (e.data.tools && e.data.tools == "3") {
  1483. // U.MD.D.I.openApplication("mind")
  1484. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1485. } else if (e.data.tools && e.data.tools == "4") {
  1486. U.MD.D.I.openApplication("investigation")
  1487. } else if (e.data.tools && e.data.tools == "6") {
  1488. // U.MD.D.I.openApplication("doc")
  1489. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1490. } else if (e.data.tools && e.data.tools == "7") {
  1491. // U.MD.D.I.openApplication("mindNetwork")
  1492. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1493. } else if (e.data.tools && e.data.tools == "8") {
  1494. U.MD.D.I.openApplication("library")
  1495. } else if (e.data.tools && e.data.tools == "17") {
  1496. U.MD.D.I.openApplication("stuLibrary")
  1497. } else if (e.data.tools && e.data.tools == "18") {
  1498. U.MD.D.I.openApplication("train")
  1499. } else if (e.data.tools && e.data.tools == "21") {
  1500. U.MD.D.I.openApplication("program")
  1501. } else if (e.data.tools && e.data.tools == "22") {
  1502. U.MD.D.I.openApplication("AIprogram2")
  1503. } else if (e.data.tools && e.data.tools == "23") {
  1504. U.MD.D.I.openApplication("Pythonprogram")
  1505. } else if (e.data.tools && e.data.tools == "24") {
  1506. U.MD.D.I.openApplication("AIprogram")
  1507. } else if (e.data.tools && e.data.tools == "25") {
  1508. U.MD.D.I.openApplication("sys")
  1509. } else if (e.data.tools && e.data.tools == "26") {
  1510. // U.MD.D.I.openApplication("courseDesign")
  1511. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1512. } else if (e.data.tools && e.data.tools == "31") {
  1513. U.MD.D.I.openApplication("netWorkPanel")
  1514. } else if (e.data.tools && e.data.tools == "32") {
  1515. U.MD.D.I.openApplication("codeEdit")
  1516. } else if (e.data.tools && e.data.tools == "57") {
  1517. U.MD.D.I.openApplication("CocoPi")
  1518. } else if (e.data.tools && e.data.tools == "63") {
  1519. U.MD.D.I.openApplication("Wood")
  1520. } else if (e.data.tools && e.data.tools == "58") {
  1521. U.MD.D.I.openApplication("car")
  1522. } else if (e.data.tools && e.data.tools == "59") {
  1523. U.MD.D.I.openApplication("lineSearch")
  1524. } else if (e.data.tools && e.data.tools == "60") {
  1525. U.MD.D.I.openApplication("deepLearning")
  1526. } else if (e.data.tools && e.data.tools == "61") {
  1527. U.MD.D.I.openApplication("allHistory")
  1528. } else if (e.data.tools && e.data.tools == "28") {
  1529. U.MD.D.I.openApplication("translation")
  1530. } else if (e.data.tools && e.data.tools == "37") {
  1531. U.MD.D.I.openApplication("mohe")
  1532. } else if (e.data.tools && e.data.tools == "38") {
  1533. U.MD.D.I.openApplication("24game")
  1534. } else if (e.data.tools && e.data.tools == "39") {
  1535. U.MD.D.I.openApplication("GeoGebra")
  1536. } else if (e.data.tools && e.data.tools == "43") {
  1537. U.MD.D.I.openApplication("studentEvaluate")
  1538. } else if (e.data.tools && e.data.tools == "44") {
  1539. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1540. } else if (e.data.tools && e.data.tools == "46") {
  1541. U.MD.D.I.openApplication("project")
  1542. } else if (e.data.tools && e.data.tools == "1s") {
  1543. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1544. } else if (e.data.tools && e.data.tools == "3s") {
  1545. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1546. } else if (e.data.tools && e.data.tools == "6s") {
  1547. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1548. } else if (e.data.tools && e.data.tools == "1studio") {
  1549. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1550. } else if (e.data.tools && e.data.tools == "3studio") {
  1551. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1552. } else if (e.data.tools && e.data.tools == "6studio") {
  1553. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1554. } else if (e.data.tools && e.data.tools == "3y") {
  1555. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1556. } else if (e.data.tools && e.data.tools == "1y") {
  1557. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1558. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1559. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1560. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1561. U.MD.D.I.openApplication("AIAnalyse")
  1562. } else if (e.data.tools && e.data.tools == "1teacher") {
  1563. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1564. } else if (e.data.tools && e.data.tools == "3teacher") {
  1565. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1566. } else if (e.data.tools && e.data.tools == "7teacher") {
  1567. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1568. }
  1569. });
  1570. U.MD.D.I.selectUser = function () {
  1571. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1572. if (res.value[0].length > 0) {
  1573. US.userInfo = res.value[0][0];
  1574. $(".userName")[0].innerHTML = US.userInfo.username;
  1575. }
  1576. }, [], { "type": "GET", "withCredentials": true });
  1577. }
  1578. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1579. var _userinfo = US.userInfo, //登录用户信息
  1580. _userid = US.userInfo.userid, //登录用户id
  1581. _oid = _userinfo.organizeid,
  1582. _type = US.userInfo.type,
  1583. _org = US.userInfo.org,
  1584. _role = US.userInfo.role,
  1585. _classId = US.userInfo.classid;
  1586. if (_type == 4) {
  1587. tType = 4
  1588. }
  1589. switch (str) {
  1590. case "studyDetailNT"://无终端模式
  1591. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1592. setTimeout(() => {
  1593. U.MD.U.L.login();
  1594. }, 2000);
  1595. } else {
  1596. _formdiv = new U.UF.UI.form(
  1597. "课程详情",
  1598. $$("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/#/courseDetailNT?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1599. "id": "studyDetailNT",
  1600. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1601. "onresize": function () { }
  1602. }, {
  1603. closecallback: function () { }
  1604. }, { "style": { "height": "36px" } }).form; //创建窗体
  1605. _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); } }
  1606. break;
  1607. }
  1608. case "studyDetail":
  1609. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1610. setTimeout(() => {
  1611. U.MD.U.L.login();
  1612. }, 2000);
  1613. } else {
  1614. _formdiv = new U.UF.UI.form(
  1615. "课程详情",
  1616. $$("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 }), {
  1617. "id": "studyDetail",
  1618. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1619. "onresize": function () { }
  1620. }, {
  1621. closecallback: function () { }
  1622. }, { "style": { "height": "36px" } }).form; //创建窗体
  1623. _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); } }
  1624. break;
  1625. }
  1626. case "studyDetailS":
  1627. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1628. setTimeout(() => {
  1629. U.MD.U.L.login();
  1630. }, 2000);
  1631. } else {
  1632. _formdiv = new U.UF.UI.form(
  1633. "项目详情",
  1634. $$("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/#/courseDetailS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1635. "id": "studyDetailS",
  1636. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1637. "onresize": function () { }
  1638. }, {
  1639. closecallback: function () { }
  1640. }, { "style": { "height": "36px" } }).form; //创建窗体
  1641. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1642. break;
  1643. }
  1644. case "studyDetailStudio":
  1645. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1646. setTimeout(() => {
  1647. U.MD.U.L.login();
  1648. }, 2000);
  1649. } else {
  1650. _formdiv = new U.UF.UI.form(
  1651. "工作详情",
  1652. $$("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/#/courseDetailStudio?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1653. "id": "studyDetailStudio",
  1654. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1655. "onresize": function () { }
  1656. }, {
  1657. closecallback: function () { }
  1658. }, { "style": { "height": "36px" } }).form; //创建窗体
  1659. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1660. break;
  1661. }
  1662. case "studyDetailS5":
  1663. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1664. setTimeout(() => {
  1665. U.MD.U.L.login();
  1666. }, 2000);
  1667. } else {
  1668. _formdiv = new U.UF.UI.form(
  1669. "项目详情",
  1670. $$("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/#/studyStudentS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType }), {
  1671. "id": "studyDetailS",
  1672. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1673. "onresize": function () { }
  1674. }, {
  1675. closecallback: function () { }
  1676. }, { "style": { "height": "36px" } }).form; //创建窗体
  1677. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1678. break;
  1679. }
  1680. case "studyDetailGM":
  1681. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1682. setTimeout(() => {
  1683. U.MD.U.L.login();
  1684. }, 2000);
  1685. } else {
  1686. _formdiv = new U.UF.UI.form(
  1687. "课程详情",
  1688. $$("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 }), {
  1689. "id": "studyDetail",
  1690. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1691. "onresize": function () { }
  1692. }, {
  1693. closecallback: function () { }
  1694. }, { "style": { "height": "36px" } }).form; //创建窗体
  1695. _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); } }
  1696. break;
  1697. }
  1698. case "hanUrl":
  1699. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1700. setTimeout(() => {
  1701. U.MD.U.L.login();
  1702. }, 2000);
  1703. } else {
  1704. _formdiv = new U.UF.UI.form(
  1705. "汉字宫",
  1706. $$("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" }), {
  1707. "id": "hanUrl",
  1708. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1709. "onresize": function () { }
  1710. }, {
  1711. closecallback: function () { }
  1712. }, { "style": { "height": "36px" } }).form; //创建窗体
  1713. _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); } }
  1714. break;
  1715. }
  1716. }
  1717. }
  1718. U.MD.D.I.openApplication = function (str, obj, info) {
  1719. obj = obj || {};
  1720. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1721. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1722. _userinfo = US.userInfo, //登录用户信息
  1723. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1724. _oid = obj.organizeid || _userinfo.organizeid,
  1725. _type = US.userInfo.type,
  1726. _org = US.userInfo.org,
  1727. _role = US.userInfo.role,
  1728. _classId = US.userInfo.classid,
  1729. _TscreenType = 1
  1730. _screenType = 2,
  1731. _SscreenType = 3;
  1732. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1733. return;
  1734. }
  1735. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1736. switch (str) {
  1737. case "studnetProject": //好友打开
  1738. _formdiv = new U.UF.UI.form(
  1739. "我的项目",
  1740. $$("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 }), {
  1741. "id": "studnetProject",
  1742. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1743. "onresize": function () { }
  1744. }, {
  1745. closecallback: function () { }
  1746. }, { "style": { "height": "36px" } }).form; //创建窗体
  1747. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1748. break;
  1749. case "studentEvaluate": //好友打开
  1750. _formdiv = new U.UF.UI.form(
  1751. "我的评价",
  1752. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  1753. "id": "studentEvaluate",
  1754. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1755. "onresize": function () { }
  1756. }, {
  1757. closecallback: function () { }
  1758. }, { "style": { "height": "36px" } }).form; //创建窗体
  1759. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1760. break;
  1761. case "my":
  1762. _formdiv = new U.UF.UI.form(
  1763. "我的资料",
  1764. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  1765. "id": "my",
  1766. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1767. "onresize": function () { }
  1768. }, {
  1769. closecallback: function () { }
  1770. }, { "style": { "height": "36px" } }).form; //创建窗体
  1771. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1772. break;
  1773. case "program":
  1774. _formdiv = new U.UF.UI.form(
  1775. "编程平台",
  1776. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1777. "id": "program",
  1778. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1779. "onresize": function () { }
  1780. }, {
  1781. closecallback: function () { }
  1782. }, { "style": { "height": "36px" } }).form; //创建窗体
  1783. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1784. break;
  1785. case "library":
  1786. _formdiv = new U.UF.UI.form(
  1787. "素材库",
  1788. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  1789. "id": "library",
  1790. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1791. "onresize": function () { }
  1792. }, {
  1793. closecallback: function () { }
  1794. }, { "style": { "height": "36px" } }).form; //创建窗体
  1795. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1796. break;
  1797. case "whiteboard":
  1798. _formdiv = new U.UF.UI.form(
  1799. "电子白板",
  1800. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1801. "id": "whiteboard",
  1802. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1803. "onresize": function () { }
  1804. }, {
  1805. closecallback: function () { }
  1806. }, { "style": { "height": "36px" } }).form; //创建窗体
  1807. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1808. break;
  1809. case "investigation":
  1810. _formdiv = new U.UF.UI.form(
  1811. "问卷调查",
  1812. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/ask?userid=" + _userid + "&org=" + _org }), {
  1813. "id": "investigation",
  1814. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1815. "onresize": function () { }
  1816. }, {
  1817. closecallback: function () { }
  1818. }, { "style": { "height": "36px" } }).form; //创建窗体
  1819. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1820. break;
  1821. case "note":
  1822. _formdiv = new U.UF.UI.form(
  1823. "便签分类",
  1824. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  1825. "id": "note",
  1826. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1827. "onresize": function () { }
  1828. }, {
  1829. closecallback: function () { }
  1830. }, { "style": { "height": "36px" } }).form; //创建窗体
  1831. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1832. break;
  1833. // case "score":
  1834. // _formdiv = new U.UF.UI.form(
  1835. // "量规评分",
  1836. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1837. // "id": "score",
  1838. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1839. // "onresize": function() {}
  1840. // }, {
  1841. // closecallback: function() {}
  1842. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1843. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  1844. // break;
  1845. case "mind":
  1846. _formdiv = new U.UF.UI.form(
  1847. "思维导图",
  1848. $$("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"
  1849. "id": "mind",
  1850. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1851. "onresize": function () { }
  1852. }, {
  1853. closecallback: function () { }
  1854. }, { "style": { "height": "36px" } }).form; //创建窗体
  1855. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1856. break;
  1857. case "doc":
  1858. // U.MD.D.I.isRoom();
  1859. _formdiv = new U.UF.UI.form(
  1860. "协同文档",
  1861. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1862. "id": "doc",
  1863. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1864. "onresize": function () { }
  1865. }, {
  1866. closecallback: function () { }
  1867. }, { "style": { "height": "36px" } }).form; //创建窗体
  1868. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1869. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  1870. // })
  1871. _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); } }
  1872. break;
  1873. case "studentStudy":
  1874. _formdiv = new U.UF.UI.form(
  1875. "课程中心",
  1876. $$("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://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  1877. "id": "studentStudy",
  1878. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1879. "onresize": function () { }
  1880. }, {
  1881. closecallback: function () { }
  1882. }, { "style": { "height": "36px" } }).form; //创建窗体
  1883. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1884. break;
  1885. case "train": //好友打开
  1886. _formdiv = new U.UF.UI.form(
  1887. "训练平台",
  1888. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  1889. "id": "train",
  1890. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1891. "onresize": function () { }
  1892. }, {
  1893. closecallback: function () { }
  1894. }, { "style": { "height": "36px" } }).form; //创建窗体
  1895. _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); } }
  1896. break;
  1897. case "mindNetwork": //好友打开
  1898. _formdiv = new U.UF.UI.form(
  1899. "思维网格",
  1900. $$("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 }), {
  1901. "id": "mindNetwork",
  1902. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1903. "onresize": function () { }
  1904. }, {
  1905. closecallback: function () { }
  1906. }, { "style": { "height": "36px" } }).form; //创建窗体
  1907. _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); } }
  1908. break;
  1909. case "studentClassRoom": //好友打开
  1910. _formdiv = new U.UF.UI.form(
  1911. "实时课堂",
  1912. $$("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 }), {
  1913. "id": "studentClassRoom",
  1914. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1915. "onresize": function () { }
  1916. }, {
  1917. closecallback: function () { }
  1918. }, { "style": { "height": "36px" } }).form; //创建窗体
  1919. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1920. setTimeout(() => {
  1921. U.UF.F.windowZooming(_formdiv)
  1922. }, 0);
  1923. break;
  1924. }
  1925. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1926. switch (str) {
  1927. case "studnetProject": //好友打开
  1928. _formdiv = new U.UF.UI.form(
  1929. "我的项目",
  1930. $$("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 }), {
  1931. "id": "studnetProject",
  1932. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1933. "onresize": function () { }
  1934. }, {
  1935. closecallback: function () { }
  1936. }, { "style": { "height": "36px" } }).form; //创建窗体
  1937. _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); } }
  1938. break;
  1939. case "studentEvaluate": //好友打开
  1940. _formdiv = new U.UF.UI.form(
  1941. "我的评价",
  1942. $$("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 }), {
  1943. "id": "studentEvaluate",
  1944. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1945. "onresize": function () { }
  1946. }, {
  1947. closecallback: function () { }
  1948. }, { "style": { "height": "36px" } }).form; //创建窗体
  1949. _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); } }
  1950. break;
  1951. case "my":
  1952. _formdiv = new U.UF.UI.form(
  1953. "我的资料",
  1954. $$("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 }), {
  1955. "id": "my",
  1956. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1957. "onresize": function () { }
  1958. }, {
  1959. closecallback: function () { }
  1960. }, { "style": { "height": "36px" } }).form; //创建窗体
  1961. _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); } }
  1962. break;
  1963. case "program":
  1964. _formdiv = new U.UF.UI.form(
  1965. "编程平台",
  1966. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1967. "id": "program",
  1968. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1969. "onresize": function () { }
  1970. }, {
  1971. closecallback: function () { }
  1972. }, { "style": { "height": "36px" } }).form; //创建窗体
  1973. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  1974. break;
  1975. case "library":
  1976. _formdiv = new U.UF.UI.form(
  1977. "素材库",
  1978. $$("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 }), {
  1979. "id": "library",
  1980. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1981. "onresize": function () { }
  1982. }, {
  1983. closecallback: function () { }
  1984. }, { "style": { "height": "36px" } }).form; //创建窗体
  1985. _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); } }
  1986. break;
  1987. case "whiteboard":
  1988. _formdiv = new U.UF.UI.form(
  1989. "电子白板",
  1990. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1991. "id": "whiteboard",
  1992. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1993. "onresize": function () { }
  1994. }, {
  1995. closecallback: function () { }
  1996. }, { "style": { "height": "36px" } }).form; //创建窗体
  1997. _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); } }
  1998. break;
  1999. case "investigation":
  2000. _formdiv = new U.UF.UI.form(
  2001. "问卷调查",
  2002. $$("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 }), {
  2003. "id": "investigation",
  2004. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2005. "onresize": function () { }
  2006. }, {
  2007. closecallback: function () { }
  2008. }, { "style": { "height": "36px" } }).form; //创建窗体
  2009. _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); } }
  2010. break;
  2011. case "note":
  2012. _formdiv = new U.UF.UI.form(
  2013. "便签分类",
  2014. $$("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 }), {
  2015. "id": "note",
  2016. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2017. "onresize": function () { }
  2018. }, {
  2019. closecallback: function () { }
  2020. }, { "style": { "height": "36px" } }).form; //创建窗体
  2021. _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); } }
  2022. break;
  2023. // case "score":
  2024. // _formdiv = new U.UF.UI.form(
  2025. // "量规评分",
  2026. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2027. // "id": "score",
  2028. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2029. // "onresize": function() {}
  2030. // }, {
  2031. // closecallback: function() {}
  2032. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2033. // _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); } }
  2034. // break;
  2035. case "mind":
  2036. _formdiv = new U.UF.UI.form(
  2037. "思维导图",
  2038. $$("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"
  2039. "id": "mind",
  2040. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2041. "onresize": function () { }
  2042. }, {
  2043. closecallback: function () { }
  2044. }, { "style": { "height": "36px" } }).form; //创建窗体
  2045. _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); } }
  2046. break;
  2047. case "doc":
  2048. // U.MD.D.I.isRoom();
  2049. _formdiv = new U.UF.UI.form(
  2050. "协同文档",
  2051. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2052. "id": "doc",
  2053. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2054. "onresize": function () { }
  2055. }, {
  2056. closecallback: function () { }
  2057. }, { "style": { "height": "36px" } }).form; //创建窗体
  2058. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2059. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2060. })
  2061. _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); } }
  2062. break;
  2063. case "train": //好友打开
  2064. _formdiv = new U.UF.UI.form(
  2065. "训练平台",
  2066. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2067. "id": "train",
  2068. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2069. "onresize": function () { }
  2070. }, {
  2071. closecallback: function () { }
  2072. }, { "style": { "height": "36px" } }).form; //创建窗体
  2073. _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); } }
  2074. break;
  2075. case "studentStudy":
  2076. _formdiv = new U.UF.UI.form(
  2077. "课程中心",
  2078. $$("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://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2079. "id": "studentStudy",
  2080. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2081. "onresize": function () { }
  2082. }, {
  2083. closecallback: function () { }
  2084. }, { "style": { "height": "36px" } }).form; //创建窗体
  2085. _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); } }
  2086. break;
  2087. case "mindNetwork": //好友打开
  2088. _formdiv = new U.UF.UI.form(
  2089. "思维网格",
  2090. $$("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 }), {
  2091. "id": "mindNetwork",
  2092. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2093. "onresize": function () { }
  2094. }, {
  2095. closecallback: function () { }
  2096. }, { "style": { "height": "36px" } }).form; //创建窗体
  2097. _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); } }
  2098. break;
  2099. case "studentClassRoom": //好友打开
  2100. _formdiv = new U.UF.UI.form(
  2101. "实时课堂",
  2102. $$("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 }), {
  2103. "id": "studentClassRoom",
  2104. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2105. "onresize": function () { }
  2106. }, {
  2107. closecallback: function () { }
  2108. }, { "style": { "height": "36px" } }).form; //创建窗体
  2109. _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); } }
  2110. setTimeout(() => {
  2111. U.UF.F.windowZooming(_formdiv)
  2112. }, 0);
  2113. break;
  2114. }
  2115. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2116. //选择应用处理
  2117. switch (str) {
  2118. case "project": //好友打开
  2119. _formdiv = new U.UF.UI.form(
  2120. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2121. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "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/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2122. "id": "project",
  2123. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2124. "onresize": function () { }
  2125. }, {
  2126. closecallback: function () { }
  2127. }, { "style": { "height": "36px" } }).form; //创建窗体
  2128. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2129. break;
  2130. case "student":
  2131. _formdiv = new U.UF.UI.form(
  2132. "学生管理",
  2133. $$("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 }), {
  2134. "id": "student",
  2135. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2136. "onresize": function () { }
  2137. }, {
  2138. closecallback: function () { }
  2139. }, { "style": { "height": "36px" } }).form; //创建窗体
  2140. _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); } }
  2141. break;
  2142. case "evaluate":
  2143. _formdiv = new U.UF.UI.form(
  2144. "学生评价",
  2145. $$("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 }), {
  2146. "id": "evaluate",
  2147. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2148. "onresize": function () { }
  2149. }, {
  2150. closecallback: function () { }
  2151. }, { "style": { "height": "36px" } }).form; //创建窗体
  2152. _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); } }
  2153. break;
  2154. case "sys":
  2155. _formdiv = new U.UF.UI.form(
  2156. "目标管理",
  2157. $$("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 }), {
  2158. "id": "sys",
  2159. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2160. "onresize": function () { }
  2161. }, {
  2162. closecallback: function () { }
  2163. }, { "style": { "height": "36px" } }).form; //创建窗体
  2164. _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); } }
  2165. break;
  2166. case "courseDesign":
  2167. _formdiv = new U.UF.UI.form(
  2168. "项目设计",
  2169. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2170. "id": "courseDesign",
  2171. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2172. "onresize": function () { }
  2173. }, {
  2174. closecallback: function () { }
  2175. }, { "style": { "height": "36px" } }).form; //创建窗体
  2176. _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); } }
  2177. break;
  2178. case "program":
  2179. _formdiv = new U.UF.UI.form(
  2180. "编程平台",
  2181. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2182. "id": "program",
  2183. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2184. "onresize": function () { }
  2185. }, {
  2186. closecallback: function () { }
  2187. }, { "style": { "height": "36px" } }).form; //创建窗体
  2188. _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); } }
  2189. break;
  2190. case "class":
  2191. _formdiv = new U.UF.UI.form(
  2192. "班级管理",
  2193. $$("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 }), {
  2194. "id": "class",
  2195. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2196. "onresize": function () { }
  2197. }, {
  2198. closecallback: function () { }
  2199. }, { "style": { "height": "36px" } }).form; //创建窗体
  2200. _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); } }
  2201. break;
  2202. case "my":
  2203. _formdiv = new U.UF.UI.form(
  2204. "我的资料",
  2205. $$("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 }), {
  2206. "id": "my",
  2207. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2208. "onresize": function () { }
  2209. }, {
  2210. closecallback: function () { }
  2211. }, { "style": { "height": "36px" } }).form; //创建窗体
  2212. _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); } }
  2213. break;
  2214. case "notice":
  2215. _formdiv = new U.UF.UI.form(
  2216. "通知公告",
  2217. $$("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 }), {
  2218. "id": "notice",
  2219. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2220. "onresize": function () { }
  2221. }, {
  2222. closecallback: function () { }
  2223. }, { "style": { "height": "36px" } }).form; //创建窗体
  2224. _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); } }
  2225. break;
  2226. case "library":
  2227. _formdiv = new U.UF.UI.form(
  2228. "素材库",
  2229. $$("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 }), {
  2230. "id": "library",
  2231. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2232. "onresize": function () { }
  2233. }, {
  2234. closecallback: function () { }
  2235. }, { "style": { "height": "36px" } }).form; //创建窗体
  2236. _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); } }
  2237. break;
  2238. case "whiteboard":
  2239. _formdiv = new U.UF.UI.form(
  2240. "电子白板",
  2241. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2242. "id": "whiteboard",
  2243. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2244. "onresize": function () { }
  2245. }, {
  2246. closecallback: function () { }
  2247. }, { "style": { "height": "36px" } }).form; //创建窗体
  2248. _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); } }
  2249. break;
  2250. case "investigation":
  2251. _formdiv = new U.UF.UI.form(
  2252. "问卷调查",
  2253. $$("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 }), {
  2254. "id": "investigation",
  2255. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2256. "onresize": function () { }
  2257. }, {
  2258. closecallback: function () { }
  2259. }, { "style": { "height": "36px" } }).form; //创建窗体
  2260. _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); } }
  2261. break;
  2262. case "note":
  2263. _formdiv = new U.UF.UI.form(
  2264. "便签分类",
  2265. $$("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 }), {
  2266. "id": "note",
  2267. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2268. "onresize": function () { }
  2269. }, {
  2270. closecallback: function () { }
  2271. }, { "style": { "height": "36px" } }).form; //创建窗体
  2272. _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); } }
  2273. break;
  2274. // case "score":
  2275. // _formdiv = new U.UF.UI.form(
  2276. // "量规评分",
  2277. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2278. // "id": "score",
  2279. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2280. // "onresize": function() {}
  2281. // }, {
  2282. // closecallback: function() {}
  2283. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2284. // _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); } }
  2285. // break;
  2286. case "mind":
  2287. _formdiv = new U.UF.UI.form(
  2288. "思维导图",
  2289. $$("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"
  2290. "id": "mind",
  2291. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2292. "onresize": function () { }
  2293. }, {
  2294. closecallback: function () { }
  2295. }, { "style": { "height": "36px" } }).form; //创建窗体
  2296. _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); } }
  2297. break;
  2298. case "doc":
  2299. // U.MD.D.I.isRoom();
  2300. _formdiv = new U.UF.UI.form(
  2301. "协同文档",
  2302. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2303. "id": "doc",
  2304. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2305. "onresize": function () { }
  2306. }, {
  2307. closecallback: function () { }
  2308. }, { "style": { "height": "36px" } }).form; //创建窗体
  2309. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2310. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2311. })
  2312. _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); } }
  2313. break;
  2314. case "study":
  2315. _formdiv = new U.UF.UI.form(
  2316. "课程中心",
  2317. $$("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://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2318. "id": "study",
  2319. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2320. "onresize": function () { }
  2321. }, {
  2322. closecallback: function () { }
  2323. }, { "style": { "height": "36px" } }).form; //创建窗体
  2324. _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); } }
  2325. break;
  2326. case "mindNetwork": //好友打开
  2327. _formdiv = new U.UF.UI.form(
  2328. "思维网格",
  2329. $$("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 }), {
  2330. "id": "mindNetwork",
  2331. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2332. "onresize": function () { }
  2333. }, {
  2334. closecallback: function () { }
  2335. }, { "style": { "height": "36px" } }).form; //创建窗体
  2336. _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); } }
  2337. break;
  2338. case "train": //好友打开
  2339. _formdiv = new U.UF.UI.form(
  2340. "训练平台",
  2341. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2342. "id": "mindNetwork",
  2343. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2344. "onresize": function () { }
  2345. }, {
  2346. closecallback: function () { }
  2347. }, { "style": { "height": "36px" } }).form; //创建窗体
  2348. _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); } }
  2349. break;
  2350. case "teacherClassRoom": //好友打开
  2351. _formdiv = new U.UF.UI.form(
  2352. "实时课堂",
  2353. $$("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 }), {
  2354. "id": "teacherClassRoom",
  2355. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2356. "onresize": function () { }
  2357. }, {
  2358. closecallback: function () { }
  2359. }, { "style": { "height": "36px" } }).form; //创建窗体
  2360. _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); } }
  2361. setTimeout(() => {
  2362. U.UF.F.windowZooming(_formdiv)
  2363. }, 0);
  2364. break;
  2365. }
  2366. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2367. switch (str) {
  2368. case "project": //好友打开
  2369. _formdiv = new U.UF.UI.form(
  2370. "课程管理",
  2371. $$("iframe", { "allow": "camera *; microphone *;display-capture;clipboard-write;clipboard-read", "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/#/course?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  2372. "id": "project",
  2373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2374. "onresize": function () { }
  2375. }, {
  2376. closecallback: function () { }
  2377. }, { "style": { "height": "36px" } }).form; //创建窗体
  2378. _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); } }
  2379. break;
  2380. case "evaluate":
  2381. _formdiv = new U.UF.UI.form(
  2382. "学生评价",
  2383. $$("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 }), {
  2384. "id": "evaluate",
  2385. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2386. "onresize": function () { }
  2387. }, {
  2388. closecallback: function () { }
  2389. }, { "style": { "height": "36px" } }).form; //创建窗体
  2390. _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); } }
  2391. break;
  2392. case "notice":
  2393. _formdiv = new U.UF.UI.form(
  2394. "通知公告",
  2395. $$("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 }), {
  2396. "id": "notice",
  2397. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2398. "onresize": function () { }
  2399. }, {
  2400. closecallback: function () { }
  2401. }, { "style": { "height": "36px" } }).form; //创建窗体
  2402. _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); } }
  2403. break;
  2404. case "stuLibrary":
  2405. _formdiv = new U.UF.UI.form(
  2406. "学习资料",
  2407. $$("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 }), {
  2408. "id": "stuLibrary",
  2409. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2410. "onresize": function () { }
  2411. }, {
  2412. closecallback: function () { }
  2413. }, { "style": { "height": "36px" } }).form; //创建窗体
  2414. _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); } }
  2415. break;
  2416. case "program":
  2417. _formdiv = new U.UF.UI.form(
  2418. "编程平台",
  2419. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2420. "id": "program",
  2421. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2422. "onresize": function () { }
  2423. }, {
  2424. closecallback: function () { }
  2425. }, { "style": { "height": "36px" } }).form; //创建窗体
  2426. _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); } }
  2427. break;
  2428. case "whiteboard":
  2429. _formdiv = new U.UF.UI.form(
  2430. "电子白板",
  2431. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2432. "id": "whiteboard",
  2433. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2434. "onresize": function () { }
  2435. }, {
  2436. closecallback: function () { }
  2437. }, { "style": { "height": "36px" } }).form; //创建窗体
  2438. _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); } }
  2439. break;
  2440. case "investigation":
  2441. _formdiv = new U.UF.UI.form(
  2442. "问卷调查",
  2443. $$("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 }), {
  2444. "id": "investigation",
  2445. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2446. "onresize": function () { }
  2447. }, {
  2448. closecallback: function () { }
  2449. }, { "style": { "height": "36px" } }).form; //创建窗体
  2450. _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); } }
  2451. break;
  2452. case "mind":
  2453. _formdiv = new U.UF.UI.form(
  2454. "思维导图",
  2455. $$("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"
  2456. "id": "mind",
  2457. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2458. "onresize": function () { }
  2459. }, {
  2460. closecallback: function () { }
  2461. }, { "style": { "height": "36px" } }).form; //创建窗体
  2462. _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); } }
  2463. break;
  2464. case "doc":
  2465. // U.MD.D.I.isRoom();
  2466. _formdiv = new U.UF.UI.form(
  2467. "协同文档",
  2468. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2469. "id": "doc",
  2470. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2471. "onresize": function () { }
  2472. }, {
  2473. closecallback: function () { }
  2474. }, { "style": { "height": "36px" } }).form; //创建窗体
  2475. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2476. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2477. })
  2478. _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); } }
  2479. break;
  2480. case "study":
  2481. _formdiv = new U.UF.UI.form(
  2482. "课程中心",
  2483. $$("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://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2484. "id": "study",
  2485. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2486. "onresize": function () { }
  2487. }, {
  2488. closecallback: function () { }
  2489. }, { "style": { "height": "36px" } }).form; //创建窗体
  2490. _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); } }
  2491. break;
  2492. case "mindNetwork": //好友打开
  2493. _formdiv = new U.UF.UI.form(
  2494. "思维网格",
  2495. $$("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 }), {
  2496. "id": "mindNetwork",
  2497. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2498. "onresize": function () { }
  2499. }, {
  2500. closecallback: function () { }
  2501. }, { "style": { "height": "36px" } }).form; //创建窗体
  2502. _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); } }
  2503. break;
  2504. case "train": //好友打开
  2505. _formdiv = new U.UF.UI.form(
  2506. "训练平台",
  2507. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2508. "id": "train",
  2509. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2510. "onresize": function () { }
  2511. }, {
  2512. closecallback: function () { }
  2513. }, { "style": { "height": "36px" } }).form; //创建窗体
  2514. _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); } }
  2515. break;
  2516. case "sys":
  2517. _formdiv = new U.UF.UI.form(
  2518. "目标管理",
  2519. $$("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 }), {
  2520. "id": "sys",
  2521. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2522. "onresize": function () { }
  2523. }, {
  2524. closecallback: function () { }
  2525. }, { "style": { "height": "36px" } }).form; //创建窗体
  2526. _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); } }
  2527. break;
  2528. case "courseDesign":
  2529. _formdiv = new U.UF.UI.form(
  2530. "项目设计",
  2531. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2532. "id": "courseDesign",
  2533. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2534. "onresize": function () { }
  2535. }, {
  2536. closecallback: function () { }
  2537. }, { "style": { "height": "36px" } }).form; //创建窗体
  2538. _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); } }
  2539. break;
  2540. }
  2541. } else if (!_type) {
  2542. switch (str) {
  2543. case "my":
  2544. _formdiv = new U.UF.UI.form(
  2545. "我的资料",
  2546. $$("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 }), {
  2547. "id": "my",
  2548. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2549. "onresize": function () { }
  2550. }, {
  2551. closecallback: function () { }
  2552. }, { "style": { "height": "36px" } }).form; //创建窗体
  2553. _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); } }
  2554. break;
  2555. }
  2556. }
  2557. switch (str) {
  2558. // AIprogram2 AI体验 aihub.cocorobo.cn
  2559. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2560. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2561. case "AIprogram2": //AI体验
  2562. _formdiv = new U.UF.UI.form(
  2563. "AI体验",
  2564. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2565. "id": "AIprogram2",
  2566. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2567. "onresize": function () { }
  2568. }, {
  2569. closecallback: function () { }
  2570. }, { "style": { "height": "36px" } }).form; //创建窗体
  2571. _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); } }
  2572. break;
  2573. case "Pythonprogram": //python编程
  2574. _formdiv = new U.UF.UI.form(
  2575. "Python编程",
  2576. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2577. "id": "Pythonprogram",
  2578. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2579. "onresize": function () { }
  2580. }, {
  2581. closecallback: function () { }
  2582. }, { "style": { "height": "36px" } }).form; //创建窗体
  2583. _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); } }
  2584. break;
  2585. case "AIprogram": //ai编程
  2586. _formdiv = new U.UF.UI.form(
  2587. "AI编程平台",
  2588. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2589. "id": "AIprogram",
  2590. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //创建窗体
  2595. _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); } }
  2596. break;
  2597. case "CocoPi": //CocoPi
  2598. _formdiv = new U.UF.UI.form(
  2599. "CocoPi",
  2600. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2601. "id": "CocoPi",
  2602. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2603. "onresize": function () { }
  2604. }, {
  2605. closecallback: function () { }
  2606. }, { "style": { "height": "36px" } }).form; //创建窗体
  2607. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2608. break;
  2609. case "Wood": //Wood
  2610. _formdiv = new U.UF.UI.form(
  2611. "海龟编程",
  2612. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2613. "id": "Wood",
  2614. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2615. "onresize": function () { }
  2616. }, {
  2617. closecallback: function () { }
  2618. }, { "style": { "height": "36px" } }).form; //创建窗体
  2619. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2620. break;
  2621. case "car": //模拟驾驶
  2622. _formdiv = new U.UF.UI.form(
  2623. "模拟驾驶",
  2624. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2625. "id": "car",
  2626. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2627. "onresize": function () { }
  2628. }, {
  2629. closecallback: function () { }
  2630. }, { "style": { "height": "36px" } }).form; //创建窗体
  2631. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2632. break;
  2633. case "lineSearch": //路径搜索
  2634. _formdiv = new U.UF.UI.form(
  2635. "路径搜索",
  2636. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://qiao.github.io/PathFinding.js/visual/" }), {
  2637. "id": "lineSearch",
  2638. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2639. "onresize": function () { }
  2640. }, {
  2641. closecallback: function () { }
  2642. }, { "style": { "height": "36px" } }).form; //创建窗体
  2643. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2644. break;
  2645. case "deepLearning": //深度学习
  2646. _formdiv = new U.UF.UI.form(
  2647. "深度学习",
  2648. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-demos.cocorobo.cn/teachable-machine/public/#" }), {
  2649. "id": "deepLearning",
  2650. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2651. "onresize": function () { }
  2652. }, {
  2653. closecallback: function () { }
  2654. }, { "style": { "height": "36px" } }).form; //创建窗体
  2655. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2656. break;
  2657. case "allHistory": //深度学习
  2658. _formdiv = new U.UF.UI.form(
  2659. "全历史",
  2660. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2661. "id": "allHistory",
  2662. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2663. "onresize": function () { }
  2664. }, {
  2665. closecallback: function () { }
  2666. }, { "style": { "height": "36px" } }).form; //创建窗体
  2667. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2668. break;
  2669. case "chatPDF": //ai编程
  2670. _formdiv = new U.UF.UI.form(
  2671. "chatPDF",
  2672. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2673. "id": "chatPDF",
  2674. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2675. "onresize": function () { }
  2676. }, {
  2677. closecallback: function () { }
  2678. }, { "style": { "height": "36px" } }).form; //创建窗体
  2679. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2680. break;
  2681. case "resources": //国家教育
  2682. _formdiv = new U.UF.UI.form(
  2683. "国家教育",
  2684. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2685. "id": "resources",
  2686. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2687. "onresize": function () { }
  2688. }, {
  2689. closecallback: function () { }
  2690. }, { "style": { "height": "36px" } }).form; //创建窗体
  2691. _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); } }
  2692. break;
  2693. case "codeEdit": //源码编辑
  2694. _formdiv = new U.UF.UI.form(
  2695. "源码编辑",
  2696. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2697. "id": "codeEdit",
  2698. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2699. "onresize": function () { }
  2700. }, {
  2701. closecallback: function () { }
  2702. }, { "style": { "height": "36px" } }).form; //创建窗体
  2703. _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); } }
  2704. break; //
  2705. case "MindMap": //MindMap
  2706. _formdiv = new U.UF.UI.form(
  2707. "MindMap",
  2708. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2709. "id": "MindMap",
  2710. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2711. "onresize": function () { }
  2712. }, {
  2713. closecallback: function () { }
  2714. }, { "style": { "height": "36px" } }).form; //创建窗体
  2715. _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); } }
  2716. break;
  2717. case "netWorkPanel": //netWorkPanel
  2718. _formdiv = new U.UF.UI.form(
  2719. "netWorkPanel",
  2720. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2721. "id": "netWorkPanel",
  2722. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2723. "onresize": function () { }
  2724. }, {
  2725. closecallback: function () { }
  2726. }, { "style": { "height": "36px" } }).form; //创建窗体
  2727. _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); } }
  2728. break;
  2729. case "GeoGebra": //GeoGebra
  2730. _formdiv = new U.UF.UI.form(
  2731. "GeoGebra",
  2732. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2733. "id": "GeoGebra",
  2734. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2735. "onresize": function () { }
  2736. }, {
  2737. closecallback: function () { }
  2738. }, { "style": { "height": "36px" } }).form; //创建窗体
  2739. _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); } }
  2740. break;
  2741. case "translation": //翻译
  2742. _formdiv = new U.UF.UI.form(
  2743. "翻译",
  2744. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2745. "id": "translation",
  2746. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2747. "onresize": function () { }
  2748. }, {
  2749. closecallback: function () { }
  2750. }, { "style": { "height": "36px" } }).form; //创建窗体
  2751. _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); } }
  2752. break;
  2753. case "mohe": //魔盒
  2754. _formdiv = new U.UF.UI.form(
  2755. "魔盒识字",
  2756. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2757. "id": "mohe",
  2758. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2759. "onresize": function () { }
  2760. }, {
  2761. closecallback: function () { }
  2762. }, { "style": { "height": "36px" } }).form; //创建窗体
  2763. _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); } }
  2764. break;
  2765. case "24game": //24点
  2766. _formdiv = new U.UF.UI.form(
  2767. "24点",
  2768. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2769. "id": "24game",
  2770. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2771. "onresize": function () { }
  2772. }, {
  2773. closecallback: function () { }
  2774. }, { "style": { "height": "36px" } }).form; //创建窗体
  2775. _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); } }
  2776. break;
  2777. case "case":
  2778. _formdiv = new U.UF.UI.form(
  2779. "课程进展",
  2780. $$("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 }), {
  2781. "id": "case",
  2782. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2783. "onresize": function () { }
  2784. }, {
  2785. closecallback: function () { }
  2786. }, { "style": { "height": "36px" } }).form; //创建窗体
  2787. _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); } }
  2788. break;
  2789. case "snf":
  2790. _formdiv = new U.UF.UI.form(
  2791. "赛诺梵",
  2792. $$("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" }), {
  2793. "id": "snf",
  2794. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2795. "onresize": function () { }
  2796. }, {
  2797. closecallback: function () { }
  2798. }, { "style": { "height": "36px" } }).form; //创建窗体
  2799. _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); } }
  2800. break;
  2801. case "hanFamily":
  2802. _formdiv = new U.UF.UI.form(
  2803. "汉字家族",
  2804. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2805. "id": "hanFamily",
  2806. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2807. "onresize": function () { }
  2808. }, {
  2809. closecallback: function () { }
  2810. }, { "style": { "height": "36px" } }).form; //创建窗体
  2811. _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); } }
  2812. break;
  2813. case "hanClassics":
  2814. _formdiv = new U.UF.UI.form(
  2815. "国学经典",
  2816. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2817. "id": "hanClassics",
  2818. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2819. "onresize": function () { }
  2820. }, {
  2821. closecallback: function () { }
  2822. }, { "style": { "height": "36px" } }).form; //创建窗体
  2823. _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); } }
  2824. break;
  2825. case "hanTraining":
  2826. _formdiv = new U.UF.UI.form(
  2827. "笔画训练",
  2828. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2829. "id": "hanTraining",
  2830. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2831. "onresize": function () { }
  2832. }, {
  2833. closecallback: function () { }
  2834. }, { "style": { "height": "36px" } }).form; //创建窗体
  2835. _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); } }
  2836. break;
  2837. case "hanClass":
  2838. _formdiv = new U.UF.UI.form(
  2839. "书法课堂",
  2840. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2841. "id": "hanClass",
  2842. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2843. "onresize": function () { }
  2844. }, {
  2845. closecallback: function () { }
  2846. }, { "style": { "height": "36px" } }).form; //创建窗体
  2847. _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); } }
  2848. break;
  2849. case "han":
  2850. _formdiv = new U.UF.UI.form(
  2851. "汉字宫",
  2852. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2853. "id": "han",
  2854. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2855. "onresize": function () { }
  2856. }, {
  2857. closecallback: function () { }
  2858. }, { "style": { "height": "36px" } }).form; //创建窗体
  2859. _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); } }
  2860. break;
  2861. case "projectGM": //课程管理
  2862. _formdiv = new U.UF.UI.form(
  2863. "课程管理",
  2864. $$("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 }), {
  2865. "id": "projectGM",
  2866. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2867. "onresize": function () { }
  2868. }, {
  2869. closecallback: function () { }
  2870. }, { "style": { "height": "36px" } }).form; //创建窗体
  2871. _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); } }
  2872. break;
  2873. case "studyGM"://课程中心
  2874. _formdiv = new U.UF.UI.form(
  2875. "课程中心",
  2876. $$("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://beta.pbl.cocorobo.cn/pbl-student-table/dist/#/index
  2877. "id": "study",
  2878. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2879. "onresize": function () { }
  2880. }, {
  2881. closecallback: function () { }
  2882. }, { "style": { "height": "36px" } }).form; //创建窗体
  2883. _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); } }
  2884. break;
  2885. // studentGM
  2886. case "studentGM"://学生管理
  2887. _formdiv = new U.UF.UI.form(
  2888. "学生管理",
  2889. $$("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 }), {
  2890. "id": "studentGM",
  2891. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2892. "onresize": function () { }
  2893. }, {
  2894. closecallback: function () { }
  2895. }, { "style": { "height": "36px" } }).form; //创建窗体
  2896. _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); } }
  2897. break;
  2898. case "evaluateGM"://学生评价
  2899. _formdiv = new U.UF.UI.form(
  2900. "学生评价",
  2901. $$("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 }), {
  2902. "id": "evaluateGM",
  2903. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2904. "onresize": function () { }
  2905. }, {
  2906. closecallback: function () { }
  2907. }, { "style": { "height": "36px" } }).form; //创建窗体
  2908. _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); } }
  2909. break;
  2910. // classGM
  2911. case "classGM"://班级管理
  2912. _formdiv = new U.UF.UI.form(
  2913. "班级管理",
  2914. $$("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 }), {
  2915. "id": "classGM",
  2916. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _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); } }
  2922. break;
  2923. // dataGM
  2924. case "dataGM":
  2925. _formdiv = new U.UF.UI.form(
  2926. "我的资料",
  2927. $$("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 }), {
  2928. "id": "dataGM",
  2929. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2930. "onresize": function () { }
  2931. }, {
  2932. closecallback: function () { }
  2933. }, { "style": { "height": "36px" } }).form; //创建窗体
  2934. _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); } }
  2935. break;
  2936. // caseGM
  2937. case "caseGM"://课程进展
  2938. _formdiv = new U.UF.UI.form(
  2939. "课程进展",
  2940. $$("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 }), {
  2941. "id": "caseGM",
  2942. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2943. "onresize": function () { }
  2944. }, {
  2945. closecallback: function () { }
  2946. }, { "style": { "height": "36px" } }).form; //创建窗体
  2947. _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); } }
  2948. break;
  2949. // meterialGM
  2950. case "meterialGM"://素材库
  2951. _formdiv = new U.UF.UI.form(
  2952. "素材库",
  2953. $$("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 }), {
  2954. "id": "meterialGM",
  2955. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2956. "onresize": function () { }
  2957. }, {
  2958. closecallback: function () { }
  2959. }, { "style": { "height": "36px" } }).form; //创建窗体
  2960. _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); } }
  2961. break;
  2962. // evaluateSGM
  2963. case "evaluateSGM": //我的评价
  2964. _formdiv = new U.UF.UI.form(
  2965. "我的评价",
  2966. $$("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 }), {
  2967. "id": "evaluateSGM",
  2968. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2969. "onresize": function () { }
  2970. }, {
  2971. closecallback: function () { }
  2972. }, { "style": { "height": "36px" } }).form; //创建窗体
  2973. _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); } }
  2974. break;
  2975. case "jupyter": //jupyter
  2976. _formdiv = new U.UF.UI.form(
  2977. "jupyter",
  2978. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  2979. "id": "jupyter",
  2980. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2981. "onresize": function () { }
  2982. }, {
  2983. closecallback: function () { }
  2984. }, { "style": { "height": "36px" } }).form; //创建窗体
  2985. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/jupyter.png)" }, "name": "jupyter", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2986. break;
  2987. case "number": //数字实验室
  2988. _formdiv = new U.UF.UI.form(
  2989. "数字实验室",
  2990. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  2991. "id": "number",
  2992. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2993. "onresize": function () { }
  2994. }, {
  2995. closecallback: function () { }
  2996. }, { "style": { "height": "36px" } }).form; //创建窗体
  2997. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/number.png)" }, "name": "数字实验室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2998. break;
  2999. case "studentCourse": //项目管理 学生
  3000. _formdiv = new U.UF.UI.form(
  3001. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3002. $$("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-teacher-table/dist/#/studentCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3003. "id": "studentCourse",
  3004. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3005. "onresize": function () { }
  3006. }, {
  3007. closecallback: function () { }
  3008. }, { "style": { "height": "36px" } }).form; //创建窗体
  3009. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3010. break;
  3011. case "studentCourseS": //项目管理 老师
  3012. _formdiv = new U.UF.UI.form(
  3013. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3014. $$("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-teacher-table/dist/#/scourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3015. "id": "studentCourseS",
  3016. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3017. "onresize": function () { }
  3018. }, {
  3019. closecallback: function () { }
  3020. }, { "style": { "height": "36px" } }).form; //创建窗体
  3021. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3022. break;
  3023. case "studentIndex": //项目中心
  3024. _formdiv = new U.UF.UI.form(
  3025. "项目中心",
  3026. $$("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/#/studentIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3027. "id": "studentIndex",
  3028. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3029. "onresize": function () { }
  3030. }, {
  3031. closecallback: function () { }
  3032. }, { "style": { "height": "36px" } }).form; //创建窗体
  3033. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentIndex.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3034. break;
  3035. case "CaseDesignS":
  3036. _formdiv = new U.UF.UI.form(
  3037. "项目进展",
  3038. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignS?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3039. "id": "case",
  3040. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3041. "onresize": function () { }
  3042. }, {
  3043. closecallback: function () { }
  3044. }, { "style": { "height": "36px" } }).form; //创建窗体
  3045. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/CaseDesignS.png)" }, "name": "项目进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3046. break;
  3047. case "tcStudent": //腾讯学生管理
  3048. _formdiv = new U.UF.UI.form(
  3049. "学生管理",
  3050. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcStudent?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3051. "id": "tcStudent",
  3052. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3053. "onresize": function () { }
  3054. }, {
  3055. closecallback: function () { }
  3056. }, { "style": { "height": "36px" } }).form; //创建窗体
  3057. _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); } }
  3058. break;
  3059. case "tcSchool": //腾讯学校管理
  3060. _formdiv = new U.UF.UI.form(
  3061. "学校管理",
  3062. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcSchool?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3063. "id": "tcSchool",
  3064. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3065. "onresize": function () { }
  3066. }, {
  3067. closecallback: function () { }
  3068. }, { "style": { "height": "36px" } }).form; //创建窗体
  3069. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3070. break;
  3071. case "tcTeacher": //腾讯学校管理
  3072. _formdiv = new U.UF.UI.form(
  3073. "教师管理",
  3074. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3075. "id": "tcTeacher",
  3076. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3077. "onresize": function () { }
  3078. }, {
  3079. closecallback: function () { }
  3080. }, { "style": { "height": "36px" } }).form; //创建窗体
  3081. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3082. break;
  3083. case "tcData": //腾讯我的资料
  3084. _formdiv = new U.UF.UI.form(
  3085. "我的资料",
  3086. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3087. "id": "tcData",
  3088. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3089. "onresize": function () { }
  3090. }, {
  3091. closecallback: function () { }
  3092. }, { "style": { "height": "36px" } }).form; //创建窗体
  3093. _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); } }
  3094. break;
  3095. case "tcNotice": //腾讯消息通知
  3096. _formdiv = new U.UF.UI.form(
  3097. "消息通知",
  3098. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3099. "id": "tcNotice",
  3100. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3101. "onresize": function () { }
  3102. }, {
  3103. closecallback: function () { }
  3104. }, { "style": { "height": "36px" } }).form; //创建窗体
  3105. _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); } }
  3106. break;
  3107. case "myReport": //好友打开
  3108. _formdiv = new U.UF.UI.form(
  3109. "我的评价",
  3110. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/myReport?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&classid=" + _classId }), {
  3111. "id": "myReport",
  3112. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3113. "onresize": function () { }
  3114. }, {
  3115. closecallback: function () { }
  3116. }, { "style": { "height": "36px" } }).form; //创建窗体
  3117. _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); } }
  3118. break;
  3119. case "learnAna": //好友打开
  3120. _formdiv = new U.UF.UI.form(
  3121. "学习分析",
  3122. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/learnAna?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3123. "id": "learnAna",
  3124. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3125. "onresize": function () { }
  3126. }, {
  3127. closecallback: function () { }
  3128. }, { "style": { "height": "36px" } }).form; //创建窗体
  3129. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/learnAna.png)" }, "name": "学习分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3130. break;
  3131. case "AIChat": //AI共创
  3132. _formdiv = new U.UF.UI.form(
  3133. "AI共创",
  3134. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3135. "id": "AIChat",
  3136. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3137. "onresize": function () { }
  3138. }, {
  3139. istop: true,
  3140. closecallback: function () { $("#aichat_icon").remove(); },
  3141. narrowcallback: function () {
  3142. if (!$("#aichat_icon")[0]) {
  3143. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3144. }
  3145. },
  3146. }, { "style": { "height": "36px" } }).form; //创建窗体
  3147. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI共创", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3148. break;
  3149. case "AIAnalyse": //AI共创
  3150. _formdiv = new U.UF.UI.form(
  3151. "AI分析",
  3152. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3153. "id": "AIAnalyse",
  3154. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3155. "onresize": function () { }
  3156. }, {
  3157. closecallback: function () { }
  3158. }, { "style": { "height": "36px" } }).form; //创建窗体
  3159. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/AIChat.png)" }, "name": "AI分析", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3160. break;
  3161. case "studioCourse": //AI共创
  3162. _formdiv = new U.UF.UI.form(
  3163. "工作管理",
  3164. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/studioCourse?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3165. "id": "studioCourse",
  3166. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3167. "onresize": function () { }
  3168. }, {
  3169. closecallback: function () { }
  3170. }, { "style": { "height": "36px" } }).form; //创建窗体
  3171. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioCourse.png)" }, "name": "工作管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3172. break;
  3173. case "studioIndex": //AI共创
  3174. _formdiv = new U.UF.UI.form(
  3175. "工作中心",
  3176. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-student-table/dist/#/studioIndex?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType + "&role=" + _role }), {
  3177. "id": "studioIndex",
  3178. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3179. "onresize": function () { }
  3180. }, {
  3181. closecallback: function () { }
  3182. }, { "style": { "height": "36px" } }).form; //创建窗体
  3183. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studioIndex.png)" }, "name": "工作中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3184. break;
  3185. case "source":
  3186. _formdiv = new U.UF.UI.form(
  3187. "教学资源",
  3188. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherSource?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3189. "id": "source",
  3190. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3191. "onresize": function () { }
  3192. }, {
  3193. closecallback: function () { }
  3194. }, { "style": { "height": "36px" } }).form; //创建窗体
  3195. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/source.png)" }, "name": "教学资源", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3196. break;
  3197. }
  3198. //U.MD.D.I.openClick(str);
  3199. //如果有任务栏信息
  3200. if (_taskbar) {
  3201. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3202. }
  3203. }
  3204. // U.MD.D.I.openClick = function(str){
  3205. // var click = '';
  3206. // switch(str){
  3207. // case 'friend':
  3208. // click = '我的好友';
  3209. // break;
  3210. // case 'domain':
  3211. // click = '域名管理';
  3212. // break;
  3213. // case 'disk':
  3214. // click = '我的云盘';
  3215. // break;
  3216. // case 'word':
  3217. // click = 'Word';
  3218. // break;
  3219. // case 'excel':
  3220. // click = 'Execl';
  3221. // break;
  3222. // case 'txt':
  3223. // click = '文本文件';
  3224. // break;
  3225. // case 'lookupFriend':
  3226. // click = '查找好友';
  3227. // break;
  3228. // case 'ftp':
  3229. // click = 'FTP';
  3230. // break;
  3231. // case 'group':
  3232. // click = '群组';
  3233. // break;
  3234. // case 'set':
  3235. // click = '我的设置';
  3236. // break;
  3237. // case 'systemSet':
  3238. // click = '系统设置';
  3239. // break;
  3240. // case 'boomYun':
  3241. // click = '互联办公';
  3242. // break;
  3243. // case 'xz':
  3244. // click = '云端下载';
  3245. // break;
  3246. // case 'client':
  3247. // click = '有思浏览器';
  3248. // break;
  3249. // case 'backEndProgramming':
  3250. // click = '在线后台编程';
  3251. // break;
  3252. // case 'frontEndProgramming':
  3253. // click = '在线前端编程';
  3254. // break;
  3255. // default: break;
  3256. // }
  3257. // if(U.MD.D.I.Ip && click){
  3258. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3259. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3260. // })
  3261. // }
  3262. // }
  3263. /**
  3264. *函数作用:ajax简易函数,使用post格式
  3265. *@param url {data} 后台地址
  3266. *@param data {data} 参数json
  3267. *@param fn {data} 回调函数
  3268. *
  3269. */
  3270. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3271. // var xhr = new XMLHttpRequest();
  3272. // xhr.open("GET",url,true);
  3273. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3274. // xhr.onreadystatechange = function(){
  3275. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3276. // fn.call(this,xhr.responseText);
  3277. // }
  3278. // };
  3279. // xhr.send();
  3280. // }
  3281. /*判断是否是内网IP*/
  3282. // U.MD.D.I.isInnerIPFn = function(str){
  3283. // var curPageUrl = str;
  3284. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3285. // curPageUrl =curPageUrl.replace(reg1,'');
  3286. // // console.log('curPageUrl-1 '+curPageUrl);
  3287. // var reg2 = /\:+/g;//替换冒号为一点
  3288. // curPageUrl =curPageUrl.replace(reg2,'.');
  3289. // // console.log('curPageUrl-2 '+curPageUrl);
  3290. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3291. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3292. // if(curPageUrl[2] != '16'){
  3293. // return ipAddress;
  3294. // }else{
  3295. // return false;
  3296. // }
  3297. // }
  3298. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3299. // //compatibility for firefox and chrome
  3300. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3301. // var pc = new myPeerConnection({
  3302. // iceServers: []
  3303. // }),
  3304. // noop = function() {},
  3305. // localIPs = {},
  3306. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3307. // key;
  3308. // function iterateIP(ip) {
  3309. // if (!localIPs[ip]) onNewIP(ip);
  3310. // localIPs[ip] = true;
  3311. // }
  3312. // //create a bogus data channel
  3313. // pc.createDataChannel("");
  3314. // // create offer and set local description
  3315. // pc.createOffer().then(function(sdp) {
  3316. // sdp.sdp.split('\n').forEach(function(line) {
  3317. // if (line.indexOf('candidate') < 0) return;
  3318. // line.match(ipRegex).forEach(iterateIP);
  3319. // });
  3320. // pc.setLocalDescription(sdp, noop, noop);
  3321. // }).catch(function(reason) {
  3322. // // An error occurred, so handle the failure to connect
  3323. // });
  3324. // //sten for candidate events
  3325. // pc.onicecandidate = function(ice) {
  3326. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3327. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3328. // };
  3329. // }
  3330. // U.MD.D.I.getUserIpBool = function(callback){
  3331. // U.MD.D.I.getUserIP(function(ip){
  3332. // alert("Got IP! :" + ip);
  3333. // });
  3334. //}
  3335. //#endregion
  3336. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3337. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3338. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3339. _userinfo = US.userInfo, //登录用户信息
  3340. _userid = US.userInfo.userid //登录用户id
  3341. let _iframe;
  3342. let _cid = cid,
  3343. _stage = stage,
  3344. _task = task,
  3345. _tool = tool;
  3346. var _jie = $$("div", {
  3347. "style": {
  3348. "position": "absolute",
  3349. "bottom": "50px",
  3350. "right": "50px",
  3351. "zIndex": "9999",
  3352. "backgroundColor": "#2268bc",
  3353. "color": "#fff",
  3354. "padding": "12px 20px",
  3355. "cursor": "pointer",
  3356. "borderRadius": "4px",
  3357. },
  3358. "innerHTML": "提交作业"
  3359. })
  3360. let aTool = ''
  3361. let _loading = document.createElement('div')
  3362. _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;"
  3363. // _loading.id = "";
  3364. let _lchild = document.createElement('div')
  3365. let _limg = document.createElement('img')
  3366. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3367. _limg.style = "width: 26px;margin-right: 10px;"
  3368. _lchild.appendChild(_limg)
  3369. let _lspan = document.createElement('span')
  3370. _lspan.innerHTML = "上传中..."
  3371. _lchild.appendChild(_lspan)
  3372. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3373. _loading.appendChild(_lchild)
  3374. var _box = $$('div', {
  3375. "style": {
  3376. "position": "relative",
  3377. "width": "100%",
  3378. "height": "100%",
  3379. },
  3380. })
  3381. _box.appendChild(_loading)
  3382. _box.id = str + '_loadLi'
  3383. switch (str) {
  3384. case "whiteboard":
  3385. aTool = 1;
  3386. _iframe = $$("iframe", {
  3387. "frameborder": "no",
  3388. "border": "0",
  3389. "scrolling ": "no",
  3390. "style": {
  3391. "cssText": "border:0;width:100%;height:100%"
  3392. },
  3393. "src": "https://iwb.cocorobo.cn/"
  3394. })
  3395. _box.appendChild(_iframe);
  3396. _box.appendChild(_jie);
  3397. _formdiv = new U.UF.UI.form(
  3398. "电子白板",
  3399. _box, {
  3400. "id": "whiteboard" + cid + stage + task + tool,
  3401. "style": {
  3402. "width": "90%",
  3403. "height": "90%",
  3404. "overflow": 'hidden'
  3405. },
  3406. "onresize": function () { }
  3407. }, {
  3408. closecallback: function () { }
  3409. }, {
  3410. "style": {
  3411. "height": "36px"
  3412. }
  3413. }).form; //创建窗体
  3414. _taskbar = {
  3415. "id": str + _formdiv.id,
  3416. "style": {
  3417. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3418. },
  3419. "name": "电子白板",
  3420. "forms": _formdiv,
  3421. "click": function () {
  3422. U.MD.D.I.openApplication(str, obj, info);
  3423. }
  3424. }
  3425. break;
  3426. case "mind":
  3427. aTool = 3;
  3428. _iframe = $$("iframe", {
  3429. "frameborder": "no",
  3430. "border": "0",
  3431. "scrolling ": "no",
  3432. "style": {
  3433. "cssText": "border:0;width:100%;height:100%"
  3434. },
  3435. "src": "/kityminder-editor/dist/index.html"
  3436. })
  3437. _box.appendChild(_iframe);
  3438. _box.appendChild(_jie);
  3439. _formdiv = new U.UF.UI.form(
  3440. "思维导图",
  3441. _box, { //"/jsmind/example/demo.html"
  3442. "id": "mind" + cid + stage + task + tool,
  3443. "style": {
  3444. "width": "90%",
  3445. "height": "90%",
  3446. "overflow": 'hidden'
  3447. },
  3448. "onresize": function () { }
  3449. }, {
  3450. closecallback: function () { }
  3451. }, {
  3452. "style": {
  3453. "height": "36px"
  3454. }
  3455. }).form; //创建窗体
  3456. _taskbar = {
  3457. "id": str + _formdiv.id,
  3458. "style": {
  3459. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3460. },
  3461. "name": "思维导图",
  3462. "forms": _formdiv,
  3463. "click": function () {
  3464. U.MD.D.I.openApplication(str, obj, info);
  3465. }
  3466. }
  3467. break;
  3468. case "MindMap":
  3469. aTool = 3;
  3470. _iframe = $$("iframe", {
  3471. "frameborder": "no",
  3472. "border": "0",
  3473. "scrolling ": "no",
  3474. "style": {
  3475. "cssText": "border:0;width:100%;height:100%"
  3476. },
  3477. "src": "//cloud.cocorobo.cn/mind/"
  3478. })
  3479. _box.appendChild(_iframe);
  3480. _box.appendChild(_jie);
  3481. _formdiv = new U.UF.UI.form(
  3482. "思维导图",
  3483. _box, { //"/jsmind/example/demo.html"
  3484. "id": "mind" + cid + stage + task + tool,
  3485. "style": {
  3486. "width": "90%",
  3487. "height": "90%",
  3488. "overflow": 'hidden'
  3489. },
  3490. "onresize": function () { }
  3491. }, {
  3492. closecallback: function () { }
  3493. }, {
  3494. "style": {
  3495. "height": "36px"
  3496. }
  3497. }).form; //创建窗体
  3498. _taskbar = {
  3499. "id": str + _formdiv.id,
  3500. "style": {
  3501. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3502. },
  3503. "name": "思维导图",
  3504. "forms": _formdiv,
  3505. "click": function () {
  3506. U.MD.D.I.openApplication(str, obj, info);
  3507. }
  3508. }
  3509. break;
  3510. case "doc":
  3511. aTool = 6;
  3512. _iframe = $$("iframe", {
  3513. "frameborder": "no",
  3514. "border": "0",
  3515. "scrolling ": "no",
  3516. "style": {
  3517. "cssText": "border:0;width:100%;height:100%"
  3518. },
  3519. "src": "/Office/Word/WordEditArea.htm"
  3520. })
  3521. _box.appendChild(_iframe);
  3522. _box.appendChild(_jie);
  3523. _formdiv = new U.UF.UI.form(
  3524. "协同文档",
  3525. _box, {
  3526. "id": "doc" + cid + stage + task + tool,
  3527. "style": {
  3528. "width": "90%",
  3529. "height": "90%",
  3530. "overflow": 'hidden'
  3531. },
  3532. "onresize": function () { }
  3533. }, {
  3534. closecallback: function () { }
  3535. }, {
  3536. "style": {
  3537. "height": "36px"
  3538. }
  3539. }).form; //创建窗体
  3540. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3541. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3542. })
  3543. _taskbar = {
  3544. "id": str + _formdiv.id,
  3545. "style": {
  3546. "backgroundImage": "url(/img/icon/doc.png)"
  3547. },
  3548. "name": "协同文档",
  3549. "forms": _formdiv,
  3550. "click": function () {
  3551. U.MD.D.I.openApplication(str, obj, info);
  3552. }
  3553. }
  3554. break;
  3555. case "mindNetwork": //好友打开
  3556. aTool = 7;
  3557. _iframe = $$("iframe", {
  3558. "webkitallowfullscreen": "",
  3559. "mozallowfullscreen": "",
  3560. "allowfullscreen": "",
  3561. "frameborder": "no",
  3562. "border": "0",
  3563. "scrolling ": "no",
  3564. "style": {
  3565. "cssText": "border:0; width:100%; height:100%;"
  3566. },
  3567. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3568. })
  3569. _box.appendChild(_iframe);
  3570. _box.appendChild(_jie);
  3571. _formdiv = new U.UF.UI.form(
  3572. "思维网格",
  3573. _box, {
  3574. "id": "mindNetwork" + cid + stage + task + tool,
  3575. "style": {
  3576. "width": "90%",
  3577. "height": "90%",
  3578. "overflow": 'hidden'
  3579. },
  3580. "onresize": function () { }
  3581. }, {
  3582. closecallback: function () { }
  3583. }, {
  3584. "style": {
  3585. "height": "36px"
  3586. }
  3587. }).form; //创建窗体
  3588. _taskbar = {
  3589. "id": str + _formdiv.id,
  3590. "style": {
  3591. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3592. },
  3593. "name": "思维网格",
  3594. "forms": _formdiv,
  3595. "click": function () {
  3596. U.MD.D.I.openApplication(str, obj, info);
  3597. }
  3598. }
  3599. break;
  3600. case "courseDesign":
  3601. _iframe = $$("iframe", {
  3602. "webkitallowfullscreen": "",
  3603. "mozallowfullscreen": "",
  3604. "allowfullscreen": "",
  3605. "frameborder": "no",
  3606. "border": "0",
  3607. "scrolling ": "no",
  3608. "style": {
  3609. "cssText": "border:0; width:100%; height:100%;"
  3610. },
  3611. "src": "/course-design-vue"
  3612. })
  3613. _box.appendChild(_iframe);
  3614. _box.appendChild(_jie);
  3615. _formdiv = new U.UF.UI.form(
  3616. "项目设计",
  3617. _box, {
  3618. "id": "courseDesign" + cid + stage + task + tool,
  3619. "style": {
  3620. "width": "90%",
  3621. "height": "90%",
  3622. "overflow": 'hidden'
  3623. },
  3624. "onresize": function () { }
  3625. }, {
  3626. closecallback: function () { }
  3627. }, {
  3628. "style": {
  3629. "height": "36px"
  3630. }
  3631. }).form; //创建窗体
  3632. _taskbar = {
  3633. "id": str + _formdiv.id,
  3634. "style": {
  3635. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3636. },
  3637. "name": "项目设计",
  3638. "forms": _formdiv,
  3639. "click": function () {
  3640. U.MD.D.I.openApplication(str, obj, info);
  3641. }
  3642. }
  3643. break;
  3644. }
  3645. const script1 = document.createElement("script");
  3646. script1.type = "text/javascript";
  3647. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3648. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3649. const script2 = document.createElement("script");
  3650. script2.type = "text/javascript";
  3651. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3652. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3653. const script3 = document.createElement("script");
  3654. script3.type = "text/javascript";
  3655. script3.charset = "UTF-8";
  3656. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3657. const script4 = document.createElement("script");
  3658. script4.type = "text/javascript";
  3659. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3660. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3661. if (_iframe) {
  3662. if (str == 'doc') {
  3663. _iframe = _formdiv.querySelector('iframe')
  3664. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3665. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3666. _iframe.contentWindow.document.body.appendChild(script1);
  3667. _iframe.contentWindow.document.body.appendChild(script2);
  3668. // _iframe.contentWindow.document.body.appendChild(script3);
  3669. _iframe.contentWindow.document.body.appendChild(script4);
  3670. })
  3671. if (onloadListener) {
  3672. _iframe.contentDocument.location.reload()
  3673. } else {
  3674. _iframe.contentDocument.location.reload()
  3675. }
  3676. } else if (str == 'courseDesign') {
  3677. U.UF.DL.iframeLoad(_iframe, function () {
  3678. // _iframe.contentWindow.U.MD.O.W.load();
  3679. // _iframe.contentWindow.document.body.appendChild(script1);
  3680. _iframe.contentWindow.document.body.appendChild(script2);
  3681. _iframe.contentWindow.document.body.appendChild(script4);
  3682. })
  3683. } else if (str == 'mind') {
  3684. _iframe = _formdiv.querySelector('iframe')
  3685. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3686. //
  3687. _iframe.contentWindow.document.body.appendChild(script1);
  3688. _iframe.contentWindow.document.body.appendChild(script2);
  3689. _iframe.contentWindow.document.body.appendChild(script4);
  3690. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3691. })
  3692. if (onloadListener) {
  3693. _iframe.contentDocument.location.reload()
  3694. } else {
  3695. _iframe.contentDocument.location.reload()
  3696. }
  3697. } else if (str == 'whiteboard') {
  3698. _iframe = _formdiv.querySelector('iframe')
  3699. let onloadListener = _iframe.onload = () => {
  3700. _iframe.contentWindow.document.body.appendChild(script1);
  3701. _iframe.contentWindow.document.body.appendChild(script2);
  3702. _iframe.contentWindow.document.body.appendChild(script4);
  3703. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3704. };
  3705. if (onloadListener) {
  3706. _iframe.contentDocument.location.reload()
  3707. } else {
  3708. _iframe.contentDocument.location.reload()
  3709. }
  3710. } else {
  3711. _iframe.onload = () => {
  3712. _iframe.contentWindow.document.body.appendChild(script1);
  3713. _iframe.contentWindow.document.body.appendChild(script2);
  3714. // _iframe.contentWindow.document.body.appendChild(script3);
  3715. _iframe.contentWindow.document.body.appendChild(script4);
  3716. };
  3717. }
  3718. _jie.onclick = async () => {
  3719. let text = ''
  3720. if (aTool == 1) {
  3721. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3722. } else if (aTool == 6) {
  3723. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3724. } else if (aTool == 3) {
  3725. text = await U.MD.D.I.getEditorContent(_iframe);
  3726. }
  3727. _loading.style.display = 'flex'
  3728. console.log(_loading);
  3729. var _ajs = _iframe.contentWindow.document.createElement("script");
  3730. _ajs.type = "text/javascript";
  3731. _ajs.innerHTML =
  3732. // 'console.log(' + _loading + ');\n' +
  3733. 'var _js = document.createElement("script");\n' +
  3734. '_js.type="text/javascript";\n' +
  3735. '_js.charset="UTF-8";\n' +
  3736. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3737. "_js.onload = function(){\n" +
  3738. ' var a = document.getElementsByTagName("img")\n' +
  3739. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3740. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3741. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3742. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3743. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3744. "beforeUpload_shishi(file," +
  3745. "'" +
  3746. _userid +
  3747. "'" +
  3748. ", " +
  3749. "'" +
  3750. _cid +
  3751. "'" +
  3752. ", " +
  3753. "'" +
  3754. _stage +
  3755. "'" +
  3756. ", " +
  3757. "'" +
  3758. _task +
  3759. "'" +
  3760. ", " +
  3761. "'" +
  3762. _tool +
  3763. "'" +
  3764. ", " +
  3765. "'" +
  3766. str + '_loadLi' +
  3767. "'" +
  3768. ", " +
  3769. "'" +
  3770. aTool +
  3771. "'" +
  3772. ", " +
  3773. "`" +
  3774. text +
  3775. "`" +
  3776. ")\n" +
  3777. " });\n" +
  3778. "}\n" +
  3779. "document.head.appendChild(_js);\n";
  3780. _iframe.contentWindow.document.head.appendChild(_ajs);
  3781. }
  3782. }
  3783. //U.MD.D.I.openClick(str);
  3784. //如果有任务栏信息
  3785. // if (_taskbar) {
  3786. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3787. // }
  3788. }
  3789. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  3790. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3791. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3792. _userid = student.userid, //登录用户id
  3793. _username = student.student //用户名字
  3794. let _iframe;
  3795. let _cid = cid,
  3796. _stage = stage,
  3797. _task = task,
  3798. _tool = tool;
  3799. var _jie = $$("div", {
  3800. "style": {
  3801. "position": "absolute",
  3802. "bottom": "50px",
  3803. "right": "50px",
  3804. "zIndex": "9999",
  3805. "backgroundColor": "#2268bc",
  3806. "color": "#fff",
  3807. "padding": "12px 20px",
  3808. "cursor": "pointer",
  3809. "borderRadius": "4px",
  3810. },
  3811. "innerHTML": "提交作业"
  3812. })
  3813. let aTool = ''
  3814. let _loading = document.createElement('div')
  3815. _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;"
  3816. // _loading.id = "";
  3817. let _lchild = document.createElement('div')
  3818. let _limg = document.createElement('img')
  3819. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3820. _limg.style = "width: 26px;margin-right: 10px;"
  3821. _lchild.appendChild(_limg)
  3822. let _lspan = document.createElement('span')
  3823. _lspan.innerHTML = "上传中..."
  3824. _lchild.appendChild(_lspan)
  3825. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  3826. _loading.appendChild(_lchild)
  3827. var _box = $$('div', {
  3828. "style": {
  3829. "position": "relative",
  3830. "width": "100%",
  3831. "height": "100%",
  3832. },
  3833. })
  3834. _box.appendChild(_loading)
  3835. _box.id = str + '_loadLi' + _userid
  3836. switch (str) {
  3837. case "whiteboard":
  3838. aTool = 1;
  3839. _iframe = $$("iframe", {
  3840. "frameborder": "no",
  3841. "border": "0",
  3842. "scrolling ": "no",
  3843. "style": {
  3844. "cssText": "border:0;width:100%;height:100%"
  3845. },
  3846. "src": "https://iwb.cocorobo.cn/"
  3847. })
  3848. _box.appendChild(_iframe);
  3849. _box.appendChild(_jie);
  3850. _formdiv = new U.UF.UI.form(
  3851. "电子白板-" + _username,
  3852. _box, {
  3853. "id": "whiteboard" + cid + stage + task + tool + _userid,
  3854. "style": {
  3855. "width": "90%",
  3856. "height": "90%",
  3857. "overflow": 'hidden'
  3858. },
  3859. "onresize": function () { }
  3860. }, {
  3861. closecallback: function () { }
  3862. }, {
  3863. "style": {
  3864. "height": "36px"
  3865. }
  3866. }).form; //创建窗体
  3867. _taskbar = {
  3868. "id": str + _formdiv.id,
  3869. "style": {
  3870. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3871. },
  3872. "name": "电子白板",
  3873. "forms": _formdiv,
  3874. "click": function () {
  3875. U.MD.D.I.openApplication(str, obj, info);
  3876. }
  3877. }
  3878. break;
  3879. case "mind":
  3880. aTool = 3;
  3881. _iframe = $$("iframe", {
  3882. "frameborder": "no",
  3883. "border": "0",
  3884. "scrolling ": "no",
  3885. "style": {
  3886. "cssText": "border:0;width:100%;height:100%"
  3887. },
  3888. "src": "/kityminder-editor/dist/index.html"
  3889. })
  3890. _box.appendChild(_iframe);
  3891. _box.appendChild(_jie);
  3892. _formdiv = new U.UF.UI.form(
  3893. "思维导图-" + _username,
  3894. _box, { //"/jsmind/example/demo.html"
  3895. "id": "mind" + cid + stage + task + tool + _userid,
  3896. "style": {
  3897. "width": "90%",
  3898. "height": "90%",
  3899. "overflow": 'hidden'
  3900. },
  3901. "onresize": function () { }
  3902. }, {
  3903. closecallback: function () { }
  3904. }, {
  3905. "style": {
  3906. "height": "36px"
  3907. }
  3908. }).form; //创建窗体
  3909. _taskbar = {
  3910. "id": str + _formdiv.id,
  3911. "style": {
  3912. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3913. },
  3914. "name": "思维导图",
  3915. "forms": _formdiv,
  3916. "click": function () {
  3917. U.MD.D.I.openApplication(str, obj, info);
  3918. }
  3919. }
  3920. break;
  3921. case "MindMap":
  3922. aTool = 3;
  3923. _iframe = $$("iframe", {
  3924. "frameborder": "no",
  3925. "border": "0",
  3926. "scrolling ": "no",
  3927. "style": {
  3928. "cssText": "border:0;width:100%;height:100%"
  3929. },
  3930. "src": "//cloud.cocorobo.cn/mind/"
  3931. })
  3932. _box.appendChild(_iframe);
  3933. _box.appendChild(_jie);
  3934. _formdiv = new U.UF.UI.form(
  3935. "思维导图-" + _username,
  3936. _box, { //"/jsmind/example/demo.html"
  3937. "id": "mind" + cid + stage + task + tool + _userid,
  3938. "style": {
  3939. "width": "90%",
  3940. "height": "90%",
  3941. "overflow": 'hidden'
  3942. },
  3943. "onresize": function () { }
  3944. }, {
  3945. closecallback: function () { }
  3946. }, {
  3947. "style": {
  3948. "height": "36px"
  3949. }
  3950. }).form; //创建窗体
  3951. _taskbar = {
  3952. "id": str + _formdiv.id,
  3953. "style": {
  3954. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3955. },
  3956. "name": "思维导图",
  3957. "forms": _formdiv,
  3958. "click": function () {
  3959. U.MD.D.I.openApplication(str, obj, info);
  3960. }
  3961. }
  3962. break;
  3963. case "doc":
  3964. aTool = 6;
  3965. _iframe = $$("iframe", {
  3966. "frameborder": "no",
  3967. "border": "0",
  3968. "scrolling ": "no",
  3969. "style": {
  3970. "cssText": "border:0;width:100%;height:100%"
  3971. },
  3972. "src": "/Office/Word/WordEditArea.htm"
  3973. })
  3974. _box.appendChild(_iframe);
  3975. _box.appendChild(_jie);
  3976. _formdiv = new U.UF.UI.form(
  3977. "协同文档-" + _username,
  3978. _box, {
  3979. "id": "doc" + cid + stage + task + tool + _userid,
  3980. "style": {
  3981. "width": "90%",
  3982. "height": "90%",
  3983. "overflow": 'hidden'
  3984. },
  3985. "onresize": function () { }
  3986. }, {
  3987. closecallback: function () { }
  3988. }, {
  3989. "style": {
  3990. "height": "36px"
  3991. }
  3992. }).form; //创建窗体
  3993. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3994. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3995. })
  3996. _taskbar = {
  3997. "id": str + _formdiv.id,
  3998. "style": {
  3999. "backgroundImage": "url(/img/icon/doc.png)"
  4000. },
  4001. "name": "协同文档",
  4002. "forms": _formdiv,
  4003. "click": function () {
  4004. U.MD.D.I.openApplication(str, obj, info);
  4005. }
  4006. }
  4007. break;
  4008. case "mindNetwork": //好友打开
  4009. aTool = 7;
  4010. _iframe = $$("iframe", {
  4011. "webkitallowfullscreen": "",
  4012. "mozallowfullscreen": "",
  4013. "allowfullscreen": "",
  4014. "frameborder": "no",
  4015. "border": "0",
  4016. "scrolling ": "no",
  4017. "style": {
  4018. "cssText": "border:0; width:100%; height:100%;"
  4019. },
  4020. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4021. })
  4022. _box.appendChild(_iframe);
  4023. _box.appendChild(_jie);
  4024. _formdiv = new U.UF.UI.form(
  4025. "思维网格-" + _username,
  4026. _box, {
  4027. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4028. "style": {
  4029. "width": "90%",
  4030. "height": "90%",
  4031. "overflow": 'hidden'
  4032. },
  4033. "onresize": function () { }
  4034. }, {
  4035. closecallback: function () { }
  4036. }, {
  4037. "style": {
  4038. "height": "36px"
  4039. }
  4040. }).form; //创建窗体
  4041. _taskbar = {
  4042. "id": str + _formdiv.id,
  4043. "style": {
  4044. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4045. },
  4046. "name": "思维网格",
  4047. "forms": _formdiv,
  4048. "click": function () {
  4049. U.MD.D.I.openApplication(str, obj, info);
  4050. }
  4051. }
  4052. break;
  4053. case "courseDesign":
  4054. _iframe = $$("iframe", {
  4055. "webkitallowfullscreen": "",
  4056. "mozallowfullscreen": "",
  4057. "allowfullscreen": "",
  4058. "frameborder": "no",
  4059. "border": "0",
  4060. "scrolling ": "no",
  4061. "style": {
  4062. "cssText": "border:0; width:100%; height:100%;"
  4063. },
  4064. "src": "/course-design-vue"
  4065. })
  4066. _box.appendChild(_iframe);
  4067. _box.appendChild(_jie);
  4068. _formdiv = new U.UF.UI.form(
  4069. "项目设计-" + _username,
  4070. _box, {
  4071. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4072. "style": {
  4073. "width": "90%",
  4074. "height": "90%",
  4075. "overflow": 'hidden'
  4076. },
  4077. "onresize": function () { }
  4078. }, {
  4079. closecallback: function () { }
  4080. }, {
  4081. "style": {
  4082. "height": "36px"
  4083. }
  4084. }).form; //创建窗体
  4085. _taskbar = {
  4086. "id": str + _formdiv.id,
  4087. "style": {
  4088. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4089. },
  4090. "name": "项目设计",
  4091. "forms": _formdiv,
  4092. "click": function () {
  4093. U.MD.D.I.openApplication(str, obj, info);
  4094. }
  4095. }
  4096. break;
  4097. }
  4098. const script1 = document.createElement("script");
  4099. script1.type = "text/javascript";
  4100. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4101. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4102. const script2 = document.createElement("script");
  4103. script2.type = "text/javascript";
  4104. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4105. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4106. const script3 = document.createElement("script");
  4107. script3.type = "text/javascript";
  4108. script3.charset = "UTF-8";
  4109. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4110. const script4 = document.createElement("script");
  4111. script4.type = "text/javascript";
  4112. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4113. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4114. if (_iframe) {
  4115. if (str == 'doc') {
  4116. _iframe = _formdiv.querySelector('iframe')
  4117. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4118. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4119. _iframe.contentWindow.document.body.appendChild(script1);
  4120. _iframe.contentWindow.document.body.appendChild(script2);
  4121. // _iframe.contentWindow.document.body.appendChild(script3);
  4122. _iframe.contentWindow.document.body.appendChild(script4);
  4123. })
  4124. if (onloadListener) {
  4125. _iframe.contentDocument.location.reload()
  4126. } else {
  4127. _iframe.contentDocument.location.reload()
  4128. }
  4129. } else if (str == 'courseDesign') {
  4130. U.UF.DL.iframeLoad(_iframe, function () {
  4131. // _iframe.contentWindow.U.MD.O.W.load();
  4132. // _iframe.contentWindow.document.body.appendChild(script1);
  4133. _iframe.contentWindow.document.body.appendChild(script2);
  4134. _iframe.contentWindow.document.body.appendChild(script4);
  4135. })
  4136. } else if (str == 'mind') {
  4137. _iframe = _formdiv.querySelector('iframe')
  4138. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4139. //
  4140. _iframe.contentWindow.document.body.appendChild(script1);
  4141. _iframe.contentWindow.document.body.appendChild(script2);
  4142. _iframe.contentWindow.document.body.appendChild(script4);
  4143. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4144. })
  4145. if (onloadListener) {
  4146. _iframe.contentDocument.location.reload()
  4147. } else {
  4148. _iframe.contentDocument.location.reload()
  4149. }
  4150. } else if (str == 'whiteboard') {
  4151. _iframe = _formdiv.querySelector('iframe')
  4152. let onloadListener = _iframe.onload = () => {
  4153. _iframe.contentWindow.document.body.appendChild(script1);
  4154. _iframe.contentWindow.document.body.appendChild(script2);
  4155. _iframe.contentWindow.document.body.appendChild(script4);
  4156. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4157. };
  4158. if (onloadListener) {
  4159. _iframe.contentDocument.location.reload()
  4160. } else {
  4161. _iframe.contentDocument.location.reload()
  4162. }
  4163. } else {
  4164. _iframe.onload = () => {
  4165. _iframe.contentWindow.document.body.appendChild(script1);
  4166. _iframe.contentWindow.document.body.appendChild(script2);
  4167. // _iframe.contentWindow.document.body.appendChild(script3);
  4168. _iframe.contentWindow.document.body.appendChild(script4);
  4169. };
  4170. }
  4171. _jie.onclick = async () => {
  4172. let text = ''
  4173. if (aTool == 1) {
  4174. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4175. } else if (aTool == 6) {
  4176. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4177. } else if (aTool == 3) {
  4178. text = await U.MD.D.I.getEditorContent(_iframe);
  4179. }
  4180. _loading.style.display = 'flex'
  4181. console.log(_loading);
  4182. var _ajs = _iframe.contentWindow.document.createElement("script");
  4183. _ajs.type = "text/javascript";
  4184. _ajs.innerHTML =
  4185. // 'console.log(' + _loading + ');\n' +
  4186. 'var _js = document.createElement("script");\n' +
  4187. '_js.type="text/javascript";\n' +
  4188. '_js.charset="UTF-8";\n' +
  4189. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4190. "_js.onload = function(){\n" +
  4191. ' var a = document.getElementsByTagName("img")\n' +
  4192. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4193. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4194. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4195. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4196. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4197. "beforeUpload_shishi(file," +
  4198. "'" +
  4199. _userid +
  4200. "'" +
  4201. ", " +
  4202. "'" +
  4203. _cid +
  4204. "'" +
  4205. ", " +
  4206. "'" +
  4207. _stage +
  4208. "'" +
  4209. ", " +
  4210. "'" +
  4211. _task +
  4212. "'" +
  4213. ", " +
  4214. "'" +
  4215. _tool +
  4216. "'" +
  4217. ", " +
  4218. "'" +
  4219. str + '_loadLi' + _userid +
  4220. "'" +
  4221. ", " +
  4222. "'" +
  4223. aTool +
  4224. "'" +
  4225. ", " +
  4226. "`" +
  4227. text +
  4228. "`" +
  4229. ")\n" +
  4230. " });\n" +
  4231. "}\n" +
  4232. "document.head.appendChild(_js);\n";
  4233. _iframe.contentWindow.document.head.appendChild(_ajs);
  4234. }
  4235. }
  4236. }
  4237. U.MD.D.I.getEditorContent = function (iframe) {
  4238. return new Promise((resolve, reject) => {
  4239. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  4240. console.log(content);
  4241. resolve(content)
  4242. });
  4243. });
  4244. }
  4245. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  4246. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  4247. // if (res.value[0].length > 0) {
  4248. // // resolve(res.value[0][0].text);
  4249. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  4250. // $(fileInput).val('');
  4251. // });
  4252. // }
  4253. // }, [], { "type": "GET", "withCredentials": true });
  4254. var xmlhttp;
  4255. var Mac, Sn, DeviceId
  4256. if (window.XMLHttpRequest) {
  4257. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  4258. xmlhttp = new XMLHttpRequest();
  4259. }
  4260. else {
  4261. // IE6, IE5 浏览器执行代码
  4262. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  4263. }
  4264. xmlhttp.onreadystatechange = function () {
  4265. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  4266. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  4267. // resolve(res.value[0][0].text);
  4268. if (type == '2') {
  4269. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  4270. $(fileInput).val('');
  4271. });
  4272. } else if (type == '3') {
  4273. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  4274. }
  4275. } else {
  4276. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  4277. }
  4278. }
  4279. }
  4280. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  4281. xmlhttp.send();
  4282. }
  4283. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  4284. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4285. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4286. _userinfo = US.userInfo, //登录用户信息
  4287. _userid = US.userInfo.userid //登录用户id
  4288. let _iframe;
  4289. let _cid = cid,
  4290. _stage = stage,
  4291. _task = task,
  4292. _tool = tool;
  4293. var _jie = $$("div", {
  4294. "style": {
  4295. "position": "absolute",
  4296. "bottom": "50px",
  4297. "right": "50px",
  4298. "zIndex": "9999",
  4299. "backgroundColor": "#2268bc",
  4300. "color": "#fff",
  4301. "padding": "12px 20px",
  4302. "cursor": "pointer",
  4303. "borderRadius": "4px",
  4304. },
  4305. "innerHTML": "确认并提交"
  4306. })
  4307. let aTool = ''
  4308. let _loading = document.createElement('div')
  4309. _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;"
  4310. // _loading.id = "";
  4311. let _lchild = document.createElement('div')
  4312. let _limg = document.createElement('img')
  4313. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4314. _limg.style = "width: 26px;margin-right: 10px;"
  4315. _lchild.appendChild(_limg)
  4316. let _lspan = document.createElement('span')
  4317. _lspan.innerHTML = "上传中..."
  4318. _lchild.appendChild(_lspan)
  4319. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4320. _loading.appendChild(_lchild)
  4321. var _box = $$('div', {
  4322. "style": {
  4323. "position": "relative",
  4324. "width": "100%",
  4325. "height": "100%",
  4326. },
  4327. })
  4328. _box.appendChild(_loading)
  4329. _box.id = str + '_loadLi'
  4330. switch (str) {
  4331. case "whiteboard":
  4332. aTool = 1;
  4333. _iframe = $$("iframe", {
  4334. "frameborder": "no",
  4335. "border": "0",
  4336. "scrolling ": "no",
  4337. "style": {
  4338. "cssText": "border:0;width:100%;height:100%"
  4339. },
  4340. "src": "https://iwb.cocorobo.cn/"
  4341. })
  4342. _box.appendChild(_iframe);
  4343. _box.appendChild(_jie);
  4344. _formdiv = new U.UF.UI.form(
  4345. "电子白板",
  4346. _box, {
  4347. "id": "whiteboards" + cid + stage + task + tool,
  4348. "style": {
  4349. "width": "90%",
  4350. "height": "90%",
  4351. "overflow": 'hidden'
  4352. },
  4353. "onresize": function () { }
  4354. }, {
  4355. closecallback: function () { }
  4356. }, {
  4357. "style": {
  4358. "height": "36px"
  4359. }
  4360. }).form; //创建窗体
  4361. _taskbar = {
  4362. "id": str + _formdiv.id,
  4363. "style": {
  4364. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4365. },
  4366. "name": "电子白板",
  4367. "forms": _formdiv,
  4368. "click": function () {
  4369. U.MD.D.I.openApplication(str, obj, info);
  4370. }
  4371. }
  4372. break;
  4373. case "mind":
  4374. aTool = 3;
  4375. _iframe = $$("iframe", {
  4376. "frameborder": "no",
  4377. "border": "0",
  4378. "scrolling ": "no",
  4379. "style": {
  4380. "cssText": "border:0;width:100%;height:100%"
  4381. },
  4382. "src": "/kityminder-editor/dist/index.html"
  4383. });
  4384. _box.appendChild(_iframe);
  4385. _box.appendChild(_jie);
  4386. _formdiv = new U.UF.UI.form(
  4387. "思维导图",
  4388. _box, { //"/jsmind/example/demo.html"
  4389. "id": "minds" + cid + stage + task + tool,
  4390. "style": {
  4391. "width": "90%",
  4392. "height": "90%",
  4393. "overflow": 'hidden'
  4394. },
  4395. "onresize": function () { }
  4396. }, {
  4397. closecallback: function () { }
  4398. }, {
  4399. "style": {
  4400. "height": "36px"
  4401. }
  4402. }).form; //创建窗体
  4403. _taskbar = {
  4404. "id": str + _formdiv.id,
  4405. "style": {
  4406. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4407. },
  4408. "name": "思维导图",
  4409. "forms": _formdiv,
  4410. "click": function () {
  4411. U.MD.D.I.openApplication(str, obj, info);
  4412. }
  4413. }
  4414. break;
  4415. case "doc":
  4416. aTool = 6;
  4417. _iframe = $$("iframe", {
  4418. "frameborder": "no",
  4419. "border": "0",
  4420. "scrolling ": "no",
  4421. "style": {
  4422. "cssText": "border:0;width:100%;height:100%"
  4423. },
  4424. "src": "/Office/Word/WordEditArea.htm"
  4425. })
  4426. _box.appendChild(_iframe);
  4427. _box.appendChild(_jie);
  4428. _formdiv = new U.UF.UI.form(
  4429. "协同文档",
  4430. _box, {
  4431. "id": "docs" + cid + stage + task + tool,
  4432. "style": {
  4433. "width": "90%",
  4434. "height": "90%",
  4435. "overflow": 'hidden'
  4436. },
  4437. "onresize": function () { }
  4438. }, {
  4439. closecallback: function () { }
  4440. }, {
  4441. "style": {
  4442. "height": "36px"
  4443. }
  4444. }).form; //创建窗体
  4445. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4446. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4447. })
  4448. _taskbar = {
  4449. "id": str + _formdiv.id,
  4450. "style": {
  4451. "backgroundImage": "url(/img/icon/doc.png)"
  4452. },
  4453. "name": "协同文档",
  4454. "forms": _formdiv,
  4455. "click": function () {
  4456. U.MD.D.I.openApplication(str, obj, info);
  4457. }
  4458. }
  4459. break;
  4460. }
  4461. const script1 = document.createElement("script");
  4462. script1.type = "text/javascript";
  4463. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4464. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4465. const script2 = document.createElement("script");
  4466. script2.type = "text/javascript";
  4467. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4468. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4469. const script3 = document.createElement("script");
  4470. script3.type = "text/javascript";
  4471. script3.charset = "UTF-8";
  4472. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4473. const script4 = document.createElement("script");
  4474. script4.type = "text/javascript";
  4475. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4476. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  4477. if (_iframe) {
  4478. if (str == 'doc') {
  4479. _iframe = _formdiv.querySelector('iframe')
  4480. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4481. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4482. _iframe.contentWindow.document.body.appendChild(script1);
  4483. _iframe.contentWindow.document.body.appendChild(script2);
  4484. // _iframe.contentWindow.document.body.appendChild(script3);
  4485. _iframe.contentWindow.document.body.appendChild(script4);
  4486. })
  4487. if (onloadListener) {
  4488. _iframe.contentDocument.location.reload()
  4489. } else {
  4490. _iframe.contentDocument.location.reload()
  4491. }
  4492. } else if (str == 'mind') {
  4493. _iframe = _formdiv.querySelector('iframe')
  4494. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4495. _iframe.contentWindow.document.body.appendChild(script1);
  4496. _iframe.contentWindow.document.body.appendChild(script2);
  4497. _iframe.contentWindow.document.body.appendChild(script4);
  4498. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4499. })
  4500. if (onloadListener) {
  4501. _iframe.contentDocument.location.reload()
  4502. } else {
  4503. _iframe.contentDocument.location.reload()
  4504. }
  4505. } else {
  4506. _iframe.onload = () => {
  4507. _iframe.contentWindow.document.body.appendChild(script1);
  4508. _iframe.contentWindow.document.body.appendChild(script2);
  4509. // _iframe.contentWindow.document.body.appendChild(script3);
  4510. _iframe.contentWindow.document.body.appendChild(script4);
  4511. };
  4512. }
  4513. _jie.onclick = async () => {
  4514. let text = ''
  4515. if (aTool == 6) {
  4516. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4517. } else if (aTool == 3) {
  4518. text = await U.MD.D.I.getEditorContent(_iframe);
  4519. }
  4520. _loading.style.display = 'flex'
  4521. console.log(_loading);
  4522. var _ajs = _iframe.contentWindow.document.createElement("script");
  4523. _ajs.type = "text/javascript";
  4524. _ajs.innerHTML =
  4525. // 'console.log(' + _loading + ');\n' +
  4526. 'var _js = document.createElement("script");\n' +
  4527. '_js.type="text/javascript";\n' +
  4528. '_js.charset="UTF-8";\n' +
  4529. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4530. "_js.onload = function(){\n" +
  4531. ' var a = document.getElementsByTagName("img")\n' +
  4532. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4533. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4534. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4535. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4536. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4537. "beforeUpload_shishi(file," +
  4538. "'" +
  4539. _userid +
  4540. "'" +
  4541. ", " +
  4542. "'" +
  4543. _cid +
  4544. "'" +
  4545. ", " +
  4546. "'" +
  4547. _stage +
  4548. "'" +
  4549. ", " +
  4550. "'" +
  4551. _task +
  4552. "'" +
  4553. ", " +
  4554. "'" +
  4555. _tool +
  4556. "'" +
  4557. ", " +
  4558. "'" +
  4559. str + '_loadLi' +
  4560. "'" +
  4561. ", " +
  4562. "'" +
  4563. aTool +
  4564. "'" +
  4565. ", " +
  4566. "`" +
  4567. text +
  4568. "`" +
  4569. ")\n" +
  4570. " });\n" +
  4571. "}\n" +
  4572. "document.head.appendChild(_js);\n";
  4573. _iframe.contentWindow.document.head.appendChild(_ajs);
  4574. }
  4575. }
  4576. //U.MD.D.I.openClick(str);
  4577. //如果有任务栏信息
  4578. // if (_taskbar) {
  4579. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4580. // }
  4581. }
  4582. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  4583. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4584. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4585. _userinfo = US.userInfo, //登录用户信息
  4586. _userid = US.userInfo.userid //登录用户id
  4587. let _iframe;
  4588. let _cid = cid,
  4589. _stage = stage,
  4590. _task = task,
  4591. _tool = tool;
  4592. var _jie = $$("div", {
  4593. "style": {
  4594. "position": "absolute",
  4595. "bottom": "50px",
  4596. "right": "50px",
  4597. "zIndex": "9999",
  4598. "backgroundColor": "#2268bc",
  4599. "color": "#fff",
  4600. "padding": "12px 20px",
  4601. "cursor": "pointer",
  4602. "borderRadius": "4px",
  4603. },
  4604. "innerHTML": "确认并提交"
  4605. })
  4606. let aTool = ''
  4607. let _loading = document.createElement('div')
  4608. _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;"
  4609. // _loading.id = "";
  4610. let _lchild = document.createElement('div')
  4611. let _limg = document.createElement('img')
  4612. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4613. _limg.style = "width: 26px;margin-right: 10px;"
  4614. _lchild.appendChild(_limg)
  4615. let _lspan = document.createElement('span')
  4616. _lspan.innerHTML = "上传中..."
  4617. _lchild.appendChild(_lspan)
  4618. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4619. _loading.appendChild(_lchild)
  4620. var _box = $$('div', {
  4621. "style": {
  4622. "position": "relative",
  4623. "width": "100%",
  4624. "height": "100%",
  4625. },
  4626. })
  4627. _box.appendChild(_loading)
  4628. _box.id = str + '_loadLi'
  4629. switch (str) {
  4630. case "whiteboard":
  4631. aTool = 1;
  4632. _iframe = $$("iframe", {
  4633. "frameborder": "no",
  4634. "border": "0",
  4635. "scrolling ": "no",
  4636. "style": {
  4637. "cssText": "border:0;width:100%;height:100%"
  4638. },
  4639. "src": "https://iwb.cocorobo.cn/"
  4640. })
  4641. _box.appendChild(_iframe);
  4642. _box.appendChild(_jie);
  4643. _formdiv = new U.UF.UI.form(
  4644. "电子白板",
  4645. _box, {
  4646. "id": "whiteboards" + cid + stage + task + tool,
  4647. "style": {
  4648. "width": "90%",
  4649. "height": "90%",
  4650. "overflow": 'hidden'
  4651. },
  4652. "onresize": function () { }
  4653. }, {
  4654. closecallback: function () { }
  4655. }, {
  4656. "style": {
  4657. "height": "36px"
  4658. }
  4659. }).form; //创建窗体
  4660. _taskbar = {
  4661. "id": str + _formdiv.id,
  4662. "style": {
  4663. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4664. },
  4665. "name": "电子白板",
  4666. "forms": _formdiv,
  4667. "click": function () {
  4668. U.MD.D.I.openApplication(str, obj, info);
  4669. }
  4670. }
  4671. break;
  4672. case "mind":
  4673. aTool = 3;
  4674. _iframe = $$("iframe", {
  4675. "frameborder": "no",
  4676. "border": "0",
  4677. "scrolling ": "no",
  4678. "style": {
  4679. "cssText": "border:0;width:100%;height:100%"
  4680. },
  4681. "src": "/kityminder-editor/dist/index.html"
  4682. });
  4683. _box.appendChild(_iframe);
  4684. _box.appendChild(_jie);
  4685. _formdiv = new U.UF.UI.form(
  4686. "思维导图",
  4687. _box, { //"/jsmind/example/demo.html"
  4688. "id": "minds" + cid + stage + task + tool,
  4689. "style": {
  4690. "width": "90%",
  4691. "height": "90%",
  4692. "overflow": 'hidden'
  4693. },
  4694. "onresize": function () { }
  4695. }, {
  4696. closecallback: function () { }
  4697. }, {
  4698. "style": {
  4699. "height": "36px"
  4700. }
  4701. }).form; //创建窗体
  4702. _taskbar = {
  4703. "id": str + _formdiv.id,
  4704. "style": {
  4705. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4706. },
  4707. "name": "思维导图",
  4708. "forms": _formdiv,
  4709. "click": function () {
  4710. U.MD.D.I.openApplication(str, obj, info);
  4711. }
  4712. }
  4713. break;
  4714. case "doc":
  4715. aTool = 6;
  4716. _iframe = $$("iframe", {
  4717. "frameborder": "no",
  4718. "border": "0",
  4719. "scrolling ": "no",
  4720. "style": {
  4721. "cssText": "border:0;width:100%;height:100%"
  4722. },
  4723. "src": "/Office/Word/WordEditArea.htm"
  4724. })
  4725. _box.appendChild(_iframe);
  4726. _box.appendChild(_jie);
  4727. _formdiv = new U.UF.UI.form(
  4728. "协同文档",
  4729. _box, {
  4730. "id": "docs" + cid + stage + task + tool,
  4731. "style": {
  4732. "width": "90%",
  4733. "height": "90%",
  4734. "overflow": 'hidden'
  4735. },
  4736. "onresize": function () { }
  4737. }, {
  4738. closecallback: function () { }
  4739. }, {
  4740. "style": {
  4741. "height": "36px"
  4742. }
  4743. }).form; //创建窗体
  4744. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4745. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4746. })
  4747. _taskbar = {
  4748. "id": str + _formdiv.id,
  4749. "style": {
  4750. "backgroundImage": "url(/img/icon/doc.png)"
  4751. },
  4752. "name": "协同文档",
  4753. "forms": _formdiv,
  4754. "click": function () {
  4755. U.MD.D.I.openApplication(str, obj, info);
  4756. }
  4757. }
  4758. break;
  4759. }
  4760. const script1 = document.createElement("script");
  4761. script1.type = "text/javascript";
  4762. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4763. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4764. const script2 = document.createElement("script");
  4765. script2.type = "text/javascript";
  4766. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4767. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4768. const script3 = document.createElement("script");
  4769. script3.type = "text/javascript";
  4770. script3.charset = "UTF-8";
  4771. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4772. const script4 = document.createElement("script");
  4773. script4.type = "text/javascript";
  4774. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  4775. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  4776. if (_iframe) {
  4777. if (str == 'doc') {
  4778. _iframe = _formdiv.querySelector('iframe')
  4779. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4780. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  4781. _iframe.contentWindow.document.body.appendChild(script1);
  4782. _iframe.contentWindow.document.body.appendChild(script2);
  4783. // _iframe.contentWindow.document.body.appendChild(script3);
  4784. _iframe.contentWindow.document.body.appendChild(script4);
  4785. })
  4786. if (onloadListener) {
  4787. _iframe.contentDocument.location.reload()
  4788. } else {
  4789. _iframe.contentDocument.location.reload()
  4790. }
  4791. } else if (str == 'mind') {
  4792. _iframe = _formdiv.querySelector('iframe')
  4793. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4794. _iframe.contentWindow.document.body.appendChild(script1);
  4795. _iframe.contentWindow.document.body.appendChild(script2);
  4796. _iframe.contentWindow.document.body.appendChild(script4);
  4797. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  4798. })
  4799. if (onloadListener) {
  4800. _iframe.contentDocument.location.reload()
  4801. } else {
  4802. _iframe.contentDocument.location.reload()
  4803. }
  4804. } else {
  4805. _iframe.onload = () => {
  4806. _iframe.contentWindow.document.body.appendChild(script1);
  4807. _iframe.contentWindow.document.body.appendChild(script2);
  4808. // _iframe.contentWindow.document.body.appendChild(script3);
  4809. _iframe.contentWindow.document.body.appendChild(script4);
  4810. };
  4811. }
  4812. _jie.onclick = async () => {
  4813. let text = ''
  4814. if (aTool == 6) {
  4815. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4816. } else if (aTool == 3) {
  4817. text = await U.MD.D.I.getEditorContent(_iframe);
  4818. }
  4819. _loading.style.display = 'flex'
  4820. console.log(_loading);
  4821. var _ajs = _iframe.contentWindow.document.createElement("script");
  4822. _ajs.type = "text/javascript";
  4823. _ajs.innerHTML =
  4824. // 'console.log(' + _loading + ');\n' +
  4825. 'var _js = document.createElement("script");\n' +
  4826. '_js.type="text/javascript";\n' +
  4827. '_js.charset="UTF-8";\n' +
  4828. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4829. "_js.onload = function(){\n" +
  4830. ' var a = document.getElementsByTagName("img")\n' +
  4831. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4832. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4833. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4834. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4835. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4836. "beforeUpload_shishi(file," +
  4837. "'" +
  4838. _userid +
  4839. "'" +
  4840. ", " +
  4841. "'" +
  4842. _cid +
  4843. "'" +
  4844. ", " +
  4845. "'" +
  4846. _stage +
  4847. "'" +
  4848. ", " +
  4849. "'" +
  4850. _task +
  4851. "'" +
  4852. ", " +
  4853. "'" +
  4854. _tool +
  4855. "'" +
  4856. ", " +
  4857. "'" +
  4858. str + '_loadLi' +
  4859. "'" +
  4860. ", " +
  4861. "'" +
  4862. aTool +
  4863. "'" +
  4864. ", " +
  4865. "`" +
  4866. text +
  4867. "`" +
  4868. ")\n" +
  4869. " });\n" +
  4870. "}\n" +
  4871. "document.head.appendChild(_js);\n";
  4872. _iframe.contentWindow.document.head.appendChild(_ajs);
  4873. }
  4874. }
  4875. //U.MD.D.I.openClick(str);
  4876. //如果有任务栏信息
  4877. // if (_taskbar) {
  4878. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4879. // }
  4880. }
  4881. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  4882. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4883. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4884. _userinfo = US.userInfo, //登录用户信息
  4885. _userid = US.userInfo.userid //登录用户id
  4886. let _iframe;
  4887. let _cid = cid,
  4888. _stage = stage,
  4889. _task = task,
  4890. _tool = tool;
  4891. var _jie = $$("div", {
  4892. "style": {
  4893. "position": "absolute",
  4894. "bottom": "50px",
  4895. "right": "50px",
  4896. "zIndex": "9999",
  4897. "backgroundColor": "#2268bc",
  4898. "color": "#fff",
  4899. "padding": "12px 20px",
  4900. "cursor": "pointer",
  4901. "borderRadius": "4px",
  4902. },
  4903. "innerHTML": "上传模板"
  4904. })
  4905. let aTool = ''
  4906. let _loading = document.createElement('div')
  4907. _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;"
  4908. // _loading.id = "";
  4909. let _lchild = document.createElement('div')
  4910. let _limg = document.createElement('img')
  4911. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4912. _limg.style = "width: 26px;margin-right: 10px;"
  4913. _lchild.appendChild(_limg)
  4914. let _lspan = document.createElement('span')
  4915. _lspan.innerHTML = "上传中..."
  4916. _lchild.appendChild(_lspan)
  4917. _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
  4918. _loading.appendChild(_lchild)
  4919. var _box = $$('div', {
  4920. "style": {
  4921. "position": "relative",
  4922. "width": "100%",
  4923. "height": "100%",
  4924. },
  4925. })
  4926. _box.appendChild(_loading)
  4927. _box.id = str + '_loadLi'
  4928. switch (str) {
  4929. case "whiteboard":
  4930. aTool = 1;
  4931. _iframe = $$("iframe", {
  4932. "frameborder": "no",
  4933. "border": "0",
  4934. "scrolling ": "no",
  4935. "style": {
  4936. "cssText": "border:0;width:100%;height:100%"
  4937. },
  4938. "src": "https://iwb.cocorobo.cn/"
  4939. })
  4940. _box.appendChild(_iframe);
  4941. _box.appendChild(_jie);
  4942. _formdiv = new U.UF.UI.form(
  4943. "电子白板",
  4944. _box, {
  4945. "id": "whiteboards" + cid + stage + task + tool,
  4946. "style": {
  4947. "width": "90%",
  4948. "height": "90%",
  4949. "overflow": 'hidden'
  4950. },
  4951. "onresize": function () { }
  4952. }, {
  4953. closecallback: function () { }
  4954. }, {
  4955. "style": {
  4956. "height": "36px"
  4957. }
  4958. }).form; //创建窗体
  4959. _taskbar = {
  4960. "id": str + _formdiv.id,
  4961. "style": {
  4962. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4963. },
  4964. "name": "电子白板",
  4965. "forms": _formdiv,
  4966. "click": function () {
  4967. U.MD.D.I.openApplication(str, obj, info);
  4968. }
  4969. }
  4970. break;
  4971. case "mind":
  4972. aTool = 3;
  4973. _iframe = $$("iframe", {
  4974. "frameborder": "no",
  4975. "border": "0",
  4976. "scrolling ": "no",
  4977. "style": {
  4978. "cssText": "border:0;width:100%;height:100%"
  4979. },
  4980. "src": "/kityminder-editor/dist/index.html"
  4981. });
  4982. _box.appendChild(_iframe);
  4983. _box.appendChild(_jie);
  4984. _formdiv = new U.UF.UI.form(
  4985. "思维导图",
  4986. _box, { //"/jsmind/example/demo.html"
  4987. "id": "minds" + cid + stage + task + tool,
  4988. "style": {
  4989. "width": "90%",
  4990. "height": "90%",
  4991. "overflow": 'hidden'
  4992. },
  4993. "onresize": function () { }
  4994. }, {
  4995. closecallback: function () { }
  4996. }, {
  4997. "style": {
  4998. "height": "36px"
  4999. }
  5000. }).form; //创建窗体
  5001. _taskbar = {
  5002. "id": str + _formdiv.id,
  5003. "style": {
  5004. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5005. },
  5006. "name": "思维导图",
  5007. "forms": _formdiv,
  5008. "click": function () {
  5009. U.MD.D.I.openApplication(str, obj, info);
  5010. }
  5011. }
  5012. break;
  5013. case "doc":
  5014. aTool = 6;
  5015. _iframe = $$("iframe", {
  5016. "frameborder": "no",
  5017. "border": "0",
  5018. "scrolling ": "no",
  5019. "style": {
  5020. "cssText": "border:0;width:100%;height:100%"
  5021. },
  5022. "src": "/Office/Word/WordEditArea.htm"
  5023. })
  5024. _box.appendChild(_iframe);
  5025. _box.appendChild(_jie);
  5026. _formdiv = new U.UF.UI.form(
  5027. "协同文档",
  5028. _box, {
  5029. "id": "docs" + cid + stage + task + tool,
  5030. "style": {
  5031. "width": "90%",
  5032. "height": "90%",
  5033. "overflow": 'hidden'
  5034. },
  5035. "onresize": function () { }
  5036. }, {
  5037. closecallback: function () { }
  5038. }, {
  5039. "style": {
  5040. "height": "36px"
  5041. }
  5042. }).form; //创建窗体
  5043. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5044. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5045. })
  5046. _taskbar = {
  5047. "id": str + _formdiv.id,
  5048. "style": {
  5049. "backgroundImage": "url(/img/icon/doc.png)"
  5050. },
  5051. "name": "协同文档",
  5052. "forms": _formdiv,
  5053. "click": function () {
  5054. U.MD.D.I.openApplication(str, obj, info);
  5055. }
  5056. }
  5057. break;
  5058. }
  5059. if (_iframe) {
  5060. if (str == 'doc') {
  5061. _iframe = _formdiv.querySelector('iframe')
  5062. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5063. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5064. })
  5065. if (onloadListener) {
  5066. _iframe.contentDocument.location.reload()
  5067. } else {
  5068. _iframe.contentDocument.location.reload()
  5069. }
  5070. } else if (str == 'mind') {
  5071. _iframe = _formdiv.querySelector('iframe')
  5072. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5073. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  5074. })
  5075. if (onloadListener) {
  5076. _iframe.contentDocument.location.reload()
  5077. } else {
  5078. _iframe.contentDocument.location.reload()
  5079. }
  5080. } else if (str == 'whiteboard') {
  5081. _iframe = _formdiv.querySelector('iframe')
  5082. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5083. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  5084. })
  5085. if (onloadListener) {
  5086. _iframe.contentDocument.location.reload()
  5087. } else {
  5088. _iframe.contentDocument.location.reload()
  5089. }
  5090. } else {
  5091. _iframe.onload = () => {
  5092. };
  5093. }
  5094. _jie.onclick = async () => {
  5095. let text = ''
  5096. let type = '2'
  5097. if (aTool == 1) {
  5098. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5099. type = '3'
  5100. } else if (aTool == 6) {
  5101. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5102. type = '1'
  5103. } else if (aTool == 3) {
  5104. text = await U.MD.D.I.getEditorContent(_iframe);
  5105. type = '2'
  5106. }
  5107. _loading.style.display = 'flex'
  5108. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  5109. }
  5110. }
  5111. //U.MD.D.I.openClick(str);
  5112. //如果有任务栏信息
  5113. // if (_taskbar) {
  5114. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5115. // }
  5116. }
  5117. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  5118. var xmlhttp;
  5119. var Mac, Sn, DeviceId
  5120. if (window.XMLHttpRequest) {
  5121. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5122. xmlhttp = new XMLHttpRequest();
  5123. }
  5124. else {
  5125. // IE6, IE5 浏览器执行代码
  5126. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5127. }
  5128. xmlhttp.onreadystatechange = function () {
  5129. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5130. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5131. // resolve(res.value[0][0].text);
  5132. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5133. $(fileInput).val('');
  5134. });
  5135. }
  5136. }
  5137. }
  5138. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5139. xmlhttp.send();
  5140. }
  5141. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  5142. var xmlhttp;
  5143. var Mac, Sn, DeviceId
  5144. if (window.XMLHttpRequest) {
  5145. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5146. xmlhttp = new XMLHttpRequest();
  5147. }
  5148. else {
  5149. // IE6, IE5 浏览器执行代码
  5150. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5151. }
  5152. xmlhttp.onreadystatechange = function () {
  5153. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5154. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5155. // resolve(res.value[0][0].text);
  5156. if (type == '2') {
  5157. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5158. $(fileInput).val('');
  5159. });
  5160. } else if (type == '3') {
  5161. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5162. }
  5163. } else {
  5164. iframe.contentWindow.h.app.updateScene({ elements: [] })
  5165. }
  5166. }
  5167. }
  5168. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5169. xmlhttp.send();
  5170. }
  5171. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  5172. var xmlhttp;
  5173. var Mac, Sn, DeviceId
  5174. if (window.XMLHttpRequest) {
  5175. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5176. xmlhttp = new XMLHttpRequest();
  5177. }
  5178. else {
  5179. // IE6, IE5 浏览器执行代码
  5180. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5181. }
  5182. xmlhttp.onreadystatechange = function () {
  5183. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5184. if (xmlhttp.response) {
  5185. // resolve(res.value[0][0].text);
  5186. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5187. // $(fileInput).val('');
  5188. // });
  5189. span.innerHTML = '上传成功'
  5190. setTimeout(() => {
  5191. loading.style.display = 'none'
  5192. }, 1000);
  5193. }
  5194. }
  5195. }
  5196. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  5197. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  5198. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  5199. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  5200. // 设置请求头,表示请求体的编码格式
  5201. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  5202. // 设置请求体,使用url-encoded格式的数据
  5203. }