DeskTop.js 430 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452
  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": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //极简模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教师桌面图标的全局变量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.orgStemDeskIcon = [
  177. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  178. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  179. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  180. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  181. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  182. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  183. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  184. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  185. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  186. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  187. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  188. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  189. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  190. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  191. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  192. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  193. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  194. ];
  195. U.MD.D.I.szulsDeskIcon = [
  196. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  197. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  198. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  199. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  200. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  201. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  202. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  203. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  204. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  205. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  206. ];
  207. U.MD.D.I.hanDeskIcon = [
  208. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  209. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  210. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  211. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  212. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  213. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  214. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  215. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  216. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  217. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  218. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  219. ];
  220. U.MD.D.I.GMteacherDeskIcon = [
  221. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  222. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  223. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  224. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  225. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  226. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  227. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  228. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  229. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  230. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  231. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  232. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  233. ];
  234. U.MD.D.I.GMstudentDeskIcon = [
  235. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  236. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  237. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  238. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  239. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  240. ];
  241. //北师大
  242. U.MD.D.I.BSDNSteacherDeskIcon = [
  243. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  244. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  245. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  246. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  247. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  248. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  249. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  250. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  251. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  252. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  253. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  254. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  255. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  256. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  257. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  258. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  259. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  260. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  261. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  262. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  263. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  264. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  265. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  266. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  267. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  268. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  269. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  270. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  271. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  272. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  273. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  274. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  275. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  276. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  277. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  278. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  279. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  280. ];
  281. //松山湖
  282. U.MD.D.I.SONGteacherDeskIcon = [
  283. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  284. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  285. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  286. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  287. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  288. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  289. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  290. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  291. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  292. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  293. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  294. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  295. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  296. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  297. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  298. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  299. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  300. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  301. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  302. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  303. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  304. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  305. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  306. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  307. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  308. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  309. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  310. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  311. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  312. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  313. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  314. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  315. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  316. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  317. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  318. ];
  319. U.MD.D.I.tcStudentDeskIcon = [
  320. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  321. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  322. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  323. ];
  324. U.MD.D.I.tcTeacherDeskIcon = [
  325. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  326. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  327. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  328. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  329. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  330. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  331. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  332. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  333. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  334. ];
  335. U.MD.D.I.tcOrganizerDeskIcon = [
  336. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  337. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  338. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  339. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  340. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  341. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  342. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  343. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  344. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  345. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  346. ];
  347. U.MD.D.I.szscStudentDeskIcon = [
  348. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  349. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  350. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  351. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  352. ];
  353. U.MD.D.I.szscTeacherDeskIcon = [
  354. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  355. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  356. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  357. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  358. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  359. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  360. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  361. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  362. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  363. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  364. ];
  365. U.MD.D.I.szscOrganizerDeskIcon = [
  366. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  367. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  368. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  369. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  370. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  371. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  372. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  373. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  374. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  375. ];
  376. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  377. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  378. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  379. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  380. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  381. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  382. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  383. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  384. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  385. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  386. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  387. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  388. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  389. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  390. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  391. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  392. ];
  393. U.MD.D.I.wankeAdminDeskIcon = [
  394. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  395. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  396. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  397. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  398. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  399. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  400. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  401. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  402. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  403. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  404. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  405. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  406. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  407. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  408. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  409. ];
  410. U.MD.D.I.lhsTeacherDeskIcon = [ //未来小学
  411. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  412. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  413. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  414. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  415. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  416. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  417. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  418. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  419. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  420. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  421. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  422. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  423. ];
  424. U.MD.D.I.lhsAdminDeskIcon = [ //未来小学admin
  425. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  426. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  427. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  428. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  429. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  430. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  431. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  432. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  433. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  434. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  435. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  436. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  437. ];
  438. //明德教师桌面图标的全局变量
  439. U.MD.D.I.MingdeTeacherDeskIcon = [
  440. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  441. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  442. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  443. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  444. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  445. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  446. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  447. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  448. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  449. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  450. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  451. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  452. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  453. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  454. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  455. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  456. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  457. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  458. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  459. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  460. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  461. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  462. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  463. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  464. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  465. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  466. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  467. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  468. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  469. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  470. ];
  471. //97c4ee8b-d010-4042-986d-e9d3c217264f
  472. //教师桌面图标的全局变量
  473. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  474. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  475. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  476. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  477. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  478. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  479. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  480. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  481. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  482. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  483. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  484. ];
  485. //福田
  486. U.MD.D.I.futianTeacherDeskIcon = [
  487. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  488. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  489. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  490. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  491. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  492. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  493. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  494. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  495. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  496. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  497. ];
  498. //福田
  499. U.MD.D.I.futianAdminDeskIcon = [
  500. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  501. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  502. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  503. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  504. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  505. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  506. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  507. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  508. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  509. ];
  510. //lotech
  511. U.MD.D.I.lotechTeacherDeskIcon = [
  512. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  513. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  514. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  515. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  516. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  517. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  518. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  519. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  520. ];
  521. //龙华中心小学教师桌面图标的全局变量
  522. U.MD.D.I.longhuateacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  526. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  527. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  528. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  529. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  530. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  531. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  532. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  533. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  534. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  535. ];
  536. //教科院实小教师桌面图标的全局变量
  537. U.MD.D.I.siesteacherDeskIcon = [
  538. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  539. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  540. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  541. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  542. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  543. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  544. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  545. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  546. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  547. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  548. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  549. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  550. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  551. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  552. ];
  553. //教科院实小教师桌面图标的全局变量
  554. U.MD.D.I.siesStudentDeskIcon = [
  555. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  556. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  557. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  558. ];
  559. //福田
  560. U.MD.D.I.gdjgTeacherDeskIcon = [
  561. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  562. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  563. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  564. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  565. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  566. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  567. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  568. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  569. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  570. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  571. ];
  572. //gdjg
  573. U.MD.D.I.gdjgAdminDeskIcon = [
  574. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  575. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  576. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  577. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  578. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  579. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  580. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  581. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  582. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  583. ];
  584. //hk
  585. U.MD.D.I.hkteacherDeskIcon = [
  586. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  587. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  588. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  589. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  590. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  591. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  592. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  593. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  594. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  595. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  596. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  597. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  598. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  599. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  600. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  601. ];
  602. //hk
  603. U.MD.D.I.hkStudentDeskIcon = [
  604. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  605. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. ];
  608. //香海正覺蓮社佛教正覺中學
  609. U.MD.D.I.hkZJLSteacherDeskIcon = [
  610. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  611. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  612. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  613. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  614. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  615. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  616. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  617. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  618. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  619. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  620. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  621. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  622. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  623. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. ];
  625. //香海正覺蓮社佛教正覺中學
  626. U.MD.D.I.hkZJLSStudentDeskIcon = [
  627. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  628. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  629. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  630. ];
  631. //云海
  632. U.MD.D.I.yunhaiTeacherDeskIcon = [
  633. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  634. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  635. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  636. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  637. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  638. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  639. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  640. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  641. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  642. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  643. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  644. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  645. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  646. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  647. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  648. ];
  649. //福田
  650. U.MD.D.I.heyuanTeacherDeskIcon = [
  651. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  652. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  653. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  654. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  655. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  656. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  657. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  658. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  659. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  660. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  661. ];
  662. //福田
  663. U.MD.D.I.heyuanAdminDeskIcon = [
  664. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  665. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  666. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  667. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  668. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  669. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  670. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  671. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  672. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  673. ];
  674. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  675. U.MD.D.I.szherTeacherDeskIcon = [
  676. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  677. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  678. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  679. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  680. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  681. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  682. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  683. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  684. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  685. ];
  686. //dsei
  687. U.MD.D.I.dseiTeacherDeskIcon = [
  688. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  689. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  690. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  691. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  692. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  693. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  694. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  695. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  696. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  697. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  698. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  699. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  700. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  701. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  702. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  703. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  704. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  705. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  706. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  707. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  708. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  709. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  710. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  711. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  712. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  713. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  714. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  715. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  716. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  717. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  718. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  719. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  720. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  721. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  722. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  723. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  724. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  725. ];
  726. //dsei
  727. U.MD.D.I.dseiAdminDeskIcon = [
  728. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  729. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  730. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  731. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  732. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  733. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  734. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  735. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  736. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  737. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  738. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  739. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  740. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  741. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  742. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  743. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  744. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  745. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  746. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  747. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  748. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  749. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  750. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  751. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  752. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  753. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  754. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  755. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  756. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  757. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  758. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  759. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  760. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  761. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  762. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  763. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  764. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  765. ];
  766. //dsei
  767. U.MD.D.I.dseiStudentDeskIcon = [
  768. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  769. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  770. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  771. ];
  772. //未来教育基地
  773. U.MD.D.I.szjkyTeacherDeskIcon = [
  774. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  775. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  776. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  777. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  778. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  779. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  780. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  781. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  782. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  783. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  784. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  785. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  786. ];
  787. //未来教育基地
  788. U.MD.D.I.szjkyAdminDeskIcon = [
  789. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  790. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  791. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  792. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  793. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  794. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  795. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  796. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  797. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  798. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  799. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  800. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  801. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  802. ];
  803. //未来教育基地
  804. U.MD.D.I.szjkyStudentDeskIcon = [
  805. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  806. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  807. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  808. ];
  809. //#region 桌面初始化a
  810. /**
  811. * 初始化桌面的起始函数
  812. *
  813. */
  814. U.MD.D.I.init = function() {
  815. if ($("#U_MD_D_K")[0]) {
  816. //初始化桌面图标
  817. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  818. // var clickUrl = ':12588/requestIp.php';
  819. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  820. // U.MD.D.I.Ip = data;
  821. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  822. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  823. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  824. // })
  825. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  826. // })
  827. }
  828. }
  829. /**
  830. * 模式切换
  831. *
  832. */
  833. U.MD.D.I.ModeCheck = function(type) {
  834. if (US.Config.type == type) {
  835. return
  836. }
  837. US.Config.type = type
  838. $('.U_PBL_Check .active')[0].className = ''
  839. if (type == 1) {
  840. $('.U_PBL_Check div')[0].className = 'active'
  841. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  842. } else {
  843. $('.U_PBL_Check div')[1].className = 'active'
  844. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  845. }
  846. //初始化桌面图标
  847. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  848. if (type == 2) {
  849. U.MD.D.I.openApplication("project")
  850. }
  851. }
  852. /**
  853. * 隐藏任务栏
  854. *
  855. * @param {element} 桌面元素
  856. */
  857. U.MD.D.I.hiddenTaskbar = function(el) {
  858. //任务栏位置变小
  859. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  860. //桌面的位置变大
  861. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  862. }
  863. /**
  864. * 隐藏任务栏
  865. *
  866. * @param {element} 桌面元素
  867. */
  868. U.MD.D.I.hiddenTaskbarout = function(el) {
  869. //任务栏位置变小
  870. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  871. //任务栏位置变化
  872. U.selectEl(el).css({ "bottom": "-60px" });
  873. //桌面的位置变大
  874. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  875. }
  876. }
  877. /**
  878. * 初始化打印桌面图标
  879. *
  880. * @param {element} 桌面元素
  881. */
  882. U.MD.D.I.initDesktopIcons = function(el, type) {
  883. var i, //用于循环
  884. _content, //桌面图标元素
  885. _iconcontent, //桌面图标元素
  886. _frag = $$("frag"), //定义一个碎片元素
  887. _type = US.userInfo.type,
  888. _org = US.userInfo.org,
  889. _oid = US.userInfo.organizeid,
  890. _role = US.userInfo.role,
  891. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  892. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  893. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  894. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  895. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  896. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  897. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  898. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  899. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  900. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  901. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  902. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //获取北师大
  903. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //获取周佳名工作室
  904. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //获取松山湖
  905. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //获取万科双语
  906. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //获取万科双语
  907. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //获取万科双语
  908. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //获取未来小学
  909. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //获取未来小学
  910. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  911. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  912. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //腾讯学生
  913. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //腾讯学生
  914. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  915. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  916. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未来教育基地
  917. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未来教育基地
  918. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未来教育基地
  919. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  920. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  921. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  922. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  923. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  924. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  925. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  926. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  927. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  928. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龙华中心
  929. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  930. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  931. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //腾讯学生
  932. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  933. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  934. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  935. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  936. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //云海
  937. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //网络夏令营
  938. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //网络夏令营
  939. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //网络夏令营
  940. 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', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5'];
  941. 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', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5'];
  942. //清楚桌面图标
  943. el.innerHTML = "";
  944. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  945. _teacherDesktopIconInfo.push(
  946. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  947. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  948. )
  949. _easyDesktopIconInfo.push({ "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  950. }
  951. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  952. _teacherDesktopIconInfo.push(
  953. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  954. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  955. )
  956. }
  957. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  958. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  959. if (el.Name == '项目管理') {
  960. el.Name = 'PBL项目'
  961. }
  962. return el
  963. })
  964. }
  965. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  966. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  967. return el.Name != '魔盒识字' && el.Name != '24点'
  968. })
  969. }
  970. 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) {
  971. _studentDesktopIconInfo.push({ "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  972. }
  973. //循环创建桌面图标
  974. if (type == 1) {
  975. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  976. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  977. _content = $$("div", {
  978. className: "U_MD_D_KO",
  979. "onmousedown": U.UF.C.closure(function(obj) {
  980. //防止拖动图标即打开了桌面应用
  981. U.MD.D.click(this, obj);
  982. }, [_studentDesktopIconInfo[i]]),
  983. "onclick": U.UF.C.closure(function(obj) {
  984. //防止拖动图标即打开了桌面应用
  985. U.MD.D.click(this, obj);
  986. }, [_studentDesktopIconInfo[i]])
  987. }, _frag); //
  988. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  989. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  990. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  991. }
  992. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  993. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  994. _content = $$("div", {
  995. className: "U_MD_D_KO",
  996. "onmousedown": U.UF.C.closure(function(obj) {
  997. //防止拖动图标即打开了桌面应用
  998. U.MD.D.click(this, obj);
  999. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1000. "onclick": U.UF.C.closure(function(obj) {
  1001. //防止拖动图标即打开了桌面应用
  1002. U.MD.D.click(this, obj);
  1003. }, [_hkZJLSStudentDeskIconInfo[i]])
  1004. }, _frag); //
  1005. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1006. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1007. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1008. } //
  1009. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1010. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1011. _content = $$("div", {
  1012. className: "U_MD_D_KO",
  1013. "onmousedown": U.UF.C.closure(function(obj) {
  1014. //防止拖动图标即打开了桌面应用
  1015. U.MD.D.click(this, obj);
  1016. }, [_szjkyStudentDeskIconInfo[i]]),
  1017. "onclick": U.UF.C.closure(function(obj) {
  1018. //防止拖动图标即打开了桌面应用
  1019. U.MD.D.click(this, obj);
  1020. }, [_szjkyStudentDeskIconInfo[i]])
  1021. }, _frag); //
  1022. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1023. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1024. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1025. }
  1026. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1027. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1028. _content = $$("div", {
  1029. className: "U_MD_D_KO",
  1030. "onmousedown": U.UF.C.closure(function(obj) {
  1031. //防止拖动图标即打开了桌面应用
  1032. U.MD.D.click(this, obj);
  1033. }, [_dseiStudentDeskIconInfo[i]]),
  1034. "onclick": U.UF.C.closure(function(obj) {
  1035. //防止拖动图标即打开了桌面应用
  1036. U.MD.D.click(this, obj);
  1037. }, [_dseiStudentDeskIconInfo[i]])
  1038. }, _frag); //
  1039. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1040. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1041. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1042. }
  1043. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1044. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1045. _content = $$("div", {
  1046. className: "U_MD_D_KO",
  1047. "onmousedown": U.UF.C.closure(function(obj) {
  1048. //防止拖动图标即打开了桌面应用
  1049. U.MD.D.click(this, obj);
  1050. }, [_siesStudentDeskIconInfo[i]]),
  1051. "onclick": U.UF.C.closure(function(obj) {
  1052. //防止拖动图标即打开了桌面应用
  1053. U.MD.D.click(this, obj);
  1054. }, [_siesStudentDeskIconInfo[i]])
  1055. }, _frag); //
  1056. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1057. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1058. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1059. }
  1060. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1061. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1062. _content = $$("div", {
  1063. className: "U_MD_D_KO",
  1064. "onmousedown": U.UF.C.closure(function(obj) {
  1065. //防止拖动图标即打开了桌面应用
  1066. U.MD.D.click(this, obj);
  1067. }, [_hkStudentDeskIconInfo[i]]),
  1068. "onclick": U.UF.C.closure(function(obj) {
  1069. //防止拖动图标即打开了桌面应用
  1070. U.MD.D.click(this, obj);
  1071. }, [_hkStudentDeskIconInfo[i]])
  1072. }, _frag); //
  1073. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1074. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1075. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1076. }
  1077. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1078. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1079. _content = $$("div", {
  1080. className: "U_MD_D_KO",
  1081. "onmousedown": U.UF.C.closure(function(obj) {
  1082. //防止拖动图标即打开了桌面应用
  1083. U.MD.D.click(this, obj);
  1084. }, [_studentDesktopIconInfo[i]]),
  1085. "onclick": U.UF.C.closure(function(obj) {
  1086. //防止拖动图标即打开了桌面应用
  1087. U.MD.D.click(this, obj);
  1088. }, [_studentDesktopIconInfo[i]])
  1089. }, _frag); //
  1090. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1091. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1092. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1093. }
  1094. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1095. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1096. _content = $$("div", {
  1097. className: "U_MD_D_KO",
  1098. "onmousedown": U.UF.C.closure(function(obj) {
  1099. //防止拖动图标即打开了桌面应用
  1100. U.MD.D.click(this, obj);
  1101. }, [_tcStudentDeskIconInfo[i]]),
  1102. "onclick": U.UF.C.closure(function(obj) {
  1103. //防止拖动图标即打开了桌面应用
  1104. U.MD.D.click(this, obj);
  1105. }, [_tcStudentDeskIconInfo[i]])
  1106. }, _frag); //
  1107. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1108. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1109. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1110. }
  1111. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1112. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1113. _content = $$("div", {
  1114. className: "U_MD_D_KO",
  1115. "onmousedown": U.UF.C.closure(function(obj) {
  1116. //防止拖动图标即打开了桌面应用
  1117. U.MD.D.click(this, obj);
  1118. }, [_szscStudentDeskIconInfo[i]]),
  1119. "onclick": U.UF.C.closure(function(obj) {
  1120. //防止拖动图标即打开了桌面应用
  1121. U.MD.D.click(this, obj);
  1122. }, [_szscStudentDeskIconInfo[i]])
  1123. }, _frag); //
  1124. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1125. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1126. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1127. }
  1128. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1129. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1130. _content = $$("div", {
  1131. className: "U_MD_D_KO",
  1132. "onmousedown": U.UF.C.closure(function(obj) {
  1133. //防止拖动图标即打开了桌面应用
  1134. U.MD.D.click(this, obj);
  1135. }, [_studentDesktopIconInfo3[i]]),
  1136. "onclick": U.UF.C.closure(function(obj) {
  1137. //防止拖动图标即打开了桌面应用
  1138. U.MD.D.click(this, obj);
  1139. }, [_studentDesktopIconInfo3[i]])
  1140. }, _frag); //
  1141. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1142. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1143. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1144. }
  1145. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1146. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1147. _content = $$("div", {
  1148. className: "U_MD_D_KO",
  1149. "onmousedown": U.UF.C.closure(function(obj) {
  1150. //防止拖动图标即打开了桌面应用
  1151. U.MD.D.click(this, obj);
  1152. }, [_studentDesktopIconInfo2[i]]),
  1153. "onclick": U.UF.C.closure(function(obj) {
  1154. //防止拖动图标即打开了桌面应用
  1155. U.MD.D.click(this, obj);
  1156. }, [_studentDesktopIconInfo2[i]])
  1157. }, _frag); //
  1158. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1159. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1160. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1161. }
  1162. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1163. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1164. _content = $$("div", {
  1165. className: "U_MD_D_KO",
  1166. "onmousedown": U.UF.C.closure(function(obj) {
  1167. //防止拖动图标即打开了桌面应用
  1168. U.MD.D.click(this, obj);
  1169. }, [_wanketeacherDesktopIconInfo[i]]),
  1170. "onclick": U.UF.C.closure(function(obj) {
  1171. //防止拖动图标即打开了桌面应用
  1172. U.MD.D.click(this, obj);
  1173. }, [_wanketeacherDesktopIconInfo[i]])
  1174. }, _frag); //
  1175. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1176. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1177. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1178. }
  1179. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1180. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1181. _content = $$("div", {
  1182. className: "U_MD_D_KO",
  1183. "onmousedown": U.UF.C.closure(function(obj) {
  1184. //防止拖动图标即打开了桌面应用
  1185. U.MD.D.click(this, obj);
  1186. }, [_wankeAdminDesktopIconInfo[i]]),
  1187. "onclick": U.UF.C.closure(function(obj) {
  1188. //防止拖动图标即打开了桌面应用
  1189. U.MD.D.click(this, obj);
  1190. }, [_wankeAdminDesktopIconInfo[i]])
  1191. }, _frag); //
  1192. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1193. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1194. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1195. }
  1196. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1197. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1198. _content = $$("div", {
  1199. className: "U_MD_D_KO",
  1200. "onmousedown": U.UF.C.closure(function(obj) {
  1201. //防止拖动图标即打开了桌面应用
  1202. U.MD.D.click(this, obj);
  1203. }, [_teacherDesktopIconInfo2[i]]),
  1204. "onclick": U.UF.C.closure(function(obj) {
  1205. //防止拖动图标即打开了桌面应用
  1206. U.MD.D.click(this, obj);
  1207. }, [_teacherDesktopIconInfo2[i]])
  1208. }, _frag); //
  1209. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1210. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1211. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1212. }
  1213. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1214. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1215. _content = $$("div", {
  1216. className: "U_MD_D_KO",
  1217. "onmousedown": U.UF.C.closure(function(obj) {
  1218. //防止拖动图标即打开了桌面应用
  1219. U.MD.D.click(this, obj);
  1220. }, [_lotechTeacherDeskIconInfo[i]]),
  1221. "onclick": U.UF.C.closure(function(obj) {
  1222. //防止拖动图标即打开了桌面应用
  1223. U.MD.D.click(this, obj);
  1224. }, [_lotechTeacherDeskIconInfo[i]])
  1225. }, _frag); //
  1226. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1227. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1228. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1229. }
  1230. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1231. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1232. _content = $$("div", {
  1233. className: "U_MD_D_KO",
  1234. "onmousedown": U.UF.C.closure(function(obj) {
  1235. //防止拖动图标即打开了桌面应用
  1236. U.MD.D.click(this, obj);
  1237. }, [_siesTeacherDeskIconInfo[i]]),
  1238. "onclick": U.UF.C.closure(function(obj) {
  1239. //防止拖动图标即打开了桌面应用
  1240. U.MD.D.click(this, obj);
  1241. }, [_siesTeacherDeskIconInfo[i]])
  1242. }, _frag); //
  1243. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1244. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1245. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1246. }
  1247. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1248. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1249. _content = $$("div", {
  1250. className: "U_MD_D_KO",
  1251. "onmousedown": U.UF.C.closure(function(obj) {
  1252. //防止拖动图标即打开了桌面应用
  1253. U.MD.D.click(this, obj);
  1254. }, [_longhuaTeacherDeskIconInfo[i]]),
  1255. "onclick": U.UF.C.closure(function(obj) {
  1256. //防止拖动图标即打开了桌面应用
  1257. U.MD.D.click(this, obj);
  1258. }, [_longhuaTeacherDeskIconInfo[i]])
  1259. }, _frag); //
  1260. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1261. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1262. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1263. }
  1264. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1265. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1266. _content = $$("div", {
  1267. className: "U_MD_D_KO",
  1268. "onmousedown": U.UF.C.closure(function(obj) {
  1269. //防止拖动图标即打开了桌面应用
  1270. U.MD.D.click(this, obj);
  1271. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1272. "onclick": U.UF.C.closure(function(obj) {
  1273. //防止拖动图标即打开了桌面应用
  1274. U.MD.D.click(this, obj);
  1275. }, [_yunhaiTeacherDeskIconInfo[i]])
  1276. }, _frag); //
  1277. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1278. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1279. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1280. } //_hkStudentDeskIconInfo
  1281. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1282. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1283. _content = $$("div", {
  1284. className: "U_MD_D_KO",
  1285. "onmousedown": U.UF.C.closure(function(obj) {
  1286. //防止拖动图标即打开了桌面应用
  1287. U.MD.D.click(this, obj);
  1288. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1289. "onclick": U.UF.C.closure(function(obj) {
  1290. //防止拖动图标即打开了桌面应用
  1291. U.MD.D.click(this, obj);
  1292. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1293. }, _frag); //
  1294. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1295. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1296. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1297. }
  1298. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1299. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1300. _content = $$("div", {
  1301. className: "U_MD_D_KO",
  1302. "onmousedown": U.UF.C.closure(function(obj) {
  1303. //防止拖动图标即打开了桌面应用
  1304. U.MD.D.click(this, obj);
  1305. }, [_hkTeacherDeskIconInfo[i]]),
  1306. "onclick": U.UF.C.closure(function(obj) {
  1307. //防止拖动图标即打开了桌面应用
  1308. U.MD.D.click(this, obj);
  1309. }, [_hkTeacherDeskIconInfo[i]])
  1310. }, _frag); //
  1311. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1312. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1313. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1314. }
  1315. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1316. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1317. _content = $$("div", {
  1318. className: "U_MD_D_KO",
  1319. "onmousedown": U.UF.C.closure(function(obj) {
  1320. //防止拖动图标即打开了桌面应用
  1321. U.MD.D.click(this, obj);
  1322. }, [_gdjgAdminDeskIconInfo[i]]),
  1323. "onclick": U.UF.C.closure(function(obj) {
  1324. //防止拖动图标即打开了桌面应用
  1325. U.MD.D.click(this, obj);
  1326. }, [_gdjgAdminDeskIconInfo[i]])
  1327. }, _frag); //
  1328. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1329. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1330. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1331. }
  1332. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1333. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1334. _content = $$("div", {
  1335. className: "U_MD_D_KO",
  1336. "onmousedown": U.UF.C.closure(function(obj) {
  1337. //防止拖动图标即打开了桌面应用
  1338. U.MD.D.click(this, obj);
  1339. }, [_gdjgTeacherDeskIconInfo[i]]),
  1340. "onclick": U.UF.C.closure(function(obj) {
  1341. //防止拖动图标即打开了桌面应用
  1342. U.MD.D.click(this, obj);
  1343. }, [_gdjgTeacherDeskIconInfo[i]])
  1344. }, _frag); //
  1345. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1346. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1347. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1348. }
  1349. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1350. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1351. _content = $$("div", {
  1352. className: "U_MD_D_KO",
  1353. "onmousedown": U.UF.C.closure(function(obj) {
  1354. //防止拖动图标即打开了桌面应用
  1355. U.MD.D.click(this, obj);
  1356. }, [_szherTeacherDeskIconInfo[i]]),
  1357. "onclick": U.UF.C.closure(function(obj) {
  1358. //防止拖动图标即打开了桌面应用
  1359. U.MD.D.click(this, obj);
  1360. }, [_szherTeacherDeskIconInfo[i]])
  1361. }, _frag); //
  1362. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1363. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1364. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1365. }
  1366. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1367. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1368. _content = $$("div", {
  1369. className: "U_MD_D_KO",
  1370. "onmousedown": U.UF.C.closure(function(obj) {
  1371. //防止拖动图标即打开了桌面应用
  1372. U.MD.D.click(this, obj);
  1373. }, [_heyuannAdminDeskIconInfo[i]]),
  1374. "onclick": U.UF.C.closure(function(obj) {
  1375. //防止拖动图标即打开了桌面应用
  1376. U.MD.D.click(this, obj);
  1377. }, [_heyuannAdminDeskIconInfo[i]])
  1378. }, _frag); //
  1379. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1380. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1381. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1382. }
  1383. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1384. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1385. _content = $$("div", {
  1386. className: "U_MD_D_KO",
  1387. "onmousedown": U.UF.C.closure(function(obj) {
  1388. //防止拖动图标即打开了桌面应用
  1389. U.MD.D.click(this, obj);
  1390. }, [_heyuanTeacherDeskIconInfo[i]]),
  1391. "onclick": U.UF.C.closure(function(obj) {
  1392. //防止拖动图标即打开了桌面应用
  1393. U.MD.D.click(this, obj);
  1394. }, [_heyuanTeacherDeskIconInfo[i]])
  1395. }, _frag); //
  1396. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1397. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1398. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1399. } //
  1400. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1401. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1402. _content = $$("div", {
  1403. className: "U_MD_D_KO",
  1404. "onmousedown": U.UF.C.closure(function(obj) {
  1405. //防止拖动图标即打开了桌面应用
  1406. U.MD.D.click(this, obj);
  1407. }, [_dseiAdminDeskIconInfo[i]]),
  1408. "onclick": U.UF.C.closure(function(obj) {
  1409. //防止拖动图标即打开了桌面应用
  1410. U.MD.D.click(this, obj);
  1411. }, [_dseiAdminDeskIconInfo[i]])
  1412. }, _frag); //
  1413. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1414. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1415. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1416. }
  1417. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1418. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1419. _content = $$("div", {
  1420. className: "U_MD_D_KO",
  1421. "onmousedown": U.UF.C.closure(function(obj) {
  1422. //防止拖动图标即打开了桌面应用
  1423. U.MD.D.click(this, obj);
  1424. }, [_dseiTeacherDeskIconInfo[i]]),
  1425. "onclick": U.UF.C.closure(function(obj) {
  1426. //防止拖动图标即打开了桌面应用
  1427. U.MD.D.click(this, obj);
  1428. }, [_dseiTeacherDeskIconInfo[i]])
  1429. }, _frag); //
  1430. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1431. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1432. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1433. } //
  1434. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1435. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1436. _content = $$("div", {
  1437. className: "U_MD_D_KO",
  1438. "onmousedown": U.UF.C.closure(function(obj) {
  1439. //防止拖动图标即打开了桌面应用
  1440. U.MD.D.click(this, obj);
  1441. }, [_szjkyAdminDeskIconInfo[i]]),
  1442. "onclick": U.UF.C.closure(function(obj) {
  1443. //防止拖动图标即打开了桌面应用
  1444. U.MD.D.click(this, obj);
  1445. }, [_szjkyAdminDeskIconInfo[i]])
  1446. }, _frag); //
  1447. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1448. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1449. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1450. }
  1451. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1452. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1453. _content = $$("div", {
  1454. className: "U_MD_D_KO",
  1455. "onmousedown": U.UF.C.closure(function(obj) {
  1456. //防止拖动图标即打开了桌面应用
  1457. U.MD.D.click(this, obj);
  1458. }, [_szjkyTeacherDeskIconInfo[i]]),
  1459. "onclick": U.UF.C.closure(function(obj) {
  1460. //防止拖动图标即打开了桌面应用
  1461. U.MD.D.click(this, obj);
  1462. }, [_szjkyTeacherDeskIconInfo[i]])
  1463. }, _frag); //
  1464. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1465. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1466. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1467. }
  1468. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1469. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1470. _content = $$("div", {
  1471. className: "U_MD_D_KO",
  1472. "onmousedown": U.UF.C.closure(function(obj) {
  1473. //防止拖动图标即打开了桌面应用
  1474. U.MD.D.click(this, obj);
  1475. }, [_futianAdminDeskIconInfo[i]]),
  1476. "onclick": U.UF.C.closure(function(obj) {
  1477. //防止拖动图标即打开了桌面应用
  1478. U.MD.D.click(this, obj);
  1479. }, [_futianAdminDeskIconInfo[i]])
  1480. }, _frag); //
  1481. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1482. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1483. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1484. }
  1485. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1486. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1487. _content = $$("div", {
  1488. className: "U_MD_D_KO",
  1489. "onmousedown": U.UF.C.closure(function(obj) {
  1490. //防止拖动图标即打开了桌面应用
  1491. U.MD.D.click(this, obj);
  1492. }, [_futianTeacherDeskIconInfo[i]]),
  1493. "onclick": U.UF.C.closure(function(obj) {
  1494. //防止拖动图标即打开了桌面应用
  1495. U.MD.D.click(this, obj);
  1496. }, [_futianTeacherDeskIconInfo[i]])
  1497. }, _frag); //
  1498. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1499. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1500. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1501. }
  1502. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1503. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1504. _content = $$("div", {
  1505. className: "U_MD_D_KO",
  1506. "onmousedown": U.UF.C.closure(function(obj) {
  1507. //防止拖动图标即打开了桌面应用
  1508. U.MD.D.click(this, obj);
  1509. }, [_MingdeTeacherDeskIcon[i]]),
  1510. "onclick": U.UF.C.closure(function(obj) {
  1511. //防止拖动图标即打开了桌面应用
  1512. U.MD.D.click(this, obj);
  1513. }, [_MingdeTeacherDeskIcon[i]])
  1514. }, _frag); //
  1515. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1516. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1517. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1518. }
  1519. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1520. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1521. _content = $$("div", {
  1522. className: "U_MD_D_KO",
  1523. "onmousedown": U.UF.C.closure(function(obj) {
  1524. //防止拖动图标即打开了桌面应用
  1525. U.MD.D.click(this, obj);
  1526. }, [_lhsAdminDesktopIconInfo[i]]),
  1527. "onclick": U.UF.C.closure(function(obj) {
  1528. //防止拖动图标即打开了桌面应用
  1529. U.MD.D.click(this, obj);
  1530. }, [_lhsAdminDesktopIconInfo[i]])
  1531. }, _frag); //
  1532. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1533. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1534. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1535. }
  1536. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1537. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1538. _content = $$("div", {
  1539. className: "U_MD_D_KO",
  1540. "onmousedown": U.UF.C.closure(function(obj) {
  1541. //防止拖动图标即打开了桌面应用
  1542. U.MD.D.click(this, obj);
  1543. }, [_lhsteacherDesktopIconInfo[i]]),
  1544. "onclick": U.UF.C.closure(function(obj) {
  1545. //防止拖动图标即打开了桌面应用
  1546. U.MD.D.click(this, obj);
  1547. }, [_lhsteacherDesktopIconInfo[i]])
  1548. }, _frag); //
  1549. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1550. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1551. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1552. }
  1553. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1554. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1555. _content = $$("div", {
  1556. className: "U_MD_D_KO",
  1557. "onmousedown": U.UF.C.closure(function(obj) {
  1558. //防止拖动图标即打开了桌面应用
  1559. U.MD.D.click(this, obj);
  1560. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1561. "onclick": U.UF.C.closure(function(obj) {
  1562. //防止拖动图标即打开了桌面应用
  1563. U.MD.D.click(this, obj);
  1564. }, [_zhoujiateacherDesktopIconInfo[i]])
  1565. }, _frag); //
  1566. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1567. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1568. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1569. }
  1570. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1571. for (i = 0; i < _hanDeskIcon.length; i++) {
  1572. _content = $$("div", {
  1573. className: "U_MD_D_KO",
  1574. "onmousedown": U.UF.C.closure(function(obj) {
  1575. //防止拖动图标即打开了桌面应用
  1576. U.MD.D.click(this, obj);
  1577. }, [_hanDeskIcon[i]]),
  1578. "onclick": U.UF.C.closure(function(obj) {
  1579. //防止拖动图标即打开了桌面应用
  1580. U.MD.D.click(this, obj);
  1581. }, [_hanDeskIcon[i]])
  1582. }, _frag); //
  1583. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1584. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1585. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1586. }
  1587. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1588. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1589. _content = $$("div", {
  1590. className: "U_MD_D_KO",
  1591. "onmousedown": U.UF.C.closure(function(obj) {
  1592. //防止拖动图标即打开了桌面应用
  1593. U.MD.D.click(this, obj);
  1594. }, [_orgStemDeskIcon[i]]),
  1595. "onclick": U.UF.C.closure(function(obj) {
  1596. //防止拖动图标即打开了桌面应用
  1597. U.MD.D.click(this, obj);
  1598. }, [_orgStemDeskIcon[i]])
  1599. }, _frag); //
  1600. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1601. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1602. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1603. }
  1604. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1605. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1606. _content = $$("div", {
  1607. className: "U_MD_D_KO",
  1608. "onmousedown": U.UF.C.closure(function(obj) {
  1609. //防止拖动图标即打开了桌面应用
  1610. U.MD.D.click(this, obj);
  1611. }, [_szulsDeskIcon[i]]),
  1612. "onclick": U.UF.C.closure(function(obj) {
  1613. //防止拖动图标即打开了桌面应用
  1614. U.MD.D.click(this, obj);
  1615. }, [_szulsDeskIcon[i]])
  1616. }, _frag); //
  1617. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1618. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1619. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1620. }
  1621. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1622. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1623. _content = $$("div", {
  1624. className: "U_MD_D_KO",
  1625. "onmousedown": U.UF.C.closure(function(obj) {
  1626. //防止拖动图标即打开了桌面应用
  1627. U.MD.D.click(this, obj);
  1628. }, [_orgDesktopIconInfo[i]]),
  1629. "onclick": U.UF.C.closure(function(obj) {
  1630. //防止拖动图标即打开了桌面应用
  1631. U.MD.D.click(this, obj);
  1632. }, [_orgDesktopIconInfo[i]])
  1633. }, _frag); //
  1634. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1635. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1636. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1637. }
  1638. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1639. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1640. _content = $$("div", {
  1641. className: "U_MD_D_KO",
  1642. "onmousedown": U.UF.C.closure(function(obj) {
  1643. //防止拖动图标即打开了桌面应用
  1644. U.MD.D.click(this, obj);
  1645. }, [_schoolDesktopIconInfo[i]]),
  1646. "onclick": U.UF.C.closure(function(obj) {
  1647. //防止拖动图标即打开了桌面应用
  1648. U.MD.D.click(this, obj);
  1649. }, [_schoolDesktopIconInfo[i]])
  1650. }, _frag); //
  1651. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1652. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1653. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1654. }
  1655. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1656. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1657. _content = $$("div", {
  1658. className: "U_MD_D_KO",
  1659. "onmousedown": U.UF.C.closure(function(obj) {
  1660. //防止拖动图标即打开了桌面应用
  1661. U.MD.D.click(this, obj);
  1662. }, [_GMteacherDesktopIconInfo[i]]),
  1663. "onclick": U.UF.C.closure(function(obj) {
  1664. //防止拖动图标即打开了桌面应用
  1665. U.MD.D.click(this, obj);
  1666. }, [_GMteacherDesktopIconInfo[i]])
  1667. }, _frag); //
  1668. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1669. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1670. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1671. }
  1672. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1673. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1674. _content = $$("div", {
  1675. className: "U_MD_D_KO",
  1676. "onmousedown": U.UF.C.closure(function(obj) {
  1677. //防止拖动图标即打开了桌面应用
  1678. U.MD.D.click(this, obj);
  1679. }, [_SONGteacherDesktopIconInfo[i]]),
  1680. "onclick": U.UF.C.closure(function(obj) {
  1681. //防止拖动图标即打开了桌面应用
  1682. U.MD.D.click(this, obj);
  1683. }, [_SONGteacherDesktopIconInfo[i]])
  1684. }, _frag); //
  1685. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1686. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1687. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1688. }
  1689. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1690. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1691. _content = $$("div", {
  1692. className: "U_MD_D_KO",
  1693. "onmousedown": U.UF.C.closure(function(obj) {
  1694. //防止拖动图标即打开了桌面应用
  1695. U.MD.D.click(this, obj);
  1696. }, [_GMstudentDesktopIconInfo[i]]),
  1697. "onclick": U.UF.C.closure(function(obj) {
  1698. //防止拖动图标即打开了桌面应用
  1699. U.MD.D.click(this, obj);
  1700. }, [_GMstudentDesktopIconInfo[i]])
  1701. }, _frag); //
  1702. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1703. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1704. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1705. }
  1706. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1707. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1708. _content = $$("div", {
  1709. className: "U_MD_D_KO",
  1710. "onmousedown": U.UF.C.closure(function(obj) {
  1711. //防止拖动图标即打开了桌面应用
  1712. U.MD.D.click(this, obj);
  1713. }, [_tcTeacherDeskIconInfo[i]]),
  1714. "onclick": U.UF.C.closure(function(obj) {
  1715. //防止拖动图标即打开了桌面应用
  1716. U.MD.D.click(this, obj);
  1717. }, [_tcTeacherDeskIconInfo[i]])
  1718. }, _frag); //
  1719. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1720. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1721. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1722. }
  1723. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1724. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1725. _content = $$("div", {
  1726. className: "U_MD_D_KO",
  1727. "onmousedown": U.UF.C.closure(function(obj) {
  1728. //防止拖动图标即打开了桌面应用
  1729. U.MD.D.click(this, obj);
  1730. }, [_tcOrganizerDeskIconInfo[i]]),
  1731. "onclick": U.UF.C.closure(function(obj) {
  1732. //防止拖动图标即打开了桌面应用
  1733. U.MD.D.click(this, obj);
  1734. }, [_tcOrganizerDeskIconInfo[i]])
  1735. }, _frag); //
  1736. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1737. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1738. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1739. }
  1740. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1741. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1742. _content = $$("div", {
  1743. className: "U_MD_D_KO",
  1744. "onmousedown": U.UF.C.closure(function(obj) {
  1745. //防止拖动图标即打开了桌面应用
  1746. U.MD.D.click(this, obj);
  1747. }, [_szscTeacherDeskIconInfo[i]]),
  1748. "onclick": U.UF.C.closure(function(obj) {
  1749. //防止拖动图标即打开了桌面应用
  1750. U.MD.D.click(this, obj);
  1751. }, [_szscTeacherDeskIconInfo[i]])
  1752. }, _frag); //
  1753. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1754. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1755. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1756. }
  1757. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1758. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1759. _content = $$("div", {
  1760. className: "U_MD_D_KO",
  1761. "onmousedown": U.UF.C.closure(function(obj) {
  1762. //防止拖动图标即打开了桌面应用
  1763. U.MD.D.click(this, obj);
  1764. }, [_szscOrganizerDeskIconInfo[i]]),
  1765. "onclick": U.UF.C.closure(function(obj) {
  1766. //防止拖动图标即打开了桌面应用
  1767. U.MD.D.click(this, obj);
  1768. }, [_szscOrganizerDeskIconInfo[i]])
  1769. }, _frag); //
  1770. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1771. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1772. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1773. }
  1774. } else {
  1775. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1776. _content = $$("div", {
  1777. className: "U_MD_D_KO",
  1778. "onmousedown": U.UF.C.closure(function(obj) {
  1779. //防止拖动图标即打开了桌面应用
  1780. U.MD.D.click(this, obj);
  1781. }, [_teacherDesktopIconInfo[i]]),
  1782. "onclick": U.UF.C.closure(function(obj) {
  1783. //防止拖动图标即打开了桌面应用
  1784. U.MD.D.click(this, obj);
  1785. }, [_teacherDesktopIconInfo[i]])
  1786. }, _frag); //
  1787. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1788. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1789. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1790. }
  1791. }
  1792. } else {
  1793. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1794. _content = $$("div", {
  1795. className: "U_MD_D_KO",
  1796. style: { 'width': '124px', 'height': '145px' },
  1797. "onmousedown": U.UF.C.closure(function(obj) {
  1798. //防止拖动图标即打开了桌面应用
  1799. U.MD.D.click(this, obj);
  1800. }, [_easyDesktopIconInfo[i]]),
  1801. "onclick": U.UF.C.closure(function(obj) {
  1802. //防止拖动图标即打开了桌面应用
  1803. U.MD.D.click(this, obj);
  1804. }, [_easyDesktopIconInfo[i]])
  1805. }, _frag); //
  1806. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1807. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1808. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1809. }
  1810. }
  1811. if (type == 1) {
  1812. //加载好后给图标定位
  1813. U.MD.D.iconPostion($(_frag).Child());
  1814. } else {
  1815. //加载好后给图标定位
  1816. U.MD.D.iconPostion2($(_frag).Child());
  1817. }
  1818. //把图标加载到页面
  1819. el.appendChild(_frag);
  1820. }
  1821. /**
  1822. * 显示任务栏
  1823. *
  1824. * @param {element} 桌面元素
  1825. */
  1826. U.MD.D.I.displayTaskbar = function(el) {
  1827. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1828. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1829. //任务栏位置变化
  1830. U.selectEl(el).css({ "bottom": "0px" });
  1831. //桌面位置变话
  1832. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1833. }
  1834. }
  1835. //#region 桌面图标拖动逻辑
  1836. /**
  1837. * 桌面排列图标
  1838. *
  1839. * @param {element} 桌面元素
  1840. * @param {object} 上下相距的距离
  1841. * @param {object} 左右相距的距离
  1842. * @return {object} 命名空间
  1843. */
  1844. U.MD.D.iconPostion = function(childs, top, left) {
  1845. var i; //用于循环处理
  1846. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1847. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1848. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1849. for (i = 0; i < childs.length; i++) {
  1850. //如果竖排top超过了范围处理
  1851. if (top + 95 > US.height - 10) {
  1852. //left超过了页面范围处理,则向上重叠打印处理
  1853. if ((left + 180) > US.width) {
  1854. top -= 110;
  1855. left -= 90;
  1856. }
  1857. //没有超过范围,那么left+90添加到下一个竖排打印
  1858. else {
  1859. left += 90;
  1860. top = 15;
  1861. };
  1862. }
  1863. //给图标的位置赋值
  1864. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1865. if (i < childs.length - 1) {
  1866. //页面图标每次向下加95
  1867. top += 95;
  1868. }
  1869. }
  1870. //返回最后调用的图标的位置
  1871. return [top, left];
  1872. }
  1873. /**
  1874. * 桌面排列图标
  1875. *
  1876. * @param {element} 桌面元素
  1877. * @param {object} 上下相距的距离
  1878. * @param {object} 左右相距的距离
  1879. * @return {object} 命名空间
  1880. */
  1881. U.MD.D.iconPostion2 = function(childs, top, left) {
  1882. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1883. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1884. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1885. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1886. for (i = 0; i < childs.length; i++) {
  1887. //如果竖排top超过了范围处理
  1888. if (left + 150 > US.width - 10) {
  1889. //left超过了页面范围处理,则向上重叠打印处理
  1890. if ((top + 180) > US.Height) {
  1891. top -= 150;
  1892. left -= 150;
  1893. }
  1894. //没有超过范围,那么left+90添加到下一个竖排打印
  1895. else {
  1896. top += 150;
  1897. left = ol;
  1898. };
  1899. }
  1900. //给图标的位置赋值
  1901. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1902. if (i < childs.length - 1) {
  1903. //页面图标每次向下加95
  1904. left += 150;
  1905. }
  1906. }
  1907. //返回最后调用的图标的位置
  1908. return [top, left];
  1909. }
  1910. /**
  1911. * 桌面点击事件逻辑
  1912. *
  1913. * @param {element} 桌面元素
  1914. * @param {object} 上下相距的距离
  1915. * @param {object} 左右相距的距离
  1916. * @return {object} 命名空间
  1917. */
  1918. U.MD.D.click = function(el, obj) {
  1919. var _buttonnumber = event.button; //点击的按钮的事件值
  1920. var _userinfo = US.userInfo;
  1921. U.UF.EV.stopBubble(); //阻止向上冒泡
  1922. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1923. if (_buttonnumber < 2) {
  1924. //如果是click事件的处理
  1925. if (event.type == "click") {
  1926. //如果元素在mousemove事件中没有移动则出发click事件
  1927. if (!U.MD.D.I.IsDrag) {
  1928. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1929. U.alert("请先登录您的账号!");
  1930. setTimeout(() => {
  1931. U.MD.U.L.login();
  1932. }, 2000);
  1933. } else {
  1934. //打开应用处理
  1935. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1936. }
  1937. }
  1938. }
  1939. //如果是mouse事件的处理
  1940. else {
  1941. if (US.Config.type == '1') {
  1942. //拖动处理,添加拖动和拖动结束事件
  1943. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1944. }
  1945. }
  1946. U.MD.D.I.IsDrag = false;
  1947. }
  1948. }
  1949. /**
  1950. * 拖动的处理
  1951. *
  1952. */
  1953. U.MD.D.iconMove = function() {
  1954. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1955. U.MD.D.I.IsDrag = true;
  1956. }
  1957. /**
  1958. * 拖动结束后,这里是定位处理,以网状的形式定位
  1959. *
  1960. * @param {element} 拖动的元素
  1961. * @return {object} 命名空间
  1962. */
  1963. U.MD.D.iconUp = function(el) {
  1964. var _top = 15,
  1965. _left = 20,
  1966. _margin,
  1967. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1968. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1969. if (_positioninfo["OT"] > 15) {
  1970. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1971. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1972. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1973. }
  1974. if (_positioninfo["OL"] > 20) {
  1975. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1976. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1977. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1978. }
  1979. //while循环判断么一个重叠的元素
  1980. do {
  1981. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1982. _top = _positioninfo[0] + 95; //得到定位后的top
  1983. _left = _positioninfo[1]; //得到定位后的left
  1984. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1985. }
  1986. /**
  1987. * 判断拖动后图标是否重叠
  1988. *
  1989. * @param {element} 拖动的元素
  1990. * @param {element} 桌面所有的元素
  1991. * @param {array} 拖动元素的位置
  1992. ----------[0] 上 top
  1993. ----------[1] 左 left
  1994. * @return {object} 命名空间
  1995. */
  1996. U.MD.D.isOverlap = function(el, childs, postionarray) {
  1997. //循环所有的图标
  1998. for (var i = 0; i < childs.length; i++) {
  1999. //判断有没有和该图标诶子重叠的元素
  2000. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2001. return childs[i]; //如果有返回
  2002. }
  2003. }
  2004. }
  2005. //#endregion
  2006. //#endregion
  2007. //#region 桌面应用
  2008. /**
  2009. * 打开应用
  2010. *
  2011. * @param {string} 类型
  2012. -----------------Disk 网盘系统
  2013. -----------------PDisk 学习系统网盘
  2014. -----------------Poto 图片
  2015. -----------------Video 视频
  2016. -----------------Music 音乐
  2017. -----------------Word word
  2018. -----------------Excel excel
  2019. -----------------Txt 记事本
  2020. -----------------PB 学习系统
  2021. -----------------Blog 朋友圈系统
  2022. -----------------FTP ftp系统
  2023. -----------------Group 好友群
  2024. -----------------SY 首页系统
  2025. -----------------Set 个人设置
  2026. -----------------XSet 系统设置
  2027. -----------------App 我们所有的app
  2028. -----------------BC c.1473.cn 平台
  2029. -----------------CWeb d.1473.cn 变成平台
  2030. -----------------其他的外联系统 我们统一用iframe打开
  2031. * @param {array} 类型
  2032. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  2033. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  2034. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  2035. 如果第一个参数为其他,则无第二个参数
  2036. * @returns {array}
  2037. */
  2038. window.addEventListener('message', function(e) { // 监听 message 事件
  2039. // alert(e.data.type);
  2040. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  2041. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2042. //3是展示全部阶段 2学生 1老师 4专家
  2043. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  2044. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2045. //3是展示全部阶段 2学生 1老师 4专家
  2046. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  2047. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2048. //3是展示全部阶段 2学生 1老师 4专家
  2049. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  2050. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2051. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  2052. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2053. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  2054. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2055. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  2056. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2057. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  2058. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2059. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  2060. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2061. //3是展示全部阶段 2学生 1老师 4专家
  2062. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  2063. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2064. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  2065. U.MD.D.I.selectUser();
  2066. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2067. var _formel = document.getElementById("study");
  2068. U.UF.F.windowZooming(_formel);
  2069. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2070. var _formel = document.getElementById("studyDetail");
  2071. U.UF.F.windowZooming(_formel);
  2072. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2073. var _formel = document.getElementById("studyDetail");
  2074. U.UF.F.windowZooming(_formel);
  2075. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2076. var _formel = document.getElementById("studentStudy");
  2077. U.UF.F.windowZooming(_formel);
  2078. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2079. // var _formel = document.getElementById("study");
  2080. //如果最大化了,那么就把他缩小
  2081. // if (_formel.ismaximize) {
  2082. // return;
  2083. // }
  2084. // U.UF.F.windowZooming(_formel);
  2085. // U.UF.F.topWindow(_formel);
  2086. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2087. // var _formel = document.getElementById("studyDetail");
  2088. //如果最大化了,那么就把他缩小
  2089. // if (_formel.ismaximize) {
  2090. // return;
  2091. // }
  2092. // U.UF.F.windowZooming(_formel);
  2093. // U.UF.F.topWindow(_formel);
  2094. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2095. // var _formel = document.getElementById("studentStudy");
  2096. // if (_formel.ismaximize) {
  2097. // return;
  2098. // }
  2099. // U.UF.F.windowZooming(_formel);
  2100. // U.UF.F.topWindow(_formel);
  2101. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2102. var _formel = document.getElementById("study");
  2103. // if (_formel.ismaximize) {
  2104. // return;
  2105. // }
  2106. // U.UF.F.windowZooming(_formel);
  2107. U.UF.F.topWindow(_formel);
  2108. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2109. var _formel = document.getElementById("studentIndex");
  2110. U.UF.F.windowZooming(_formel);
  2111. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2112. var _formel = document.getElementById("studyDetailS");
  2113. U.UF.F.windowZooming(_formel);
  2114. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2115. var _formel = document.getElementById("studioIndex");
  2116. U.UF.F.windowZooming(_formel);
  2117. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2118. var _formel = document.getElementById("studyDetailStudio");
  2119. U.UF.F.windowZooming(_formel);
  2120. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2121. var _formel = document.getElementById("studyDetailStudio");
  2122. U.UF.F.windowZooming(_formel);
  2123. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2124. var _formel = document.getElementById("studyDetailNT");
  2125. U.UF.F.windowZooming(_formel);
  2126. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2127. var _formel = document.getElementById("studyDetailS");
  2128. U.UF.F.windowZooming(_formel);
  2129. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2130. var _formel = document.getElementById("studyDetailS");
  2131. U.UF.F.topWindow(_formel);
  2132. } else if (e.data.tools && e.data.tools == "1") {
  2133. // U.MD.D.I.openApplication("whiteboard")
  2134. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2135. } else if (e.data.tools && e.data.tools == "2") {
  2136. U.MD.D.I.openApplication("note")
  2137. } else if (e.data.tools && e.data.tools == "3") {
  2138. // U.MD.D.I.openApplication("mind")
  2139. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2140. } else if (e.data.tools && e.data.tools == "4") {
  2141. U.MD.D.I.openApplication("investigation")
  2142. } else if (e.data.tools && e.data.tools == "6") {
  2143. // U.MD.D.I.openApplication("doc")
  2144. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2145. } else if (e.data.tools && e.data.tools == "7") {
  2146. // U.MD.D.I.openApplication("mindNetwork")
  2147. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2148. } else if (e.data.tools && e.data.tools == "8") {
  2149. U.MD.D.I.openApplication("library")
  2150. } else if (e.data.tools && e.data.tools == "17") {
  2151. U.MD.D.I.openApplication("stuLibrary")
  2152. } else if (e.data.tools && e.data.tools == "18") {
  2153. U.MD.D.I.openApplication("train")
  2154. } else if (e.data.tools && e.data.tools == "21") {
  2155. U.MD.D.I.openApplication("program")
  2156. } else if (e.data.tools && e.data.tools == "22") {
  2157. U.MD.D.I.openApplication("AIprogram2")
  2158. } else if (e.data.tools && e.data.tools == "23") {
  2159. U.MD.D.I.openApplication("Pythonprogram")
  2160. } else if (e.data.tools && e.data.tools == "24") {
  2161. U.MD.D.I.openApplication("AIprogram")
  2162. } else if (e.data.tools && e.data.tools == "25") {
  2163. U.MD.D.I.openApplication("sys")
  2164. } else if (e.data.tools && e.data.tools == "26") {
  2165. // U.MD.D.I.openApplication("courseDesign")
  2166. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2167. } else if (e.data.tools && e.data.tools == "31") {
  2168. U.MD.D.I.openApplication("netWorkPanel")
  2169. } else if (e.data.tools && e.data.tools == "32") {
  2170. U.MD.D.I.openApplication("codeEdit")
  2171. } else if (e.data.tools && e.data.tools == "57") {
  2172. U.MD.D.I.openApplication("CocoPi")
  2173. } else if (e.data.tools && e.data.tools == "63") {
  2174. U.MD.D.I.openApplication("Wood")
  2175. } else if (e.data.tools && e.data.tools == "58") {
  2176. U.MD.D.I.openApplication("car")
  2177. } else if (e.data.tools && e.data.tools == "59") {
  2178. U.MD.D.I.openApplication("lineSearch")
  2179. } else if (e.data.tools && e.data.tools == "60") {
  2180. U.MD.D.I.openApplication("deepLearning")
  2181. } else if (e.data.tools && e.data.tools == "61") {
  2182. U.MD.D.I.openApplication("allHistory")
  2183. } else if (e.data.tools && e.data.tools == "28") {
  2184. U.MD.D.I.openApplication("translation")
  2185. } else if (e.data.tools && e.data.tools == "37") {
  2186. U.MD.D.I.openApplication("mohe")
  2187. } else if (e.data.tools && e.data.tools == "38") {
  2188. U.MD.D.I.openApplication("24game")
  2189. } else if (e.data.tools && e.data.tools == "39") {
  2190. U.MD.D.I.openApplication("GeoGebra")
  2191. } else if (e.data.tools && e.data.tools == "43") {
  2192. U.MD.D.I.openApplication("studentEvaluate")
  2193. } else if (e.data.tools && e.data.tools == "44") {
  2194. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2195. } else if (e.data.tools && e.data.tools == "46") {
  2196. U.MD.D.I.openApplication("project")
  2197. } else if (e.data.tools && e.data.tools == "1s") {
  2198. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2199. } else if (e.data.tools && e.data.tools == "3s") {
  2200. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2201. } else if (e.data.tools && e.data.tools == "6s") {
  2202. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2203. } else if (e.data.tools && e.data.tools == "1studio") {
  2204. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2205. } else if (e.data.tools && e.data.tools == "3studio") {
  2206. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2207. } else if (e.data.tools && e.data.tools == "6studio") {
  2208. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2209. } else if (e.data.tools && e.data.tools == "3y") {
  2210. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2211. } else if (e.data.tools && e.data.tools == "1y") {
  2212. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2213. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2214. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2215. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2216. U.MD.D.I.openApplication("AIAnalyse")
  2217. } else if (e.data.tools && e.data.tools == "1teacher") {
  2218. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2219. } else if (e.data.tools && e.data.tools == "3teacher") {
  2220. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2221. } else if (e.data.tools && e.data.tools == "7teacher") {
  2222. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2223. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2224. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2225. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2226. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2227. } else if (e.data.tools && e.data.tools == "1E") {
  2228. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2229. } else if (e.data.tools && e.data.tools == "3E") {
  2230. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2231. } else if (e.data.tools && e.data.tools == "57y") {
  2232. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2233. } else if (e.data.tools && e.data.tools == "57u") {
  2234. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2235. } else if (e.data.tools && e.data.tools == "57teacher") {
  2236. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2237. } else if (e.data.tools && e.data.tools == "64") {
  2238. U.MD.D.I.openApplication("AIChat")
  2239. } else if (e.data.tools && e.data.tools == "66") {
  2240. U.MD.D.I.openApplication("formulaEdi")
  2241. } else if (e.data.tools && e.data.tools == "67") {
  2242. U.MD.D.I.openApplication("molStr")
  2243. } else if (e.data.tools && e.data.tools == "68") {
  2244. U.MD.D.I.openApplication("timeAxis")
  2245. }
  2246. });
  2247. U.MD.D.I.selectUser = function() {
  2248. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2249. if (res.value[0].length > 0) {
  2250. US.userInfo = res.value[0][0];
  2251. $(".userName")[0].innerHTML = US.userInfo.username;
  2252. }
  2253. }, [], { "type": "GET", "withCredentials": true });
  2254. }
  2255. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2256. var _userinfo = US.userInfo, //登录用户信息
  2257. _userid = US.userInfo.userid, //登录用户id
  2258. _oid = _userinfo.organizeid,
  2259. _type = US.userInfo.type,
  2260. _org = US.userInfo.org,
  2261. _role = US.userInfo.role,
  2262. _classId = US.userInfo.classid;
  2263. if (_type == 4) {
  2264. tType = 4
  2265. }
  2266. switch (str) {
  2267. case "studyDetailNT": //无终端模式
  2268. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2269. setTimeout(() => {
  2270. U.MD.U.L.login();
  2271. }, 2000);
  2272. } else {
  2273. _formdiv = new U.UF.UI.form(
  2274. "课程详情",
  2275. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2276. "id": "studyDetailNT",
  2277. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2278. "onresize": function() {}
  2279. }, {
  2280. closecallback: function() {}
  2281. }, { "style": { "height": "36px" } }).form; //创建窗体
  2282. _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); } }
  2283. break;
  2284. }
  2285. case "studyDetail":
  2286. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2287. setTimeout(() => {
  2288. U.MD.U.L.login();
  2289. }, 2000);
  2290. } else {
  2291. _formdiv = new U.UF.UI.form(
  2292. "课程详情",
  2293. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2294. "id": "studyDetail",
  2295. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2296. "onresize": function() {}
  2297. }, {
  2298. closecallback: function() {}
  2299. }, { "style": { "height": "36px" } }).form; //创建窗体
  2300. _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); } }
  2301. break;
  2302. }
  2303. case "studyDetailS":
  2304. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2305. setTimeout(() => {
  2306. U.MD.U.L.login();
  2307. }, 2000);
  2308. } else {
  2309. _formdiv = new U.UF.UI.form(
  2310. "项目详情",
  2311. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2312. "id": "studyDetailS",
  2313. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2314. "onresize": function() {}
  2315. }, {
  2316. closecallback: function() {}
  2317. }, { "style": { "height": "36px" } }).form; //创建窗体
  2318. _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); } }
  2319. break;
  2320. }
  2321. case "studyDetailStudio":
  2322. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2323. setTimeout(() => {
  2324. U.MD.U.L.login();
  2325. }, 2000);
  2326. } else {
  2327. _formdiv = new U.UF.UI.form(
  2328. "工作详情",
  2329. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2330. "id": "studyDetailStudio",
  2331. "style": { "width": "95%", "height": "95%", "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/studioCourse.png)" }, "name": "工作详情", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2337. break;
  2338. }
  2339. case "studyDetailS5":
  2340. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2341. setTimeout(() => {
  2342. U.MD.U.L.login();
  2343. }, 2000);
  2344. } else {
  2345. _formdiv = new U.UF.UI.form(
  2346. "项目详情",
  2347. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2348. "id": "studyDetailS",
  2349. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2350. "onresize": function() {}
  2351. }, {
  2352. closecallback: function() {}
  2353. }, { "style": { "height": "36px" } }).form; //创建窗体
  2354. _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); } }
  2355. break;
  2356. }
  2357. case "studyDetailGM":
  2358. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2359. setTimeout(() => {
  2360. U.MD.U.L.login();
  2361. }, 2000);
  2362. } else {
  2363. _formdiv = new U.UF.UI.form(
  2364. "课程详情",
  2365. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  2366. "id": "studyDetail",
  2367. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2368. "onresize": function() {}
  2369. }, {
  2370. closecallback: function() {}
  2371. }, { "style": { "height": "36px" } }).form; //创建窗体
  2372. _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); } }
  2373. break;
  2374. }
  2375. case "hanUrl":
  2376. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2377. setTimeout(() => {
  2378. U.MD.U.L.login();
  2379. }, 2000);
  2380. } else {
  2381. _formdiv = new U.UF.UI.form(
  2382. "汉字宫",
  2383. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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" }), {
  2384. "id": "hanUrl",
  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/hanClass.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2391. break;
  2392. }
  2393. }
  2394. }
  2395. U.MD.D.I.openApplication = function(str, obj, info) {
  2396. obj = obj || {};
  2397. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2398. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2399. _userinfo = US.userInfo, //登录用户信息
  2400. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2401. _oid = obj.organizeid || _userinfo.organizeid,
  2402. _type = US.userInfo.type,
  2403. _org = US.userInfo.org,
  2404. _role = US.userInfo.role,
  2405. _classId = US.userInfo.classid,
  2406. _TscreenType = 1
  2407. _screenType = 2,
  2408. _SscreenType = 3;
  2409. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2410. return;
  2411. }
  2412. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2413. switch (str) {
  2414. case "studnetProject": //好友打开
  2415. _formdiv = new U.UF.UI.form(
  2416. "我的项目",
  2417. $$("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 }), {
  2418. "id": "studnetProject",
  2419. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2420. "onresize": function() {}
  2421. }, {
  2422. closecallback: function() {}
  2423. }, { "style": { "height": "36px" } }).form; //创建窗体
  2424. _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); } }
  2425. break;
  2426. case "studentEvaluate": //好友打开
  2427. _formdiv = new U.UF.UI.form(
  2428. "我的评价",
  2429. $$("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 }), {
  2430. "id": "studentEvaluate",
  2431. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2432. "onresize": function() {}
  2433. }, {
  2434. closecallback: function() {}
  2435. }, { "style": { "height": "36px" } }).form; //创建窗体
  2436. _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); } }
  2437. break;
  2438. case "my":
  2439. _formdiv = new U.UF.UI.form(
  2440. "我的资料",
  2441. $$("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 }), {
  2442. "id": "my",
  2443. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2444. "onresize": function() {}
  2445. }, {
  2446. closecallback: function() {}
  2447. }, { "style": { "height": "36px" } }).form; //创建窗体
  2448. _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); } }
  2449. break;
  2450. case "program":
  2451. _formdiv = new U.UF.UI.form(
  2452. "编程平台",
  2453. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2454. "id": "program",
  2455. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2456. "onresize": function() {}
  2457. }, {
  2458. closecallback: function() {}
  2459. }, { "style": { "height": "36px" } }).form; //创建窗体
  2460. _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); } }
  2461. break;
  2462. case "library":
  2463. _formdiv = new U.UF.UI.form(
  2464. "素材库",
  2465. $$("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 }), {
  2466. "id": "library",
  2467. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2468. "onresize": function() {}
  2469. }, {
  2470. closecallback: function() {}
  2471. }, { "style": { "height": "36px" } }).form; //创建窗体
  2472. _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); } }
  2473. break;
  2474. case "whiteboard":
  2475. _formdiv = new U.UF.UI.form(
  2476. "电子白板",
  2477. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2478. "id": "whiteboard",
  2479. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2480. "onresize": function() {}
  2481. }, {
  2482. closecallback: function() {}
  2483. }, { "style": { "height": "36px" } }).form; //创建窗体
  2484. _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); } }
  2485. break;
  2486. case "investigation":
  2487. _formdiv = new U.UF.UI.form(
  2488. "问卷调查",
  2489. $$("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 }), {
  2490. "id": "investigation",
  2491. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2492. "onresize": function() {}
  2493. }, {
  2494. closecallback: function() {}
  2495. }, { "style": { "height": "36px" } }).form; //创建窗体
  2496. _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); } }
  2497. break;
  2498. case "note":
  2499. _formdiv = new U.UF.UI.form(
  2500. "便签分类",
  2501. $$("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 }), {
  2502. "id": "note",
  2503. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2504. "onresize": function() {}
  2505. }, {
  2506. closecallback: function() {}
  2507. }, { "style": { "height": "36px" } }).form; //创建窗体
  2508. _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); } }
  2509. break;
  2510. // case "score":
  2511. // _formdiv = new U.UF.UI.form(
  2512. // "量规评分",
  2513. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2514. // "id": "score",
  2515. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2516. // "onresize": function() {}
  2517. // }, {
  2518. // closecallback: function() {}
  2519. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2520. // _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); } }
  2521. // break;
  2522. case "mind":
  2523. _formdiv = new U.UF.UI.form(
  2524. "思维导图",
  2525. $$("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"
  2526. "id": "mind",
  2527. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2528. "onresize": function() {}
  2529. }, {
  2530. closecallback: function() {}
  2531. }, { "style": { "height": "36px" } }).form; //创建窗体
  2532. _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); } }
  2533. break;
  2534. case "doc":
  2535. // U.MD.D.I.isRoom();
  2536. _formdiv = new U.UF.UI.form(
  2537. "协同文档",
  2538. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2539. "id": "doc",
  2540. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2541. "onresize": function() {}
  2542. }, {
  2543. closecallback: function() {}
  2544. }, { "style": { "height": "36px" } }).form; //创建窗体
  2545. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2546. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2547. // })
  2548. _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); } }
  2549. break;
  2550. case "studentStudy":
  2551. _formdiv = new U.UF.UI.form(
  2552. "课程中心",
  2553. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2554. "id": "studentStudy",
  2555. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2556. "onresize": function() {}
  2557. }, {
  2558. closecallback: function() {}
  2559. }, { "style": { "height": "36px" } }).form; //创建窗体
  2560. _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); } }
  2561. break;
  2562. case "train": //好友打开
  2563. _formdiv = new U.UF.UI.form(
  2564. "训练平台",
  2565. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2566. "id": "train",
  2567. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2568. "onresize": function() {}
  2569. }, {
  2570. closecallback: function() {}
  2571. }, { "style": { "height": "36px" } }).form; //创建窗体
  2572. _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); } }
  2573. break;
  2574. case "mindNetwork": //好友打开
  2575. _formdiv = new U.UF.UI.form(
  2576. "思维网格",
  2577. $$("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 }), {
  2578. "id": "mindNetwork",
  2579. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2580. "onresize": function() {}
  2581. }, {
  2582. closecallback: function() {}
  2583. }, { "style": { "height": "36px" } }).form; //创建窗体
  2584. _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); } }
  2585. break;
  2586. case "studentClassRoom": //好友打开
  2587. _formdiv = new U.UF.UI.form(
  2588. "实时课堂",
  2589. $$("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 }), {
  2590. "id": "studentClassRoom",
  2591. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2592. "onresize": function() {}
  2593. }, {
  2594. closecallback: function() {}
  2595. }, { "style": { "height": "36px" } }).form; //创建窗体
  2596. _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); } }
  2597. setTimeout(() => {
  2598. U.UF.F.windowZooming(_formdiv)
  2599. }, 0);
  2600. break;
  2601. }
  2602. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2603. switch (str) {
  2604. case "studnetProject": //好友打开
  2605. _formdiv = new U.UF.UI.form(
  2606. "我的项目",
  2607. $$("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 }), {
  2608. "id": "studnetProject",
  2609. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2610. "onresize": function() {}
  2611. }, {
  2612. closecallback: function() {}
  2613. }, { "style": { "height": "36px" } }).form; //创建窗体
  2614. _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); } }
  2615. break;
  2616. case "studentEvaluate": //好友打开
  2617. _formdiv = new U.UF.UI.form(
  2618. "我的评价",
  2619. $$("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 }), {
  2620. "id": "studentEvaluate",
  2621. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2622. "onresize": function() {}
  2623. }, {
  2624. closecallback: function() {}
  2625. }, { "style": { "height": "36px" } }).form; //创建窗体
  2626. _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); } }
  2627. break;
  2628. case "my":
  2629. _formdiv = new U.UF.UI.form(
  2630. "我的资料",
  2631. $$("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 }), {
  2632. "id": "my",
  2633. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2634. "onresize": function() {}
  2635. }, {
  2636. closecallback: function() {}
  2637. }, { "style": { "height": "36px" } }).form; //创建窗体
  2638. _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); } }
  2639. break;
  2640. case "program":
  2641. _formdiv = new U.UF.UI.form(
  2642. "编程平台",
  2643. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2644. "id": "program",
  2645. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2646. "onresize": function() {}
  2647. }, {
  2648. closecallback: function() {}
  2649. }, { "style": { "height": "36px" } }).form; //创建窗体
  2650. _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); } }
  2651. break;
  2652. case "library":
  2653. _formdiv = new U.UF.UI.form(
  2654. "素材库",
  2655. $$("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 }), {
  2656. "id": "library",
  2657. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2658. "onresize": function() {}
  2659. }, {
  2660. closecallback: function() {}
  2661. }, { "style": { "height": "36px" } }).form; //创建窗体
  2662. _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); } }
  2663. break;
  2664. case "whiteboard":
  2665. _formdiv = new U.UF.UI.form(
  2666. "电子白板",
  2667. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2668. "id": "whiteboard",
  2669. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2670. "onresize": function() {}
  2671. }, {
  2672. closecallback: function() {}
  2673. }, { "style": { "height": "36px" } }).form; //创建窗体
  2674. _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); } }
  2675. break;
  2676. case "investigation":
  2677. _formdiv = new U.UF.UI.form(
  2678. "问卷调查",
  2679. $$("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 }), {
  2680. "id": "investigation",
  2681. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2682. "onresize": function() {}
  2683. }, {
  2684. closecallback: function() {}
  2685. }, { "style": { "height": "36px" } }).form; //创建窗体
  2686. _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); } }
  2687. break;
  2688. case "note":
  2689. _formdiv = new U.UF.UI.form(
  2690. "便签分类",
  2691. $$("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 }), {
  2692. "id": "note",
  2693. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2694. "onresize": function() {}
  2695. }, {
  2696. closecallback: function() {}
  2697. }, { "style": { "height": "36px" } }).form; //创建窗体
  2698. _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); } }
  2699. break;
  2700. // case "score":
  2701. // _formdiv = new U.UF.UI.form(
  2702. // "量规评分",
  2703. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2704. // "id": "score",
  2705. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2706. // "onresize": function() {}
  2707. // }, {
  2708. // closecallback: function() {}
  2709. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2710. // _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); } }
  2711. // break;
  2712. case "mind":
  2713. _formdiv = new U.UF.UI.form(
  2714. "思维导图",
  2715. $$("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"
  2716. "id": "mind",
  2717. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2718. "onresize": function() {}
  2719. }, {
  2720. closecallback: function() {}
  2721. }, { "style": { "height": "36px" } }).form; //创建窗体
  2722. _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); } }
  2723. break;
  2724. case "doc":
  2725. // U.MD.D.I.isRoom();
  2726. _formdiv = new U.UF.UI.form(
  2727. "协同文档",
  2728. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2729. "id": "doc",
  2730. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2731. "onresize": function() {}
  2732. }, {
  2733. closecallback: function() {}
  2734. }, { "style": { "height": "36px" } }).form; //创建窗体
  2735. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2736. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2737. })
  2738. _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); } }
  2739. break;
  2740. case "train": //好友打开
  2741. _formdiv = new U.UF.UI.form(
  2742. "训练平台",
  2743. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2744. "id": "train",
  2745. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2746. "onresize": function() {}
  2747. }, {
  2748. closecallback: function() {}
  2749. }, { "style": { "height": "36px" } }).form; //创建窗体
  2750. _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); } }
  2751. break;
  2752. case "studentStudy":
  2753. _formdiv = new U.UF.UI.form(
  2754. "课程中心",
  2755. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  2756. "id": "studentStudy",
  2757. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2758. "onresize": function() {}
  2759. }, {
  2760. closecallback: function() {}
  2761. }, { "style": { "height": "36px" } }).form; //创建窗体
  2762. _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); } }
  2763. break;
  2764. case "mindNetwork": //好友打开
  2765. _formdiv = new U.UF.UI.form(
  2766. "思维网格",
  2767. $$("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 }), {
  2768. "id": "mindNetwork",
  2769. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2770. "onresize": function() {}
  2771. }, {
  2772. closecallback: function() {}
  2773. }, { "style": { "height": "36px" } }).form; //创建窗体
  2774. _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); } }
  2775. break;
  2776. case "studentClassRoom": //好友打开
  2777. _formdiv = new U.UF.UI.form(
  2778. "实时课堂",
  2779. $$("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 }), {
  2780. "id": "studentClassRoom",
  2781. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2782. "onresize": function() {}
  2783. }, {
  2784. closecallback: function() {}
  2785. }, { "style": { "height": "36px" } }).form; //创建窗体
  2786. _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); } }
  2787. setTimeout(() => {
  2788. U.UF.F.windowZooming(_formdiv)
  2789. }, 0);
  2790. break;
  2791. }
  2792. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2793. //选择应用处理
  2794. switch (str) {
  2795. case "project": //好友打开
  2796. _formdiv = new U.UF.UI.form(
  2797. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目' : "课程管理",
  2798. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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 }), {
  2799. "id": "project",
  2800. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2801. "onresize": function() {}
  2802. }, {
  2803. closecallback: function() {}
  2804. }, { "style": { "height": "36px" } }).form; //创建窗体
  2805. _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); } }
  2806. break;
  2807. case "student":
  2808. _formdiv = new U.UF.UI.form(
  2809. "学生管理",
  2810. $$("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 }), {
  2811. "id": "student",
  2812. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2813. "onresize": function() {}
  2814. }, {
  2815. closecallback: function() {}
  2816. }, { "style": { "height": "36px" } }).form; //创建窗体
  2817. _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); } }
  2818. break;
  2819. case "evaluate":
  2820. _formdiv = new U.UF.UI.form(
  2821. "学生评价",
  2822. $$("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 }), {
  2823. "id": "evaluate",
  2824. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2825. "onresize": function() {}
  2826. }, {
  2827. closecallback: function() {}
  2828. }, { "style": { "height": "36px" } }).form; //创建窗体
  2829. _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); } }
  2830. break;
  2831. case "sys":
  2832. _formdiv = new U.UF.UI.form(
  2833. "目标管理",
  2834. $$("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 }), {
  2835. "id": "sys",
  2836. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2837. "onresize": function() {}
  2838. }, {
  2839. closecallback: function() {}
  2840. }, { "style": { "height": "36px" } }).form; //创建窗体
  2841. _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); } }
  2842. break;
  2843. case "courseDesign":
  2844. _formdiv = new U.UF.UI.form(
  2845. "项目设计",
  2846. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2847. "id": "courseDesign",
  2848. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2849. "onresize": function() {}
  2850. }, {
  2851. closecallback: function() {}
  2852. }, { "style": { "height": "36px" } }).form; //创建窗体
  2853. _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); } }
  2854. break;
  2855. case "program":
  2856. _formdiv = new U.UF.UI.form(
  2857. "编程平台",
  2858. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2859. "id": "program",
  2860. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2861. "onresize": function() {}
  2862. }, {
  2863. closecallback: function() {}
  2864. }, { "style": { "height": "36px" } }).form; //创建窗体
  2865. _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); } }
  2866. break;
  2867. case "class":
  2868. _formdiv = new U.UF.UI.form(
  2869. "班级管理",
  2870. $$("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 }), {
  2871. "id": "class",
  2872. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2873. "onresize": function() {}
  2874. }, {
  2875. closecallback: function() {}
  2876. }, { "style": { "height": "36px" } }).form; //创建窗体
  2877. _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); } }
  2878. break;
  2879. case "Grade":
  2880. _formdiv = new U.UF.UI.form(
  2881. "年级管理",
  2882. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2883. "id": "Grade",
  2884. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2885. "onresize": function() {}
  2886. }, {
  2887. closecallback: function() {}
  2888. }, { "style": { "height": "36px" } }).form; //创建窗体
  2889. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年级管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2890. break;
  2891. case "teacherOffice":
  2892. _formdiv = new U.UF.UI.form(
  2893. "教研室",
  2894. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherOffice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2895. "id": "teacherOffice",
  2896. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2897. "onresize": function() {}
  2898. }, {
  2899. closecallback: function() {}
  2900. }, { "style": { "height": "36px" } }).form; //创建窗体
  2901. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2902. break;
  2903. case "my":
  2904. _formdiv = new U.UF.UI.form(
  2905. "我的资料",
  2906. $$("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 }), {
  2907. "id": "my",
  2908. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2909. "onresize": function() {}
  2910. }, {
  2911. closecallback: function() {}
  2912. }, { "style": { "height": "36px" } }).form; //创建窗体
  2913. _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); } }
  2914. break;
  2915. case "notice":
  2916. _formdiv = new U.UF.UI.form(
  2917. "通知公告",
  2918. $$("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 }), {
  2919. "id": "notice",
  2920. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2921. "onresize": function() {}
  2922. }, {
  2923. closecallback: function() {}
  2924. }, { "style": { "height": "36px" } }).form; //创建窗体
  2925. _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); } }
  2926. break;
  2927. case "library":
  2928. _formdiv = new U.UF.UI.form(
  2929. "素材库",
  2930. $$("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 }), {
  2931. "id": "library",
  2932. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2933. "onresize": function() {}
  2934. }, {
  2935. closecallback: function() {}
  2936. }, { "style": { "height": "36px" } }).form; //创建窗体
  2937. _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); } }
  2938. break;
  2939. case "whiteboard":
  2940. _formdiv = new U.UF.UI.form(
  2941. "电子白板",
  2942. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2943. "id": "whiteboard",
  2944. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2945. "onresize": function() {}
  2946. }, {
  2947. closecallback: function() {}
  2948. }, { "style": { "height": "36px" } }).form; //创建窗体
  2949. _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); } }
  2950. break;
  2951. case "investigation":
  2952. _formdiv = new U.UF.UI.form(
  2953. "问卷调查",
  2954. $$("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 }), {
  2955. "id": "investigation",
  2956. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2957. "onresize": function() {}
  2958. }, {
  2959. closecallback: function() {}
  2960. }, { "style": { "height": "36px" } }).form; //创建窗体
  2961. _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); } }
  2962. break;
  2963. case "note":
  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-teacher-table/dist/#/note?userid=" + _userid + "&org=" + _org }), {
  2967. "id": "note",
  2968. "style": { "width": "20%", "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/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2974. break;
  2975. // case "score":
  2976. // _formdiv = new U.UF.UI.form(
  2977. // "量规评分",
  2978. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2979. // "id": "score",
  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/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2986. // break;
  2987. case "mind":
  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": "/kityminder-editor/dist/index.html" }), { //"/jsmind/example/demo.html"
  2991. "id": "mind",
  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/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2998. break;
  2999. case "doc":
  3000. // U.MD.D.I.isRoom();
  3001. _formdiv = new U.UF.UI.form(
  3002. "协同文档",
  3003. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3004. "id": "doc",
  3005. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3006. "onresize": function() {}
  3007. }, {
  3008. closecallback: function() {}
  3009. }, { "style": { "height": "36px" } }).form; //创建窗体
  3010. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3011. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3012. })
  3013. _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); } }
  3014. break;
  3015. case "study":
  3016. _formdiv = new U.UF.UI.form(
  3017. "课程中心",
  3018. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  3019. "id": "study",
  3020. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3021. "onresize": function() {}
  3022. }, {
  3023. closecallback: function() {}
  3024. }, { "style": { "height": "36px" } }).form; //创建窗体
  3025. _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); } }
  3026. break;
  3027. case "mindNetwork": //好友打开
  3028. _formdiv = new U.UF.UI.form(
  3029. "思维网格",
  3030. $$("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 }), {
  3031. "id": "mindNetwork",
  3032. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3033. "onresize": function() {}
  3034. }, {
  3035. closecallback: function() {}
  3036. }, { "style": { "height": "36px" } }).form; //创建窗体
  3037. _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); } }
  3038. break;
  3039. case "train": //好友打开
  3040. _formdiv = new U.UF.UI.form(
  3041. "训练平台",
  3042. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3043. "id": "mindNetwork",
  3044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3045. "onresize": function() {}
  3046. }, {
  3047. closecallback: function() {}
  3048. }, { "style": { "height": "36px" } }).form; //创建窗体
  3049. _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); } }
  3050. break;
  3051. case "teacherClassRoom": //好友打开
  3052. _formdiv = new U.UF.UI.form(
  3053. "实时课堂",
  3054. $$("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 }), {
  3055. "id": "teacherClassRoom",
  3056. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3057. "onresize": function() {}
  3058. }, {
  3059. closecallback: function() {}
  3060. }, { "style": { "height": "36px" } }).form; //创建窗体
  3061. _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); } }
  3062. setTimeout(() => {
  3063. U.UF.F.windowZooming(_formdiv)
  3064. }, 0);
  3065. break;
  3066. }
  3067. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3068. switch (str) {
  3069. case "project": //好友打开
  3070. _formdiv = new U.UF.UI.form(
  3071. "课程管理",
  3072. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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 }), {
  3073. "id": "project",
  3074. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3075. "onresize": function() {}
  3076. }, {
  3077. closecallback: function() {}
  3078. }, { "style": { "height": "36px" } }).form; //创建窗体
  3079. _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); } }
  3080. break;
  3081. case "evaluate":
  3082. _formdiv = new U.UF.UI.form(
  3083. "学生评价",
  3084. $$("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 }), {
  3085. "id": "evaluate",
  3086. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3087. "onresize": function() {}
  3088. }, {
  3089. closecallback: function() {}
  3090. }, { "style": { "height": "36px" } }).form; //创建窗体
  3091. _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); } }
  3092. break;
  3093. case "notice":
  3094. _formdiv = new U.UF.UI.form(
  3095. "通知公告",
  3096. $$("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 }), {
  3097. "id": "notice",
  3098. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3099. "onresize": function() {}
  3100. }, {
  3101. closecallback: function() {}
  3102. }, { "style": { "height": "36px" } }).form; //创建窗体
  3103. _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); } }
  3104. break;
  3105. case "stuLibrary":
  3106. _formdiv = new U.UF.UI.form(
  3107. "学习资料",
  3108. $$("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 }), {
  3109. "id": "stuLibrary",
  3110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3111. "onresize": function() {}
  3112. }, {
  3113. closecallback: function() {}
  3114. }, { "style": { "height": "36px" } }).form; //创建窗体
  3115. _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); } }
  3116. break;
  3117. case "program":
  3118. _formdiv = new U.UF.UI.form(
  3119. "编程平台",
  3120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3121. "id": "program",
  3122. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3123. "onresize": function() {}
  3124. }, {
  3125. closecallback: function() {}
  3126. }, { "style": { "height": "36px" } }).form; //创建窗体
  3127. _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); } }
  3128. break;
  3129. case "whiteboard":
  3130. _formdiv = new U.UF.UI.form(
  3131. "电子白板",
  3132. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  3133. "id": "whiteboard",
  3134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3135. "onresize": function() {}
  3136. }, {
  3137. closecallback: function() {}
  3138. }, { "style": { "height": "36px" } }).form; //创建窗体
  3139. _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); } }
  3140. break;
  3141. case "investigation":
  3142. _formdiv = new U.UF.UI.form(
  3143. "问卷调查",
  3144. $$("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 }), {
  3145. "id": "investigation",
  3146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3147. "onresize": function() {}
  3148. }, {
  3149. closecallback: function() {}
  3150. }, { "style": { "height": "36px" } }).form; //创建窗体
  3151. _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); } }
  3152. break;
  3153. case "mind":
  3154. _formdiv = new U.UF.UI.form(
  3155. "思维导图",
  3156. $$("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"
  3157. "id": "mind",
  3158. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3159. "onresize": function() {}
  3160. }, {
  3161. closecallback: function() {}
  3162. }, { "style": { "height": "36px" } }).form; //创建窗体
  3163. _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); } }
  3164. break;
  3165. case "doc":
  3166. // U.MD.D.I.isRoom();
  3167. _formdiv = new U.UF.UI.form(
  3168. "协同文档",
  3169. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3170. "id": "doc",
  3171. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3172. "onresize": function() {}
  3173. }, {
  3174. closecallback: function() {}
  3175. }, { "style": { "height": "36px" } }).form; //创建窗体
  3176. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3177. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3178. })
  3179. _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); } }
  3180. break;
  3181. case "study":
  3182. _formdiv = new U.UF.UI.form(
  3183. "课程中心",
  3184. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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
  3185. "id": "study",
  3186. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3187. "onresize": function() {}
  3188. }, {
  3189. closecallback: function() {}
  3190. }, { "style": { "height": "36px" } }).form; //创建窗体
  3191. _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); } }
  3192. break;
  3193. case "mindNetwork": //好友打开
  3194. _formdiv = new U.UF.UI.form(
  3195. "思维网格",
  3196. $$("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 }), {
  3197. "id": "mindNetwork",
  3198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3199. "onresize": function() {}
  3200. }, {
  3201. closecallback: function() {}
  3202. }, { "style": { "height": "36px" } }).form; //创建窗体
  3203. _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); } }
  3204. break;
  3205. case "train": //好友打开
  3206. _formdiv = new U.UF.UI.form(
  3207. "训练平台",
  3208. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3209. "id": "train",
  3210. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3211. "onresize": function() {}
  3212. }, {
  3213. closecallback: function() {}
  3214. }, { "style": { "height": "36px" } }).form; //创建窗体
  3215. _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); } }
  3216. break;
  3217. case "sys":
  3218. _formdiv = new U.UF.UI.form(
  3219. "目标管理",
  3220. $$("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 }), {
  3221. "id": "sys",
  3222. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3223. "onresize": function() {}
  3224. }, {
  3225. closecallback: function() {}
  3226. }, { "style": { "height": "36px" } }).form; //创建窗体
  3227. _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); } }
  3228. break;
  3229. case "courseDesign":
  3230. _formdiv = new U.UF.UI.form(
  3231. "项目设计",
  3232. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3233. "id": "courseDesign",
  3234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3235. "onresize": function() {}
  3236. }, {
  3237. closecallback: function() {}
  3238. }, { "style": { "height": "36px" } }).form; //创建窗体
  3239. _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); } }
  3240. break;
  3241. }
  3242. } else if (!_type) {
  3243. switch (str) {
  3244. case "my":
  3245. _formdiv = new U.UF.UI.form(
  3246. "我的资料",
  3247. $$("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 }), {
  3248. "id": "my",
  3249. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3250. "onresize": function() {}
  3251. }, {
  3252. closecallback: function() {}
  3253. }, { "style": { "height": "36px" } }).form; //创建窗体
  3254. _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); } }
  3255. break;
  3256. }
  3257. }
  3258. switch (str) {
  3259. // AIprogram2 AI体验 aihub.cocorobo.cn
  3260. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  3261. // AIprogram AI编程 ai-blockly.cocorobo.cn
  3262. case "formulaEdi": //公式编辑
  3263. _formdiv = new U.UF.UI.form(
  3264. "公式编辑",
  3265. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3266. "id": "formulaEdi",
  3267. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3268. "onresize": function() {}
  3269. }, {
  3270. closecallback: function() {}
  3271. }, { "style": { "height": "36px" } }).form; //创建窗体
  3272. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/formulaEdi.png)" }, "name": "公式编辑", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3273. break;
  3274. case "molStr": //分子结构
  3275. _formdiv = new U.UF.UI.form(
  3276. "分子结构",
  3277. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3278. "id": "molStr",
  3279. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3280. "onresize": function() {}
  3281. }, {
  3282. closecallback: function() {}
  3283. }, { "style": { "height": "36px" } }).form; //创建窗体
  3284. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子结构", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3285. break;
  3286. case "timeAxis": //时间轴
  3287. _formdiv = new U.UF.UI.form(
  3288. "时间轴",
  3289. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3290. "id": "timeAxis",
  3291. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3292. "onresize": function() {}
  3293. }, {
  3294. closecallback: function() {}
  3295. }, { "style": { "height": "36px" } }).form; //创建窗体
  3296. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/timeAxis.png)" }, "name": "时间轴", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3297. break;
  3298. case "AIprogram2": //AI体验
  3299. _formdiv = new U.UF.UI.form(
  3300. "AI体验",
  3301. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3302. "id": "AIprogram2",
  3303. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3304. "onresize": function() {}
  3305. }, {
  3306. closecallback: function() {}
  3307. }, { "style": { "height": "36px" } }).form; //创建窗体
  3308. _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); } }
  3309. break;
  3310. case "Pythonprogram": //python编程
  3311. _formdiv = new U.UF.UI.form(
  3312. "Python编程",
  3313. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3314. "id": "Pythonprogram",
  3315. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3316. "onresize": function() {}
  3317. }, {
  3318. closecallback: function() {}
  3319. }, { "style": { "height": "36px" } }).form; //创建窗体
  3320. _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); } }
  3321. break;
  3322. case "AIprogram": //ai编程
  3323. _formdiv = new U.UF.UI.form(
  3324. "AI编程平台",
  3325. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3326. "id": "AIprogram",
  3327. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3328. "onresize": function() {}
  3329. }, {
  3330. closecallback: function() {}
  3331. }, { "style": { "height": "36px" } }).form; //创建窗体
  3332. _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); } }
  3333. break;
  3334. case "CocoPi": //CocoPi
  3335. _formdiv = new U.UF.UI.form(
  3336. "CocoPi",
  3337. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.cn" }), {
  3338. "id": "CocoPi",
  3339. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3340. "onresize": function() {}
  3341. }, {
  3342. closecallback: function() {}
  3343. }, { "style": { "height": "36px" } }).form; //创建窗体
  3344. _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); } }
  3345. break;
  3346. case "Wood": //Wood
  3347. _formdiv = new U.UF.UI.form(
  3348. "海龟编程",
  3349. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  3350. "id": "Wood",
  3351. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function() {}
  3353. }, {
  3354. closecallback: function() {}
  3355. }, { "style": { "height": "36px" } }).form; //创建窗体
  3356. _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); } }
  3357. break;
  3358. case "car": //模拟驾驶
  3359. _formdiv = new U.UF.UI.form(
  3360. "模拟驾驶",
  3361. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  3362. "id": "car",
  3363. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3364. "onresize": function() {}
  3365. }, {
  3366. closecallback: function() {}
  3367. }, { "style": { "height": "36px" } }).form; //创建窗体
  3368. _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); } }
  3369. break;
  3370. case "lineSearch": //路径搜索
  3371. _formdiv = new U.UF.UI.form(
  3372. "路径搜索",
  3373. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/" }), {
  3374. "id": "lineSearch",
  3375. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3376. "onresize": function() {}
  3377. }, {
  3378. closecallback: function() {}
  3379. }, { "style": { "height": "36px" } }).form; //创建窗体
  3380. _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); } }
  3381. break;
  3382. case "deepLearning": //深度学习
  3383. _formdiv = new U.UF.UI.form(
  3384. "深度学习",
  3385. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;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/#" }), {
  3386. "id": "deepLearning",
  3387. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3388. "onresize": function() {}
  3389. }, {
  3390. closecallback: function() {}
  3391. }, { "style": { "height": "36px" } }).form; //创建窗体
  3392. _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); } }
  3393. break;
  3394. case "allHistory": //深度学习
  3395. _formdiv = new U.UF.UI.form(
  3396. "全历史",
  3397. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  3398. "id": "allHistory",
  3399. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3400. "onresize": function() {}
  3401. }, {
  3402. closecallback: function() {}
  3403. }, { "style": { "height": "36px" } }).form; //创建窗体
  3404. _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); } }
  3405. break;
  3406. case "chatPDF": //ai编程
  3407. _formdiv = new U.UF.UI.form(
  3408. "chatPDF",
  3409. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3410. "id": "chatPDF",
  3411. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3412. "onresize": function() {}
  3413. }, {
  3414. closecallback: function() {}
  3415. }, { "style": { "height": "36px" } }).form; //创建窗体
  3416. _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); } }
  3417. break;
  3418. case "resources": //国家教育
  3419. _formdiv = new U.UF.UI.form(
  3420. "国家教育",
  3421. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3422. "id": "resources",
  3423. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3424. "onresize": function() {}
  3425. }, {
  3426. closecallback: function() {}
  3427. }, { "style": { "height": "36px" } }).form; //创建窗体
  3428. _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); } }
  3429. break;
  3430. case "codeEdit": //源码编辑
  3431. _formdiv = new U.UF.UI.form(
  3432. "源码编辑",
  3433. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3434. "id": "codeEdit",
  3435. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3436. "onresize": function() {}
  3437. }, {
  3438. closecallback: function() {}
  3439. }, { "style": { "height": "36px" } }).form; //创建窗体
  3440. _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); } }
  3441. break; //
  3442. case "MindMap": //MindMap
  3443. _formdiv = new U.UF.UI.form(
  3444. "MindMap",
  3445. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3446. "id": "MindMap",
  3447. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3448. "onresize": function() {}
  3449. }, {
  3450. closecallback: function() {}
  3451. }, { "style": { "height": "36px" } }).form; //创建窗体
  3452. _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); } }
  3453. break;
  3454. case "netWorkPanel": //netWorkPanel
  3455. _formdiv = new U.UF.UI.form(
  3456. "netWorkPanel",
  3457. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3458. "id": "netWorkPanel",
  3459. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3460. "onresize": function() {}
  3461. }, {
  3462. closecallback: function() {}
  3463. }, { "style": { "height": "36px" } }).form; //创建窗体
  3464. _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); } }
  3465. break;
  3466. case "GeoGebra": //GeoGebra
  3467. _formdiv = new U.UF.UI.form(
  3468. "GeoGebra",
  3469. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  3470. "id": "GeoGebra",
  3471. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3472. "onresize": function() {}
  3473. }, {
  3474. closecallback: function() {}
  3475. }, { "style": { "height": "36px" } }).form; //创建窗体
  3476. _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); } }
  3477. break;
  3478. case "translation": //翻译
  3479. _formdiv = new U.UF.UI.form(
  3480. "翻译",
  3481. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3482. "id": "translation",
  3483. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3484. "onresize": function() {}
  3485. }, {
  3486. closecallback: function() {}
  3487. }, { "style": { "height": "36px" } }).form; //创建窗体
  3488. _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); } }
  3489. break;
  3490. case "mohe": //魔盒
  3491. _formdiv = new U.UF.UI.form(
  3492. "魔盒识字",
  3493. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3494. "id": "mohe",
  3495. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3496. "onresize": function() {}
  3497. }, {
  3498. closecallback: function() {}
  3499. }, { "style": { "height": "36px" } }).form; //创建窗体
  3500. _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); } }
  3501. break;
  3502. case "24game": //24点
  3503. _formdiv = new U.UF.UI.form(
  3504. "24点",
  3505. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3506. "id": "24game",
  3507. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3508. "onresize": function() {}
  3509. }, {
  3510. closecallback: function() {}
  3511. }, { "style": { "height": "36px" } }).form; //创建窗体
  3512. _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); } }
  3513. break;
  3514. case "case":
  3515. _formdiv = new U.UF.UI.form(
  3516. "课程进展",
  3517. $$("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 }), {
  3518. "id": "case",
  3519. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3520. "onresize": function() {}
  3521. }, {
  3522. closecallback: function() {}
  3523. }, { "style": { "height": "36px" } }).form; //创建窗体
  3524. _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); } }
  3525. break;
  3526. case "snf":
  3527. _formdiv = new U.UF.UI.form(
  3528. "赛诺梵",
  3529. $$("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" }), {
  3530. "id": "snf",
  3531. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3532. "onresize": function() {}
  3533. }, {
  3534. closecallback: function() {}
  3535. }, { "style": { "height": "36px" } }).form; //创建窗体
  3536. _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); } }
  3537. break;
  3538. case "hanFamily":
  3539. _formdiv = new U.UF.UI.form(
  3540. "汉字家族",
  3541. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3542. "id": "hanFamily",
  3543. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3544. "onresize": function() {}
  3545. }, {
  3546. closecallback: function() {}
  3547. }, { "style": { "height": "36px" } }).form; //创建窗体
  3548. _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); } }
  3549. break;
  3550. case "hanClassics":
  3551. _formdiv = new U.UF.UI.form(
  3552. "国学经典",
  3553. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3554. "id": "hanClassics",
  3555. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3556. "onresize": function() {}
  3557. }, {
  3558. closecallback: function() {}
  3559. }, { "style": { "height": "36px" } }).form; //创建窗体
  3560. _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); } }
  3561. break;
  3562. case "hanTraining":
  3563. _formdiv = new U.UF.UI.form(
  3564. "笔画训练",
  3565. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3566. "id": "hanTraining",
  3567. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3568. "onresize": function() {}
  3569. }, {
  3570. closecallback: function() {}
  3571. }, { "style": { "height": "36px" } }).form; //创建窗体
  3572. _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); } }
  3573. break;
  3574. case "hanClass":
  3575. _formdiv = new U.UF.UI.form(
  3576. "书法课堂",
  3577. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3578. "id": "hanClass",
  3579. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3580. "onresize": function() {}
  3581. }, {
  3582. closecallback: function() {}
  3583. }, { "style": { "height": "36px" } }).form; //创建窗体
  3584. _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); } }
  3585. break;
  3586. case "han":
  3587. _formdiv = new U.UF.UI.form(
  3588. "汉字宫",
  3589. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3590. "id": "han",
  3591. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3592. "onresize": function() {}
  3593. }, {
  3594. closecallback: function() {}
  3595. }, { "style": { "height": "36px" } }).form; //创建窗体
  3596. _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); } }
  3597. break;
  3598. case "projectGM": //课程管理
  3599. _formdiv = new U.UF.UI.form(
  3600. "课程管理",
  3601. $$("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 }), {
  3602. "id": "projectGM",
  3603. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3604. "onresize": function() {}
  3605. }, {
  3606. closecallback: function() {}
  3607. }, { "style": { "height": "36px" } }).form; //创建窗体
  3608. _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); } }
  3609. break;
  3610. case "studyGM": //课程中心
  3611. _formdiv = new U.UF.UI.form(
  3612. "课程中心",
  3613. $$("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
  3614. "id": "study",
  3615. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3616. "onresize": function() {}
  3617. }, {
  3618. closecallback: function() {}
  3619. }, { "style": { "height": "36px" } }).form; //创建窗体
  3620. _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); } }
  3621. break;
  3622. // studentGM
  3623. case "studentGM": //学生管理
  3624. _formdiv = new U.UF.UI.form(
  3625. "学生管理",
  3626. $$("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 }), {
  3627. "id": "studentGM",
  3628. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3629. "onresize": function() {}
  3630. }, {
  3631. closecallback: function() {}
  3632. }, { "style": { "height": "36px" } }).form; //创建窗体
  3633. _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); } }
  3634. break;
  3635. case "evaluateGM": //学生评价
  3636. _formdiv = new U.UF.UI.form(
  3637. "学生评价",
  3638. $$("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 }), {
  3639. "id": "evaluateGM",
  3640. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3641. "onresize": function() {}
  3642. }, {
  3643. closecallback: function() {}
  3644. }, { "style": { "height": "36px" } }).form; //创建窗体
  3645. _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); } }
  3646. break;
  3647. // classGM
  3648. case "classGM": //班级管理
  3649. _formdiv = new U.UF.UI.form(
  3650. "班级管理",
  3651. $$("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 }), {
  3652. "id": "classGM",
  3653. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3654. "onresize": function() {}
  3655. }, {
  3656. closecallback: function() {}
  3657. }, { "style": { "height": "36px" } }).form; //创建窗体
  3658. _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); } }
  3659. break;
  3660. // dataGM
  3661. case "dataGM":
  3662. _formdiv = new U.UF.UI.form(
  3663. "我的资料",
  3664. $$("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 }), {
  3665. "id": "dataGM",
  3666. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3667. "onresize": function() {}
  3668. }, {
  3669. closecallback: function() {}
  3670. }, { "style": { "height": "36px" } }).form; //创建窗体
  3671. _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); } }
  3672. break;
  3673. // caseGM
  3674. case "caseGM": //课程进展
  3675. _formdiv = new U.UF.UI.form(
  3676. "课程进展",
  3677. $$("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 }), {
  3678. "id": "caseGM",
  3679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3680. "onresize": function() {}
  3681. }, {
  3682. closecallback: function() {}
  3683. }, { "style": { "height": "36px" } }).form; //创建窗体
  3684. _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); } }
  3685. break;
  3686. // meterialGM
  3687. case "meterialGM": //素材库
  3688. _formdiv = new U.UF.UI.form(
  3689. "素材库",
  3690. $$("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 }), {
  3691. "id": "meterialGM",
  3692. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3693. "onresize": function() {}
  3694. }, {
  3695. closecallback: function() {}
  3696. }, { "style": { "height": "36px" } }).form; //创建窗体
  3697. _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); } }
  3698. break;
  3699. // evaluateSGM
  3700. case "evaluateSGM": //我的评价
  3701. _formdiv = new U.UF.UI.form(
  3702. "我的评价",
  3703. $$("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 }), {
  3704. "id": "evaluateSGM",
  3705. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3706. "onresize": function() {}
  3707. }, {
  3708. closecallback: function() {}
  3709. }, { "style": { "height": "36px" } }).form; //创建窗体
  3710. _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); } }
  3711. break;
  3712. case "jupyter": //jupyter
  3713. _formdiv = new U.UF.UI.form(
  3714. "jupyter",
  3715. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3716. "id": "jupyter",
  3717. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3718. "onresize": function() {}
  3719. }, {
  3720. closecallback: function() {}
  3721. }, { "style": { "height": "36px" } }).form; //创建窗体
  3722. _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); } }
  3723. break;
  3724. case "number": //数字实验室
  3725. _formdiv = new U.UF.UI.form(
  3726. "数字实验室",
  3727. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3728. "id": "number",
  3729. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3730. "onresize": function() {}
  3731. }, {
  3732. closecallback: function() {}
  3733. }, { "style": { "height": "36px" } }).form; //创建窗体
  3734. _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); } }
  3735. break;
  3736. case "studentCourse": //项目管理 学生
  3737. _formdiv = new U.UF.UI.form(
  3738. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3739. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3740. "id": "studentCourse",
  3741. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3742. "onresize": function() {}
  3743. }, {
  3744. closecallback: function() {}
  3745. }, { "style": { "height": "36px" } }).form; //创建窗体
  3746. _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); } }
  3747. break;
  3748. case "studentCourseS": //项目管理 老师
  3749. _formdiv = new U.UF.UI.form(
  3750. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3751. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3752. "id": "studentCourseS",
  3753. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3754. "onresize": function() {}
  3755. }, {
  3756. closecallback: function() {}
  3757. }, { "style": { "height": "36px" } }).form; //创建窗体
  3758. _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); } }
  3759. break;
  3760. case "studentIndex": //项目中心
  3761. _formdiv = new U.UF.UI.form(
  3762. "项目中心",
  3763. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "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 }), {
  3764. "id": "studentIndex",
  3765. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3766. "onresize": function() {}
  3767. }, {
  3768. closecallback: function() {}
  3769. }, { "style": { "height": "36px" } }).form; //创建窗体
  3770. _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); } }
  3771. break;
  3772. case "CaseDesignS":
  3773. _formdiv = new U.UF.UI.form(
  3774. "项目进展",
  3775. $$("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 }), {
  3776. "id": "case",
  3777. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3778. "onresize": function() {}
  3779. }, {
  3780. closecallback: function() {}
  3781. }, { "style": { "height": "36px" } }).form; //创建窗体
  3782. _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); } }
  3783. break;
  3784. case "tcStudent": //腾讯学生管理
  3785. _formdiv = new U.UF.UI.form(
  3786. "学生管理",
  3787. $$("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 }), {
  3788. "id": "tcStudent",
  3789. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3790. "onresize": function() {}
  3791. }, {
  3792. closecallback: function() {}
  3793. }, { "style": { "height": "36px" } }).form; //创建窗体
  3794. _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); } }
  3795. break;
  3796. case "tcSchool": //腾讯学校管理
  3797. _formdiv = new U.UF.UI.form(
  3798. "学校管理",
  3799. $$("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 }), {
  3800. "id": "tcSchool",
  3801. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3802. "onresize": function() {}
  3803. }, {
  3804. closecallback: function() {}
  3805. }, { "style": { "height": "36px" } }).form; //创建窗体
  3806. _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); } }
  3807. break;
  3808. case "tcTeacher": //腾讯学校管理
  3809. _formdiv = new U.UF.UI.form(
  3810. "教师管理",
  3811. $$("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 }), {
  3812. "id": "tcTeacher",
  3813. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3814. "onresize": function() {}
  3815. }, {
  3816. closecallback: function() {}
  3817. }, { "style": { "height": "36px" } }).form; //创建窗体
  3818. _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); } }
  3819. break;
  3820. case "tcData": //腾讯我的资料
  3821. _formdiv = new U.UF.UI.form(
  3822. "我的资料",
  3823. $$("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 }), {
  3824. "id": "tcData",
  3825. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3826. "onresize": function() {}
  3827. }, {
  3828. closecallback: function() {}
  3829. }, { "style": { "height": "36px" } }).form; //创建窗体
  3830. _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); } }
  3831. break;
  3832. case "tcNotice": //腾讯消息通知
  3833. _formdiv = new U.UF.UI.form(
  3834. "消息通知",
  3835. $$("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 }), {
  3836. "id": "tcNotice",
  3837. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3838. "onresize": function() {}
  3839. }, {
  3840. closecallback: function() {}
  3841. }, { "style": { "height": "36px" } }).form; //创建窗体
  3842. _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); } }
  3843. break;
  3844. case "myReport": //好友打开
  3845. _formdiv = new U.UF.UI.form(
  3846. "我的评价",
  3847. $$("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 }), {
  3848. "id": "myReport",
  3849. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3850. "onresize": function() {}
  3851. }, {
  3852. closecallback: function() {}
  3853. }, { "style": { "height": "36px" } }).form; //创建窗体
  3854. _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); } }
  3855. break;
  3856. case "learnAna": //好友打开
  3857. _formdiv = new U.UF.UI.form(
  3858. "学习分析",
  3859. $$("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 }), {
  3860. "id": "learnAna",
  3861. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3862. "onresize": function() {}
  3863. }, {
  3864. closecallback: function() {}
  3865. }, { "style": { "height": "36px" } }).form; //创建窗体
  3866. _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); } }
  3867. break;
  3868. case "AIChat": //AI共创
  3869. _formdiv = new U.UF.UI.form(
  3870. "AI共创",
  3871. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3872. "id": "AIChat",
  3873. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3874. "onresize": function() {}
  3875. }, {
  3876. istop: true,
  3877. closecallback: function() { $("#aichat_icon").remove(); },
  3878. narrowcallback: function() {
  3879. if (!$("#aichat_icon")[0]) {
  3880. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function() { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3881. }
  3882. },
  3883. }, { "style": { "height": "36px" } }).form; //创建窗体
  3884. _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); } }
  3885. break;
  3886. case "ainew": //AI共创
  3887. _formdiv = new U.UF.UI.form(
  3888. "AI协同",
  3889. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3890. "id": "ainew",
  3891. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3892. "onresize": function() {}
  3893. }, {
  3894. closecallback: function() {}
  3895. }, { "style": { "height": "36px" } }).form; //创建窗体
  3896. _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); } }
  3897. break;
  3898. case "AIAnalyse": //AI共创
  3899. _formdiv = new U.UF.UI.form(
  3900. "AI分析",
  3901. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3902. "id": "AIAnalyse",
  3903. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3904. "onresize": function() {}
  3905. }, {
  3906. closecallback: function() {}
  3907. }, { "style": { "height": "36px" } }).form; //创建窗体
  3908. _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); } }
  3909. break;
  3910. case "studioCourse": //AI共创
  3911. _formdiv = new U.UF.UI.form(
  3912. "工作管理",
  3913. $$("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 }), {
  3914. "id": "studioCourse",
  3915. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3916. "onresize": function() {}
  3917. }, {
  3918. closecallback: function() {}
  3919. }, { "style": { "height": "36px" } }).form; //创建窗体
  3920. _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); } }
  3921. break;
  3922. case "studioIndex": //AI共创
  3923. _formdiv = new U.UF.UI.form(
  3924. "工作中心",
  3925. $$("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 }), {
  3926. "id": "studioIndex",
  3927. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3928. "onresize": function() {}
  3929. }, {
  3930. closecallback: function() {}
  3931. }, { "style": { "height": "36px" } }).form; //创建窗体
  3932. _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); } }
  3933. break;
  3934. case "source":
  3935. _formdiv = new U.UF.UI.form(
  3936. "教学资源",
  3937. $$("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 }), {
  3938. "id": "source",
  3939. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3940. "onresize": function() {}
  3941. }, {
  3942. closecallback: function() {}
  3943. }, { "style": { "height": "36px" } }).form; //创建窗体
  3944. _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); } }
  3945. break;
  3946. }
  3947. //U.MD.D.I.openClick(str);
  3948. //如果有任务栏信息
  3949. if (_taskbar) {
  3950. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3951. }
  3952. }
  3953. // U.MD.D.I.openClick = function(str){
  3954. // var click = '';
  3955. // switch(str){
  3956. // case 'friend':
  3957. // click = '我的好友';
  3958. // break;
  3959. // case 'domain':
  3960. // click = '域名管理';
  3961. // break;
  3962. // case 'disk':
  3963. // click = '我的云盘';
  3964. // break;
  3965. // case 'word':
  3966. // click = 'Word';
  3967. // break;
  3968. // case 'excel':
  3969. // click = 'Execl';
  3970. // break;
  3971. // case 'txt':
  3972. // click = '文本文件';
  3973. // break;
  3974. // case 'lookupFriend':
  3975. // click = '查找好友';
  3976. // break;
  3977. // case 'ftp':
  3978. // click = 'FTP';
  3979. // break;
  3980. // case 'group':
  3981. // click = '群组';
  3982. // break;
  3983. // case 'set':
  3984. // click = '我的设置';
  3985. // break;
  3986. // case 'systemSet':
  3987. // click = '系统设置';
  3988. // break;
  3989. // case 'boomYun':
  3990. // click = '互联办公';
  3991. // break;
  3992. // case 'xz':
  3993. // click = '云端下载';
  3994. // break;
  3995. // case 'client':
  3996. // click = '有思浏览器';
  3997. // break;
  3998. // case 'backEndProgramming':
  3999. // click = '在线后台编程';
  4000. // break;
  4001. // case 'frontEndProgramming':
  4002. // click = '在线前端编程';
  4003. // break;
  4004. // default: break;
  4005. // }
  4006. // if(U.MD.D.I.Ip && click){
  4007. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4008. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4009. // })
  4010. // }
  4011. // }
  4012. /**
  4013. *函数作用:ajax简易函数,使用post格式
  4014. *@param url {data} 后台地址
  4015. *@param data {data} 参数json
  4016. *@param fn {data} 回调函数
  4017. *
  4018. */
  4019. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4020. // var xhr = new XMLHttpRequest();
  4021. // xhr.open("GET",url,true);
  4022. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4023. // xhr.onreadystatechange = function(){
  4024. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4025. // fn.call(this,xhr.responseText);
  4026. // }
  4027. // };
  4028. // xhr.send();
  4029. // }
  4030. /*判断是否是内网IP*/
  4031. // U.MD.D.I.isInnerIPFn = function(str){
  4032. // var curPageUrl = str;
  4033. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  4034. // curPageUrl =curPageUrl.replace(reg1,'');
  4035. // // console.log('curPageUrl-1 '+curPageUrl);
  4036. // var reg2 = /\:+/g;//替换冒号为一点
  4037. // curPageUrl =curPageUrl.replace(reg2,'.');
  4038. // // console.log('curPageUrl-2 '+curPageUrl);
  4039. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  4040. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4041. // if(curPageUrl[2] != '16'){
  4042. // return ipAddress;
  4043. // }else{
  4044. // return false;
  4045. // }
  4046. // }
  4047. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4048. // //compatibility for firefox and chrome
  4049. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4050. // var pc = new myPeerConnection({
  4051. // iceServers: []
  4052. // }),
  4053. // noop = function() {},
  4054. // localIPs = {},
  4055. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4056. // key;
  4057. // function iterateIP(ip) {
  4058. // if (!localIPs[ip]) onNewIP(ip);
  4059. // localIPs[ip] = true;
  4060. // }
  4061. // //create a bogus data channel
  4062. // pc.createDataChannel("");
  4063. // // create offer and set local description
  4064. // pc.createOffer().then(function(sdp) {
  4065. // sdp.sdp.split('\n').forEach(function(line) {
  4066. // if (line.indexOf('candidate') < 0) return;
  4067. // line.match(ipRegex).forEach(iterateIP);
  4068. // });
  4069. // pc.setLocalDescription(sdp, noop, noop);
  4070. // }).catch(function(reason) {
  4071. // // An error occurred, so handle the failure to connect
  4072. // });
  4073. // //sten for candidate events
  4074. // pc.onicecandidate = function(ice) {
  4075. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4076. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4077. // };
  4078. // }
  4079. // U.MD.D.I.getUserIpBool = function(callback){
  4080. // U.MD.D.I.getUserIP(function(ip){
  4081. // alert("Got IP! :" + ip);
  4082. // });
  4083. //}
  4084. //#endregion
  4085. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  4086. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4087. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4088. _userinfo = US.userInfo, //登录用户信息
  4089. _userid = US.userInfo.userid //登录用户id
  4090. let _iframe;
  4091. let _cid = cid,
  4092. _stage = stage,
  4093. _task = task,
  4094. _tool = tool;
  4095. var _jie = $$("div", {
  4096. "style": {
  4097. "position": "absolute",
  4098. "bottom": "50px",
  4099. "right": "50px",
  4100. "zIndex": "9999",
  4101. "backgroundColor": "#2268bc",
  4102. "color": "#fff",
  4103. "padding": "12px 20px",
  4104. "cursor": "pointer",
  4105. "borderRadius": "4px",
  4106. },
  4107. "innerHTML": "提交作业"
  4108. })
  4109. let aTool = ''
  4110. let _loading = document.createElement('div')
  4111. _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;"
  4112. // _loading.id = "";
  4113. let _lchild = document.createElement('div')
  4114. let _limg = document.createElement('img')
  4115. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4116. _limg.style = "width: 26px;margin-right: 10px;"
  4117. _lchild.appendChild(_limg)
  4118. let _lspan = document.createElement('span')
  4119. _lspan.innerHTML = "上传中..."
  4120. _lchild.appendChild(_lspan)
  4121. _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%);"
  4122. _loading.appendChild(_lchild)
  4123. var _box = $$('div', {
  4124. "style": {
  4125. "position": "relative",
  4126. "width": "100%",
  4127. "height": "100%",
  4128. },
  4129. })
  4130. _box.appendChild(_loading)
  4131. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4132. switch (str) {
  4133. case "whiteboard":
  4134. aTool = 1;
  4135. _iframe = $$("iframe", {
  4136. "frameborder": "no",
  4137. "border": "0",
  4138. "scrolling ": "no",
  4139. "style": {
  4140. "cssText": "border:0;width:100%;height:100%"
  4141. },
  4142. "src": "https://iwb.cocorobo.cn/"
  4143. })
  4144. _box.appendChild(_iframe);
  4145. _box.appendChild(_jie);
  4146. _formdiv = new U.UF.UI.form(
  4147. "电子白板",
  4148. _box, {
  4149. "id": "whiteboard" + cid + stage + task + tool,
  4150. "style": {
  4151. "width": "90%",
  4152. "height": "90%",
  4153. "overflow": 'hidden'
  4154. },
  4155. "onresize": function() {}
  4156. }, {
  4157. closecallback: function() {}
  4158. }, {
  4159. "style": {
  4160. "height": "36px"
  4161. }
  4162. }).form; //创建窗体
  4163. _taskbar = {
  4164. "id": str + _formdiv.id,
  4165. "style": {
  4166. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4167. },
  4168. "name": "电子白板",
  4169. "forms": _formdiv,
  4170. "click": function() {
  4171. U.MD.D.I.openApplication(str, obj, info);
  4172. }
  4173. }
  4174. break;
  4175. case "mind":
  4176. aTool = 3;
  4177. _iframe = $$("iframe", {
  4178. "frameborder": "no",
  4179. "border": "0",
  4180. "scrolling ": "no",
  4181. "style": {
  4182. "cssText": "border:0;width:100%;height:100%"
  4183. },
  4184. "src": "/kityminder-editor/dist/index.html"
  4185. })
  4186. _box.appendChild(_iframe);
  4187. _box.appendChild(_jie);
  4188. _formdiv = new U.UF.UI.form(
  4189. "思维导图",
  4190. _box, { //"/jsmind/example/demo.html"
  4191. "id": "mind" + cid + stage + task + tool,
  4192. "style": {
  4193. "width": "90%",
  4194. "height": "90%",
  4195. "overflow": 'hidden'
  4196. },
  4197. "onresize": function() {}
  4198. }, {
  4199. closecallback: function() {}
  4200. }, {
  4201. "style": {
  4202. "height": "36px"
  4203. }
  4204. }).form; //创建窗体
  4205. _taskbar = {
  4206. "id": str + _formdiv.id,
  4207. "style": {
  4208. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4209. },
  4210. "name": "思维导图",
  4211. "forms": _formdiv,
  4212. "click": function() {
  4213. U.MD.D.I.openApplication(str, obj, info);
  4214. }
  4215. }
  4216. break;
  4217. case "MindMap":
  4218. aTool = 3;
  4219. _iframe = $$("iframe", {
  4220. "frameborder": "no",
  4221. "border": "0",
  4222. "scrolling ": "no",
  4223. "style": {
  4224. "cssText": "border:0;width:100%;height:100%"
  4225. },
  4226. "src": "//cloud.cocorobo.cn/mind/"
  4227. })
  4228. _box.appendChild(_iframe);
  4229. _box.appendChild(_jie);
  4230. _formdiv = new U.UF.UI.form(
  4231. "思维导图",
  4232. _box, { //"/jsmind/example/demo.html"
  4233. "id": "mind" + cid + stage + task + tool,
  4234. "style": {
  4235. "width": "90%",
  4236. "height": "90%",
  4237. "overflow": 'hidden'
  4238. },
  4239. "onresize": function() {}
  4240. }, {
  4241. closecallback: function() {}
  4242. }, {
  4243. "style": {
  4244. "height": "36px"
  4245. }
  4246. }).form; //创建窗体
  4247. _taskbar = {
  4248. "id": str + _formdiv.id,
  4249. "style": {
  4250. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4251. },
  4252. "name": "思维导图",
  4253. "forms": _formdiv,
  4254. "click": function() {
  4255. U.MD.D.I.openApplication(str, obj, info);
  4256. }
  4257. }
  4258. break;
  4259. case "doc":
  4260. aTool = 6;
  4261. _iframe = $$("iframe", {
  4262. "frameborder": "no",
  4263. "border": "0",
  4264. "scrolling ": "no",
  4265. "style": {
  4266. "cssText": "border:0;width:100%;height:100%"
  4267. },
  4268. "src": "/Office/Word/WordEditArea.htm"
  4269. })
  4270. _box.appendChild(_iframe);
  4271. _box.appendChild(_jie);
  4272. _formdiv = new U.UF.UI.form(
  4273. "协同文档",
  4274. _box, {
  4275. "id": "doc" + cid + stage + task + tool,
  4276. "style": {
  4277. "width": "90%",
  4278. "height": "90%",
  4279. "overflow": 'hidden'
  4280. },
  4281. "onresize": function() {}
  4282. }, {
  4283. closecallback: function() {}
  4284. }, {
  4285. "style": {
  4286. "height": "36px"
  4287. }
  4288. }).form; //创建窗体
  4289. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4290. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4291. })
  4292. _taskbar = {
  4293. "id": str + _formdiv.id,
  4294. "style": {
  4295. "backgroundImage": "url(/img/icon/doc.png)"
  4296. },
  4297. "name": "协同文档",
  4298. "forms": _formdiv,
  4299. "click": function() {
  4300. U.MD.D.I.openApplication(str, obj, info);
  4301. }
  4302. }
  4303. break;
  4304. case "mindNetwork": //好友打开
  4305. aTool = 7;
  4306. _iframe = $$("iframe", {
  4307. "webkitallowfullscreen": "",
  4308. "mozallowfullscreen": "",
  4309. "allowfullscreen": "",
  4310. "frameborder": "no",
  4311. "border": "0",
  4312. "scrolling ": "no",
  4313. "style": {
  4314. "cssText": "border:0; width:100%; height:100%;"
  4315. },
  4316. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4317. })
  4318. _box.appendChild(_iframe);
  4319. _box.appendChild(_jie);
  4320. _formdiv = new U.UF.UI.form(
  4321. "思维网格",
  4322. _box, {
  4323. "id": "mindNetwork" + cid + stage + task + tool,
  4324. "style": {
  4325. "width": "90%",
  4326. "height": "90%",
  4327. "overflow": 'hidden'
  4328. },
  4329. "onresize": function() {}
  4330. }, {
  4331. closecallback: function() {}
  4332. }, {
  4333. "style": {
  4334. "height": "36px"
  4335. }
  4336. }).form; //创建窗体
  4337. _taskbar = {
  4338. "id": str + _formdiv.id,
  4339. "style": {
  4340. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4341. },
  4342. "name": "思维网格",
  4343. "forms": _formdiv,
  4344. "click": function() {
  4345. U.MD.D.I.openApplication(str, obj, info);
  4346. }
  4347. }
  4348. break;
  4349. case "courseDesign":
  4350. _iframe = $$("iframe", {
  4351. "webkitallowfullscreen": "",
  4352. "mozallowfullscreen": "",
  4353. "allowfullscreen": "",
  4354. "frameborder": "no",
  4355. "border": "0",
  4356. "scrolling ": "no",
  4357. "style": {
  4358. "cssText": "border:0; width:100%; height:100%;"
  4359. },
  4360. "src": "/course-design-vue"
  4361. })
  4362. _box.appendChild(_iframe);
  4363. _box.appendChild(_jie);
  4364. _formdiv = new U.UF.UI.form(
  4365. "项目设计",
  4366. _box, {
  4367. "id": "courseDesign" + cid + stage + task + tool,
  4368. "style": {
  4369. "width": "90%",
  4370. "height": "90%",
  4371. "overflow": 'hidden'
  4372. },
  4373. "onresize": function() {}
  4374. }, {
  4375. closecallback: function() {}
  4376. }, {
  4377. "style": {
  4378. "height": "36px"
  4379. }
  4380. }).form; //创建窗体
  4381. _taskbar = {
  4382. "id": str + _formdiv.id,
  4383. "style": {
  4384. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4385. },
  4386. "name": "项目设计",
  4387. "forms": _formdiv,
  4388. "click": function() {
  4389. U.MD.D.I.openApplication(str, obj, info);
  4390. }
  4391. }
  4392. break;
  4393. }
  4394. const script1 = document.createElement("script");
  4395. script1.type = "text/javascript";
  4396. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4397. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4398. const script2 = document.createElement("script");
  4399. script2.type = "text/javascript";
  4400. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4401. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4402. const script3 = document.createElement("script");
  4403. script3.type = "text/javascript";
  4404. script3.charset = "UTF-8";
  4405. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4406. const script4 = document.createElement("script");
  4407. script4.type = "text/javascript";
  4408. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4409. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4410. if (_iframe) {
  4411. if (str == 'doc') {
  4412. _iframe = _formdiv.querySelector('iframe')
  4413. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4414. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4415. _iframe.contentWindow.document.body.appendChild(script1);
  4416. _iframe.contentWindow.document.body.appendChild(script2);
  4417. // _iframe.contentWindow.document.body.appendChild(script3);
  4418. _iframe.contentWindow.document.body.appendChild(script4);
  4419. })
  4420. if (onloadListener) {
  4421. _iframe.contentDocument.location.reload()
  4422. } else {
  4423. _iframe.contentDocument.location.reload()
  4424. }
  4425. } else if (str == 'courseDesign') {
  4426. U.UF.DL.iframeLoad(_iframe, function() {
  4427. // _iframe.contentWindow.U.MD.O.W.load();
  4428. // _iframe.contentWindow.document.body.appendChild(script1);
  4429. _iframe.contentWindow.document.body.appendChild(script2);
  4430. _iframe.contentWindow.document.body.appendChild(script4);
  4431. })
  4432. } else if (str == 'mind') {
  4433. _iframe = _formdiv.querySelector('iframe')
  4434. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4435. //
  4436. _iframe.contentWindow.document.body.appendChild(script1);
  4437. _iframe.contentWindow.document.body.appendChild(script2);
  4438. _iframe.contentWindow.document.body.appendChild(script4);
  4439. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4440. })
  4441. if (onloadListener) {
  4442. _iframe.contentDocument.location.reload()
  4443. } else {
  4444. _iframe.contentDocument.location.reload()
  4445. }
  4446. } else if (str == 'whiteboard') {
  4447. _iframe = _formdiv.querySelector('iframe')
  4448. let onloadListener = _iframe.onload = () => {
  4449. _iframe.contentWindow.document.body.appendChild(script1);
  4450. _iframe.contentWindow.document.body.appendChild(script2);
  4451. _iframe.contentWindow.document.body.appendChild(script4);
  4452. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4453. };
  4454. if (onloadListener) {
  4455. _iframe.contentDocument.location.reload()
  4456. } else {
  4457. _iframe.contentDocument.location.reload()
  4458. }
  4459. } else {
  4460. _iframe.onload = () => {
  4461. _iframe.contentWindow.document.body.appendChild(script1);
  4462. _iframe.contentWindow.document.body.appendChild(script2);
  4463. // _iframe.contentWindow.document.body.appendChild(script3);
  4464. _iframe.contentWindow.document.body.appendChild(script4);
  4465. };
  4466. }
  4467. _jie.onclick = async() => {
  4468. let text = ''
  4469. if (aTool == 1) {
  4470. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4471. } else if (aTool == 6) {
  4472. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4473. } else if (aTool == 3) {
  4474. text = await U.MD.D.I.getEditorContent(_iframe);
  4475. }
  4476. _loading.style.display = 'flex'
  4477. console.log(_loading);
  4478. var _ajs = _iframe.contentWindow.document.createElement("script");
  4479. _ajs.type = "text/javascript";
  4480. _ajs.innerHTML =
  4481. // 'console.log(' + _loading + ');\n' +
  4482. 'var _js = document.createElement("script");\n' +
  4483. '_js.type="text/javascript";\n' +
  4484. '_js.charset="UTF-8";\n' +
  4485. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4486. "_js.onload = function(){\n" +
  4487. ' var a = document.getElementsByTagName("img")\n' +
  4488. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4489. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4490. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4491. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4492. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4493. "beforeUpload_shishi(file," +
  4494. "'" +
  4495. _userid +
  4496. "'" +
  4497. ", " +
  4498. "'" +
  4499. _cid +
  4500. "'" +
  4501. ", " +
  4502. "'" +
  4503. _stage +
  4504. "'" +
  4505. ", " +
  4506. "'" +
  4507. _task +
  4508. "'" +
  4509. ", " +
  4510. "'" +
  4511. _tool +
  4512. "'" +
  4513. ", " +
  4514. "'" +
  4515. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4516. "'" +
  4517. ", " +
  4518. "'" +
  4519. aTool +
  4520. "'" +
  4521. ", " +
  4522. "`" +
  4523. text +
  4524. "`" +
  4525. ")\n" +
  4526. " });\n" +
  4527. "}\n" +
  4528. "document.head.appendChild(_js);\n";
  4529. _iframe.contentWindow.document.head.appendChild(_ajs);
  4530. }
  4531. }
  4532. //U.MD.D.I.openClick(str);
  4533. //如果有任务栏信息
  4534. // if (_taskbar) {
  4535. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4536. // }
  4537. }
  4538. U.MD.D.I.openApplicationJieE = function(str, cid, stage, task, tool) {
  4539. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4540. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4541. _userinfo = US.userInfo, //登录用户信息
  4542. _userid = US.userInfo.userid //登录用户id
  4543. let _iframe;
  4544. let _cid = cid,
  4545. _stage = stage,
  4546. _task = task,
  4547. _tool = tool;
  4548. var _jie = $$("div", {
  4549. "style": {
  4550. "position": "absolute",
  4551. "bottom": "50px",
  4552. "right": "50px",
  4553. "zIndex": "9999",
  4554. "backgroundColor": "#2268bc",
  4555. "color": "#fff",
  4556. "padding": "12px 20px",
  4557. "cursor": "pointer",
  4558. "borderRadius": "4px",
  4559. },
  4560. "innerHTML": "提交作业"
  4561. })
  4562. let aTool = ''
  4563. let _loading = document.createElement('div')
  4564. _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;"
  4565. // _loading.id = "";
  4566. let _lchild = document.createElement('div')
  4567. let _limg = document.createElement('img')
  4568. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4569. _limg.style = "width: 26px;margin-right: 10px;"
  4570. _lchild.appendChild(_limg)
  4571. let _lspan = document.createElement('span')
  4572. _lspan.innerHTML = "上传中..."
  4573. _lchild.appendChild(_lspan)
  4574. _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%);"
  4575. _loading.appendChild(_lchild)
  4576. var _box = $$('div', {
  4577. "style": {
  4578. "position": "relative",
  4579. "width": "100%",
  4580. "height": "100%",
  4581. },
  4582. })
  4583. _box.appendChild(_loading)
  4584. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4585. switch (str) {
  4586. case "whiteboard":
  4587. aTool = 1;
  4588. _iframe = $$("iframe", {
  4589. "frameborder": "no",
  4590. "border": "0",
  4591. "scrolling ": "no",
  4592. "style": {
  4593. "cssText": "border:0;width:100%;height:100%"
  4594. },
  4595. "src": "https://iwb.cocorobo.cn/"
  4596. })
  4597. _box.appendChild(_iframe);
  4598. _box.appendChild(_jie);
  4599. _formdiv = new U.UF.UI.form(
  4600. "电子白板",
  4601. _box, {
  4602. "id": "whiteboard" + cid + stage + task + tool,
  4603. "style": {
  4604. "width": "90%",
  4605. "height": "90%",
  4606. "overflow": 'hidden'
  4607. },
  4608. "onresize": function() {}
  4609. }, {
  4610. closecallback: function() {}
  4611. }, {
  4612. "style": {
  4613. "height": "36px"
  4614. }
  4615. }).form; //创建窗体
  4616. _taskbar = {
  4617. "id": str + _formdiv.id,
  4618. "style": {
  4619. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4620. },
  4621. "name": "电子白板",
  4622. "forms": _formdiv,
  4623. "click": function() {
  4624. U.MD.D.I.openApplication(str, obj, info);
  4625. }
  4626. }
  4627. break;
  4628. case "mind":
  4629. aTool = 3;
  4630. _iframe = $$("iframe", {
  4631. "frameborder": "no",
  4632. "border": "0",
  4633. "scrolling ": "no",
  4634. "style": {
  4635. "cssText": "border:0;width:100%;height:100%"
  4636. },
  4637. "src": "/kityminder-editor/dist/index.html"
  4638. })
  4639. _box.appendChild(_iframe);
  4640. _box.appendChild(_jie);
  4641. _formdiv = new U.UF.UI.form(
  4642. "思维导图",
  4643. _box, { //"/jsmind/example/demo.html"
  4644. "id": "mind" + cid + stage + task + tool,
  4645. "style": {
  4646. "width": "90%",
  4647. "height": "90%",
  4648. "overflow": 'hidden'
  4649. },
  4650. "onresize": function() {}
  4651. }, {
  4652. closecallback: function() {}
  4653. }, {
  4654. "style": {
  4655. "height": "36px"
  4656. }
  4657. }).form; //创建窗体
  4658. _taskbar = {
  4659. "id": str + _formdiv.id,
  4660. "style": {
  4661. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4662. },
  4663. "name": "思维导图",
  4664. "forms": _formdiv,
  4665. "click": function() {
  4666. U.MD.D.I.openApplication(str, obj, info);
  4667. }
  4668. }
  4669. break;
  4670. case "MindMap":
  4671. aTool = 3;
  4672. _iframe = $$("iframe", {
  4673. "frameborder": "no",
  4674. "border": "0",
  4675. "scrolling ": "no",
  4676. "style": {
  4677. "cssText": "border:0;width:100%;height:100%"
  4678. },
  4679. "src": "//cloud.cocorobo.cn/mind/"
  4680. })
  4681. _box.appendChild(_iframe);
  4682. _box.appendChild(_jie);
  4683. _formdiv = new U.UF.UI.form(
  4684. "思维导图",
  4685. _box, { //"/jsmind/example/demo.html"
  4686. "id": "mind" + cid + stage + task + tool,
  4687. "style": {
  4688. "width": "90%",
  4689. "height": "90%",
  4690. "overflow": 'hidden'
  4691. },
  4692. "onresize": function() {}
  4693. }, {
  4694. closecallback: function() {}
  4695. }, {
  4696. "style": {
  4697. "height": "36px"
  4698. }
  4699. }).form; //创建窗体
  4700. _taskbar = {
  4701. "id": str + _formdiv.id,
  4702. "style": {
  4703. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4704. },
  4705. "name": "思维导图",
  4706. "forms": _formdiv,
  4707. "click": function() {
  4708. U.MD.D.I.openApplication(str, obj, info);
  4709. }
  4710. }
  4711. break;
  4712. case "doc":
  4713. aTool = 6;
  4714. _iframe = $$("iframe", {
  4715. "frameborder": "no",
  4716. "border": "0",
  4717. "scrolling ": "no",
  4718. "style": {
  4719. "cssText": "border:0;width:100%;height:100%"
  4720. },
  4721. "src": "/Office/Word/WordEditArea.htm"
  4722. })
  4723. _box.appendChild(_iframe);
  4724. _box.appendChild(_jie);
  4725. _formdiv = new U.UF.UI.form(
  4726. "协同文档",
  4727. _box, {
  4728. "id": "doc" + cid + stage + task + tool,
  4729. "style": {
  4730. "width": "90%",
  4731. "height": "90%",
  4732. "overflow": 'hidden'
  4733. },
  4734. "onresize": function() {}
  4735. }, {
  4736. closecallback: function() {}
  4737. }, {
  4738. "style": {
  4739. "height": "36px"
  4740. }
  4741. }).form; //创建窗体
  4742. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4743. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4744. })
  4745. _taskbar = {
  4746. "id": str + _formdiv.id,
  4747. "style": {
  4748. "backgroundImage": "url(/img/icon/doc.png)"
  4749. },
  4750. "name": "协同文档",
  4751. "forms": _formdiv,
  4752. "click": function() {
  4753. U.MD.D.I.openApplication(str, obj, info);
  4754. }
  4755. }
  4756. break;
  4757. case "mindNetwork": //好友打开
  4758. aTool = 7;
  4759. _iframe = $$("iframe", {
  4760. "webkitallowfullscreen": "",
  4761. "mozallowfullscreen": "",
  4762. "allowfullscreen": "",
  4763. "frameborder": "no",
  4764. "border": "0",
  4765. "scrolling ": "no",
  4766. "style": {
  4767. "cssText": "border:0; width:100%; height:100%;"
  4768. },
  4769. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4770. })
  4771. _box.appendChild(_iframe);
  4772. _box.appendChild(_jie);
  4773. _formdiv = new U.UF.UI.form(
  4774. "思维网格",
  4775. _box, {
  4776. "id": "mindNetwork" + cid + stage + task + tool,
  4777. "style": {
  4778. "width": "90%",
  4779. "height": "90%",
  4780. "overflow": 'hidden'
  4781. },
  4782. "onresize": function() {}
  4783. }, {
  4784. closecallback: function() {}
  4785. }, {
  4786. "style": {
  4787. "height": "36px"
  4788. }
  4789. }).form; //创建窗体
  4790. _taskbar = {
  4791. "id": str + _formdiv.id,
  4792. "style": {
  4793. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4794. },
  4795. "name": "思维网格",
  4796. "forms": _formdiv,
  4797. "click": function() {
  4798. U.MD.D.I.openApplication(str, obj, info);
  4799. }
  4800. }
  4801. break;
  4802. case "courseDesign":
  4803. _iframe = $$("iframe", {
  4804. "webkitallowfullscreen": "",
  4805. "mozallowfullscreen": "",
  4806. "allowfullscreen": "",
  4807. "frameborder": "no",
  4808. "border": "0",
  4809. "scrolling ": "no",
  4810. "style": {
  4811. "cssText": "border:0; width:100%; height:100%;"
  4812. },
  4813. "src": "/course-design-vue"
  4814. })
  4815. _box.appendChild(_iframe);
  4816. _box.appendChild(_jie);
  4817. _formdiv = new U.UF.UI.form(
  4818. "项目设计",
  4819. _box, {
  4820. "id": "courseDesign" + cid + stage + task + tool,
  4821. "style": {
  4822. "width": "90%",
  4823. "height": "90%",
  4824. "overflow": 'hidden'
  4825. },
  4826. "onresize": function() {}
  4827. }, {
  4828. closecallback: function() {}
  4829. }, {
  4830. "style": {
  4831. "height": "36px"
  4832. }
  4833. }).form; //创建窗体
  4834. _taskbar = {
  4835. "id": str + _formdiv.id,
  4836. "style": {
  4837. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4838. },
  4839. "name": "项目设计",
  4840. "forms": _formdiv,
  4841. "click": function() {
  4842. U.MD.D.I.openApplication(str, obj, info);
  4843. }
  4844. }
  4845. break;
  4846. }
  4847. const script1 = document.createElement("script");
  4848. script1.type = "text/javascript";
  4849. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4850. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4851. const script2 = document.createElement("script");
  4852. script2.type = "text/javascript";
  4853. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4854. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4855. const script3 = document.createElement("script");
  4856. script3.type = "text/javascript";
  4857. script3.charset = "UTF-8";
  4858. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4859. const script4 = document.createElement("script");
  4860. script4.type = "text/javascript";
  4861. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4862. script4.src = window.origin + "/js/Common/jietu2E.js";
  4863. if (_iframe) {
  4864. if (str == 'doc') {
  4865. _iframe = _formdiv.querySelector('iframe')
  4866. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4867. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4868. _iframe.contentWindow.document.body.appendChild(script1);
  4869. _iframe.contentWindow.document.body.appendChild(script2);
  4870. // _iframe.contentWindow.document.body.appendChild(script3);
  4871. _iframe.contentWindow.document.body.appendChild(script4);
  4872. })
  4873. if (onloadListener) {
  4874. _iframe.contentDocument.location.reload()
  4875. } else {
  4876. _iframe.contentDocument.location.reload()
  4877. }
  4878. } else if (str == 'courseDesign') {
  4879. U.UF.DL.iframeLoad(_iframe, function() {
  4880. // _iframe.contentWindow.U.MD.O.W.load();
  4881. // _iframe.contentWindow.document.body.appendChild(script1);
  4882. _iframe.contentWindow.document.body.appendChild(script2);
  4883. _iframe.contentWindow.document.body.appendChild(script4);
  4884. })
  4885. } else if (str == 'mind') {
  4886. _iframe = _formdiv.querySelector('iframe')
  4887. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4888. //
  4889. _iframe.contentWindow.document.body.appendChild(script1);
  4890. _iframe.contentWindow.document.body.appendChild(script2);
  4891. _iframe.contentWindow.document.body.appendChild(script4);
  4892. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4893. })
  4894. if (onloadListener) {
  4895. _iframe.contentDocument.location.reload()
  4896. } else {
  4897. _iframe.contentDocument.location.reload()
  4898. }
  4899. } else if (str == 'whiteboard') {
  4900. _iframe = _formdiv.querySelector('iframe')
  4901. let onloadListener = _iframe.onload = () => {
  4902. _iframe.contentWindow.document.body.appendChild(script1);
  4903. _iframe.contentWindow.document.body.appendChild(script2);
  4904. _iframe.contentWindow.document.body.appendChild(script4);
  4905. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4906. };
  4907. if (onloadListener) {
  4908. _iframe.contentDocument.location.reload()
  4909. } else {
  4910. _iframe.contentDocument.location.reload()
  4911. }
  4912. } else {
  4913. _iframe.onload = () => {
  4914. _iframe.contentWindow.document.body.appendChild(script1);
  4915. _iframe.contentWindow.document.body.appendChild(script2);
  4916. // _iframe.contentWindow.document.body.appendChild(script3);
  4917. _iframe.contentWindow.document.body.appendChild(script4);
  4918. };
  4919. }
  4920. _jie.onclick = async() => {
  4921. let text = ''
  4922. if (aTool == 1) {
  4923. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4924. } else if (aTool == 6) {
  4925. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4926. } else if (aTool == 3) {
  4927. text = await U.MD.D.I.getEditorContent(_iframe);
  4928. }
  4929. _loading.style.display = 'flex'
  4930. console.log(_loading);
  4931. var _ajs = _iframe.contentWindow.document.createElement("script");
  4932. _ajs.type = "text/javascript";
  4933. _ajs.innerHTML =
  4934. // 'console.log(' + _loading + ');\n' +
  4935. 'var _js = document.createElement("script");\n' +
  4936. '_js.type="text/javascript";\n' +
  4937. '_js.charset="UTF-8";\n' +
  4938. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4939. "_js.onload = function(){\n" +
  4940. ' var a = document.getElementsByTagName("img")\n' +
  4941. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4942. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4943. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4944. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4945. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4946. "beforeUpload_shishi(file," +
  4947. "'" +
  4948. _userid +
  4949. "'" +
  4950. ", " +
  4951. "'" +
  4952. _cid +
  4953. "'" +
  4954. ", " +
  4955. "'" +
  4956. _stage +
  4957. "'" +
  4958. ", " +
  4959. "'" +
  4960. _task +
  4961. "'" +
  4962. ", " +
  4963. "'" +
  4964. _tool +
  4965. "'" +
  4966. ", " +
  4967. "'" +
  4968. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  4969. "'" +
  4970. ", " +
  4971. "'" +
  4972. aTool +
  4973. "'" +
  4974. ", " +
  4975. "`" +
  4976. text +
  4977. "`" +
  4978. ")\n" +
  4979. " });\n" +
  4980. "}\n" +
  4981. "document.head.appendChild(_js);\n";
  4982. _iframe.contentWindow.document.head.appendChild(_ajs);
  4983. }
  4984. }
  4985. //U.MD.D.I.openClick(str);
  4986. //如果有任务栏信息
  4987. // if (_taskbar) {
  4988. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4989. // }
  4990. }
  4991. U.MD.D.I.openApplicationJieTeacher = function(str, cid, stage, task, tool, student) {
  4992. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4993. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4994. _userid = student.userid, //登录用户id
  4995. _username = student.student //用户名字
  4996. let _iframe;
  4997. let _cid = cid,
  4998. _stage = stage,
  4999. _task = task,
  5000. _tool = tool;
  5001. var _jie = $$("div", {
  5002. "style": {
  5003. "position": "absolute",
  5004. "bottom": "50px",
  5005. "right": "50px",
  5006. "zIndex": "9999",
  5007. "backgroundColor": "#2268bc",
  5008. "color": "#fff",
  5009. "padding": "12px 20px",
  5010. "cursor": "pointer",
  5011. "borderRadius": "4px",
  5012. },
  5013. "innerHTML": "提交作业"
  5014. })
  5015. let aTool = ''
  5016. let _loading = document.createElement('div')
  5017. _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;"
  5018. // _loading.id = "";
  5019. let _lchild = document.createElement('div')
  5020. let _limg = document.createElement('img')
  5021. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5022. _limg.style = "width: 26px;margin-right: 10px;"
  5023. _lchild.appendChild(_limg)
  5024. let _lspan = document.createElement('span')
  5025. _lspan.innerHTML = "上传中..."
  5026. _lchild.appendChild(_lspan)
  5027. _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%);"
  5028. _loading.appendChild(_lchild)
  5029. var _box = $$('div', {
  5030. "style": {
  5031. "position": "relative",
  5032. "width": "100%",
  5033. "height": "100%",
  5034. },
  5035. })
  5036. _box.appendChild(_loading)
  5037. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5038. switch (str) {
  5039. case "whiteboard":
  5040. aTool = 1;
  5041. _iframe = $$("iframe", {
  5042. "frameborder": "no",
  5043. "border": "0",
  5044. "scrolling ": "no",
  5045. "style": {
  5046. "cssText": "border:0;width:100%;height:100%"
  5047. },
  5048. "src": "https://iwb.cocorobo.cn/"
  5049. })
  5050. _box.appendChild(_iframe);
  5051. _box.appendChild(_jie);
  5052. _formdiv = new U.UF.UI.form(
  5053. "电子白板-" + _username,
  5054. _box, {
  5055. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5056. "style": {
  5057. "width": "90%",
  5058. "height": "90%",
  5059. "overflow": 'hidden'
  5060. },
  5061. "onresize": function() {}
  5062. }, {
  5063. closecallback: function() {}
  5064. }, {
  5065. "style": {
  5066. "height": "36px"
  5067. }
  5068. }).form; //创建窗体
  5069. _taskbar = {
  5070. "id": str + _formdiv.id,
  5071. "style": {
  5072. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5073. },
  5074. "name": "电子白板",
  5075. "forms": _formdiv,
  5076. "click": function() {
  5077. U.MD.D.I.openApplication(str, obj, info);
  5078. }
  5079. }
  5080. break;
  5081. case "mind":
  5082. aTool = 3;
  5083. _iframe = $$("iframe", {
  5084. "frameborder": "no",
  5085. "border": "0",
  5086. "scrolling ": "no",
  5087. "style": {
  5088. "cssText": "border:0;width:100%;height:100%"
  5089. },
  5090. "src": "/kityminder-editor/dist/index.html"
  5091. })
  5092. _box.appendChild(_iframe);
  5093. _box.appendChild(_jie);
  5094. _formdiv = new U.UF.UI.form(
  5095. "思维导图-" + _username,
  5096. _box, { //"/jsmind/example/demo.html"
  5097. "id": "mind" + cid + stage + task + tool + _userid,
  5098. "style": {
  5099. "width": "90%",
  5100. "height": "90%",
  5101. "overflow": 'hidden'
  5102. },
  5103. "onresize": function() {}
  5104. }, {
  5105. closecallback: function() {}
  5106. }, {
  5107. "style": {
  5108. "height": "36px"
  5109. }
  5110. }).form; //创建窗体
  5111. _taskbar = {
  5112. "id": str + _formdiv.id,
  5113. "style": {
  5114. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5115. },
  5116. "name": "思维导图",
  5117. "forms": _formdiv,
  5118. "click": function() {
  5119. U.MD.D.I.openApplication(str, obj, info);
  5120. }
  5121. }
  5122. break;
  5123. case "MindMap":
  5124. aTool = 3;
  5125. _iframe = $$("iframe", {
  5126. "frameborder": "no",
  5127. "border": "0",
  5128. "scrolling ": "no",
  5129. "style": {
  5130. "cssText": "border:0;width:100%;height:100%"
  5131. },
  5132. "src": "//cloud.cocorobo.cn/mind/"
  5133. })
  5134. _box.appendChild(_iframe);
  5135. _box.appendChild(_jie);
  5136. _formdiv = new U.UF.UI.form(
  5137. "思维导图-" + _username,
  5138. _box, { //"/jsmind/example/demo.html"
  5139. "id": "mind" + cid + stage + task + tool + _userid,
  5140. "style": {
  5141. "width": "90%",
  5142. "height": "90%",
  5143. "overflow": 'hidden'
  5144. },
  5145. "onresize": function() {}
  5146. }, {
  5147. closecallback: function() {}
  5148. }, {
  5149. "style": {
  5150. "height": "36px"
  5151. }
  5152. }).form; //创建窗体
  5153. _taskbar = {
  5154. "id": str + _formdiv.id,
  5155. "style": {
  5156. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5157. },
  5158. "name": "思维导图",
  5159. "forms": _formdiv,
  5160. "click": function() {
  5161. U.MD.D.I.openApplication(str, obj, info);
  5162. }
  5163. }
  5164. break;
  5165. case "doc":
  5166. aTool = 6;
  5167. _iframe = $$("iframe", {
  5168. "frameborder": "no",
  5169. "border": "0",
  5170. "scrolling ": "no",
  5171. "style": {
  5172. "cssText": "border:0;width:100%;height:100%"
  5173. },
  5174. "src": "/Office/Word/WordEditArea.htm"
  5175. })
  5176. _box.appendChild(_iframe);
  5177. _box.appendChild(_jie);
  5178. _formdiv = new U.UF.UI.form(
  5179. "协同文档-" + _username,
  5180. _box, {
  5181. "id": "doc" + cid + stage + task + tool + _userid,
  5182. "style": {
  5183. "width": "90%",
  5184. "height": "90%",
  5185. "overflow": 'hidden'
  5186. },
  5187. "onresize": function() {}
  5188. }, {
  5189. closecallback: function() {}
  5190. }, {
  5191. "style": {
  5192. "height": "36px"
  5193. }
  5194. }).form; //创建窗体
  5195. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5196. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5197. })
  5198. _taskbar = {
  5199. "id": str + _formdiv.id,
  5200. "style": {
  5201. "backgroundImage": "url(/img/icon/doc.png)"
  5202. },
  5203. "name": "协同文档",
  5204. "forms": _formdiv,
  5205. "click": function() {
  5206. U.MD.D.I.openApplication(str, obj, info);
  5207. }
  5208. }
  5209. break;
  5210. case "mindNetwork": //好友打开
  5211. aTool = 7;
  5212. _iframe = $$("iframe", {
  5213. "webkitallowfullscreen": "",
  5214. "mozallowfullscreen": "",
  5215. "allowfullscreen": "",
  5216. "frameborder": "no",
  5217. "border": "0",
  5218. "scrolling ": "no",
  5219. "style": {
  5220. "cssText": "border:0; width:100%; height:100%;"
  5221. },
  5222. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5223. })
  5224. _box.appendChild(_iframe);
  5225. _box.appendChild(_jie);
  5226. _formdiv = new U.UF.UI.form(
  5227. "思维网格-" + _username,
  5228. _box, {
  5229. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5230. "style": {
  5231. "width": "90%",
  5232. "height": "90%",
  5233. "overflow": 'hidden'
  5234. },
  5235. "onresize": function() {}
  5236. }, {
  5237. closecallback: function() {}
  5238. }, {
  5239. "style": {
  5240. "height": "36px"
  5241. }
  5242. }).form; //创建窗体
  5243. _taskbar = {
  5244. "id": str + _formdiv.id,
  5245. "style": {
  5246. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5247. },
  5248. "name": "思维网格",
  5249. "forms": _formdiv,
  5250. "click": function() {
  5251. U.MD.D.I.openApplication(str, obj, info);
  5252. }
  5253. }
  5254. break;
  5255. case "courseDesign":
  5256. _iframe = $$("iframe", {
  5257. "webkitallowfullscreen": "",
  5258. "mozallowfullscreen": "",
  5259. "allowfullscreen": "",
  5260. "frameborder": "no",
  5261. "border": "0",
  5262. "scrolling ": "no",
  5263. "style": {
  5264. "cssText": "border:0; width:100%; height:100%;"
  5265. },
  5266. "src": "/course-design-vue"
  5267. })
  5268. _box.appendChild(_iframe);
  5269. _box.appendChild(_jie);
  5270. _formdiv = new U.UF.UI.form(
  5271. "项目设计-" + _username,
  5272. _box, {
  5273. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5274. "style": {
  5275. "width": "90%",
  5276. "height": "90%",
  5277. "overflow": 'hidden'
  5278. },
  5279. "onresize": function() {}
  5280. }, {
  5281. closecallback: function() {}
  5282. }, {
  5283. "style": {
  5284. "height": "36px"
  5285. }
  5286. }).form; //创建窗体
  5287. _taskbar = {
  5288. "id": str + _formdiv.id,
  5289. "style": {
  5290. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5291. },
  5292. "name": "项目设计",
  5293. "forms": _formdiv,
  5294. "click": function() {
  5295. U.MD.D.I.openApplication(str, obj, info);
  5296. }
  5297. }
  5298. break;
  5299. }
  5300. const script1 = document.createElement("script");
  5301. script1.type = "text/javascript";
  5302. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5303. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5304. const script2 = document.createElement("script");
  5305. script2.type = "text/javascript";
  5306. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5307. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5308. const script3 = document.createElement("script");
  5309. script3.type = "text/javascript";
  5310. script3.charset = "UTF-8";
  5311. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5312. const script4 = document.createElement("script");
  5313. script4.type = "text/javascript";
  5314. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5315. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  5316. if (_iframe) {
  5317. if (str == 'doc') {
  5318. _iframe = _formdiv.querySelector('iframe')
  5319. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5320. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5321. _iframe.contentWindow.document.body.appendChild(script1);
  5322. _iframe.contentWindow.document.body.appendChild(script2);
  5323. // _iframe.contentWindow.document.body.appendChild(script3);
  5324. _iframe.contentWindow.document.body.appendChild(script4);
  5325. })
  5326. if (onloadListener) {
  5327. _iframe.contentDocument.location.reload()
  5328. } else {
  5329. _iframe.contentDocument.location.reload()
  5330. }
  5331. } else if (str == 'courseDesign') {
  5332. U.UF.DL.iframeLoad(_iframe, function() {
  5333. // _iframe.contentWindow.U.MD.O.W.load();
  5334. // _iframe.contentWindow.document.body.appendChild(script1);
  5335. _iframe.contentWindow.document.body.appendChild(script2);
  5336. _iframe.contentWindow.document.body.appendChild(script4);
  5337. })
  5338. } else if (str == 'mind') {
  5339. _iframe = _formdiv.querySelector('iframe')
  5340. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5341. //
  5342. _iframe.contentWindow.document.body.appendChild(script1);
  5343. _iframe.contentWindow.document.body.appendChild(script2);
  5344. _iframe.contentWindow.document.body.appendChild(script4);
  5345. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5346. })
  5347. if (onloadListener) {
  5348. _iframe.contentDocument.location.reload()
  5349. } else {
  5350. _iframe.contentDocument.location.reload()
  5351. }
  5352. } else if (str == 'whiteboard') {
  5353. _iframe = _formdiv.querySelector('iframe')
  5354. let onloadListener = _iframe.onload = () => {
  5355. _iframe.contentWindow.document.body.appendChild(script1);
  5356. _iframe.contentWindow.document.body.appendChild(script2);
  5357. _iframe.contentWindow.document.body.appendChild(script4);
  5358. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5359. };
  5360. if (onloadListener) {
  5361. _iframe.contentDocument.location.reload()
  5362. } else {
  5363. _iframe.contentDocument.location.reload()
  5364. }
  5365. } else {
  5366. _iframe.onload = () => {
  5367. _iframe.contentWindow.document.body.appendChild(script1);
  5368. _iframe.contentWindow.document.body.appendChild(script2);
  5369. // _iframe.contentWindow.document.body.appendChild(script3);
  5370. _iframe.contentWindow.document.body.appendChild(script4);
  5371. };
  5372. }
  5373. _jie.onclick = async() => {
  5374. let text = ''
  5375. if (aTool == 1) {
  5376. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5377. } else if (aTool == 6) {
  5378. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5379. } else if (aTool == 3) {
  5380. text = await U.MD.D.I.getEditorContent(_iframe);
  5381. }
  5382. _loading.style.display = 'flex'
  5383. console.log(_loading);
  5384. var _ajs = _iframe.contentWindow.document.createElement("script");
  5385. _ajs.type = "text/javascript";
  5386. _ajs.innerHTML =
  5387. // 'console.log(' + _loading + ');\n' +
  5388. 'var _js = document.createElement("script");\n' +
  5389. '_js.type="text/javascript";\n' +
  5390. '_js.charset="UTF-8";\n' +
  5391. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5392. "_js.onload = function(){\n" +
  5393. ' var a = document.getElementsByTagName("img")\n' +
  5394. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5395. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5396. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5397. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5398. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5399. "beforeUpload_shishi(file," +
  5400. "'" +
  5401. _userid +
  5402. "'" +
  5403. ", " +
  5404. "'" +
  5405. _cid +
  5406. "'" +
  5407. ", " +
  5408. "'" +
  5409. _stage +
  5410. "'" +
  5411. ", " +
  5412. "'" +
  5413. _task +
  5414. "'" +
  5415. ", " +
  5416. "'" +
  5417. _tool +
  5418. "'" +
  5419. ", " +
  5420. "'" +
  5421. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5422. "'" +
  5423. ", " +
  5424. "'" +
  5425. aTool +
  5426. "'" +
  5427. ", " +
  5428. "`" +
  5429. text +
  5430. "`" +
  5431. ")\n" +
  5432. " });\n" +
  5433. "}\n" +
  5434. "document.head.appendChild(_js);\n";
  5435. _iframe.contentWindow.document.head.appendChild(_ajs);
  5436. }
  5437. }
  5438. }
  5439. U.MD.D.I.openApplicationJieTeacherE = function(str, cid, stage, task, tool, student) {
  5440. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5441. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5442. _userid = student.userid, //登录用户id
  5443. _username = student.student //用户名字
  5444. let _iframe;
  5445. let _cid = cid,
  5446. _stage = stage,
  5447. _task = task,
  5448. _tool = tool;
  5449. var _jie = $$("div", {
  5450. "style": {
  5451. "position": "absolute",
  5452. "bottom": "50px",
  5453. "right": "50px",
  5454. "zIndex": "9999",
  5455. "backgroundColor": "#2268bc",
  5456. "color": "#fff",
  5457. "padding": "12px 20px",
  5458. "cursor": "pointer",
  5459. "borderRadius": "4px",
  5460. },
  5461. "innerHTML": "提交作业"
  5462. })
  5463. let aTool = ''
  5464. let _loading = document.createElement('div')
  5465. _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;"
  5466. // _loading.id = "";
  5467. let _lchild = document.createElement('div')
  5468. let _limg = document.createElement('img')
  5469. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5470. _limg.style = "width: 26px;margin-right: 10px;"
  5471. _lchild.appendChild(_limg)
  5472. let _lspan = document.createElement('span')
  5473. _lspan.innerHTML = "上传中..."
  5474. _lchild.appendChild(_lspan)
  5475. _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%);"
  5476. _loading.appendChild(_lchild)
  5477. var _box = $$('div', {
  5478. "style": {
  5479. "position": "relative",
  5480. "width": "100%",
  5481. "height": "100%",
  5482. },
  5483. })
  5484. _box.appendChild(_loading)
  5485. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5486. switch (str) {
  5487. case "whiteboard":
  5488. aTool = 1;
  5489. _iframe = $$("iframe", {
  5490. "frameborder": "no",
  5491. "border": "0",
  5492. "scrolling ": "no",
  5493. "style": {
  5494. "cssText": "border:0;width:100%;height:100%"
  5495. },
  5496. "src": "https://iwb.cocorobo.cn/"
  5497. })
  5498. _box.appendChild(_iframe);
  5499. _box.appendChild(_jie);
  5500. _formdiv = new U.UF.UI.form(
  5501. "电子白板-" + _username,
  5502. _box, {
  5503. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5504. "style": {
  5505. "width": "90%",
  5506. "height": "90%",
  5507. "overflow": 'hidden'
  5508. },
  5509. "onresize": function() {}
  5510. }, {
  5511. closecallback: function() {}
  5512. }, {
  5513. "style": {
  5514. "height": "36px"
  5515. }
  5516. }).form; //创建窗体
  5517. _taskbar = {
  5518. "id": str + _formdiv.id,
  5519. "style": {
  5520. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5521. },
  5522. "name": "电子白板",
  5523. "forms": _formdiv,
  5524. "click": function() {
  5525. U.MD.D.I.openApplication(str, obj, info);
  5526. }
  5527. }
  5528. break;
  5529. case "mind":
  5530. aTool = 3;
  5531. _iframe = $$("iframe", {
  5532. "frameborder": "no",
  5533. "border": "0",
  5534. "scrolling ": "no",
  5535. "style": {
  5536. "cssText": "border:0;width:100%;height:100%"
  5537. },
  5538. "src": "/kityminder-editor/dist/index.html"
  5539. })
  5540. _box.appendChild(_iframe);
  5541. _box.appendChild(_jie);
  5542. _formdiv = new U.UF.UI.form(
  5543. "思维导图-" + _username,
  5544. _box, { //"/jsmind/example/demo.html"
  5545. "id": "mind" + cid + stage + task + tool + _userid,
  5546. "style": {
  5547. "width": "90%",
  5548. "height": "90%",
  5549. "overflow": 'hidden'
  5550. },
  5551. "onresize": function() {}
  5552. }, {
  5553. closecallback: function() {}
  5554. }, {
  5555. "style": {
  5556. "height": "36px"
  5557. }
  5558. }).form; //创建窗体
  5559. _taskbar = {
  5560. "id": str + _formdiv.id,
  5561. "style": {
  5562. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5563. },
  5564. "name": "思维导图",
  5565. "forms": _formdiv,
  5566. "click": function() {
  5567. U.MD.D.I.openApplication(str, obj, info);
  5568. }
  5569. }
  5570. break;
  5571. case "MindMap":
  5572. aTool = 3;
  5573. _iframe = $$("iframe", {
  5574. "frameborder": "no",
  5575. "border": "0",
  5576. "scrolling ": "no",
  5577. "style": {
  5578. "cssText": "border:0;width:100%;height:100%"
  5579. },
  5580. "src": "//cloud.cocorobo.cn/mind/"
  5581. })
  5582. _box.appendChild(_iframe);
  5583. _box.appendChild(_jie);
  5584. _formdiv = new U.UF.UI.form(
  5585. "思维导图-" + _username,
  5586. _box, { //"/jsmind/example/demo.html"
  5587. "id": "mind" + cid + stage + task + tool + _userid,
  5588. "style": {
  5589. "width": "90%",
  5590. "height": "90%",
  5591. "overflow": 'hidden'
  5592. },
  5593. "onresize": function() {}
  5594. }, {
  5595. closecallback: function() {}
  5596. }, {
  5597. "style": {
  5598. "height": "36px"
  5599. }
  5600. }).form; //创建窗体
  5601. _taskbar = {
  5602. "id": str + _formdiv.id,
  5603. "style": {
  5604. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5605. },
  5606. "name": "思维导图",
  5607. "forms": _formdiv,
  5608. "click": function() {
  5609. U.MD.D.I.openApplication(str, obj, info);
  5610. }
  5611. }
  5612. break;
  5613. case "doc":
  5614. aTool = 6;
  5615. _iframe = $$("iframe", {
  5616. "frameborder": "no",
  5617. "border": "0",
  5618. "scrolling ": "no",
  5619. "style": {
  5620. "cssText": "border:0;width:100%;height:100%"
  5621. },
  5622. "src": "/Office/Word/WordEditArea.htm"
  5623. })
  5624. _box.appendChild(_iframe);
  5625. _box.appendChild(_jie);
  5626. _formdiv = new U.UF.UI.form(
  5627. "协同文档-" + _username,
  5628. _box, {
  5629. "id": "doc" + cid + stage + task + tool + _userid,
  5630. "style": {
  5631. "width": "90%",
  5632. "height": "90%",
  5633. "overflow": 'hidden'
  5634. },
  5635. "onresize": function() {}
  5636. }, {
  5637. closecallback: function() {}
  5638. }, {
  5639. "style": {
  5640. "height": "36px"
  5641. }
  5642. }).form; //创建窗体
  5643. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5644. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5645. })
  5646. _taskbar = {
  5647. "id": str + _formdiv.id,
  5648. "style": {
  5649. "backgroundImage": "url(/img/icon/doc.png)"
  5650. },
  5651. "name": "协同文档",
  5652. "forms": _formdiv,
  5653. "click": function() {
  5654. U.MD.D.I.openApplication(str, obj, info);
  5655. }
  5656. }
  5657. break;
  5658. case "mindNetwork": //好友打开
  5659. aTool = 7;
  5660. _iframe = $$("iframe", {
  5661. "webkitallowfullscreen": "",
  5662. "mozallowfullscreen": "",
  5663. "allowfullscreen": "",
  5664. "frameborder": "no",
  5665. "border": "0",
  5666. "scrolling ": "no",
  5667. "style": {
  5668. "cssText": "border:0; width:100%; height:100%;"
  5669. },
  5670. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5671. })
  5672. _box.appendChild(_iframe);
  5673. _box.appendChild(_jie);
  5674. _formdiv = new U.UF.UI.form(
  5675. "思维网格-" + _username,
  5676. _box, {
  5677. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5678. "style": {
  5679. "width": "90%",
  5680. "height": "90%",
  5681. "overflow": 'hidden'
  5682. },
  5683. "onresize": function() {}
  5684. }, {
  5685. closecallback: function() {}
  5686. }, {
  5687. "style": {
  5688. "height": "36px"
  5689. }
  5690. }).form; //创建窗体
  5691. _taskbar = {
  5692. "id": str + _formdiv.id,
  5693. "style": {
  5694. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5695. },
  5696. "name": "思维网格",
  5697. "forms": _formdiv,
  5698. "click": function() {
  5699. U.MD.D.I.openApplication(str, obj, info);
  5700. }
  5701. }
  5702. break;
  5703. case "courseDesign":
  5704. _iframe = $$("iframe", {
  5705. "webkitallowfullscreen": "",
  5706. "mozallowfullscreen": "",
  5707. "allowfullscreen": "",
  5708. "frameborder": "no",
  5709. "border": "0",
  5710. "scrolling ": "no",
  5711. "style": {
  5712. "cssText": "border:0; width:100%; height:100%;"
  5713. },
  5714. "src": "/course-design-vue"
  5715. })
  5716. _box.appendChild(_iframe);
  5717. _box.appendChild(_jie);
  5718. _formdiv = new U.UF.UI.form(
  5719. "项目设计-" + _username,
  5720. _box, {
  5721. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5722. "style": {
  5723. "width": "90%",
  5724. "height": "90%",
  5725. "overflow": 'hidden'
  5726. },
  5727. "onresize": function() {}
  5728. }, {
  5729. closecallback: function() {}
  5730. }, {
  5731. "style": {
  5732. "height": "36px"
  5733. }
  5734. }).form; //创建窗体
  5735. _taskbar = {
  5736. "id": str + _formdiv.id,
  5737. "style": {
  5738. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5739. },
  5740. "name": "项目设计",
  5741. "forms": _formdiv,
  5742. "click": function() {
  5743. U.MD.D.I.openApplication(str, obj, info);
  5744. }
  5745. }
  5746. break;
  5747. }
  5748. const script1 = document.createElement("script");
  5749. script1.type = "text/javascript";
  5750. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5751. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5752. const script2 = document.createElement("script");
  5753. script2.type = "text/javascript";
  5754. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5755. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5756. const script3 = document.createElement("script");
  5757. script3.type = "text/javascript";
  5758. script3.charset = "UTF-8";
  5759. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5760. const script4 = document.createElement("script");
  5761. script4.type = "text/javascript";
  5762. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5763. script4.src = window.origin + "/js/Common/jietu2E.js";
  5764. if (_iframe) {
  5765. if (str == 'doc') {
  5766. _iframe = _formdiv.querySelector('iframe')
  5767. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5768. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5769. _iframe.contentWindow.document.body.appendChild(script1);
  5770. _iframe.contentWindow.document.body.appendChild(script2);
  5771. // _iframe.contentWindow.document.body.appendChild(script3);
  5772. _iframe.contentWindow.document.body.appendChild(script4);
  5773. })
  5774. if (onloadListener) {
  5775. _iframe.contentDocument.location.reload()
  5776. } else {
  5777. _iframe.contentDocument.location.reload()
  5778. }
  5779. } else if (str == 'courseDesign') {
  5780. U.UF.DL.iframeLoad(_iframe, function() {
  5781. // _iframe.contentWindow.U.MD.O.W.load();
  5782. // _iframe.contentWindow.document.body.appendChild(script1);
  5783. _iframe.contentWindow.document.body.appendChild(script2);
  5784. _iframe.contentWindow.document.body.appendChild(script4);
  5785. })
  5786. } else if (str == 'mind') {
  5787. _iframe = _formdiv.querySelector('iframe')
  5788. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5789. //
  5790. _iframe.contentWindow.document.body.appendChild(script1);
  5791. _iframe.contentWindow.document.body.appendChild(script2);
  5792. _iframe.contentWindow.document.body.appendChild(script4);
  5793. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5794. })
  5795. if (onloadListener) {
  5796. _iframe.contentDocument.location.reload()
  5797. } else {
  5798. _iframe.contentDocument.location.reload()
  5799. }
  5800. } else if (str == 'whiteboard') {
  5801. _iframe = _formdiv.querySelector('iframe')
  5802. let onloadListener = _iframe.onload = () => {
  5803. _iframe.contentWindow.document.body.appendChild(script1);
  5804. _iframe.contentWindow.document.body.appendChild(script2);
  5805. _iframe.contentWindow.document.body.appendChild(script4);
  5806. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5807. };
  5808. if (onloadListener) {
  5809. _iframe.contentDocument.location.reload()
  5810. } else {
  5811. _iframe.contentDocument.location.reload()
  5812. }
  5813. } else {
  5814. _iframe.onload = () => {
  5815. _iframe.contentWindow.document.body.appendChild(script1);
  5816. _iframe.contentWindow.document.body.appendChild(script2);
  5817. // _iframe.contentWindow.document.body.appendChild(script3);
  5818. _iframe.contentWindow.document.body.appendChild(script4);
  5819. };
  5820. }
  5821. _jie.onclick = async() => {
  5822. let text = ''
  5823. if (aTool == 1) {
  5824. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5825. } else if (aTool == 6) {
  5826. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5827. } else if (aTool == 3) {
  5828. text = await U.MD.D.I.getEditorContent(_iframe);
  5829. }
  5830. _loading.style.display = 'flex'
  5831. console.log(_loading);
  5832. var _ajs = _iframe.contentWindow.document.createElement("script");
  5833. _ajs.type = "text/javascript";
  5834. _ajs.innerHTML =
  5835. // 'console.log(' + _loading + ');\n' +
  5836. 'var _js = document.createElement("script");\n' +
  5837. '_js.type="text/javascript";\n' +
  5838. '_js.charset="UTF-8";\n' +
  5839. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5840. "_js.onload = function(){\n" +
  5841. ' var a = document.getElementsByTagName("img")\n' +
  5842. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5843. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5844. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5845. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5846. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5847. "beforeUpload_shishi(file," +
  5848. "'" +
  5849. _userid +
  5850. "'" +
  5851. ", " +
  5852. "'" +
  5853. _cid +
  5854. "'" +
  5855. ", " +
  5856. "'" +
  5857. _stage +
  5858. "'" +
  5859. ", " +
  5860. "'" +
  5861. _task +
  5862. "'" +
  5863. ", " +
  5864. "'" +
  5865. _tool +
  5866. "'" +
  5867. ", " +
  5868. "'" +
  5869. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  5870. "'" +
  5871. ", " +
  5872. "'" +
  5873. aTool +
  5874. "'" +
  5875. ", " +
  5876. "`" +
  5877. text +
  5878. "`" +
  5879. ")\n" +
  5880. " });\n" +
  5881. "}\n" +
  5882. "document.head.appendChild(_js);\n";
  5883. _iframe.contentWindow.document.head.appendChild(_ajs);
  5884. }
  5885. }
  5886. }
  5887. U.MD.D.I.getEditorContent = function(iframe) {
  5888. return new Promise((resolve, reject) => {
  5889. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  5890. console.log(content);
  5891. resolve(content)
  5892. });
  5893. });
  5894. }
  5895. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  5896. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5897. // if (res.value[0].length > 0) {
  5898. // // resolve(res.value[0][0].text);
  5899. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5900. // $(fileInput).val('');
  5901. // });
  5902. // }
  5903. // }, [], { "type": "GET", "withCredentials": true });
  5904. var xmlhttp;
  5905. var Mac, Sn, DeviceId
  5906. if (window.XMLHttpRequest) {
  5907. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5908. xmlhttp = new XMLHttpRequest();
  5909. } else {
  5910. // IE6, IE5 浏览器执行代码
  5911. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5912. }
  5913. xmlhttp.onreadystatechange = function() {
  5914. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5915. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5916. // resolve(res.value[0][0].text);
  5917. if (type == '2') {
  5918. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5919. } else if (type == '3') {
  5920. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5921. }
  5922. } else {
  5923. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5924. }
  5925. }
  5926. }
  5927. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5928. xmlhttp.send();
  5929. }
  5930. U.MD.D.I.openApplicationJieS = function(str, cid, stage, task, tool) {
  5931. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5932. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5933. _userinfo = US.userInfo, //登录用户信息
  5934. _userid = US.userInfo.userid //登录用户id
  5935. let _iframe;
  5936. let _cid = cid,
  5937. _stage = stage,
  5938. _task = task,
  5939. _tool = tool;
  5940. var _jie = $$("div", {
  5941. "style": {
  5942. "position": "absolute",
  5943. "bottom": "50px",
  5944. "right": "50px",
  5945. "zIndex": "9999",
  5946. "backgroundColor": "#2268bc",
  5947. "color": "#fff",
  5948. "padding": "12px 20px",
  5949. "cursor": "pointer",
  5950. "borderRadius": "4px",
  5951. },
  5952. "innerHTML": "确认并提交"
  5953. })
  5954. let aTool = ''
  5955. let _loading = document.createElement('div')
  5956. _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;"
  5957. // _loading.id = "";
  5958. let _lchild = document.createElement('div')
  5959. let _limg = document.createElement('img')
  5960. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5961. _limg.style = "width: 26px;margin-right: 10px;"
  5962. _lchild.appendChild(_limg)
  5963. let _lspan = document.createElement('span')
  5964. _lspan.innerHTML = "上传中..."
  5965. _lchild.appendChild(_lspan)
  5966. _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%);"
  5967. _loading.appendChild(_lchild)
  5968. var _box = $$('div', {
  5969. "style": {
  5970. "position": "relative",
  5971. "width": "100%",
  5972. "height": "100%",
  5973. },
  5974. })
  5975. _box.appendChild(_loading)
  5976. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  5977. switch (str) {
  5978. case "whiteboard":
  5979. aTool = 1;
  5980. _iframe = $$("iframe", {
  5981. "frameborder": "no",
  5982. "border": "0",
  5983. "scrolling ": "no",
  5984. "style": {
  5985. "cssText": "border:0;width:100%;height:100%"
  5986. },
  5987. "src": "https://iwb.cocorobo.cn/"
  5988. })
  5989. _box.appendChild(_iframe);
  5990. _box.appendChild(_jie);
  5991. _formdiv = new U.UF.UI.form(
  5992. "电子白板",
  5993. _box, {
  5994. "id": "whiteboards" + cid + stage + task + tool,
  5995. "style": {
  5996. "width": "90%",
  5997. "height": "90%",
  5998. "overflow": 'hidden'
  5999. },
  6000. "onresize": function() {}
  6001. }, {
  6002. closecallback: function() {}
  6003. }, {
  6004. "style": {
  6005. "height": "36px"
  6006. }
  6007. }).form; //创建窗体
  6008. _taskbar = {
  6009. "id": str + _formdiv.id,
  6010. "style": {
  6011. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6012. },
  6013. "name": "电子白板",
  6014. "forms": _formdiv,
  6015. "click": function() {
  6016. U.MD.D.I.openApplication(str, obj, info);
  6017. }
  6018. }
  6019. break;
  6020. case "mind":
  6021. aTool = 3;
  6022. _iframe = $$("iframe", {
  6023. "frameborder": "no",
  6024. "border": "0",
  6025. "scrolling ": "no",
  6026. "style": {
  6027. "cssText": "border:0;width:100%;height:100%"
  6028. },
  6029. "src": "/kityminder-editor/dist/index.html"
  6030. });
  6031. _box.appendChild(_iframe);
  6032. _box.appendChild(_jie);
  6033. _formdiv = new U.UF.UI.form(
  6034. "思维导图",
  6035. _box, { //"/jsmind/example/demo.html"
  6036. "id": "minds" + cid + stage + task + tool,
  6037. "style": {
  6038. "width": "90%",
  6039. "height": "90%",
  6040. "overflow": 'hidden'
  6041. },
  6042. "onresize": function() {}
  6043. }, {
  6044. closecallback: function() {}
  6045. }, {
  6046. "style": {
  6047. "height": "36px"
  6048. }
  6049. }).form; //创建窗体
  6050. _taskbar = {
  6051. "id": str + _formdiv.id,
  6052. "style": {
  6053. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6054. },
  6055. "name": "思维导图",
  6056. "forms": _formdiv,
  6057. "click": function() {
  6058. U.MD.D.I.openApplication(str, obj, info);
  6059. }
  6060. }
  6061. break;
  6062. case "doc":
  6063. aTool = 6;
  6064. _iframe = $$("iframe", {
  6065. "frameborder": "no",
  6066. "border": "0",
  6067. "scrolling ": "no",
  6068. "style": {
  6069. "cssText": "border:0;width:100%;height:100%"
  6070. },
  6071. "src": "/Office/Word/WordEditArea.htm"
  6072. })
  6073. _box.appendChild(_iframe);
  6074. _box.appendChild(_jie);
  6075. _formdiv = new U.UF.UI.form(
  6076. "协同文档",
  6077. _box, {
  6078. "id": "docs" + cid + stage + task + tool,
  6079. "style": {
  6080. "width": "90%",
  6081. "height": "90%",
  6082. "overflow": 'hidden'
  6083. },
  6084. "onresize": function() {}
  6085. }, {
  6086. closecallback: function() {}
  6087. }, {
  6088. "style": {
  6089. "height": "36px"
  6090. }
  6091. }).form; //创建窗体
  6092. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6093. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6094. })
  6095. _taskbar = {
  6096. "id": str + _formdiv.id,
  6097. "style": {
  6098. "backgroundImage": "url(/img/icon/doc.png)"
  6099. },
  6100. "name": "协同文档",
  6101. "forms": _formdiv,
  6102. "click": function() {
  6103. U.MD.D.I.openApplication(str, obj, info);
  6104. }
  6105. }
  6106. break;
  6107. }
  6108. const script1 = document.createElement("script");
  6109. script1.type = "text/javascript";
  6110. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6111. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6112. const script2 = document.createElement("script");
  6113. script2.type = "text/javascript";
  6114. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6115. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6116. const script3 = document.createElement("script");
  6117. script3.type = "text/javascript";
  6118. script3.charset = "UTF-8";
  6119. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6120. const script4 = document.createElement("script");
  6121. script4.type = "text/javascript";
  6122. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6123. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  6124. if (_iframe) {
  6125. if (str == 'doc') {
  6126. _iframe = _formdiv.querySelector('iframe')
  6127. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6128. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6129. _iframe.contentWindow.document.body.appendChild(script1);
  6130. _iframe.contentWindow.document.body.appendChild(script2);
  6131. // _iframe.contentWindow.document.body.appendChild(script3);
  6132. _iframe.contentWindow.document.body.appendChild(script4);
  6133. })
  6134. if (onloadListener) {
  6135. _iframe.contentDocument.location.reload()
  6136. } else {
  6137. _iframe.contentDocument.location.reload()
  6138. }
  6139. } else if (str == 'mind') {
  6140. _iframe = _formdiv.querySelector('iframe')
  6141. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6142. _iframe.contentWindow.document.body.appendChild(script1);
  6143. _iframe.contentWindow.document.body.appendChild(script2);
  6144. _iframe.contentWindow.document.body.appendChild(script4);
  6145. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6146. })
  6147. if (onloadListener) {
  6148. _iframe.contentDocument.location.reload()
  6149. } else {
  6150. _iframe.contentDocument.location.reload()
  6151. }
  6152. } else {
  6153. _iframe.onload = () => {
  6154. _iframe.contentWindow.document.body.appendChild(script1);
  6155. _iframe.contentWindow.document.body.appendChild(script2);
  6156. // _iframe.contentWindow.document.body.appendChild(script3);
  6157. _iframe.contentWindow.document.body.appendChild(script4);
  6158. };
  6159. }
  6160. _jie.onclick = async() => {
  6161. let text = ''
  6162. if (aTool == 6) {
  6163. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6164. } else if (aTool == 3) {
  6165. text = await U.MD.D.I.getEditorContent(_iframe);
  6166. }
  6167. _loading.style.display = 'flex'
  6168. console.log(_loading);
  6169. var _ajs = _iframe.contentWindow.document.createElement("script");
  6170. _ajs.type = "text/javascript";
  6171. _ajs.innerHTML =
  6172. // 'console.log(' + _loading + ');\n' +
  6173. 'var _js = document.createElement("script");\n' +
  6174. '_js.type="text/javascript";\n' +
  6175. '_js.charset="UTF-8";\n' +
  6176. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6177. "_js.onload = function(){\n" +
  6178. ' var a = document.getElementsByTagName("img")\n' +
  6179. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6180. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6181. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6182. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6183. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6184. "beforeUpload_shishi(file," +
  6185. "'" +
  6186. _userid +
  6187. "'" +
  6188. ", " +
  6189. "'" +
  6190. _cid +
  6191. "'" +
  6192. ", " +
  6193. "'" +
  6194. _stage +
  6195. "'" +
  6196. ", " +
  6197. "'" +
  6198. _task +
  6199. "'" +
  6200. ", " +
  6201. "'" +
  6202. _tool +
  6203. "'" +
  6204. ", " +
  6205. "'" +
  6206. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6207. "'" +
  6208. ", " +
  6209. "'" +
  6210. aTool +
  6211. "'" +
  6212. ", " +
  6213. "`" +
  6214. text +
  6215. "`" +
  6216. ")\n" +
  6217. " });\n" +
  6218. "}\n" +
  6219. "document.head.appendChild(_js);\n";
  6220. _iframe.contentWindow.document.head.appendChild(_ajs);
  6221. }
  6222. }
  6223. //U.MD.D.I.openClick(str);
  6224. //如果有任务栏信息
  6225. // if (_taskbar) {
  6226. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6227. // }
  6228. }
  6229. U.MD.D.I.openApplicationJieStudio = function(str, cid, stage, task, tool) {
  6230. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6231. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6232. _userinfo = US.userInfo, //登录用户信息
  6233. _userid = US.userInfo.userid //登录用户id
  6234. let _iframe;
  6235. let _cid = cid,
  6236. _stage = stage,
  6237. _task = task,
  6238. _tool = tool;
  6239. var _jie = $$("div", {
  6240. "style": {
  6241. "position": "absolute",
  6242. "bottom": "50px",
  6243. "right": "50px",
  6244. "zIndex": "9999",
  6245. "backgroundColor": "#2268bc",
  6246. "color": "#fff",
  6247. "padding": "12px 20px",
  6248. "cursor": "pointer",
  6249. "borderRadius": "4px",
  6250. },
  6251. "innerHTML": "确认并提交"
  6252. })
  6253. let aTool = ''
  6254. let _loading = document.createElement('div')
  6255. _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;"
  6256. // _loading.id = "";
  6257. let _lchild = document.createElement('div')
  6258. let _limg = document.createElement('img')
  6259. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6260. _limg.style = "width: 26px;margin-right: 10px;"
  6261. _lchild.appendChild(_limg)
  6262. let _lspan = document.createElement('span')
  6263. _lspan.innerHTML = "上传中..."
  6264. _lchild.appendChild(_lspan)
  6265. _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%);"
  6266. _loading.appendChild(_lchild)
  6267. var _box = $$('div', {
  6268. "style": {
  6269. "position": "relative",
  6270. "width": "100%",
  6271. "height": "100%",
  6272. },
  6273. })
  6274. _box.appendChild(_loading)
  6275. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6276. switch (str) {
  6277. case "whiteboard":
  6278. aTool = 1;
  6279. _iframe = $$("iframe", {
  6280. "frameborder": "no",
  6281. "border": "0",
  6282. "scrolling ": "no",
  6283. "style": {
  6284. "cssText": "border:0;width:100%;height:100%"
  6285. },
  6286. "src": "https://iwb.cocorobo.cn/"
  6287. })
  6288. _box.appendChild(_iframe);
  6289. _box.appendChild(_jie);
  6290. _formdiv = new U.UF.UI.form(
  6291. "电子白板",
  6292. _box, {
  6293. "id": "whiteboards" + cid + stage + task + tool,
  6294. "style": {
  6295. "width": "90%",
  6296. "height": "90%",
  6297. "overflow": 'hidden'
  6298. },
  6299. "onresize": function() {}
  6300. }, {
  6301. closecallback: function() {}
  6302. }, {
  6303. "style": {
  6304. "height": "36px"
  6305. }
  6306. }).form; //创建窗体
  6307. _taskbar = {
  6308. "id": str + _formdiv.id,
  6309. "style": {
  6310. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6311. },
  6312. "name": "电子白板",
  6313. "forms": _formdiv,
  6314. "click": function() {
  6315. U.MD.D.I.openApplication(str, obj, info);
  6316. }
  6317. }
  6318. break;
  6319. case "mind":
  6320. aTool = 3;
  6321. _iframe = $$("iframe", {
  6322. "frameborder": "no",
  6323. "border": "0",
  6324. "scrolling ": "no",
  6325. "style": {
  6326. "cssText": "border:0;width:100%;height:100%"
  6327. },
  6328. "src": "/kityminder-editor/dist/index.html"
  6329. });
  6330. _box.appendChild(_iframe);
  6331. _box.appendChild(_jie);
  6332. _formdiv = new U.UF.UI.form(
  6333. "思维导图",
  6334. _box, { //"/jsmind/example/demo.html"
  6335. "id": "minds" + cid + stage + task + tool,
  6336. "style": {
  6337. "width": "90%",
  6338. "height": "90%",
  6339. "overflow": 'hidden'
  6340. },
  6341. "onresize": function() {}
  6342. }, {
  6343. closecallback: function() {}
  6344. }, {
  6345. "style": {
  6346. "height": "36px"
  6347. }
  6348. }).form; //创建窗体
  6349. _taskbar = {
  6350. "id": str + _formdiv.id,
  6351. "style": {
  6352. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6353. },
  6354. "name": "思维导图",
  6355. "forms": _formdiv,
  6356. "click": function() {
  6357. U.MD.D.I.openApplication(str, obj, info);
  6358. }
  6359. }
  6360. break;
  6361. case "doc":
  6362. aTool = 6;
  6363. _iframe = $$("iframe", {
  6364. "frameborder": "no",
  6365. "border": "0",
  6366. "scrolling ": "no",
  6367. "style": {
  6368. "cssText": "border:0;width:100%;height:100%"
  6369. },
  6370. "src": "/Office/Word/WordEditArea.htm"
  6371. })
  6372. _box.appendChild(_iframe);
  6373. _box.appendChild(_jie);
  6374. _formdiv = new U.UF.UI.form(
  6375. "协同文档",
  6376. _box, {
  6377. "id": "docs" + cid + stage + task + tool,
  6378. "style": {
  6379. "width": "90%",
  6380. "height": "90%",
  6381. "overflow": 'hidden'
  6382. },
  6383. "onresize": function() {}
  6384. }, {
  6385. closecallback: function() {}
  6386. }, {
  6387. "style": {
  6388. "height": "36px"
  6389. }
  6390. }).form; //创建窗体
  6391. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6392. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6393. })
  6394. _taskbar = {
  6395. "id": str + _formdiv.id,
  6396. "style": {
  6397. "backgroundImage": "url(/img/icon/doc.png)"
  6398. },
  6399. "name": "协同文档",
  6400. "forms": _formdiv,
  6401. "click": function() {
  6402. U.MD.D.I.openApplication(str, obj, info);
  6403. }
  6404. }
  6405. break;
  6406. }
  6407. const script1 = document.createElement("script");
  6408. script1.type = "text/javascript";
  6409. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6410. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6411. const script2 = document.createElement("script");
  6412. script2.type = "text/javascript";
  6413. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6414. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6415. const script3 = document.createElement("script");
  6416. script3.type = "text/javascript";
  6417. script3.charset = "UTF-8";
  6418. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6419. const script4 = document.createElement("script");
  6420. script4.type = "text/javascript";
  6421. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6422. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6423. if (_iframe) {
  6424. if (str == 'doc') {
  6425. _iframe = _formdiv.querySelector('iframe')
  6426. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6427. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6428. _iframe.contentWindow.document.body.appendChild(script1);
  6429. _iframe.contentWindow.document.body.appendChild(script2);
  6430. // _iframe.contentWindow.document.body.appendChild(script3);
  6431. _iframe.contentWindow.document.body.appendChild(script4);
  6432. })
  6433. if (onloadListener) {
  6434. _iframe.contentDocument.location.reload()
  6435. } else {
  6436. _iframe.contentDocument.location.reload()
  6437. }
  6438. } else if (str == 'mind') {
  6439. _iframe = _formdiv.querySelector('iframe')
  6440. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6441. _iframe.contentWindow.document.body.appendChild(script1);
  6442. _iframe.contentWindow.document.body.appendChild(script2);
  6443. _iframe.contentWindow.document.body.appendChild(script4);
  6444. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6445. })
  6446. if (onloadListener) {
  6447. _iframe.contentDocument.location.reload()
  6448. } else {
  6449. _iframe.contentDocument.location.reload()
  6450. }
  6451. } else {
  6452. _iframe.onload = () => {
  6453. _iframe.contentWindow.document.body.appendChild(script1);
  6454. _iframe.contentWindow.document.body.appendChild(script2);
  6455. // _iframe.contentWindow.document.body.appendChild(script3);
  6456. _iframe.contentWindow.document.body.appendChild(script4);
  6457. };
  6458. }
  6459. _jie.onclick = async() => {
  6460. let text = ''
  6461. if (aTool == 6) {
  6462. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6463. } else if (aTool == 3) {
  6464. text = await U.MD.D.I.getEditorContent(_iframe);
  6465. }
  6466. _loading.style.display = 'flex'
  6467. console.log(_loading);
  6468. var _ajs = _iframe.contentWindow.document.createElement("script");
  6469. _ajs.type = "text/javascript";
  6470. _ajs.innerHTML =
  6471. // 'console.log(' + _loading + ');\n' +
  6472. 'var _js = document.createElement("script");\n' +
  6473. '_js.type="text/javascript";\n' +
  6474. '_js.charset="UTF-8";\n' +
  6475. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6476. "_js.onload = function(){\n" +
  6477. ' var a = document.getElementsByTagName("img")\n' +
  6478. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6479. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6480. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6481. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6482. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6483. "beforeUpload_shishi(file," +
  6484. "'" +
  6485. _userid +
  6486. "'" +
  6487. ", " +
  6488. "'" +
  6489. _cid +
  6490. "'" +
  6491. ", " +
  6492. "'" +
  6493. _stage +
  6494. "'" +
  6495. ", " +
  6496. "'" +
  6497. _task +
  6498. "'" +
  6499. ", " +
  6500. "'" +
  6501. _tool +
  6502. "'" +
  6503. ", " +
  6504. "'" +
  6505. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6506. "'" +
  6507. ", " +
  6508. "'" +
  6509. aTool +
  6510. "'" +
  6511. ", " +
  6512. "`" +
  6513. text +
  6514. "`" +
  6515. ")\n" +
  6516. " });\n" +
  6517. "}\n" +
  6518. "document.head.appendChild(_js);\n";
  6519. _iframe.contentWindow.document.head.appendChild(_ajs);
  6520. }
  6521. }
  6522. //U.MD.D.I.openClick(str);
  6523. //如果有任务栏信息
  6524. // if (_taskbar) {
  6525. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6526. // }
  6527. }
  6528. U.MD.D.I.openApplicationYu = function(str, cid, stage, task, tool) {
  6529. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6530. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6531. _userinfo = US.userInfo, //登录用户信息
  6532. _userid = US.userInfo.userid //登录用户id
  6533. let _iframe;
  6534. let _cid = cid,
  6535. _stage = stage,
  6536. _task = task,
  6537. _tool = tool;
  6538. var _jie = $$("div", {
  6539. "style": {
  6540. "position": "absolute",
  6541. "bottom": "50px",
  6542. "right": "50px",
  6543. "zIndex": "9999",
  6544. "backgroundColor": "#2268bc",
  6545. "color": "#fff",
  6546. "padding": "12px 20px",
  6547. "cursor": "pointer",
  6548. "borderRadius": "4px",
  6549. },
  6550. "innerHTML": "上传模板"
  6551. })
  6552. let aTool = ''
  6553. let _loading = document.createElement('div')
  6554. _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;"
  6555. // _loading.id = "";
  6556. let _lchild = document.createElement('div')
  6557. let _limg = document.createElement('img')
  6558. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6559. _limg.style = "width: 26px;margin-right: 10px;"
  6560. _lchild.appendChild(_limg)
  6561. let _lspan = document.createElement('span')
  6562. _lspan.innerHTML = "上传中..."
  6563. _lchild.appendChild(_lspan)
  6564. _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%);"
  6565. _loading.appendChild(_lchild)
  6566. var _box = $$('div', {
  6567. "style": {
  6568. "position": "relative",
  6569. "width": "100%",
  6570. "height": "100%",
  6571. },
  6572. })
  6573. _box.appendChild(_loading)
  6574. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6575. switch (str) {
  6576. case "whiteboard":
  6577. aTool = 1;
  6578. _iframe = $$("iframe", {
  6579. "frameborder": "no",
  6580. "border": "0",
  6581. "scrolling ": "no",
  6582. "style": {
  6583. "cssText": "border:0;width:100%;height:100%"
  6584. },
  6585. "src": "https://iwb.cocorobo.cn/"
  6586. })
  6587. _box.appendChild(_iframe);
  6588. _box.appendChild(_jie);
  6589. _formdiv = new U.UF.UI.form(
  6590. "电子白板",
  6591. _box, {
  6592. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6593. "style": {
  6594. "width": "90%",
  6595. "height": "90%",
  6596. "overflow": 'hidden'
  6597. },
  6598. "onresize": function() {}
  6599. }, {
  6600. closecallback: function() {}
  6601. }, {
  6602. "style": {
  6603. "height": "36px"
  6604. }
  6605. }).form; //创建窗体
  6606. _taskbar = {
  6607. "id": str + _formdiv.id,
  6608. "style": {
  6609. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6610. },
  6611. "name": "电子白板",
  6612. "forms": _formdiv,
  6613. "click": function() {
  6614. U.MD.D.I.openApplication(str, obj, info);
  6615. }
  6616. }
  6617. break;
  6618. case "mind":
  6619. aTool = 3;
  6620. _iframe = $$("iframe", {
  6621. "frameborder": "no",
  6622. "border": "0",
  6623. "scrolling ": "no",
  6624. "style": {
  6625. "cssText": "border:0;width:100%;height:100%"
  6626. },
  6627. "src": "/kityminder-editor/dist/index.html"
  6628. });
  6629. _box.appendChild(_iframe);
  6630. _box.appendChild(_jie);
  6631. _formdiv = new U.UF.UI.form(
  6632. "思维导图",
  6633. _box, { //"/jsmind/example/demo.html"
  6634. "id": "minds_Yu" + cid + stage + task + tool,
  6635. "style": {
  6636. "width": "90%",
  6637. "height": "90%",
  6638. "overflow": 'hidden'
  6639. },
  6640. "onresize": function() {}
  6641. }, {
  6642. closecallback: function() {}
  6643. }, {
  6644. "style": {
  6645. "height": "36px"
  6646. }
  6647. }).form; //创建窗体
  6648. _taskbar = {
  6649. "id": str + _formdiv.id,
  6650. "style": {
  6651. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6652. },
  6653. "name": "思维导图",
  6654. "forms": _formdiv,
  6655. "click": function() {
  6656. U.MD.D.I.openApplication(str, obj, info);
  6657. }
  6658. }
  6659. break;
  6660. case "doc":
  6661. aTool = 6;
  6662. _iframe = $$("iframe", {
  6663. "frameborder": "no",
  6664. "border": "0",
  6665. "scrolling ": "no",
  6666. "style": {
  6667. "cssText": "border:0;width:100%;height:100%"
  6668. },
  6669. "src": "/Office/Word/WordEditArea.htm"
  6670. })
  6671. _box.appendChild(_iframe);
  6672. _box.appendChild(_jie);
  6673. _formdiv = new U.UF.UI.form(
  6674. "协同文档",
  6675. _box, {
  6676. "id": "docs_Yu" + cid + stage + task + tool,
  6677. "style": {
  6678. "width": "90%",
  6679. "height": "90%",
  6680. "overflow": 'hidden'
  6681. },
  6682. "onresize": function() {}
  6683. }, {
  6684. closecallback: function() {}
  6685. }, {
  6686. "style": {
  6687. "height": "36px"
  6688. }
  6689. }).form; //创建窗体
  6690. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6691. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6692. })
  6693. _taskbar = {
  6694. "id": str + _formdiv.id,
  6695. "style": {
  6696. "backgroundImage": "url(/img/icon/doc.png)"
  6697. },
  6698. "name": "协同文档",
  6699. "forms": _formdiv,
  6700. "click": function() {
  6701. U.MD.D.I.openApplication(str, obj, info);
  6702. }
  6703. }
  6704. break;
  6705. case "CocoPi":
  6706. aTool = 57;
  6707. _iframe = $$("iframe", {
  6708. "allowpaymentrequest": "allowpaymentrequest",
  6709. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6710. "webkitallowfullscreen": "",
  6711. "mozallowfullscreen": "",
  6712. "frameborder": "no",
  6713. "border": "0",
  6714. "scrolling ": "no",
  6715. "style": {
  6716. "cssText": "border:0;width:100%;height:100%"
  6717. },
  6718. "src": "https://pi.cocorobo.cn/"
  6719. })
  6720. _box.appendChild(_iframe);
  6721. _box.appendChild(_jie);
  6722. _formdiv = new U.UF.UI.form(
  6723. "CocoPi",
  6724. _box, {
  6725. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6726. "style": {
  6727. "width": "90%",
  6728. "height": "90%",
  6729. "overflow": 'hidden'
  6730. },
  6731. "onresize": function() {}
  6732. }, {
  6733. closecallback: function() {}
  6734. }, {
  6735. "style": {
  6736. "height": "36px"
  6737. }
  6738. }).form; //创建窗体
  6739. _taskbar = {
  6740. "id": str + _formdiv.id,
  6741. "style": {
  6742. "backgroundImage": "url(/img/icon/cocopi.png)"
  6743. },
  6744. "name": "CocoPi",
  6745. "forms": _formdiv,
  6746. "click": function() {
  6747. U.MD.D.I.openApplication(str, obj, info);
  6748. }
  6749. }
  6750. break;
  6751. }
  6752. if (_iframe) {
  6753. if (str == 'doc') {
  6754. _iframe = _formdiv.querySelector('iframe')
  6755. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6756. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6757. })
  6758. if (onloadListener) {
  6759. _iframe.contentDocument.location.reload()
  6760. } else {
  6761. _iframe.contentDocument.location.reload()
  6762. }
  6763. } else if (str == 'mind') {
  6764. _iframe = _formdiv.querySelector('iframe')
  6765. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6766. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6767. })
  6768. if (onloadListener) {
  6769. _iframe.contentDocument.location.reload()
  6770. } else {
  6771. _iframe.contentDocument.location.reload()
  6772. }
  6773. } else if (str == 'whiteboard') {
  6774. _iframe = _formdiv.querySelector('iframe')
  6775. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6776. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6777. })
  6778. if (onloadListener) {
  6779. _iframe.contentDocument.location.reload()
  6780. } else {
  6781. _iframe.contentDocument.location.reload()
  6782. }
  6783. } else if (str == 'CocoPi') {
  6784. _iframe = _formdiv.querySelector('iframe')
  6785. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6786. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6787. })
  6788. if (onloadListener) {
  6789. _iframe.contentDocument.location.reload()
  6790. } else {
  6791. _iframe.contentDocument.location.reload()
  6792. }
  6793. } else {
  6794. _iframe.onload = () => {};
  6795. }
  6796. _jie.onclick = async() => {
  6797. let text = ''
  6798. let type = '2'
  6799. if (aTool == 1) {
  6800. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6801. type = '3'
  6802. } else if (aTool == 6) {
  6803. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6804. type = '1'
  6805. } else if (aTool == 3) {
  6806. text = await U.MD.D.I.getEditorContent(_iframe);
  6807. type = '2'
  6808. } else if (aTool == 57) {
  6809. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6810. type = '4'
  6811. }
  6812. _loading.style.display = 'flex'
  6813. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6814. }
  6815. }
  6816. //U.MD.D.I.openClick(str);
  6817. //如果有任务栏信息
  6818. // if (_taskbar) {
  6819. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6820. // }
  6821. }
  6822. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  6823. var xmlhttp;
  6824. var Mac, Sn, DeviceId
  6825. if (window.XMLHttpRequest) {
  6826. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6827. xmlhttp = new XMLHttpRequest();
  6828. } else {
  6829. // IE6, IE5 浏览器执行代码
  6830. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6831. }
  6832. xmlhttp.onreadystatechange = function() {
  6833. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6834. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6835. // resolve(res.value[0][0].text);
  6836. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6837. }
  6838. }
  6839. }
  6840. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6841. xmlhttp.send();
  6842. }
  6843. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  6844. var xmlhttp;
  6845. var Mac, Sn, DeviceId
  6846. if (window.XMLHttpRequest) {
  6847. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6848. xmlhttp = new XMLHttpRequest();
  6849. } else {
  6850. // IE6, IE5 浏览器执行代码
  6851. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6852. }
  6853. xmlhttp.onreadystatechange = function() {
  6854. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6855. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6856. // resolve(res.value[0][0].text);
  6857. if (type == '2') {
  6858. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6859. } else if (type == '3') {
  6860. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6861. } else if (type == '4') {
  6862. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6863. }
  6864. } else {
  6865. if (type == '2') {
  6866. iframe.contentWindow.editor.minder.importData('json', '')
  6867. } else if (type == '3') {
  6868. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6869. } else if (type == '4') {
  6870. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6871. }
  6872. }
  6873. }
  6874. }
  6875. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6876. xmlhttp.send();
  6877. }
  6878. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  6879. var xmlhttp;
  6880. var Mac, Sn, DeviceId
  6881. if (window.XMLHttpRequest) {
  6882. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6883. xmlhttp = new XMLHttpRequest();
  6884. } else {
  6885. // IE6, IE5 浏览器执行代码
  6886. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6887. }
  6888. xmlhttp.onreadystatechange = function() {
  6889. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6890. if (xmlhttp.response) {
  6891. // resolve(res.value[0][0].text);
  6892. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6893. // $(fileInput).val('');
  6894. // });
  6895. span.innerHTML = '上传成功'
  6896. setTimeout(() => {
  6897. loading.style.display = 'none'
  6898. }, 1000);
  6899. }
  6900. }
  6901. }
  6902. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6903. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6904. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6905. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6906. // 设置请求头,表示请求体的编码格式
  6907. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6908. // 设置请求体,使用url-encoded格式的数据
  6909. }
  6910. U.MD.D.I.openApplicationUpload = function(str, cid, stage, task, tool) {
  6911. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6912. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6913. _userinfo = US.userInfo, //登录用户信息
  6914. _userid = US.userInfo.userid //登录用户id
  6915. let _iframe;
  6916. let _cid = cid,
  6917. _stage = stage,
  6918. _task = task,
  6919. _tool = tool;
  6920. var _jie = $$("div", {
  6921. "style": {
  6922. "position": "absolute",
  6923. "bottom": "50px",
  6924. "right": "50px",
  6925. "zIndex": "9999",
  6926. "backgroundColor": "#2268bc",
  6927. "color": "#fff",
  6928. "padding": "12px 20px",
  6929. "cursor": "pointer",
  6930. "borderRadius": "4px",
  6931. },
  6932. "innerHTML": "提交作业"
  6933. })
  6934. let aTool = ''
  6935. let _loading = document.createElement('div')
  6936. _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;"
  6937. // _loading.id = "";
  6938. let _lchild = document.createElement('div')
  6939. let _limg = document.createElement('img')
  6940. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6941. _limg.style = "width: 26px;margin-right: 10px;"
  6942. _lchild.appendChild(_limg)
  6943. let _lspan = document.createElement('span')
  6944. _lspan.innerHTML = "上传中..."
  6945. _lchild.appendChild(_lspan)
  6946. _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%);"
  6947. _loading.appendChild(_lchild)
  6948. var _box = $$('div', {
  6949. "style": {
  6950. "position": "relative",
  6951. "width": "100%",
  6952. "height": "100%",
  6953. },
  6954. })
  6955. _box.appendChild(_loading)
  6956. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  6957. switch (str) {
  6958. case "CocoPi":
  6959. aTool = 57;
  6960. _iframe = $$("iframe", {
  6961. "allowpaymentrequest": "allowpaymentrequest",
  6962. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6963. "webkitallowfullscreen": "",
  6964. "mozallowfullscreen": "",
  6965. "frameborder": "no",
  6966. "border": "0",
  6967. "scrolling ": "no",
  6968. "style": {
  6969. "cssText": "border:0;width:100%;height:100%"
  6970. },
  6971. "src": "https://pi.cocorobo.cn/"
  6972. })
  6973. _box.appendChild(_iframe);
  6974. _box.appendChild(_jie);
  6975. _formdiv = new U.UF.UI.form(
  6976. "CocoPi",
  6977. _box, {
  6978. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6979. "style": {
  6980. "width": "90%",
  6981. "height": "90%",
  6982. "overflow": 'hidden'
  6983. },
  6984. "onresize": function() {}
  6985. }, {
  6986. closecallback: function() {}
  6987. }, {
  6988. "style": {
  6989. "height": "36px"
  6990. }
  6991. }).form; //创建窗体
  6992. _taskbar = {
  6993. "id": str + _formdiv.id,
  6994. "style": {
  6995. "backgroundImage": "url(/img/icon/cocopi.png)"
  6996. },
  6997. "name": "CocoPi",
  6998. "forms": _formdiv,
  6999. "click": function() {
  7000. U.MD.D.I.openApplication(str, obj, info);
  7001. }
  7002. }
  7003. break;
  7004. }
  7005. if (_iframe) {
  7006. if (str == 'CocoPi') {
  7007. _iframe = _formdiv.querySelector('iframe')
  7008. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7009. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7010. })
  7011. if (onloadListener) {
  7012. _iframe.contentDocument.location.reload()
  7013. } else {
  7014. _iframe.contentDocument.location.reload()
  7015. }
  7016. }
  7017. _jie.onclick = async() => {
  7018. let text = ''
  7019. if (aTool == 57) {
  7020. text = _iframe.contentWindow.getLoadXmlStr()
  7021. }
  7022. _loading.style.display = 'flex'
  7023. console.log(_loading);
  7024. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7025. _loading.style.display = 'none'
  7026. let _div = document.createElement('div')
  7027. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  7028. let _inner = document.createElement('div')
  7029. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7030. _inner.innerHTML = "上传成功"
  7031. _div.appendChild(_inner)
  7032. _iframe.contentWindow.window.document.body.appendChild(_div)
  7033. _div.onclick = () => {
  7034. _iframe.contentWindow.window.document.body.removeChild(_div)
  7035. }
  7036. setTimeout(() => {
  7037. _iframe.contentWindow.window.document.body.removeChild(_div)
  7038. }, 1000);
  7039. }, [], { "type": "POST", "withCredentials": true });
  7040. }
  7041. }
  7042. }
  7043. U.MD.D.I.openApplicationTeacherUpload = function(str, cid, stage, task, tool, student) {
  7044. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  7045. _formdiv, //创建任务栏时同时弹出的窗体元素。
  7046. _userid = student.userid, //登录用户id
  7047. _username = student.student //用户名字
  7048. let _iframe;
  7049. let _cid = cid,
  7050. _stage = stage,
  7051. _task = task,
  7052. _tool = tool;
  7053. var _jie = $$("div", {
  7054. "style": {
  7055. "position": "absolute",
  7056. "bottom": "50px",
  7057. "right": "50px",
  7058. "zIndex": "9999",
  7059. "backgroundColor": "#2268bc",
  7060. "color": "#fff",
  7061. "padding": "12px 20px",
  7062. "cursor": "pointer",
  7063. "borderRadius": "4px",
  7064. },
  7065. "innerHTML": "提交作业"
  7066. })
  7067. let aTool = ''
  7068. let _loading = document.createElement('div')
  7069. _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;"
  7070. // _loading.id = "";
  7071. let _lchild = document.createElement('div')
  7072. let _limg = document.createElement('img')
  7073. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7074. _limg.style = "width: 26px;margin-right: 10px;"
  7075. _lchild.appendChild(_limg)
  7076. let _lspan = document.createElement('span')
  7077. _lspan.innerHTML = "上传中..."
  7078. _lchild.appendChild(_lspan)
  7079. _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%);"
  7080. _loading.appendChild(_lchild)
  7081. var _box = $$('div', {
  7082. "style": {
  7083. "position": "relative",
  7084. "width": "100%",
  7085. "height": "100%",
  7086. },
  7087. })
  7088. _box.appendChild(_loading)
  7089. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7090. switch (str) {
  7091. case "CocoPi":
  7092. aTool = 57;
  7093. _iframe = $$("iframe", {
  7094. "allowpaymentrequest": "allowpaymentrequest",
  7095. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7096. "webkitallowfullscreen": "",
  7097. "mozallowfullscreen": "",
  7098. "frameborder": "no",
  7099. "border": "0",
  7100. "scrolling ": "no",
  7101. "style": {
  7102. "cssText": "border:0;width:100%;height:100%"
  7103. },
  7104. "src": "https://pi.cocorobo.cn/"
  7105. })
  7106. _box.appendChild(_iframe);
  7107. _box.appendChild(_jie);
  7108. _formdiv = new U.UF.UI.form(
  7109. "CocoPi-" + _username,
  7110. _box, {
  7111. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7112. "style": {
  7113. "width": "90%",
  7114. "height": "90%",
  7115. "overflow": 'hidden'
  7116. },
  7117. "onresize": function() {}
  7118. }, {
  7119. closecallback: function() {}
  7120. }, {
  7121. "style": {
  7122. "height": "36px"
  7123. }
  7124. }).form; //创建窗体
  7125. _taskbar = {
  7126. "id": str + _formdiv.id,
  7127. "style": {
  7128. "backgroundImage": "url(/img/icon/cocopi.png)"
  7129. },
  7130. "name": "CocoPi",
  7131. "forms": _formdiv,
  7132. "click": function() {
  7133. U.MD.D.I.openApplication(str, obj, info);
  7134. }
  7135. }
  7136. break;
  7137. }
  7138. if (_iframe) {
  7139. if (str == 'CocoPi') {
  7140. _iframe = _formdiv.querySelector('iframe')
  7141. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7142. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7143. })
  7144. if (onloadListener) {
  7145. _iframe.contentDocument.location.reload()
  7146. } else {
  7147. _iframe.contentDocument.location.reload()
  7148. }
  7149. }
  7150. _jie.onclick = async() => {
  7151. let text = ''
  7152. if (aTool == 57) {
  7153. text = _iframe.contentWindow.getLoadXmlStr()
  7154. }
  7155. _loading.style.display = 'flex'
  7156. console.log(_loading);
  7157. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7158. _loading.style.display = 'none'
  7159. let _div = document.createElement('div')
  7160. _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
  7161. let _inner = document.createElement('div')
  7162. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7163. _inner.innerHTML = "上传成功"
  7164. _div.appendChild(_inner)
  7165. _iframe.contentWindow.window.document.body.appendChild(_div)
  7166. _div.onclick = () => {
  7167. _iframe.contentWindow.window.document.body.removeChild(_div)
  7168. }
  7169. setTimeout(() => {
  7170. _iframe.contentWindow.window.document.body.removeChild(_div)
  7171. }, 1000);
  7172. }, [], { "type": "POST", "withCredentials": true });
  7173. }
  7174. }
  7175. }
  7176. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7177. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7178. if (res.value[0].length > 0) {
  7179. if (atool == 57) {
  7180. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7181. }
  7182. } else {
  7183. if (atool == 57) {
  7184. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7185. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7186. }
  7187. }
  7188. }, [], { "type": "POST", "withCredentials": true });
  7189. }