DeskTop.js 401 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155
  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": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.szulsDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  197. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  198. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  199. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  200. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  201. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  202. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.hanDeskIcon = [
  206. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  207. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  208. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  209. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  210. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  211. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  212. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  213. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  214. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  215. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  216. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  217. ];
  218. U.MD.D.I.GMteacherDeskIcon = [
  219. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  220. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  221. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  222. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  223. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  224. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  225. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  226. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  227. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  230. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  231. ];
  232. U.MD.D.I.GMstudentDeskIcon = [
  233. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  234. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  235. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  236. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  237. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  238. ];
  239. //北师大
  240. U.MD.D.I.BSDNSteacherDeskIcon = [
  241. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  242. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  243. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  244. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  245. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  246. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  247. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  248. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  249. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  250. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  251. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  252. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  253. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  254. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  255. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  256. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  257. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  258. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  259. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  260. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  261. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  262. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  263. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  264. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  265. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  266. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  267. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  268. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  269. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  270. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  271. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  272. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  273. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  274. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  275. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  276. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  277. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  278. ];
  279. //松山湖
  280. U.MD.D.I.SONGteacherDeskIcon = [
  281. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  282. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  283. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  284. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  285. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  286. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  287. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  288. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  289. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  290. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  291. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  292. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  293. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  294. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  295. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  296. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  297. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  298. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  299. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  300. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  301. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  302. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  303. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  304. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  305. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  306. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  307. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  308. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  309. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  310. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  311. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  312. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  313. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  314. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  315. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  316. ];
  317. U.MD.D.I.tcStudentDeskIcon = [
  318. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  319. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.tcTeacherDeskIcon = [
  323. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  324. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  325. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  326. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  327. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  328. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  329. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  330. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.tcOrganizerDeskIcon = [
  334. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  337. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  338. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  339. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  340. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  341. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  342. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscStudentDeskIcon = [
  346. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  347. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  348. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. ];
  351. U.MD.D.I.szscTeacherDeskIcon = [
  352. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  353. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  354. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  357. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  358. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  359. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  360. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  361. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  362. ];
  363. U.MD.D.I.szscOrganizerDeskIcon = [
  364. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  365. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  366. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  367. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  368. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  369. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  370. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  373. ];
  374. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  382. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  383. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  384. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  385. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  386. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  387. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  388. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  389. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  390. ];
  391. U.MD.D.I.wankeAdminDeskIcon = [
  392. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  393. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  394. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  395. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  396. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  397. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  398. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  399. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  400. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  401. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  402. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  403. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  404. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  405. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  406. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  407. ];
  408. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  409. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  410. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  411. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  412. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  413. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  414. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  415. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  416. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  417. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  418. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  419. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  420. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  421. ];
  422. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  423. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  424. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  425. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  426. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  427. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  428. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  429. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  430. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  431. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  432. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  433. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  434. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  435. ];
  436. //明德教师桌面图标的全局变量
  437. U.MD.D.I.MingdeTeacherDeskIcon = [
  438. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  439. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  440. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  441. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  445. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  446. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  447. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  448. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  449. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  450. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  451. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  452. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  453. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  454. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  455. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  456. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  457. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  458. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  459. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  460. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  461. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  462. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  463. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  464. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  465. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //97c4ee8b-d010-4042-986d-e9d3c217264f
  470. //教师桌面图标的全局变量
  471. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  472. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  475. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  476. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  477. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  478. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  479. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  480. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  482. ];
  483. //福田
  484. U.MD.D.I.futianTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  493. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //福田
  497. U.MD.D.I.futianAdminDeskIcon = [
  498. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  506. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  507. ];
  508. //lotech
  509. U.MD.D.I.lotechTeacherDeskIcon = [
  510. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  511. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  515. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  518. ];
  519. //龙华中心小学教师桌面图标的全局变量
  520. U.MD.D.I.longhuateacherDeskIcon = [
  521. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  522. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  523. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  524. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. ];
  534. //教科院实小教师桌面图标的全局变量
  535. U.MD.D.I.siesteacherDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  539. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  540. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  543. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  544. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  545. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  546. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  547. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  548. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  549. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  550. ];
  551. //福田
  552. U.MD.D.I.gdjgTeacherDeskIcon = [
  553. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  554. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  555. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  556. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  557. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  558. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  559. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  560. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  561. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  562. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  563. ];
  564. //gdjg
  565. U.MD.D.I.gdjgAdminDeskIcon = [
  566. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  567. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  568. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  569. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  570. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  571. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  572. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  573. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  574. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. ];
  576. //hk
  577. U.MD.D.I.hkteacherDeskIcon = [
  578. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  579. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  581. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  582. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  583. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  584. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  587. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  588. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  589. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  591. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. ];
  593. //hk
  594. U.MD.D.I.hkStudentDeskIcon = [
  595. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  596. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  597. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  598. ];
  599. //香海正覺蓮社佛教正覺中學
  600. U.MD.D.I.hkZJLSteacherDeskIcon = [
  601. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  602. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  604. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  605. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  608. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  609. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  610. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  611. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  612. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  613. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  614. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  615. ];
  616. //香海正覺蓮社佛教正覺中學
  617. U.MD.D.I.hkZJLSStudentDeskIcon = [
  618. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  619. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  620. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  621. ];
  622. //云海
  623. U.MD.D.I.yunhaiTeacherDeskIcon = [
  624. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  625. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  626. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  627. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  628. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  629. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  630. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  631. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  632. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  633. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  634. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  635. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  636. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  637. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  638. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  639. ];
  640. //福田
  641. U.MD.D.I.heyuanTeacherDeskIcon = [
  642. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  643. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  644. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  645. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  646. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  647. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  648. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  649. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  650. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  651. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  652. ];
  653. //福田
  654. U.MD.D.I.heyuanAdminDeskIcon = [
  655. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  656. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  657. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  658. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  659. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  660. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  661. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  662. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  663. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  664. ];
  665. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  666. U.MD.D.I.szherTeacherDeskIcon = [
  667. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  668. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  669. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  670. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  671. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  672. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  673. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  674. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  675. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  676. ];
  677. //#region 桌面初始化a
  678. /**
  679. * 初始化桌面的起始函数
  680. *
  681. */
  682. U.MD.D.I.init = function () {
  683. if ($("#U_MD_D_K")[0]) {
  684. //初始化桌面图标
  685. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  686. // var clickUrl = ':12588/requestIp.php';
  687. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  688. // U.MD.D.I.Ip = data;
  689. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  690. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  691. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  692. // })
  693. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  694. // })
  695. }
  696. }
  697. /**
  698. * 模式切换
  699. *
  700. */
  701. U.MD.D.I.ModeCheck = function (type) {
  702. if (US.Config.type == type) {
  703. return
  704. }
  705. US.Config.type = type
  706. $('.U_PBL_Check .active')[0].className = ''
  707. if (type == 1) {
  708. $('.U_PBL_Check div')[0].className = 'active'
  709. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  710. } else {
  711. $('.U_PBL_Check div')[1].className = 'active'
  712. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  713. }
  714. //初始化桌面图标
  715. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  716. if(type == 2){
  717. U.MD.D.I.openApplication("project")
  718. }
  719. }
  720. /**
  721. * 隐藏任务栏
  722. *
  723. * @param {element} 桌面元素
  724. */
  725. U.MD.D.I.hiddenTaskbar = function (el) {
  726. //任务栏位置变小
  727. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  728. //桌面的位置变大
  729. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  730. }
  731. /**
  732. * 隐藏任务栏
  733. *
  734. * @param {element} 桌面元素
  735. */
  736. U.MD.D.I.hiddenTaskbarout = function (el) {
  737. //任务栏位置变小
  738. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  739. //任务栏位置变化
  740. U.selectEl(el).css({ "bottom": "-60px" });
  741. //桌面的位置变大
  742. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  743. }
  744. }
  745. /**
  746. * 初始化打印桌面图标
  747. *
  748. * @param {element} 桌面元素
  749. */
  750. U.MD.D.I.initDesktopIcons = function (el, type) {
  751. var i, //用于循环
  752. _content, //桌面图标元素
  753. _iconcontent, //桌面图标元素
  754. _frag = $$("frag"), //定义一个碎片元素
  755. _type = US.userInfo.type,
  756. _org = US.userInfo.org,
  757. _oid = US.userInfo.organizeid,
  758. _role = US.userInfo.role,
  759. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  760. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  761. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  762. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  763. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  764. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  765. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  766. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  767. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  768. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  769. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  770. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  771. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  772. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  773. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  774. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  775. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  776. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  777. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  778. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  779. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  780. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  781. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  782. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  783. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  784. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  785. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  786. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  787. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  788. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  789. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  790. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  791. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  792. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  793. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  794. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  795. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon,//hk
  796. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon,//hk
  797. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  798. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  799. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  800. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  801. 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'];
  802. 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'];
  803. //清楚桌面图标
  804. el.innerHTML = "";
  805. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  806. _teacherDesktopIconInfo.push(
  807. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  808. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  809. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  810. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  811. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  812. )
  813. _easyDesktopIconInfo.push(
  814. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  815. )
  816. }
  817. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  818. _teacherDesktopIconInfo.push(
  819. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  820. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  821. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  822. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  823. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  824. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  825. )
  826. }
  827. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  828. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  829. if(el.Name == '项目管理'){
  830. el.Name = 'PBL项目'
  831. }
  832. return el
  833. })
  834. }
  835. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  836. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  837. return el.Name != '魔盒识字' && el.Name != '24点'
  838. })
  839. }
  840. 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) {
  841. _studentDesktopIconInfo.push(
  842. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  843. )
  844. }
  845. //循环创建桌面图标
  846. if (type == 1) {
  847. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  848. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  849. _content = $$("div", {
  850. className: "U_MD_D_KO",
  851. "onmousedown": U.UF.C.closure(function (obj) {
  852. //防止拖动图标即打开了桌面应用
  853. U.MD.D.click(this, obj);
  854. }, [_studentDesktopIconInfo[i]]),
  855. "onclick": U.UF.C.closure(function (obj) {
  856. //防止拖动图标即打开了桌面应用
  857. U.MD.D.click(this, obj);
  858. }, [_studentDesktopIconInfo[i]])
  859. }, _frag); //
  860. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  861. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  862. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  863. }
  864. }else if (_type == 2 && (_org == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  865. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  866. _content = $$("div", {
  867. className: "U_MD_D_KO",
  868. "onmousedown": U.UF.C.closure(function (obj) {
  869. //防止拖动图标即打开了桌面应用
  870. U.MD.D.click(this, obj);
  871. }, [_hkZJLSStudentDeskIconInfo[i]]),
  872. "onclick": U.UF.C.closure(function (obj) {
  873. //防止拖动图标即打开了桌面应用
  874. U.MD.D.click(this, obj);
  875. }, [_hkZJLSStudentDeskIconInfo[i]])
  876. }, _frag); //
  877. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  878. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  879. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  880. }
  881. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  882. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  883. _content = $$("div", {
  884. className: "U_MD_D_KO",
  885. "onmousedown": U.UF.C.closure(function (obj) {
  886. //防止拖动图标即打开了桌面应用
  887. U.MD.D.click(this, obj);
  888. }, [_hkStudentDeskIconInfo[i]]),
  889. "onclick": U.UF.C.closure(function (obj) {
  890. //防止拖动图标即打开了桌面应用
  891. U.MD.D.click(this, obj);
  892. }, [_hkStudentDeskIconInfo[i]])
  893. }, _frag); //
  894. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  895. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  896. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  897. }
  898. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  899. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  900. _content = $$("div", {
  901. className: "U_MD_D_KO",
  902. "onmousedown": U.UF.C.closure(function (obj) {
  903. //防止拖动图标即打开了桌面应用
  904. U.MD.D.click(this, obj);
  905. }, [_studentDesktopIconInfo[i]]),
  906. "onclick": U.UF.C.closure(function (obj) {
  907. //防止拖动图标即打开了桌面应用
  908. U.MD.D.click(this, obj);
  909. }, [_studentDesktopIconInfo[i]])
  910. }, _frag); //
  911. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  912. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  913. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  914. }
  915. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  916. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  917. _content = $$("div", {
  918. className: "U_MD_D_KO",
  919. "onmousedown": U.UF.C.closure(function (obj) {
  920. //防止拖动图标即打开了桌面应用
  921. U.MD.D.click(this, obj);
  922. }, [_tcStudentDeskIconInfo[i]]),
  923. "onclick": U.UF.C.closure(function (obj) {
  924. //防止拖动图标即打开了桌面应用
  925. U.MD.D.click(this, obj);
  926. }, [_tcStudentDeskIconInfo[i]])
  927. }, _frag); //
  928. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  929. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  930. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  931. }
  932. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  933. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  934. _content = $$("div", {
  935. className: "U_MD_D_KO",
  936. "onmousedown": U.UF.C.closure(function (obj) {
  937. //防止拖动图标即打开了桌面应用
  938. U.MD.D.click(this, obj);
  939. }, [_szscStudentDeskIconInfo[i]]),
  940. "onclick": U.UF.C.closure(function (obj) {
  941. //防止拖动图标即打开了桌面应用
  942. U.MD.D.click(this, obj);
  943. }, [_szscStudentDeskIconInfo[i]])
  944. }, _frag); //
  945. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  946. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  947. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  948. }
  949. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  950. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  951. _content = $$("div", {
  952. className: "U_MD_D_KO",
  953. "onmousedown": U.UF.C.closure(function (obj) {
  954. //防止拖动图标即打开了桌面应用
  955. U.MD.D.click(this, obj);
  956. }, [_studentDesktopIconInfo3[i]]),
  957. "onclick": U.UF.C.closure(function (obj) {
  958. //防止拖动图标即打开了桌面应用
  959. U.MD.D.click(this, obj);
  960. }, [_studentDesktopIconInfo3[i]])
  961. }, _frag); //
  962. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  963. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  964. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  965. }
  966. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  967. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  968. _content = $$("div", {
  969. className: "U_MD_D_KO",
  970. "onmousedown": U.UF.C.closure(function (obj) {
  971. //防止拖动图标即打开了桌面应用
  972. U.MD.D.click(this, obj);
  973. }, [_studentDesktopIconInfo2[i]]),
  974. "onclick": U.UF.C.closure(function (obj) {
  975. //防止拖动图标即打开了桌面应用
  976. U.MD.D.click(this, obj);
  977. }, [_studentDesktopIconInfo2[i]])
  978. }, _frag); //
  979. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  980. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  981. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  982. }
  983. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  984. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  985. _content = $$("div", {
  986. className: "U_MD_D_KO",
  987. "onmousedown": U.UF.C.closure(function (obj) {
  988. //防止拖动图标即打开了桌面应用
  989. U.MD.D.click(this, obj);
  990. }, [_wanketeacherDesktopIconInfo[i]]),
  991. "onclick": U.UF.C.closure(function (obj) {
  992. //防止拖动图标即打开了桌面应用
  993. U.MD.D.click(this, obj);
  994. }, [_wanketeacherDesktopIconInfo[i]])
  995. }, _frag); //
  996. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  997. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  998. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  999. }
  1000. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1001. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1002. _content = $$("div", {
  1003. className: "U_MD_D_KO",
  1004. "onmousedown": U.UF.C.closure(function (obj) {
  1005. //防止拖动图标即打开了桌面应用
  1006. U.MD.D.click(this, obj);
  1007. }, [_wankeAdminDesktopIconInfo[i]]),
  1008. "onclick": U.UF.C.closure(function (obj) {
  1009. //防止拖动图标即打开了桌面应用
  1010. U.MD.D.click(this, obj);
  1011. }, [_wankeAdminDesktopIconInfo[i]])
  1012. }, _frag); //
  1013. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1014. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1015. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1016. }
  1017. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1018. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1019. _content = $$("div", {
  1020. className: "U_MD_D_KO",
  1021. "onmousedown": U.UF.C.closure(function (obj) {
  1022. //防止拖动图标即打开了桌面应用
  1023. U.MD.D.click(this, obj);
  1024. }, [_teacherDesktopIconInfo2[i]]),
  1025. "onclick": U.UF.C.closure(function (obj) {
  1026. //防止拖动图标即打开了桌面应用
  1027. U.MD.D.click(this, obj);
  1028. }, [_teacherDesktopIconInfo2[i]])
  1029. }, _frag); //
  1030. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1031. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1032. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1033. }
  1034. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1035. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1036. _content = $$("div", {
  1037. className: "U_MD_D_KO",
  1038. "onmousedown": U.UF.C.closure(function (obj) {
  1039. //防止拖动图标即打开了桌面应用
  1040. U.MD.D.click(this, obj);
  1041. }, [_lotechTeacherDeskIconInfo[i]]),
  1042. "onclick": U.UF.C.closure(function (obj) {
  1043. //防止拖动图标即打开了桌面应用
  1044. U.MD.D.click(this, obj);
  1045. }, [_lotechTeacherDeskIconInfo[i]])
  1046. }, _frag); //
  1047. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1048. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1049. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1050. }
  1051. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1052. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1053. _content = $$("div", {
  1054. className: "U_MD_D_KO",
  1055. "onmousedown": U.UF.C.closure(function (obj) {
  1056. //防止拖动图标即打开了桌面应用
  1057. U.MD.D.click(this, obj);
  1058. }, [_siesTeacherDeskIconInfo[i]]),
  1059. "onclick": U.UF.C.closure(function (obj) {
  1060. //防止拖动图标即打开了桌面应用
  1061. U.MD.D.click(this, obj);
  1062. }, [_siesTeacherDeskIconInfo[i]])
  1063. }, _frag); //
  1064. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1065. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1066. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1067. }
  1068. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1069. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1070. _content = $$("div", {
  1071. className: "U_MD_D_KO",
  1072. "onmousedown": U.UF.C.closure(function (obj) {
  1073. //防止拖动图标即打开了桌面应用
  1074. U.MD.D.click(this, obj);
  1075. }, [_longhuaTeacherDeskIconInfo[i]]),
  1076. "onclick": U.UF.C.closure(function (obj) {
  1077. //防止拖动图标即打开了桌面应用
  1078. U.MD.D.click(this, obj);
  1079. }, [_longhuaTeacherDeskIconInfo[i]])
  1080. }, _frag); //
  1081. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1082. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1083. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1084. }
  1085. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1086. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1087. _content = $$("div", {
  1088. className: "U_MD_D_KO",
  1089. "onmousedown": U.UF.C.closure(function (obj) {
  1090. //防止拖动图标即打开了桌面应用
  1091. U.MD.D.click(this, obj);
  1092. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1093. "onclick": U.UF.C.closure(function (obj) {
  1094. //防止拖动图标即打开了桌面应用
  1095. U.MD.D.click(this, obj);
  1096. }, [_yunhaiTeacherDeskIconInfo[i]])
  1097. }, _frag); //
  1098. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1099. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1100. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1101. }//_hkStudentDeskIconInfo
  1102. }else if ((_type == 1 || _type == 4) && (_org == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1103. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1104. _content = $$("div", {
  1105. className: "U_MD_D_KO",
  1106. "onmousedown": U.UF.C.closure(function (obj) {
  1107. //防止拖动图标即打开了桌面应用
  1108. U.MD.D.click(this, obj);
  1109. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1110. "onclick": U.UF.C.closure(function (obj) {
  1111. //防止拖动图标即打开了桌面应用
  1112. U.MD.D.click(this, obj);
  1113. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1114. }, _frag); //
  1115. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1116. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1117. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1118. }
  1119. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1120. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1121. _content = $$("div", {
  1122. className: "U_MD_D_KO",
  1123. "onmousedown": U.UF.C.closure(function (obj) {
  1124. //防止拖动图标即打开了桌面应用
  1125. U.MD.D.click(this, obj);
  1126. }, [_hkTeacherDeskIconInfo[i]]),
  1127. "onclick": U.UF.C.closure(function (obj) {
  1128. //防止拖动图标即打开了桌面应用
  1129. U.MD.D.click(this, obj);
  1130. }, [_hkTeacherDeskIconInfo[i]])
  1131. }, _frag); //
  1132. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1133. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1134. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1135. }
  1136. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1137. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1138. _content = $$("div", {
  1139. className: "U_MD_D_KO",
  1140. "onmousedown": U.UF.C.closure(function (obj) {
  1141. //防止拖动图标即打开了桌面应用
  1142. U.MD.D.click(this, obj);
  1143. }, [_gdjgAdminDeskIconInfo[i]]),
  1144. "onclick": U.UF.C.closure(function (obj) {
  1145. //防止拖动图标即打开了桌面应用
  1146. U.MD.D.click(this, obj);
  1147. }, [_gdjgAdminDeskIconInfo[i]])
  1148. }, _frag); //
  1149. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1150. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1151. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1152. }
  1153. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1154. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1155. _content = $$("div", {
  1156. className: "U_MD_D_KO",
  1157. "onmousedown": U.UF.C.closure(function (obj) {
  1158. //防止拖动图标即打开了桌面应用
  1159. U.MD.D.click(this, obj);
  1160. }, [_gdjgTeacherDeskIconInfo[i]]),
  1161. "onclick": U.UF.C.closure(function (obj) {
  1162. //防止拖动图标即打开了桌面应用
  1163. U.MD.D.click(this, obj);
  1164. }, [_gdjgTeacherDeskIconInfo[i]])
  1165. }, _frag); //
  1166. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1167. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1168. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1169. }
  1170. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1171. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1172. _content = $$("div", {
  1173. className: "U_MD_D_KO",
  1174. "onmousedown": U.UF.C.closure(function (obj) {
  1175. //防止拖动图标即打开了桌面应用
  1176. U.MD.D.click(this, obj);
  1177. }, [_szherTeacherDeskIconInfo[i]]),
  1178. "onclick": U.UF.C.closure(function (obj) {
  1179. //防止拖动图标即打开了桌面应用
  1180. U.MD.D.click(this, obj);
  1181. }, [_szherTeacherDeskIconInfo[i]])
  1182. }, _frag); //
  1183. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1184. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1185. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1186. }
  1187. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1188. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1189. _content = $$("div", {
  1190. className: "U_MD_D_KO",
  1191. "onmousedown": U.UF.C.closure(function (obj) {
  1192. //防止拖动图标即打开了桌面应用
  1193. U.MD.D.click(this, obj);
  1194. }, [_heyuannAdminDeskIconInfo[i]]),
  1195. "onclick": U.UF.C.closure(function (obj) {
  1196. //防止拖动图标即打开了桌面应用
  1197. U.MD.D.click(this, obj);
  1198. }, [_heyuannAdminDeskIconInfo[i]])
  1199. }, _frag); //
  1200. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1201. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1202. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1203. }
  1204. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1205. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1206. _content = $$("div", {
  1207. className: "U_MD_D_KO",
  1208. "onmousedown": U.UF.C.closure(function (obj) {
  1209. //防止拖动图标即打开了桌面应用
  1210. U.MD.D.click(this, obj);
  1211. }, [_heyuanTeacherDeskIconInfo[i]]),
  1212. "onclick": U.UF.C.closure(function (obj) {
  1213. //防止拖动图标即打开了桌面应用
  1214. U.MD.D.click(this, obj);
  1215. }, [_heyuanTeacherDeskIconInfo[i]])
  1216. }, _frag); //
  1217. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1218. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1219. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1220. }
  1221. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1222. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1223. _content = $$("div", {
  1224. className: "U_MD_D_KO",
  1225. "onmousedown": U.UF.C.closure(function (obj) {
  1226. //防止拖动图标即打开了桌面应用
  1227. U.MD.D.click(this, obj);
  1228. }, [_futianAdminDeskIconInfo[i]]),
  1229. "onclick": U.UF.C.closure(function (obj) {
  1230. //防止拖动图标即打开了桌面应用
  1231. U.MD.D.click(this, obj);
  1232. }, [_futianAdminDeskIconInfo[i]])
  1233. }, _frag); //
  1234. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1235. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1236. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1237. }
  1238. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1239. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1240. _content = $$("div", {
  1241. className: "U_MD_D_KO",
  1242. "onmousedown": U.UF.C.closure(function (obj) {
  1243. //防止拖动图标即打开了桌面应用
  1244. U.MD.D.click(this, obj);
  1245. }, [_futianTeacherDeskIconInfo[i]]),
  1246. "onclick": U.UF.C.closure(function (obj) {
  1247. //防止拖动图标即打开了桌面应用
  1248. U.MD.D.click(this, obj);
  1249. }, [_futianTeacherDeskIconInfo[i]])
  1250. }, _frag); //
  1251. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1252. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1253. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1254. }
  1255. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1256. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1257. _content = $$("div", {
  1258. className: "U_MD_D_KO",
  1259. "onmousedown": U.UF.C.closure(function (obj) {
  1260. //防止拖动图标即打开了桌面应用
  1261. U.MD.D.click(this, obj);
  1262. }, [_MingdeTeacherDeskIcon[i]]),
  1263. "onclick": U.UF.C.closure(function (obj) {
  1264. //防止拖动图标即打开了桌面应用
  1265. U.MD.D.click(this, obj);
  1266. }, [_MingdeTeacherDeskIcon[i]])
  1267. }, _frag); //
  1268. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1269. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1270. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1271. }
  1272. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1273. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1274. _content = $$("div", {
  1275. className: "U_MD_D_KO",
  1276. "onmousedown": U.UF.C.closure(function (obj) {
  1277. //防止拖动图标即打开了桌面应用
  1278. U.MD.D.click(this, obj);
  1279. }, [_lhsAdminDesktopIconInfo[i]]),
  1280. "onclick": U.UF.C.closure(function (obj) {
  1281. //防止拖动图标即打开了桌面应用
  1282. U.MD.D.click(this, obj);
  1283. }, [_lhsAdminDesktopIconInfo[i]])
  1284. }, _frag); //
  1285. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1286. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1287. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1288. }
  1289. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1290. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1291. _content = $$("div", {
  1292. className: "U_MD_D_KO",
  1293. "onmousedown": U.UF.C.closure(function (obj) {
  1294. //防止拖动图标即打开了桌面应用
  1295. U.MD.D.click(this, obj);
  1296. }, [_lhsteacherDesktopIconInfo[i]]),
  1297. "onclick": U.UF.C.closure(function (obj) {
  1298. //防止拖动图标即打开了桌面应用
  1299. U.MD.D.click(this, obj);
  1300. }, [_lhsteacherDesktopIconInfo[i]])
  1301. }, _frag); //
  1302. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1303. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1304. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1305. }
  1306. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1307. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1308. _content = $$("div", {
  1309. className: "U_MD_D_KO",
  1310. "onmousedown": U.UF.C.closure(function (obj) {
  1311. //防止拖动图标即打开了桌面应用
  1312. U.MD.D.click(this, obj);
  1313. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1314. "onclick": U.UF.C.closure(function (obj) {
  1315. //防止拖动图标即打开了桌面应用
  1316. U.MD.D.click(this, obj);
  1317. }, [_zhoujiateacherDesktopIconInfo[i]])
  1318. }, _frag); //
  1319. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1320. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1321. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1322. }
  1323. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1324. for (i = 0; i < _hanDeskIcon.length; i++) {
  1325. _content = $$("div", {
  1326. className: "U_MD_D_KO",
  1327. "onmousedown": U.UF.C.closure(function (obj) {
  1328. //防止拖动图标即打开了桌面应用
  1329. U.MD.D.click(this, obj);
  1330. }, [_hanDeskIcon[i]]),
  1331. "onclick": U.UF.C.closure(function (obj) {
  1332. //防止拖动图标即打开了桌面应用
  1333. U.MD.D.click(this, obj);
  1334. }, [_hanDeskIcon[i]])
  1335. }, _frag); //
  1336. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1337. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1338. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1339. }
  1340. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1341. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1342. _content = $$("div", {
  1343. className: "U_MD_D_KO",
  1344. "onmousedown": U.UF.C.closure(function (obj) {
  1345. //防止拖动图标即打开了桌面应用
  1346. U.MD.D.click(this, obj);
  1347. }, [_orgStemDeskIcon[i]]),
  1348. "onclick": U.UF.C.closure(function (obj) {
  1349. //防止拖动图标即打开了桌面应用
  1350. U.MD.D.click(this, obj);
  1351. }, [_orgStemDeskIcon[i]])
  1352. }, _frag); //
  1353. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1354. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1355. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1356. }
  1357. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1358. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1359. _content = $$("div", {
  1360. className: "U_MD_D_KO",
  1361. "onmousedown": U.UF.C.closure(function (obj) {
  1362. //防止拖动图标即打开了桌面应用
  1363. U.MD.D.click(this, obj);
  1364. }, [_szulsDeskIcon[i]]),
  1365. "onclick": U.UF.C.closure(function (obj) {
  1366. //防止拖动图标即打开了桌面应用
  1367. U.MD.D.click(this, obj);
  1368. }, [_szulsDeskIcon[i]])
  1369. }, _frag); //
  1370. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1371. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1372. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1373. }
  1374. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1375. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1376. _content = $$("div", {
  1377. className: "U_MD_D_KO",
  1378. "onmousedown": U.UF.C.closure(function (obj) {
  1379. //防止拖动图标即打开了桌面应用
  1380. U.MD.D.click(this, obj);
  1381. }, [_orgDesktopIconInfo[i]]),
  1382. "onclick": U.UF.C.closure(function (obj) {
  1383. //防止拖动图标即打开了桌面应用
  1384. U.MD.D.click(this, obj);
  1385. }, [_orgDesktopIconInfo[i]])
  1386. }, _frag); //
  1387. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1388. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1389. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1390. }
  1391. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1392. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1393. _content = $$("div", {
  1394. className: "U_MD_D_KO",
  1395. "onmousedown": U.UF.C.closure(function (obj) {
  1396. //防止拖动图标即打开了桌面应用
  1397. U.MD.D.click(this, obj);
  1398. }, [_schoolDesktopIconInfo[i]]),
  1399. "onclick": U.UF.C.closure(function (obj) {
  1400. //防止拖动图标即打开了桌面应用
  1401. U.MD.D.click(this, obj);
  1402. }, [_schoolDesktopIconInfo[i]])
  1403. }, _frag); //
  1404. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1405. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1406. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1407. }
  1408. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1409. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1410. _content = $$("div", {
  1411. className: "U_MD_D_KO",
  1412. "onmousedown": U.UF.C.closure(function (obj) {
  1413. //防止拖动图标即打开了桌面应用
  1414. U.MD.D.click(this, obj);
  1415. }, [_GMteacherDesktopIconInfo[i]]),
  1416. "onclick": U.UF.C.closure(function (obj) {
  1417. //防止拖动图标即打开了桌面应用
  1418. U.MD.D.click(this, obj);
  1419. }, [_GMteacherDesktopIconInfo[i]])
  1420. }, _frag); //
  1421. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1422. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1423. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1424. }
  1425. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1426. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1427. _content = $$("div", {
  1428. className: "U_MD_D_KO",
  1429. "onmousedown": U.UF.C.closure(function (obj) {
  1430. //防止拖动图标即打开了桌面应用
  1431. U.MD.D.click(this, obj);
  1432. }, [_SONGteacherDesktopIconInfo[i]]),
  1433. "onclick": U.UF.C.closure(function (obj) {
  1434. //防止拖动图标即打开了桌面应用
  1435. U.MD.D.click(this, obj);
  1436. }, [_SONGteacherDesktopIconInfo[i]])
  1437. }, _frag); //
  1438. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1439. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1440. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1441. }
  1442. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1443. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1444. _content = $$("div", {
  1445. className: "U_MD_D_KO",
  1446. "onmousedown": U.UF.C.closure(function (obj) {
  1447. //防止拖动图标即打开了桌面应用
  1448. U.MD.D.click(this, obj);
  1449. }, [_GMstudentDesktopIconInfo[i]]),
  1450. "onclick": U.UF.C.closure(function (obj) {
  1451. //防止拖动图标即打开了桌面应用
  1452. U.MD.D.click(this, obj);
  1453. }, [_GMstudentDesktopIconInfo[i]])
  1454. }, _frag); //
  1455. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1456. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1457. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1458. }
  1459. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1460. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1461. _content = $$("div", {
  1462. className: "U_MD_D_KO",
  1463. "onmousedown": U.UF.C.closure(function (obj) {
  1464. //防止拖动图标即打开了桌面应用
  1465. U.MD.D.click(this, obj);
  1466. }, [_tcTeacherDeskIconInfo[i]]),
  1467. "onclick": U.UF.C.closure(function (obj) {
  1468. //防止拖动图标即打开了桌面应用
  1469. U.MD.D.click(this, obj);
  1470. }, [_tcTeacherDeskIconInfo[i]])
  1471. }, _frag); //
  1472. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1473. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1474. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1475. }
  1476. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1477. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1478. _content = $$("div", {
  1479. className: "U_MD_D_KO",
  1480. "onmousedown": U.UF.C.closure(function (obj) {
  1481. //防止拖动图标即打开了桌面应用
  1482. U.MD.D.click(this, obj);
  1483. }, [_tcOrganizerDeskIconInfo[i]]),
  1484. "onclick": U.UF.C.closure(function (obj) {
  1485. //防止拖动图标即打开了桌面应用
  1486. U.MD.D.click(this, obj);
  1487. }, [_tcOrganizerDeskIconInfo[i]])
  1488. }, _frag); //
  1489. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1490. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1491. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1492. }
  1493. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1494. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1495. _content = $$("div", {
  1496. className: "U_MD_D_KO",
  1497. "onmousedown": U.UF.C.closure(function (obj) {
  1498. //防止拖动图标即打开了桌面应用
  1499. U.MD.D.click(this, obj);
  1500. }, [_szscTeacherDeskIconInfo[i]]),
  1501. "onclick": U.UF.C.closure(function (obj) {
  1502. //防止拖动图标即打开了桌面应用
  1503. U.MD.D.click(this, obj);
  1504. }, [_szscTeacherDeskIconInfo[i]])
  1505. }, _frag); //
  1506. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1507. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1508. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1509. }
  1510. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1511. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1512. _content = $$("div", {
  1513. className: "U_MD_D_KO",
  1514. "onmousedown": U.UF.C.closure(function (obj) {
  1515. //防止拖动图标即打开了桌面应用
  1516. U.MD.D.click(this, obj);
  1517. }, [_szscOrganizerDeskIconInfo[i]]),
  1518. "onclick": U.UF.C.closure(function (obj) {
  1519. //防止拖动图标即打开了桌面应用
  1520. U.MD.D.click(this, obj);
  1521. }, [_szscOrganizerDeskIconInfo[i]])
  1522. }, _frag); //
  1523. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1524. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1525. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1526. }
  1527. } else {
  1528. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1529. _content = $$("div", {
  1530. className: "U_MD_D_KO",
  1531. "onmousedown": U.UF.C.closure(function (obj) {
  1532. //防止拖动图标即打开了桌面应用
  1533. U.MD.D.click(this, obj);
  1534. }, [_teacherDesktopIconInfo[i]]),
  1535. "onclick": U.UF.C.closure(function (obj) {
  1536. //防止拖动图标即打开了桌面应用
  1537. U.MD.D.click(this, obj);
  1538. }, [_teacherDesktopIconInfo[i]])
  1539. }, _frag); //
  1540. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1541. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1542. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1543. }
  1544. }
  1545. } else {
  1546. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1547. _content = $$("div", {
  1548. className: "U_MD_D_KO",
  1549. style: { 'width': '124px', 'height': '145px' },
  1550. "onmousedown": U.UF.C.closure(function (obj) {
  1551. //防止拖动图标即打开了桌面应用
  1552. U.MD.D.click(this, obj);
  1553. }, [_easyDesktopIconInfo[i]]),
  1554. "onclick": U.UF.C.closure(function (obj) {
  1555. //防止拖动图标即打开了桌面应用
  1556. U.MD.D.click(this, obj);
  1557. }, [_easyDesktopIconInfo[i]])
  1558. }, _frag); //
  1559. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1560. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1561. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1562. }
  1563. }
  1564. if (type == 1) {
  1565. //加载好后给图标定位
  1566. U.MD.D.iconPostion($(_frag).Child());
  1567. } else {
  1568. //加载好后给图标定位
  1569. U.MD.D.iconPostion2($(_frag).Child());
  1570. }
  1571. //把图标加载到页面
  1572. el.appendChild(_frag);
  1573. }
  1574. /**
  1575. * 显示任务栏
  1576. *
  1577. * @param {element} 桌面元素
  1578. */
  1579. U.MD.D.I.displayTaskbar = function (el) {
  1580. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1581. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1582. //任务栏位置变化
  1583. U.selectEl(el).css({ "bottom": "0px" });
  1584. //桌面位置变话
  1585. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1586. }
  1587. }
  1588. //#region 桌面图标拖动逻辑
  1589. /**
  1590. * 桌面排列图标
  1591. *
  1592. * @param {element} 桌面元素
  1593. * @param {object} 上下相距的距离
  1594. * @param {object} 左右相距的距离
  1595. * @return {object} 命名空间
  1596. */
  1597. U.MD.D.iconPostion = function (childs, top, left) {
  1598. var i; //用于循环处理
  1599. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1600. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1601. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1602. for (i = 0; i < childs.length; i++) {
  1603. //如果竖排top超过了范围处理
  1604. if (top + 95 > US.height - 10) {
  1605. //left超过了页面范围处理,则向上重叠打印处理
  1606. if ((left + 180) > US.width) {
  1607. top -= 110;
  1608. left -= 90;
  1609. }
  1610. //没有超过范围,那么left+90添加到下一个竖排打印
  1611. else {
  1612. left += 90;
  1613. top = 15;
  1614. };
  1615. }
  1616. //给图标的位置赋值
  1617. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1618. if (i < childs.length - 1) {
  1619. //页面图标每次向下加95
  1620. top += 95;
  1621. }
  1622. }
  1623. //返回最后调用的图标的位置
  1624. return [top, left];
  1625. }
  1626. /**
  1627. * 桌面排列图标
  1628. *
  1629. * @param {element} 桌面元素
  1630. * @param {object} 上下相距的距离
  1631. * @param {object} 左右相距的距离
  1632. * @return {object} 命名空间
  1633. */
  1634. U.MD.D.iconPostion2 = function (childs, top, left) {
  1635. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1636. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1637. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1638. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1639. for (i = 0; i < childs.length; i++) {
  1640. //如果竖排top超过了范围处理
  1641. if (left + 150 > US.width - 10) {
  1642. //left超过了页面范围处理,则向上重叠打印处理
  1643. if ((top + 180) > US.Height) {
  1644. top -= 150;
  1645. left -= 150;
  1646. }
  1647. //没有超过范围,那么left+90添加到下一个竖排打印
  1648. else {
  1649. top += 150;
  1650. left = ol;
  1651. };
  1652. }
  1653. //给图标的位置赋值
  1654. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1655. if (i < childs.length - 1) {
  1656. //页面图标每次向下加95
  1657. left += 150;
  1658. }
  1659. }
  1660. //返回最后调用的图标的位置
  1661. return [top, left];
  1662. }
  1663. /**
  1664. * 桌面点击事件逻辑
  1665. *
  1666. * @param {element} 桌面元素
  1667. * @param {object} 上下相距的距离
  1668. * @param {object} 左右相距的距离
  1669. * @return {object} 命名空间
  1670. */
  1671. U.MD.D.click = function (el, obj) {
  1672. var _buttonnumber = event.button; //点击的按钮的事件值
  1673. var _userinfo = US.userInfo;
  1674. U.UF.EV.stopBubble(); //阻止向上冒泡
  1675. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1676. if (_buttonnumber < 2) {
  1677. //如果是click事件的处理
  1678. if (event.type == "click") {
  1679. //如果元素在mousemove事件中没有移动则出发click事件
  1680. if (!U.MD.D.I.IsDrag) {
  1681. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1682. U.alert("请先登录您的账号!");
  1683. setTimeout(() => {
  1684. U.MD.U.L.login();
  1685. }, 2000);
  1686. } else {
  1687. //打开应用处理
  1688. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1689. }
  1690. }
  1691. }
  1692. //如果是mouse事件的处理
  1693. else {
  1694. if (US.Config.type == '1') {
  1695. //拖动处理,添加拖动和拖动结束事件
  1696. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1697. }
  1698. }
  1699. U.MD.D.I.IsDrag = false;
  1700. }
  1701. }
  1702. /**
  1703. * 拖动的处理
  1704. *
  1705. */
  1706. U.MD.D.iconMove = function () {
  1707. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1708. U.MD.D.I.IsDrag = true;
  1709. }
  1710. /**
  1711. * 拖动结束后,这里是定位处理,以网状的形式定位
  1712. *
  1713. * @param {element} 拖动的元素
  1714. * @return {object} 命名空间
  1715. */
  1716. U.MD.D.iconUp = function (el) {
  1717. var _top = 15,
  1718. _left = 20,
  1719. _margin,
  1720. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1721. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1722. if (_positioninfo["OT"] > 15) {
  1723. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1724. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1725. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1726. }
  1727. if (_positioninfo["OL"] > 20) {
  1728. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1729. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1730. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1731. }
  1732. //while循环判断么一个重叠的元素
  1733. do {
  1734. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1735. _top = _positioninfo[0] + 95; //得到定位后的top
  1736. _left = _positioninfo[1]; //得到定位后的left
  1737. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1738. }
  1739. /**
  1740. * 判断拖动后图标是否重叠
  1741. *
  1742. * @param {element} 拖动的元素
  1743. * @param {element} 桌面所有的元素
  1744. * @param {array} 拖动元素的位置
  1745. ----------[0] 上 top
  1746. ----------[1] 左 left
  1747. * @return {object} 命名空间
  1748. */
  1749. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1750. //循环所有的图标
  1751. for (var i = 0; i < childs.length; i++) {
  1752. //判断有没有和该图标诶子重叠的元素
  1753. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1754. return childs[i]; //如果有返回
  1755. }
  1756. }
  1757. }
  1758. //#endregion
  1759. //#endregion
  1760. //#region 桌面应用
  1761. /**
  1762. * 打开应用
  1763. *
  1764. * @param {string} 类型
  1765. -----------------Disk 网盘系统
  1766. -----------------PDisk 学习系统网盘
  1767. -----------------Poto 图片
  1768. -----------------Video 视频
  1769. -----------------Music 音乐
  1770. -----------------Word word
  1771. -----------------Excel excel
  1772. -----------------Txt 记事本
  1773. -----------------PB 学习系统
  1774. -----------------Blog 朋友圈系统
  1775. -----------------FTP ftp系统
  1776. -----------------Group 好友群
  1777. -----------------SY 首页系统
  1778. -----------------Set 个人设置
  1779. -----------------XSet 系统设置
  1780. -----------------App 我们所有的app
  1781. -----------------BC c.1473.cn 平台
  1782. -----------------CWeb d.1473.cn 变成平台
  1783. -----------------其他的外联系统 我们统一用iframe打开
  1784. * @param {array} 类型
  1785. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1786. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1787. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1788. 如果第一个参数为其他,则无第二个参数
  1789. * @returns {array}
  1790. */
  1791. window.addEventListener('message', function (e) { // 监听 message 事件
  1792. // alert(e.data.type);
  1793. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1794. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1795. //3是展示全部阶段 2学生 1老师 4专家
  1796. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1797. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1798. //3是展示全部阶段 2学生 1老师 4专家
  1799. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1800. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1801. //3是展示全部阶段 2学生 1老师 4专家
  1802. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1803. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1804. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1805. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1806. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1807. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1808. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1809. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1810. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1811. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1812. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1813. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1814. //3是展示全部阶段 2学生 1老师 4专家
  1815. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1816. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1817. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1818. U.MD.D.I.selectUser();
  1819. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1820. var _formel = document.getElementById("study");
  1821. U.UF.F.windowZooming(_formel);
  1822. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1823. var _formel = document.getElementById("studyDetail");
  1824. U.UF.F.windowZooming(_formel);
  1825. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1826. var _formel = document.getElementById("studyDetail");
  1827. U.UF.F.windowZooming(_formel);
  1828. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1829. var _formel = document.getElementById("studentStudy");
  1830. U.UF.F.windowZooming(_formel);
  1831. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1832. // var _formel = document.getElementById("study");
  1833. //如果最大化了,那么就把他缩小
  1834. // if (_formel.ismaximize) {
  1835. // return;
  1836. // }
  1837. // U.UF.F.windowZooming(_formel);
  1838. // U.UF.F.topWindow(_formel);
  1839. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1840. // var _formel = document.getElementById("studyDetail");
  1841. //如果最大化了,那么就把他缩小
  1842. // if (_formel.ismaximize) {
  1843. // return;
  1844. // }
  1845. // U.UF.F.windowZooming(_formel);
  1846. // U.UF.F.topWindow(_formel);
  1847. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1848. // var _formel = document.getElementById("studentStudy");
  1849. // if (_formel.ismaximize) {
  1850. // return;
  1851. // }
  1852. // U.UF.F.windowZooming(_formel);
  1853. // U.UF.F.topWindow(_formel);
  1854. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1855. var _formel = document.getElementById("study");
  1856. // if (_formel.ismaximize) {
  1857. // return;
  1858. // }
  1859. // U.UF.F.windowZooming(_formel);
  1860. U.UF.F.topWindow(_formel);
  1861. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1862. var _formel = document.getElementById("studentIndex");
  1863. U.UF.F.windowZooming(_formel);
  1864. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1865. var _formel = document.getElementById("studyDetailS");
  1866. U.UF.F.windowZooming(_formel);
  1867. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1868. var _formel = document.getElementById("studioIndex");
  1869. U.UF.F.windowZooming(_formel);
  1870. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1871. var _formel = document.getElementById("studyDetailStudio");
  1872. U.UF.F.windowZooming(_formel);
  1873. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1874. var _formel = document.getElementById("studyDetailStudio");
  1875. U.UF.F.windowZooming(_formel);
  1876. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1877. var _formel = document.getElementById("studyDetailNT");
  1878. U.UF.F.windowZooming(_formel);
  1879. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1880. var _formel = document.getElementById("studyDetailS");
  1881. U.UF.F.windowZooming(_formel);
  1882. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1883. var _formel = document.getElementById("studyDetailS");
  1884. U.UF.F.topWindow(_formel);
  1885. } else if (e.data.tools && e.data.tools == "1") {
  1886. // U.MD.D.I.openApplication("whiteboard")
  1887. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1888. } else if (e.data.tools && e.data.tools == "2") {
  1889. U.MD.D.I.openApplication("note")
  1890. } else if (e.data.tools && e.data.tools == "3") {
  1891. // U.MD.D.I.openApplication("mind")
  1892. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1893. } else if (e.data.tools && e.data.tools == "4") {
  1894. U.MD.D.I.openApplication("investigation")
  1895. } else if (e.data.tools && e.data.tools == "6") {
  1896. // U.MD.D.I.openApplication("doc")
  1897. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1898. } else if (e.data.tools && e.data.tools == "7") {
  1899. // U.MD.D.I.openApplication("mindNetwork")
  1900. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1901. } else if (e.data.tools && e.data.tools == "8") {
  1902. U.MD.D.I.openApplication("library")
  1903. } else if (e.data.tools && e.data.tools == "17") {
  1904. U.MD.D.I.openApplication("stuLibrary")
  1905. } else if (e.data.tools && e.data.tools == "18") {
  1906. U.MD.D.I.openApplication("train")
  1907. } else if (e.data.tools && e.data.tools == "21") {
  1908. U.MD.D.I.openApplication("program")
  1909. } else if (e.data.tools && e.data.tools == "22") {
  1910. U.MD.D.I.openApplication("AIprogram2")
  1911. } else if (e.data.tools && e.data.tools == "23") {
  1912. U.MD.D.I.openApplication("Pythonprogram")
  1913. } else if (e.data.tools && e.data.tools == "24") {
  1914. U.MD.D.I.openApplication("AIprogram")
  1915. } else if (e.data.tools && e.data.tools == "25") {
  1916. U.MD.D.I.openApplication("sys")
  1917. } else if (e.data.tools && e.data.tools == "26") {
  1918. // U.MD.D.I.openApplication("courseDesign")
  1919. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1920. } else if (e.data.tools && e.data.tools == "31") {
  1921. U.MD.D.I.openApplication("netWorkPanel")
  1922. } else if (e.data.tools && e.data.tools == "32") {
  1923. U.MD.D.I.openApplication("codeEdit")
  1924. } else if (e.data.tools && e.data.tools == "57") {
  1925. U.MD.D.I.openApplication("CocoPi")
  1926. } else if (e.data.tools && e.data.tools == "63") {
  1927. U.MD.D.I.openApplication("Wood")
  1928. } else if (e.data.tools && e.data.tools == "58") {
  1929. U.MD.D.I.openApplication("car")
  1930. } else if (e.data.tools && e.data.tools == "59") {
  1931. U.MD.D.I.openApplication("lineSearch")
  1932. } else if (e.data.tools && e.data.tools == "60") {
  1933. U.MD.D.I.openApplication("deepLearning")
  1934. } else if (e.data.tools && e.data.tools == "61") {
  1935. U.MD.D.I.openApplication("allHistory")
  1936. } else if (e.data.tools && e.data.tools == "28") {
  1937. U.MD.D.I.openApplication("translation")
  1938. } else if (e.data.tools && e.data.tools == "37") {
  1939. U.MD.D.I.openApplication("mohe")
  1940. } else if (e.data.tools && e.data.tools == "38") {
  1941. U.MD.D.I.openApplication("24game")
  1942. } else if (e.data.tools && e.data.tools == "39") {
  1943. U.MD.D.I.openApplication("GeoGebra")
  1944. } else if (e.data.tools && e.data.tools == "43") {
  1945. U.MD.D.I.openApplication("studentEvaluate")
  1946. } else if (e.data.tools && e.data.tools == "44") {
  1947. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1948. } else if (e.data.tools && e.data.tools == "46") {
  1949. U.MD.D.I.openApplication("project")
  1950. } else if (e.data.tools && e.data.tools == "1s") {
  1951. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1952. } else if (e.data.tools && e.data.tools == "3s") {
  1953. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1954. } else if (e.data.tools && e.data.tools == "6s") {
  1955. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1956. } else if (e.data.tools && e.data.tools == "1studio") {
  1957. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1958. } else if (e.data.tools && e.data.tools == "3studio") {
  1959. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1960. } else if (e.data.tools && e.data.tools == "6studio") {
  1961. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1962. } else if (e.data.tools && e.data.tools == "3y") {
  1963. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1964. } else if (e.data.tools && e.data.tools == "1y") {
  1965. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1966. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1967. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1968. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1969. U.MD.D.I.openApplication("AIAnalyse")
  1970. } else if (e.data.tools && e.data.tools == "1teacher") {
  1971. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1972. } else if (e.data.tools && e.data.tools == "3teacher") {
  1973. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1974. } else if (e.data.tools && e.data.tools == "7teacher") {
  1975. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1976. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1977. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1978. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1979. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1980. } else if (e.data.tools && e.data.tools == "1E") {
  1981. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1982. } else if (e.data.tools && e.data.tools == "3E") {
  1983. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1984. } else if (e.data.tools && e.data.tools == "57y") {
  1985. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1986. } else if (e.data.tools && e.data.tools == "57u") {
  1987. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1988. } else if (e.data.tools && e.data.tools == "57teacher") {
  1989. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1990. } else if (e.data.tools && e.data.tools == "64") {
  1991. U.MD.D.I.openApplication("AIChat")
  1992. }
  1993. });
  1994. U.MD.D.I.selectUser = function () {
  1995. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1996. if (res.value[0].length > 0) {
  1997. US.userInfo = res.value[0][0];
  1998. $(".userName")[0].innerHTML = US.userInfo.username;
  1999. }
  2000. }, [], { "type": "GET", "withCredentials": true });
  2001. }
  2002. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2003. var _userinfo = US.userInfo, //登录用户信息
  2004. _userid = US.userInfo.userid, //登录用户id
  2005. _oid = _userinfo.organizeid,
  2006. _type = US.userInfo.type,
  2007. _org = US.userInfo.org,
  2008. _role = US.userInfo.role,
  2009. _classId = US.userInfo.classid;
  2010. if (_type == 4) {
  2011. tType = 4
  2012. }
  2013. switch (str) {
  2014. case "studyDetailNT"://无终端模式
  2015. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2016. setTimeout(() => {
  2017. U.MD.U.L.login();
  2018. }, 2000);
  2019. } else {
  2020. _formdiv = new U.UF.UI.form(
  2021. "课程详情",
  2022. $$("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 }), {
  2023. "id": "studyDetailNT",
  2024. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2025. "onresize": function () { }
  2026. }, {
  2027. closecallback: function () { }
  2028. }, { "style": { "height": "36px" } }).form; //创建窗体
  2029. _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); } }
  2030. break;
  2031. }
  2032. case "studyDetail":
  2033. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2034. setTimeout(() => {
  2035. U.MD.U.L.login();
  2036. }, 2000);
  2037. } else {
  2038. _formdiv = new U.UF.UI.form(
  2039. "课程详情",
  2040. $$("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 }), {
  2041. "id": "studyDetail",
  2042. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2043. "onresize": function () { }
  2044. }, {
  2045. closecallback: function () { }
  2046. }, { "style": { "height": "36px" } }).form; //创建窗体
  2047. _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); } }
  2048. break;
  2049. }
  2050. case "studyDetailS":
  2051. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2052. setTimeout(() => {
  2053. U.MD.U.L.login();
  2054. }, 2000);
  2055. } else {
  2056. _formdiv = new U.UF.UI.form(
  2057. "项目详情",
  2058. $$("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 }), {
  2059. "id": "studyDetailS",
  2060. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2061. "onresize": function () { }
  2062. }, {
  2063. closecallback: function () { }
  2064. }, { "style": { "height": "36px" } }).form; //创建窗体
  2065. _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); } }
  2066. break;
  2067. }
  2068. case "studyDetailStudio":
  2069. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2070. setTimeout(() => {
  2071. U.MD.U.L.login();
  2072. }, 2000);
  2073. } else {
  2074. _formdiv = new U.UF.UI.form(
  2075. "工作详情",
  2076. $$("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 }), {
  2077. "id": "studyDetailStudio",
  2078. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2079. "onresize": function () { }
  2080. }, {
  2081. closecallback: function () { }
  2082. }, { "style": { "height": "36px" } }).form; //创建窗体
  2083. _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); } }
  2084. break;
  2085. }
  2086. case "studyDetailS5":
  2087. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2088. setTimeout(() => {
  2089. U.MD.U.L.login();
  2090. }, 2000);
  2091. } else {
  2092. _formdiv = new U.UF.UI.form(
  2093. "项目详情",
  2094. $$("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 }), {
  2095. "id": "studyDetailS",
  2096. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2097. "onresize": function () { }
  2098. }, {
  2099. closecallback: function () { }
  2100. }, { "style": { "height": "36px" } }).form; //创建窗体
  2101. _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); } }
  2102. break;
  2103. }
  2104. case "studyDetailGM":
  2105. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2106. setTimeout(() => {
  2107. U.MD.U.L.login();
  2108. }, 2000);
  2109. } else {
  2110. _formdiv = new U.UF.UI.form(
  2111. "课程详情",
  2112. $$("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 }), {
  2113. "id": "studyDetail",
  2114. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2115. "onresize": function () { }
  2116. }, {
  2117. closecallback: function () { }
  2118. }, { "style": { "height": "36px" } }).form; //创建窗体
  2119. _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); } }
  2120. break;
  2121. }
  2122. case "hanUrl":
  2123. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2124. setTimeout(() => {
  2125. U.MD.U.L.login();
  2126. }, 2000);
  2127. } else {
  2128. _formdiv = new U.UF.UI.form(
  2129. "汉字宫",
  2130. $$("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" }), {
  2131. "id": "hanUrl",
  2132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2133. "onresize": function () { }
  2134. }, {
  2135. closecallback: function () { }
  2136. }, { "style": { "height": "36px" } }).form; //创建窗体
  2137. _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); } }
  2138. break;
  2139. }
  2140. }
  2141. }
  2142. U.MD.D.I.openApplication = function (str, obj, info) {
  2143. obj = obj || {};
  2144. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2145. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2146. _userinfo = US.userInfo, //登录用户信息
  2147. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2148. _oid = obj.organizeid || _userinfo.organizeid,
  2149. _type = US.userInfo.type,
  2150. _org = US.userInfo.org,
  2151. _role = US.userInfo.role,
  2152. _classId = US.userInfo.classid,
  2153. _TscreenType = 1
  2154. _screenType = 2,
  2155. _SscreenType = 3;
  2156. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2157. return;
  2158. }
  2159. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2160. switch (str) {
  2161. case "studnetProject": //好友打开
  2162. _formdiv = new U.UF.UI.form(
  2163. "我的项目",
  2164. $$("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 }), {
  2165. "id": "studnetProject",
  2166. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2167. "onresize": function () { }
  2168. }, {
  2169. closecallback: function () { }
  2170. }, { "style": { "height": "36px" } }).form; //创建窗体
  2171. _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); } }
  2172. break;
  2173. case "studentEvaluate": //好友打开
  2174. _formdiv = new U.UF.UI.form(
  2175. "我的评价",
  2176. $$("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 }), {
  2177. "id": "studentEvaluate",
  2178. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2179. "onresize": function () { }
  2180. }, {
  2181. closecallback: function () { }
  2182. }, { "style": { "height": "36px" } }).form; //创建窗体
  2183. _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); } }
  2184. break;
  2185. case "my":
  2186. _formdiv = new U.UF.UI.form(
  2187. "我的资料",
  2188. $$("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 }), {
  2189. "id": "my",
  2190. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2191. "onresize": function () { }
  2192. }, {
  2193. closecallback: function () { }
  2194. }, { "style": { "height": "36px" } }).form; //创建窗体
  2195. _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); } }
  2196. break;
  2197. case "program":
  2198. _formdiv = new U.UF.UI.form(
  2199. "编程平台",
  2200. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2201. "id": "program",
  2202. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2203. "onresize": function () { }
  2204. }, {
  2205. closecallback: function () { }
  2206. }, { "style": { "height": "36px" } }).form; //创建窗体
  2207. _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); } }
  2208. break;
  2209. case "library":
  2210. _formdiv = new U.UF.UI.form(
  2211. "素材库",
  2212. $$("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 }), {
  2213. "id": "library",
  2214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _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); } }
  2220. break;
  2221. case "whiteboard":
  2222. _formdiv = new U.UF.UI.form(
  2223. "电子白板",
  2224. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2225. "id": "whiteboard",
  2226. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2227. "onresize": function () { }
  2228. }, {
  2229. closecallback: function () { }
  2230. }, { "style": { "height": "36px" } }).form; //创建窗体
  2231. _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); } }
  2232. break;
  2233. case "investigation":
  2234. _formdiv = new U.UF.UI.form(
  2235. "问卷调查",
  2236. $$("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 }), {
  2237. "id": "investigation",
  2238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _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); } }
  2244. break;
  2245. case "note":
  2246. _formdiv = new U.UF.UI.form(
  2247. "便签分类",
  2248. $$("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 }), {
  2249. "id": "note",
  2250. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2251. "onresize": function () { }
  2252. }, {
  2253. closecallback: function () { }
  2254. }, { "style": { "height": "36px" } }).form; //创建窗体
  2255. _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); } }
  2256. break;
  2257. // case "score":
  2258. // _formdiv = new U.UF.UI.form(
  2259. // "量规评分",
  2260. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2261. // "id": "score",
  2262. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2263. // "onresize": function() {}
  2264. // }, {
  2265. // closecallback: function() {}
  2266. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2267. // _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); } }
  2268. // break;
  2269. case "mind":
  2270. _formdiv = new U.UF.UI.form(
  2271. "思维导图",
  2272. $$("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"
  2273. "id": "mind",
  2274. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2275. "onresize": function () { }
  2276. }, {
  2277. closecallback: function () { }
  2278. }, { "style": { "height": "36px" } }).form; //创建窗体
  2279. _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); } }
  2280. break;
  2281. case "doc":
  2282. // U.MD.D.I.isRoom();
  2283. _formdiv = new U.UF.UI.form(
  2284. "协同文档",
  2285. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2286. "id": "doc",
  2287. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2288. "onresize": function () { }
  2289. }, {
  2290. closecallback: function () { }
  2291. }, { "style": { "height": "36px" } }).form; //创建窗体
  2292. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2293. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2294. // })
  2295. _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); } }
  2296. break;
  2297. case "studentStudy":
  2298. _formdiv = new U.UF.UI.form(
  2299. "课程中心",
  2300. $$("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
  2301. "id": "studentStudy",
  2302. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2303. "onresize": function () { }
  2304. }, {
  2305. closecallback: function () { }
  2306. }, { "style": { "height": "36px" } }).form; //创建窗体
  2307. _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); } }
  2308. break;
  2309. case "train": //好友打开
  2310. _formdiv = new U.UF.UI.form(
  2311. "训练平台",
  2312. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2313. "id": "train",
  2314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2315. "onresize": function () { }
  2316. }, {
  2317. closecallback: function () { }
  2318. }, { "style": { "height": "36px" } }).form; //创建窗体
  2319. _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); } }
  2320. break;
  2321. case "mindNetwork": //好友打开
  2322. _formdiv = new U.UF.UI.form(
  2323. "思维网格",
  2324. $$("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 }), {
  2325. "id": "mindNetwork",
  2326. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2327. "onresize": function () { }
  2328. }, {
  2329. closecallback: function () { }
  2330. }, { "style": { "height": "36px" } }).form; //创建窗体
  2331. _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); } }
  2332. break;
  2333. case "studentClassRoom": //好友打开
  2334. _formdiv = new U.UF.UI.form(
  2335. "实时课堂",
  2336. $$("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 }), {
  2337. "id": "studentClassRoom",
  2338. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2339. "onresize": function () { }
  2340. }, {
  2341. closecallback: function () { }
  2342. }, { "style": { "height": "36px" } }).form; //创建窗体
  2343. _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); } }
  2344. setTimeout(() => {
  2345. U.UF.F.windowZooming(_formdiv)
  2346. }, 0);
  2347. break;
  2348. }
  2349. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2350. switch (str) {
  2351. case "studnetProject": //好友打开
  2352. _formdiv = new U.UF.UI.form(
  2353. "我的项目",
  2354. $$("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 }), {
  2355. "id": "studnetProject",
  2356. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2357. "onresize": function () { }
  2358. }, {
  2359. closecallback: function () { }
  2360. }, { "style": { "height": "36px" } }).form; //创建窗体
  2361. _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); } }
  2362. break;
  2363. case "studentEvaluate": //好友打开
  2364. _formdiv = new U.UF.UI.form(
  2365. "我的评价",
  2366. $$("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 }), {
  2367. "id": "studentEvaluate",
  2368. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2369. "onresize": function () { }
  2370. }, {
  2371. closecallback: function () { }
  2372. }, { "style": { "height": "36px" } }).form; //创建窗体
  2373. _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); } }
  2374. break;
  2375. case "my":
  2376. _formdiv = new U.UF.UI.form(
  2377. "我的资料",
  2378. $$("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 }), {
  2379. "id": "my",
  2380. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2381. "onresize": function () { }
  2382. }, {
  2383. closecallback: function () { }
  2384. }, { "style": { "height": "36px" } }).form; //创建窗体
  2385. _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); } }
  2386. break;
  2387. case "program":
  2388. _formdiv = new U.UF.UI.form(
  2389. "编程平台",
  2390. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2391. "id": "program",
  2392. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2393. "onresize": function () { }
  2394. }, {
  2395. closecallback: function () { }
  2396. }, { "style": { "height": "36px" } }).form; //创建窗体
  2397. _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); } }
  2398. break;
  2399. case "library":
  2400. _formdiv = new U.UF.UI.form(
  2401. "素材库",
  2402. $$("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 }), {
  2403. "id": "library",
  2404. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2405. "onresize": function () { }
  2406. }, {
  2407. closecallback: function () { }
  2408. }, { "style": { "height": "36px" } }).form; //创建窗体
  2409. _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); } }
  2410. break;
  2411. case "whiteboard":
  2412. _formdiv = new U.UF.UI.form(
  2413. "电子白板",
  2414. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2415. "id": "whiteboard",
  2416. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2417. "onresize": function () { }
  2418. }, {
  2419. closecallback: function () { }
  2420. }, { "style": { "height": "36px" } }).form; //创建窗体
  2421. _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); } }
  2422. break;
  2423. case "investigation":
  2424. _formdiv = new U.UF.UI.form(
  2425. "问卷调查",
  2426. $$("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 }), {
  2427. "id": "investigation",
  2428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2429. "onresize": function () { }
  2430. }, {
  2431. closecallback: function () { }
  2432. }, { "style": { "height": "36px" } }).form; //创建窗体
  2433. _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); } }
  2434. break;
  2435. case "note":
  2436. _formdiv = new U.UF.UI.form(
  2437. "便签分类",
  2438. $$("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 }), {
  2439. "id": "note",
  2440. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2441. "onresize": function () { }
  2442. }, {
  2443. closecallback: function () { }
  2444. }, { "style": { "height": "36px" } }).form; //创建窗体
  2445. _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); } }
  2446. break;
  2447. // case "score":
  2448. // _formdiv = new U.UF.UI.form(
  2449. // "量规评分",
  2450. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2451. // "id": "score",
  2452. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2453. // "onresize": function() {}
  2454. // }, {
  2455. // closecallback: function() {}
  2456. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2457. // _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); } }
  2458. // break;
  2459. case "mind":
  2460. _formdiv = new U.UF.UI.form(
  2461. "思维导图",
  2462. $$("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"
  2463. "id": "mind",
  2464. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2465. "onresize": function () { }
  2466. }, {
  2467. closecallback: function () { }
  2468. }, { "style": { "height": "36px" } }).form; //创建窗体
  2469. _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); } }
  2470. break;
  2471. case "doc":
  2472. // U.MD.D.I.isRoom();
  2473. _formdiv = new U.UF.UI.form(
  2474. "协同文档",
  2475. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2476. "id": "doc",
  2477. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2478. "onresize": function () { }
  2479. }, {
  2480. closecallback: function () { }
  2481. }, { "style": { "height": "36px" } }).form; //创建窗体
  2482. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2483. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2484. })
  2485. _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); } }
  2486. break;
  2487. case "train": //好友打开
  2488. _formdiv = new U.UF.UI.form(
  2489. "训练平台",
  2490. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2491. "id": "train",
  2492. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2493. "onresize": function () { }
  2494. }, {
  2495. closecallback: function () { }
  2496. }, { "style": { "height": "36px" } }).form; //创建窗体
  2497. _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); } }
  2498. break;
  2499. case "studentStudy":
  2500. _formdiv = new U.UF.UI.form(
  2501. "课程中心",
  2502. $$("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
  2503. "id": "studentStudy",
  2504. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2505. "onresize": function () { }
  2506. }, {
  2507. closecallback: function () { }
  2508. }, { "style": { "height": "36px" } }).form; //创建窗体
  2509. _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); } }
  2510. break;
  2511. case "mindNetwork": //好友打开
  2512. _formdiv = new U.UF.UI.form(
  2513. "思维网格",
  2514. $$("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 }), {
  2515. "id": "mindNetwork",
  2516. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2517. "onresize": function () { }
  2518. }, {
  2519. closecallback: function () { }
  2520. }, { "style": { "height": "36px" } }).form; //创建窗体
  2521. _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); } }
  2522. break;
  2523. case "studentClassRoom": //好友打开
  2524. _formdiv = new U.UF.UI.form(
  2525. "实时课堂",
  2526. $$("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 }), {
  2527. "id": "studentClassRoom",
  2528. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2529. "onresize": function () { }
  2530. }, {
  2531. closecallback: function () { }
  2532. }, { "style": { "height": "36px" } }).form; //创建窗体
  2533. _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); } }
  2534. setTimeout(() => {
  2535. U.UF.F.windowZooming(_formdiv)
  2536. }, 0);
  2537. break;
  2538. }
  2539. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2540. //选择应用处理
  2541. switch (str) {
  2542. case "project": //好友打开
  2543. _formdiv = new U.UF.UI.form(
  2544. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2545. $$("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 }), {
  2546. "id": "project",
  2547. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2548. "onresize": function () { }
  2549. }, {
  2550. closecallback: function () { }
  2551. }, { "style": { "height": "36px" } }).form; //创建窗体
  2552. _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); } }
  2553. break;
  2554. case "student":
  2555. _formdiv = new U.UF.UI.form(
  2556. "学生管理",
  2557. $$("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 }), {
  2558. "id": "student",
  2559. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2560. "onresize": function () { }
  2561. }, {
  2562. closecallback: function () { }
  2563. }, { "style": { "height": "36px" } }).form; //创建窗体
  2564. _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); } }
  2565. break;
  2566. case "evaluate":
  2567. _formdiv = new U.UF.UI.form(
  2568. "学生评价",
  2569. $$("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 }), {
  2570. "id": "evaluate",
  2571. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2572. "onresize": function () { }
  2573. }, {
  2574. closecallback: function () { }
  2575. }, { "style": { "height": "36px" } }).form; //创建窗体
  2576. _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); } }
  2577. break;
  2578. case "sys":
  2579. _formdiv = new U.UF.UI.form(
  2580. "目标管理",
  2581. $$("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 }), {
  2582. "id": "sys",
  2583. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2584. "onresize": function () { }
  2585. }, {
  2586. closecallback: function () { }
  2587. }, { "style": { "height": "36px" } }).form; //创建窗体
  2588. _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); } }
  2589. break;
  2590. case "courseDesign":
  2591. _formdiv = new U.UF.UI.form(
  2592. "项目设计",
  2593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2594. "id": "courseDesign",
  2595. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2596. "onresize": function () { }
  2597. }, {
  2598. closecallback: function () { }
  2599. }, { "style": { "height": "36px" } }).form; //创建窗体
  2600. _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); } }
  2601. break;
  2602. case "program":
  2603. _formdiv = new U.UF.UI.form(
  2604. "编程平台",
  2605. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2606. "id": "program",
  2607. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2608. "onresize": function () { }
  2609. }, {
  2610. closecallback: function () { }
  2611. }, { "style": { "height": "36px" } }).form; //创建窗体
  2612. _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); } }
  2613. break;
  2614. case "class":
  2615. _formdiv = new U.UF.UI.form(
  2616. "班级管理",
  2617. $$("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 }), {
  2618. "id": "class",
  2619. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2620. "onresize": function () { }
  2621. }, {
  2622. closecallback: function () { }
  2623. }, { "style": { "height": "36px" } }).form; //创建窗体
  2624. _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); } }
  2625. break;
  2626. case "Grade":
  2627. _formdiv = new U.UF.UI.form(
  2628. "年级管理",
  2629. $$("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 }), {
  2630. "id": "Grade",
  2631. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function () { }
  2633. }, {
  2634. closecallback: function () { }
  2635. }, { "style": { "height": "36px" } }).form; //创建窗体
  2636. _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); } }
  2637. break;
  2638. case "teacherOffice":
  2639. _formdiv = new U.UF.UI.form(
  2640. "教研室",
  2641. $$("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 }), {
  2642. "id": "teacherOffice",
  2643. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2644. "onresize": function () { }
  2645. }, {
  2646. closecallback: function () { }
  2647. }, { "style": { "height": "36px" } }).form; //创建窗体
  2648. _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); } }
  2649. break;
  2650. case "my":
  2651. _formdiv = new U.UF.UI.form(
  2652. "我的资料",
  2653. $$("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 }), {
  2654. "id": "my",
  2655. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2656. "onresize": function () { }
  2657. }, {
  2658. closecallback: function () { }
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _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); } }
  2661. break;
  2662. case "notice":
  2663. _formdiv = new U.UF.UI.form(
  2664. "通知公告",
  2665. $$("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 }), {
  2666. "id": "notice",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _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); } }
  2673. break;
  2674. case "library":
  2675. _formdiv = new U.UF.UI.form(
  2676. "素材库",
  2677. $$("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 }), {
  2678. "id": "library",
  2679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2680. "onresize": function () { }
  2681. }, {
  2682. closecallback: function () { }
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _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); } }
  2685. break;
  2686. case "whiteboard":
  2687. _formdiv = new U.UF.UI.form(
  2688. "电子白板",
  2689. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2690. "id": "whiteboard",
  2691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function () { }
  2693. }, {
  2694. closecallback: function () { }
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _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); } }
  2697. break;
  2698. case "investigation":
  2699. _formdiv = new U.UF.UI.form(
  2700. "问卷调查",
  2701. $$("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 }), {
  2702. "id": "investigation",
  2703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. "onresize": function () { }
  2705. }, {
  2706. closecallback: function () { }
  2707. }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. _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); } }
  2709. break;
  2710. case "note":
  2711. _formdiv = new U.UF.UI.form(
  2712. "便签分类",
  2713. $$("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 }), {
  2714. "id": "note",
  2715. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function () { }
  2717. }, {
  2718. closecallback: function () { }
  2719. }, { "style": { "height": "36px" } }).form; //创建窗体
  2720. _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); } }
  2721. break;
  2722. // case "score":
  2723. // _formdiv = new U.UF.UI.form(
  2724. // "量规评分",
  2725. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2726. // "id": "score",
  2727. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2728. // "onresize": function() {}
  2729. // }, {
  2730. // closecallback: function() {}
  2731. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2732. // _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); } }
  2733. // break;
  2734. case "mind":
  2735. _formdiv = new U.UF.UI.form(
  2736. "思维导图",
  2737. $$("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"
  2738. "id": "mind",
  2739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2740. "onresize": function () { }
  2741. }, {
  2742. closecallback: function () { }
  2743. }, { "style": { "height": "36px" } }).form; //创建窗体
  2744. _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); } }
  2745. break;
  2746. case "doc":
  2747. // U.MD.D.I.isRoom();
  2748. _formdiv = new U.UF.UI.form(
  2749. "协同文档",
  2750. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2751. "id": "doc",
  2752. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2753. "onresize": function () { }
  2754. }, {
  2755. closecallback: function () { }
  2756. }, { "style": { "height": "36px" } }).form; //创建窗体
  2757. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2758. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2759. })
  2760. _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); } }
  2761. break;
  2762. case "study":
  2763. _formdiv = new U.UF.UI.form(
  2764. "课程中心",
  2765. $$("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
  2766. "id": "study",
  2767. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2768. "onresize": function () { }
  2769. }, {
  2770. closecallback: function () { }
  2771. }, { "style": { "height": "36px" } }).form; //创建窗体
  2772. _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); } }
  2773. break;
  2774. case "mindNetwork": //好友打开
  2775. _formdiv = new U.UF.UI.form(
  2776. "思维网格",
  2777. $$("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 }), {
  2778. "id": "mindNetwork",
  2779. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2780. "onresize": function () { }
  2781. }, {
  2782. closecallback: function () { }
  2783. }, { "style": { "height": "36px" } }).form; //创建窗体
  2784. _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); } }
  2785. break;
  2786. case "train": //好友打开
  2787. _formdiv = new U.UF.UI.form(
  2788. "训练平台",
  2789. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2790. "id": "mindNetwork",
  2791. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2792. "onresize": function () { }
  2793. }, {
  2794. closecallback: function () { }
  2795. }, { "style": { "height": "36px" } }).form; //创建窗体
  2796. _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); } }
  2797. break;
  2798. case "teacherClassRoom": //好友打开
  2799. _formdiv = new U.UF.UI.form(
  2800. "实时课堂",
  2801. $$("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 }), {
  2802. "id": "teacherClassRoom",
  2803. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2804. "onresize": function () { }
  2805. }, {
  2806. closecallback: function () { }
  2807. }, { "style": { "height": "36px" } }).form; //创建窗体
  2808. _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); } }
  2809. setTimeout(() => {
  2810. U.UF.F.windowZooming(_formdiv)
  2811. }, 0);
  2812. break;
  2813. }
  2814. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2815. switch (str) {
  2816. case "project": //好友打开
  2817. _formdiv = new U.UF.UI.form(
  2818. "课程管理",
  2819. $$("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 }), {
  2820. "id": "project",
  2821. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2822. "onresize": function () { }
  2823. }, {
  2824. closecallback: function () { }
  2825. }, { "style": { "height": "36px" } }).form; //创建窗体
  2826. _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); } }
  2827. break;
  2828. case "evaluate":
  2829. _formdiv = new U.UF.UI.form(
  2830. "学生评价",
  2831. $$("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 }), {
  2832. "id": "evaluate",
  2833. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2834. "onresize": function () { }
  2835. }, {
  2836. closecallback: function () { }
  2837. }, { "style": { "height": "36px" } }).form; //创建窗体
  2838. _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); } }
  2839. break;
  2840. case "notice":
  2841. _formdiv = new U.UF.UI.form(
  2842. "通知公告",
  2843. $$("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 }), {
  2844. "id": "notice",
  2845. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2846. "onresize": function () { }
  2847. }, {
  2848. closecallback: function () { }
  2849. }, { "style": { "height": "36px" } }).form; //创建窗体
  2850. _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); } }
  2851. break;
  2852. case "stuLibrary":
  2853. _formdiv = new U.UF.UI.form(
  2854. "学习资料",
  2855. $$("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 }), {
  2856. "id": "stuLibrary",
  2857. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function () { }
  2859. }, {
  2860. closecallback: function () { }
  2861. }, { "style": { "height": "36px" } }).form; //创建窗体
  2862. _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); } }
  2863. break;
  2864. case "program":
  2865. _formdiv = new U.UF.UI.form(
  2866. "编程平台",
  2867. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2868. "id": "program",
  2869. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2870. "onresize": function () { }
  2871. }, {
  2872. closecallback: function () { }
  2873. }, { "style": { "height": "36px" } }).form; //创建窗体
  2874. _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); } }
  2875. break;
  2876. case "whiteboard":
  2877. _formdiv = new U.UF.UI.form(
  2878. "电子白板",
  2879. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2880. "id": "whiteboard",
  2881. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2882. "onresize": function () { }
  2883. }, {
  2884. closecallback: function () { }
  2885. }, { "style": { "height": "36px" } }).form; //创建窗体
  2886. _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); } }
  2887. break;
  2888. case "investigation":
  2889. _formdiv = new U.UF.UI.form(
  2890. "问卷调查",
  2891. $$("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 }), {
  2892. "id": "investigation",
  2893. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2894. "onresize": function () { }
  2895. }, {
  2896. closecallback: function () { }
  2897. }, { "style": { "height": "36px" } }).form; //创建窗体
  2898. _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); } }
  2899. break;
  2900. case "mind":
  2901. _formdiv = new U.UF.UI.form(
  2902. "思维导图",
  2903. $$("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"
  2904. "id": "mind",
  2905. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2906. "onresize": function () { }
  2907. }, {
  2908. closecallback: function () { }
  2909. }, { "style": { "height": "36px" } }).form; //创建窗体
  2910. _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); } }
  2911. break;
  2912. case "doc":
  2913. // U.MD.D.I.isRoom();
  2914. _formdiv = new U.UF.UI.form(
  2915. "协同文档",
  2916. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2917. "id": "doc",
  2918. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2919. "onresize": function () { }
  2920. }, {
  2921. closecallback: function () { }
  2922. }, { "style": { "height": "36px" } }).form; //创建窗体
  2923. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2924. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2925. })
  2926. _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); } }
  2927. break;
  2928. case "study":
  2929. _formdiv = new U.UF.UI.form(
  2930. "课程中心",
  2931. $$("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
  2932. "id": "study",
  2933. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2934. "onresize": function () { }
  2935. }, {
  2936. closecallback: function () { }
  2937. }, { "style": { "height": "36px" } }).form; //创建窗体
  2938. _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); } }
  2939. break;
  2940. case "mindNetwork": //好友打开
  2941. _formdiv = new U.UF.UI.form(
  2942. "思维网格",
  2943. $$("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 }), {
  2944. "id": "mindNetwork",
  2945. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2946. "onresize": function () { }
  2947. }, {
  2948. closecallback: function () { }
  2949. }, { "style": { "height": "36px" } }).form; //创建窗体
  2950. _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); } }
  2951. break;
  2952. case "train": //好友打开
  2953. _formdiv = new U.UF.UI.form(
  2954. "训练平台",
  2955. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2956. "id": "train",
  2957. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2958. "onresize": function () { }
  2959. }, {
  2960. closecallback: function () { }
  2961. }, { "style": { "height": "36px" } }).form; //创建窗体
  2962. _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); } }
  2963. break;
  2964. case "sys":
  2965. _formdiv = new U.UF.UI.form(
  2966. "目标管理",
  2967. $$("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 }), {
  2968. "id": "sys",
  2969. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2970. "onresize": function () { }
  2971. }, {
  2972. closecallback: function () { }
  2973. }, { "style": { "height": "36px" } }).form; //创建窗体
  2974. _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); } }
  2975. break;
  2976. case "courseDesign":
  2977. _formdiv = new U.UF.UI.form(
  2978. "项目设计",
  2979. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2980. "id": "courseDesign",
  2981. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2982. "onresize": function () { }
  2983. }, {
  2984. closecallback: function () { }
  2985. }, { "style": { "height": "36px" } }).form; //创建窗体
  2986. _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); } }
  2987. break;
  2988. }
  2989. } else if (!_type) {
  2990. switch (str) {
  2991. case "my":
  2992. _formdiv = new U.UF.UI.form(
  2993. "我的资料",
  2994. $$("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 }), {
  2995. "id": "my",
  2996. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2997. "onresize": function () { }
  2998. }, {
  2999. closecallback: function () { }
  3000. }, { "style": { "height": "36px" } }).form; //创建窗体
  3001. _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); } }
  3002. break;
  3003. }
  3004. }
  3005. switch (str) {
  3006. // AIprogram2 AI体验 aihub.cocorobo.cn
  3007. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  3008. // AIprogram AI编程 ai-blockly.cocorobo.cn
  3009. case "AIprogram2": //AI体验
  3010. _formdiv = new U.UF.UI.form(
  3011. "AI体验",
  3012. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3013. "id": "AIprogram2",
  3014. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3015. "onresize": function () { }
  3016. }, {
  3017. closecallback: function () { }
  3018. }, { "style": { "height": "36px" } }).form; //创建窗体
  3019. _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); } }
  3020. break;
  3021. case "Pythonprogram": //python编程
  3022. _formdiv = new U.UF.UI.form(
  3023. "Python编程",
  3024. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3025. "id": "Pythonprogram",
  3026. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3027. "onresize": function () { }
  3028. }, {
  3029. closecallback: function () { }
  3030. }, { "style": { "height": "36px" } }).form; //创建窗体
  3031. _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); } }
  3032. break;
  3033. case "AIprogram": //ai编程
  3034. _formdiv = new U.UF.UI.form(
  3035. "AI编程平台",
  3036. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3037. "id": "AIprogram",
  3038. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3039. "onresize": function () { }
  3040. }, {
  3041. closecallback: function () { }
  3042. }, { "style": { "height": "36px" } }).form; //创建窗体
  3043. _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); } }
  3044. break;
  3045. case "CocoPi": //CocoPi
  3046. _formdiv = new U.UF.UI.form(
  3047. "CocoPi",
  3048. $$("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" }), {
  3049. "id": "CocoPi",
  3050. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3051. "onresize": function () { }
  3052. }, {
  3053. closecallback: function () { }
  3054. }, { "style": { "height": "36px" } }).form; //创建窗体
  3055. _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); } }
  3056. break;
  3057. case "Wood": //Wood
  3058. _formdiv = new U.UF.UI.form(
  3059. "海龟编程",
  3060. $$("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/" }), {
  3061. "id": "Wood",
  3062. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3063. "onresize": function () { }
  3064. }, {
  3065. closecallback: function () { }
  3066. }, { "style": { "height": "36px" } }).form; //创建窗体
  3067. _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); } }
  3068. break;
  3069. case "car": //模拟驾驶
  3070. _formdiv = new U.UF.UI.form(
  3071. "模拟驾驶",
  3072. $$("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/" }), {
  3073. "id": "car",
  3074. "style": { "width": "70%", "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/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3080. break;
  3081. case "lineSearch": //路径搜索
  3082. _formdiv = new U.UF.UI.form(
  3083. "路径搜索",
  3084. $$("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/" }), {
  3085. "id": "lineSearch",
  3086. "style": { "width": "70%", "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/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3092. break;
  3093. case "deepLearning": //深度学习
  3094. _formdiv = new U.UF.UI.form(
  3095. "深度学习",
  3096. $$("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/#" }), {
  3097. "id": "deepLearning",
  3098. "style": { "width": "70%", "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/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3104. break;
  3105. case "allHistory": //深度学习
  3106. _formdiv = new U.UF.UI.form(
  3107. "全历史",
  3108. $$("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/" }), {
  3109. "id": "allHistory",
  3110. "style": { "width": "70%", "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/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3116. break;
  3117. case "chatPDF": //ai编程
  3118. _formdiv = new U.UF.UI.form(
  3119. "chatPDF",
  3120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3121. "id": "chatPDF",
  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/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3128. break;
  3129. case "resources": //国家教育
  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://so.eduyun.cn/synResource" }), {
  3133. "id": "resources",
  3134. "style": { "width": "80%", "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/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3140. break;
  3141. case "codeEdit": //源码编辑
  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": "https://kitten.codemao.cn/" }), {
  3145. "id": "codeEdit",
  3146. "style": { "width": "80%", "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/code.png)" }, "name": "源码编辑", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3152. break; //
  3153. case "MindMap": //MindMap
  3154. _formdiv = new U.UF.UI.form(
  3155. "MindMap",
  3156. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3157. "id": "MindMap",
  3158. "style": { "width": "80%", "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/MIndMap.png)" }, "name": "MindMap", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3164. break;
  3165. case "netWorkPanel": //netWorkPanel
  3166. _formdiv = new U.UF.UI.form(
  3167. "netWorkPanel",
  3168. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3169. "id": "netWorkPanel",
  3170. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3171. "onresize": function () { }
  3172. }, {
  3173. closecallback: function () { }
  3174. }, { "style": { "height": "36px" } }).form; //创建窗体
  3175. _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); } }
  3176. break;
  3177. case "GeoGebra": //GeoGebra
  3178. _formdiv = new U.UF.UI.form(
  3179. "GeoGebra",
  3180. $$("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" }), {
  3181. "id": "GeoGebra",
  3182. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3183. "onresize": function () { }
  3184. }, {
  3185. closecallback: function () { }
  3186. }, { "style": { "height": "36px" } }).form; //创建窗体
  3187. _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); } }
  3188. break;
  3189. case "translation": //翻译
  3190. _formdiv = new U.UF.UI.form(
  3191. "翻译",
  3192. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3193. "id": "translation",
  3194. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3195. "onresize": function () { }
  3196. }, {
  3197. closecallback: function () { }
  3198. }, { "style": { "height": "36px" } }).form; //创建窗体
  3199. _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); } }
  3200. break;
  3201. case "mohe": //魔盒
  3202. _formdiv = new U.UF.UI.form(
  3203. "魔盒识字",
  3204. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3205. "id": "mohe",
  3206. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3207. "onresize": function () { }
  3208. }, {
  3209. closecallback: function () { }
  3210. }, { "style": { "height": "36px" } }).form; //创建窗体
  3211. _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); } }
  3212. break;
  3213. case "24game": //24点
  3214. _formdiv = new U.UF.UI.form(
  3215. "24点",
  3216. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3217. "id": "24game",
  3218. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3219. "onresize": function () { }
  3220. }, {
  3221. closecallback: function () { }
  3222. }, { "style": { "height": "36px" } }).form; //创建窗体
  3223. _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); } }
  3224. break;
  3225. case "case":
  3226. _formdiv = new U.UF.UI.form(
  3227. "课程进展",
  3228. $$("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 }), {
  3229. "id": "case",
  3230. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3231. "onresize": function () { }
  3232. }, {
  3233. closecallback: function () { }
  3234. }, { "style": { "height": "36px" } }).form; //创建窗体
  3235. _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); } }
  3236. break;
  3237. case "snf":
  3238. _formdiv = new U.UF.UI.form(
  3239. "赛诺梵",
  3240. $$("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" }), {
  3241. "id": "snf",
  3242. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3243. "onresize": function () { }
  3244. }, {
  3245. closecallback: function () { }
  3246. }, { "style": { "height": "36px" } }).form; //创建窗体
  3247. _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); } }
  3248. break;
  3249. case "hanFamily":
  3250. _formdiv = new U.UF.UI.form(
  3251. "汉字家族",
  3252. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3253. "id": "hanFamily",
  3254. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3255. "onresize": function () { }
  3256. }, {
  3257. closecallback: function () { }
  3258. }, { "style": { "height": "36px" } }).form; //创建窗体
  3259. _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); } }
  3260. break;
  3261. case "hanClassics":
  3262. _formdiv = new U.UF.UI.form(
  3263. "国学经典",
  3264. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3265. "id": "hanClassics",
  3266. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3267. "onresize": function () { }
  3268. }, {
  3269. closecallback: function () { }
  3270. }, { "style": { "height": "36px" } }).form; //创建窗体
  3271. _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); } }
  3272. break;
  3273. case "hanTraining":
  3274. _formdiv = new U.UF.UI.form(
  3275. "笔画训练",
  3276. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3277. "id": "hanTraining",
  3278. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3279. "onresize": function () { }
  3280. }, {
  3281. closecallback: function () { }
  3282. }, { "style": { "height": "36px" } }).form; //创建窗体
  3283. _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); } }
  3284. break;
  3285. case "hanClass":
  3286. _formdiv = new U.UF.UI.form(
  3287. "书法课堂",
  3288. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3289. "id": "hanClass",
  3290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3291. "onresize": function () { }
  3292. }, {
  3293. closecallback: function () { }
  3294. }, { "style": { "height": "36px" } }).form; //创建窗体
  3295. _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); } }
  3296. break;
  3297. case "han":
  3298. _formdiv = new U.UF.UI.form(
  3299. "汉字宫",
  3300. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3301. "id": "han",
  3302. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3303. "onresize": function () { }
  3304. }, {
  3305. closecallback: function () { }
  3306. }, { "style": { "height": "36px" } }).form; //创建窗体
  3307. _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); } }
  3308. break;
  3309. case "projectGM": //课程管理
  3310. _formdiv = new U.UF.UI.form(
  3311. "课程管理",
  3312. $$("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 }), {
  3313. "id": "projectGM",
  3314. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3315. "onresize": function () { }
  3316. }, {
  3317. closecallback: function () { }
  3318. }, { "style": { "height": "36px" } }).form; //创建窗体
  3319. _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); } }
  3320. break;
  3321. case "studyGM"://课程中心
  3322. _formdiv = new U.UF.UI.form(
  3323. "课程中心",
  3324. $$("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
  3325. "id": "study",
  3326. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3327. "onresize": function () { }
  3328. }, {
  3329. closecallback: function () { }
  3330. }, { "style": { "height": "36px" } }).form; //创建窗体
  3331. _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); } }
  3332. break;
  3333. // studentGM
  3334. case "studentGM"://学生管理
  3335. _formdiv = new U.UF.UI.form(
  3336. "学生管理",
  3337. $$("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 }), {
  3338. "id": "studentGM",
  3339. "style": { "width": "90%", "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/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3345. break;
  3346. case "evaluateGM"://学生评价
  3347. _formdiv = new U.UF.UI.form(
  3348. "学生评价",
  3349. $$("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 }), {
  3350. "id": "evaluateGM",
  3351. "style": { "width": "90%", "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/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3357. break;
  3358. // classGM
  3359. case "classGM"://班级管理
  3360. _formdiv = new U.UF.UI.form(
  3361. "班级管理",
  3362. $$("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 }), {
  3363. "id": "classGM",
  3364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3365. "onresize": function () { }
  3366. }, {
  3367. closecallback: function () { }
  3368. }, { "style": { "height": "36px" } }).form; //创建窗体
  3369. _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); } }
  3370. break;
  3371. // dataGM
  3372. case "dataGM":
  3373. _formdiv = new U.UF.UI.form(
  3374. "我的资料",
  3375. $$("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 }), {
  3376. "id": "dataGM",
  3377. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3378. "onresize": function () { }
  3379. }, {
  3380. closecallback: function () { }
  3381. }, { "style": { "height": "36px" } }).form; //创建窗体
  3382. _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); } }
  3383. break;
  3384. // caseGM
  3385. case "caseGM"://课程进展
  3386. _formdiv = new U.UF.UI.form(
  3387. "课程进展",
  3388. $$("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 }), {
  3389. "id": "caseGM",
  3390. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3391. "onresize": function () { }
  3392. }, {
  3393. closecallback: function () { }
  3394. }, { "style": { "height": "36px" } }).form; //创建窗体
  3395. _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); } }
  3396. break;
  3397. // meterialGM
  3398. case "meterialGM"://素材库
  3399. _formdiv = new U.UF.UI.form(
  3400. "素材库",
  3401. $$("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 }), {
  3402. "id": "meterialGM",
  3403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3404. "onresize": function () { }
  3405. }, {
  3406. closecallback: function () { }
  3407. }, { "style": { "height": "36px" } }).form; //创建窗体
  3408. _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); } }
  3409. break;
  3410. // evaluateSGM
  3411. case "evaluateSGM": //我的评价
  3412. _formdiv = new U.UF.UI.form(
  3413. "我的评价",
  3414. $$("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 }), {
  3415. "id": "evaluateSGM",
  3416. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3417. "onresize": function () { }
  3418. }, {
  3419. closecallback: function () { }
  3420. }, { "style": { "height": "36px" } }).form; //创建窗体
  3421. _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); } }
  3422. break;
  3423. case "jupyter": //jupyter
  3424. _formdiv = new U.UF.UI.form(
  3425. "jupyter",
  3426. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3427. "id": "jupyter",
  3428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3429. "onresize": function () { }
  3430. }, {
  3431. closecallback: function () { }
  3432. }, { "style": { "height": "36px" } }).form; //创建窗体
  3433. _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); } }
  3434. break;
  3435. case "number": //数字实验室
  3436. _formdiv = new U.UF.UI.form(
  3437. "数字实验室",
  3438. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3439. "id": "number",
  3440. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3441. "onresize": function () { }
  3442. }, {
  3443. closecallback: function () { }
  3444. }, { "style": { "height": "36px" } }).form; //创建窗体
  3445. _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); } }
  3446. break;
  3447. case "studentCourse": //项目管理 学生
  3448. _formdiv = new U.UF.UI.form(
  3449. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3450. $$("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 }), {
  3451. "id": "studentCourse",
  3452. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3453. "onresize": function () { }
  3454. }, {
  3455. closecallback: function () { }
  3456. }, { "style": { "height": "36px" } }).form; //创建窗体
  3457. _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); } }
  3458. break;
  3459. case "studentCourseS": //项目管理 老师
  3460. _formdiv = new U.UF.UI.form(
  3461. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3462. $$("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 }), {
  3463. "id": "studentCourseS",
  3464. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3465. "onresize": function () { }
  3466. }, {
  3467. closecallback: function () { }
  3468. }, { "style": { "height": "36px" } }).form; //创建窗体
  3469. _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); } }
  3470. break;
  3471. case "studentIndex": //项目中心
  3472. _formdiv = new U.UF.UI.form(
  3473. "项目中心",
  3474. $$("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 }), {
  3475. "id": "studentIndex",
  3476. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3477. "onresize": function () { }
  3478. }, {
  3479. closecallback: function () { }
  3480. }, { "style": { "height": "36px" } }).form; //创建窗体
  3481. _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); } }
  3482. break;
  3483. case "CaseDesignS":
  3484. _formdiv = new U.UF.UI.form(
  3485. "项目进展",
  3486. $$("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 }), {
  3487. "id": "case",
  3488. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3489. "onresize": function () { }
  3490. }, {
  3491. closecallback: function () { }
  3492. }, { "style": { "height": "36px" } }).form; //创建窗体
  3493. _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); } }
  3494. break;
  3495. case "tcStudent": //腾讯学生管理
  3496. _formdiv = new U.UF.UI.form(
  3497. "学生管理",
  3498. $$("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 }), {
  3499. "id": "tcStudent",
  3500. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3501. "onresize": function () { }
  3502. }, {
  3503. closecallback: function () { }
  3504. }, { "style": { "height": "36px" } }).form; //创建窗体
  3505. _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); } }
  3506. break;
  3507. case "tcSchool": //腾讯学校管理
  3508. _formdiv = new U.UF.UI.form(
  3509. "学校管理",
  3510. $$("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 }), {
  3511. "id": "tcSchool",
  3512. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3513. "onresize": function () { }
  3514. }, {
  3515. closecallback: function () { }
  3516. }, { "style": { "height": "36px" } }).form; //创建窗体
  3517. _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); } }
  3518. break;
  3519. case "tcTeacher": //腾讯学校管理
  3520. _formdiv = new U.UF.UI.form(
  3521. "教师管理",
  3522. $$("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 }), {
  3523. "id": "tcTeacher",
  3524. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3525. "onresize": function () { }
  3526. }, {
  3527. closecallback: function () { }
  3528. }, { "style": { "height": "36px" } }).form; //创建窗体
  3529. _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); } }
  3530. break;
  3531. case "tcData": //腾讯我的资料
  3532. _formdiv = new U.UF.UI.form(
  3533. "我的资料",
  3534. $$("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 }), {
  3535. "id": "tcData",
  3536. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3537. "onresize": function () { }
  3538. }, {
  3539. closecallback: function () { }
  3540. }, { "style": { "height": "36px" } }).form; //创建窗体
  3541. _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); } }
  3542. break;
  3543. case "tcNotice": //腾讯消息通知
  3544. _formdiv = new U.UF.UI.form(
  3545. "消息通知",
  3546. $$("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 }), {
  3547. "id": "tcNotice",
  3548. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3549. "onresize": function () { }
  3550. }, {
  3551. closecallback: function () { }
  3552. }, { "style": { "height": "36px" } }).form; //创建窗体
  3553. _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); } }
  3554. break;
  3555. case "myReport": //好友打开
  3556. _formdiv = new U.UF.UI.form(
  3557. "我的评价",
  3558. $$("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 }), {
  3559. "id": "myReport",
  3560. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3561. "onresize": function () { }
  3562. }, {
  3563. closecallback: function () { }
  3564. }, { "style": { "height": "36px" } }).form; //创建窗体
  3565. _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); } }
  3566. break;
  3567. case "learnAna": //好友打开
  3568. _formdiv = new U.UF.UI.form(
  3569. "学习分析",
  3570. $$("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 }), {
  3571. "id": "learnAna",
  3572. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3573. "onresize": function () { }
  3574. }, {
  3575. closecallback: function () { }
  3576. }, { "style": { "height": "36px" } }).form; //创建窗体
  3577. _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); } }
  3578. break;
  3579. case "AIChat": //AI共创
  3580. _formdiv = new U.UF.UI.form(
  3581. "AI共创",
  3582. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3583. "id": "AIChat",
  3584. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3585. "onresize": function () { }
  3586. }, {
  3587. istop: true,
  3588. closecallback: function () { $("#aichat_icon").remove(); },
  3589. narrowcallback: function () {
  3590. if (!$("#aichat_icon")[0]) {
  3591. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3592. }
  3593. },
  3594. }, { "style": { "height": "36px" } }).form; //创建窗体
  3595. _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); } }
  3596. break;
  3597. case "ainew": //AI共创
  3598. _formdiv = new U.UF.UI.form(
  3599. "AI协同",
  3600. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3601. "id": "ainew",
  3602. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3603. "onresize": function () { }
  3604. }, {
  3605. closecallback: function () { }
  3606. }, { "style": { "height": "36px" } }).form; //创建窗体
  3607. _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); } }
  3608. break;
  3609. case "AIAnalyse": //AI共创
  3610. _formdiv = new U.UF.UI.form(
  3611. "AI分析",
  3612. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3613. "id": "AIAnalyse",
  3614. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3615. "onresize": function () { }
  3616. }, {
  3617. closecallback: function () { }
  3618. }, { "style": { "height": "36px" } }).form; //创建窗体
  3619. _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); } }
  3620. break;
  3621. case "studioCourse": //AI共创
  3622. _formdiv = new U.UF.UI.form(
  3623. "工作管理",
  3624. $$("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 }), {
  3625. "id": "studioCourse",
  3626. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3627. "onresize": function () { }
  3628. }, {
  3629. closecallback: function () { }
  3630. }, { "style": { "height": "36px" } }).form; //创建窗体
  3631. _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); } }
  3632. break;
  3633. case "studioIndex": //AI共创
  3634. _formdiv = new U.UF.UI.form(
  3635. "工作中心",
  3636. $$("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 }), {
  3637. "id": "studioIndex",
  3638. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3639. "onresize": function () { }
  3640. }, {
  3641. closecallback: function () { }
  3642. }, { "style": { "height": "36px" } }).form; //创建窗体
  3643. _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); } }
  3644. break;
  3645. case "source":
  3646. _formdiv = new U.UF.UI.form(
  3647. "教学资源",
  3648. $$("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 }), {
  3649. "id": "source",
  3650. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3651. "onresize": function () { }
  3652. }, {
  3653. closecallback: function () { }
  3654. }, { "style": { "height": "36px" } }).form; //创建窗体
  3655. _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); } }
  3656. break;
  3657. }
  3658. //U.MD.D.I.openClick(str);
  3659. //如果有任务栏信息
  3660. if (_taskbar) {
  3661. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3662. }
  3663. }
  3664. // U.MD.D.I.openClick = function(str){
  3665. // var click = '';
  3666. // switch(str){
  3667. // case 'friend':
  3668. // click = '我的好友';
  3669. // break;
  3670. // case 'domain':
  3671. // click = '域名管理';
  3672. // break;
  3673. // case 'disk':
  3674. // click = '我的云盘';
  3675. // break;
  3676. // case 'word':
  3677. // click = 'Word';
  3678. // break;
  3679. // case 'excel':
  3680. // click = 'Execl';
  3681. // break;
  3682. // case 'txt':
  3683. // click = '文本文件';
  3684. // break;
  3685. // case 'lookupFriend':
  3686. // click = '查找好友';
  3687. // break;
  3688. // case 'ftp':
  3689. // click = 'FTP';
  3690. // break;
  3691. // case 'group':
  3692. // click = '群组';
  3693. // break;
  3694. // case 'set':
  3695. // click = '我的设置';
  3696. // break;
  3697. // case 'systemSet':
  3698. // click = '系统设置';
  3699. // break;
  3700. // case 'boomYun':
  3701. // click = '互联办公';
  3702. // break;
  3703. // case 'xz':
  3704. // click = '云端下载';
  3705. // break;
  3706. // case 'client':
  3707. // click = '有思浏览器';
  3708. // break;
  3709. // case 'backEndProgramming':
  3710. // click = '在线后台编程';
  3711. // break;
  3712. // case 'frontEndProgramming':
  3713. // click = '在线前端编程';
  3714. // break;
  3715. // default: break;
  3716. // }
  3717. // if(U.MD.D.I.Ip && click){
  3718. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3719. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3720. // })
  3721. // }
  3722. // }
  3723. /**
  3724. *函数作用:ajax简易函数,使用post格式
  3725. *@param url {data} 后台地址
  3726. *@param data {data} 参数json
  3727. *@param fn {data} 回调函数
  3728. *
  3729. */
  3730. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3731. // var xhr = new XMLHttpRequest();
  3732. // xhr.open("GET",url,true);
  3733. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3734. // xhr.onreadystatechange = function(){
  3735. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3736. // fn.call(this,xhr.responseText);
  3737. // }
  3738. // };
  3739. // xhr.send();
  3740. // }
  3741. /*判断是否是内网IP*/
  3742. // U.MD.D.I.isInnerIPFn = function(str){
  3743. // var curPageUrl = str;
  3744. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3745. // curPageUrl =curPageUrl.replace(reg1,'');
  3746. // // console.log('curPageUrl-1 '+curPageUrl);
  3747. // var reg2 = /\:+/g;//替换冒号为一点
  3748. // curPageUrl =curPageUrl.replace(reg2,'.');
  3749. // // console.log('curPageUrl-2 '+curPageUrl);
  3750. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3751. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3752. // if(curPageUrl[2] != '16'){
  3753. // return ipAddress;
  3754. // }else{
  3755. // return false;
  3756. // }
  3757. // }
  3758. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3759. // //compatibility for firefox and chrome
  3760. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3761. // var pc = new myPeerConnection({
  3762. // iceServers: []
  3763. // }),
  3764. // noop = function() {},
  3765. // localIPs = {},
  3766. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3767. // key;
  3768. // function iterateIP(ip) {
  3769. // if (!localIPs[ip]) onNewIP(ip);
  3770. // localIPs[ip] = true;
  3771. // }
  3772. // //create a bogus data channel
  3773. // pc.createDataChannel("");
  3774. // // create offer and set local description
  3775. // pc.createOffer().then(function(sdp) {
  3776. // sdp.sdp.split('\n').forEach(function(line) {
  3777. // if (line.indexOf('candidate') < 0) return;
  3778. // line.match(ipRegex).forEach(iterateIP);
  3779. // });
  3780. // pc.setLocalDescription(sdp, noop, noop);
  3781. // }).catch(function(reason) {
  3782. // // An error occurred, so handle the failure to connect
  3783. // });
  3784. // //sten for candidate events
  3785. // pc.onicecandidate = function(ice) {
  3786. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3787. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3788. // };
  3789. // }
  3790. // U.MD.D.I.getUserIpBool = function(callback){
  3791. // U.MD.D.I.getUserIP(function(ip){
  3792. // alert("Got IP! :" + ip);
  3793. // });
  3794. //}
  3795. //#endregion
  3796. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3797. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3798. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3799. _userinfo = US.userInfo, //登录用户信息
  3800. _userid = US.userInfo.userid //登录用户id
  3801. let _iframe;
  3802. let _cid = cid,
  3803. _stage = stage,
  3804. _task = task,
  3805. _tool = tool;
  3806. var _jie = $$("div", {
  3807. "style": {
  3808. "position": "absolute",
  3809. "bottom": "50px",
  3810. "right": "50px",
  3811. "zIndex": "9999",
  3812. "backgroundColor": "#2268bc",
  3813. "color": "#fff",
  3814. "padding": "12px 20px",
  3815. "cursor": "pointer",
  3816. "borderRadius": "4px",
  3817. },
  3818. "innerHTML": "提交作业"
  3819. })
  3820. let aTool = ''
  3821. let _loading = document.createElement('div')
  3822. _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;"
  3823. // _loading.id = "";
  3824. let _lchild = document.createElement('div')
  3825. let _limg = document.createElement('img')
  3826. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3827. _limg.style = "width: 26px;margin-right: 10px;"
  3828. _lchild.appendChild(_limg)
  3829. let _lspan = document.createElement('span')
  3830. _lspan.innerHTML = "上传中..."
  3831. _lchild.appendChild(_lspan)
  3832. _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%);"
  3833. _loading.appendChild(_lchild)
  3834. var _box = $$('div', {
  3835. "style": {
  3836. "position": "relative",
  3837. "width": "100%",
  3838. "height": "100%",
  3839. },
  3840. })
  3841. _box.appendChild(_loading)
  3842. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3843. switch (str) {
  3844. case "whiteboard":
  3845. aTool = 1;
  3846. _iframe = $$("iframe", {
  3847. "frameborder": "no",
  3848. "border": "0",
  3849. "scrolling ": "no",
  3850. "style": {
  3851. "cssText": "border:0;width:100%;height:100%"
  3852. },
  3853. "src": "https://iwb.cocorobo.cn/"
  3854. })
  3855. _box.appendChild(_iframe);
  3856. _box.appendChild(_jie);
  3857. _formdiv = new U.UF.UI.form(
  3858. "电子白板",
  3859. _box, {
  3860. "id": "whiteboard" + cid + stage + task + tool,
  3861. "style": {
  3862. "width": "90%",
  3863. "height": "90%",
  3864. "overflow": 'hidden'
  3865. },
  3866. "onresize": function () { }
  3867. }, {
  3868. closecallback: function () { }
  3869. }, {
  3870. "style": {
  3871. "height": "36px"
  3872. }
  3873. }).form; //创建窗体
  3874. _taskbar = {
  3875. "id": str + _formdiv.id,
  3876. "style": {
  3877. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3878. },
  3879. "name": "电子白板",
  3880. "forms": _formdiv,
  3881. "click": function () {
  3882. U.MD.D.I.openApplication(str, obj, info);
  3883. }
  3884. }
  3885. break;
  3886. case "mind":
  3887. aTool = 3;
  3888. _iframe = $$("iframe", {
  3889. "frameborder": "no",
  3890. "border": "0",
  3891. "scrolling ": "no",
  3892. "style": {
  3893. "cssText": "border:0;width:100%;height:100%"
  3894. },
  3895. "src": "/kityminder-editor/dist/index.html"
  3896. })
  3897. _box.appendChild(_iframe);
  3898. _box.appendChild(_jie);
  3899. _formdiv = new U.UF.UI.form(
  3900. "思维导图",
  3901. _box, { //"/jsmind/example/demo.html"
  3902. "id": "mind" + cid + stage + task + tool,
  3903. "style": {
  3904. "width": "90%",
  3905. "height": "90%",
  3906. "overflow": 'hidden'
  3907. },
  3908. "onresize": function () { }
  3909. }, {
  3910. closecallback: function () { }
  3911. }, {
  3912. "style": {
  3913. "height": "36px"
  3914. }
  3915. }).form; //创建窗体
  3916. _taskbar = {
  3917. "id": str + _formdiv.id,
  3918. "style": {
  3919. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3920. },
  3921. "name": "思维导图",
  3922. "forms": _formdiv,
  3923. "click": function () {
  3924. U.MD.D.I.openApplication(str, obj, info);
  3925. }
  3926. }
  3927. break;
  3928. case "MindMap":
  3929. aTool = 3;
  3930. _iframe = $$("iframe", {
  3931. "frameborder": "no",
  3932. "border": "0",
  3933. "scrolling ": "no",
  3934. "style": {
  3935. "cssText": "border:0;width:100%;height:100%"
  3936. },
  3937. "src": "//cloud.cocorobo.cn/mind/"
  3938. })
  3939. _box.appendChild(_iframe);
  3940. _box.appendChild(_jie);
  3941. _formdiv = new U.UF.UI.form(
  3942. "思维导图",
  3943. _box, { //"/jsmind/example/demo.html"
  3944. "id": "mind" + cid + stage + task + tool,
  3945. "style": {
  3946. "width": "90%",
  3947. "height": "90%",
  3948. "overflow": 'hidden'
  3949. },
  3950. "onresize": function () { }
  3951. }, {
  3952. closecallback: function () { }
  3953. }, {
  3954. "style": {
  3955. "height": "36px"
  3956. }
  3957. }).form; //创建窗体
  3958. _taskbar = {
  3959. "id": str + _formdiv.id,
  3960. "style": {
  3961. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3962. },
  3963. "name": "思维导图",
  3964. "forms": _formdiv,
  3965. "click": function () {
  3966. U.MD.D.I.openApplication(str, obj, info);
  3967. }
  3968. }
  3969. break;
  3970. case "doc":
  3971. aTool = 6;
  3972. _iframe = $$("iframe", {
  3973. "frameborder": "no",
  3974. "border": "0",
  3975. "scrolling ": "no",
  3976. "style": {
  3977. "cssText": "border:0;width:100%;height:100%"
  3978. },
  3979. "src": "/Office/Word/WordEditArea.htm"
  3980. })
  3981. _box.appendChild(_iframe);
  3982. _box.appendChild(_jie);
  3983. _formdiv = new U.UF.UI.form(
  3984. "协同文档",
  3985. _box, {
  3986. "id": "doc" + cid + stage + task + tool,
  3987. "style": {
  3988. "width": "90%",
  3989. "height": "90%",
  3990. "overflow": 'hidden'
  3991. },
  3992. "onresize": function () { }
  3993. }, {
  3994. closecallback: function () { }
  3995. }, {
  3996. "style": {
  3997. "height": "36px"
  3998. }
  3999. }).form; //创建窗体
  4000. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4001. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4002. })
  4003. _taskbar = {
  4004. "id": str + _formdiv.id,
  4005. "style": {
  4006. "backgroundImage": "url(/img/icon/doc.png)"
  4007. },
  4008. "name": "协同文档",
  4009. "forms": _formdiv,
  4010. "click": function () {
  4011. U.MD.D.I.openApplication(str, obj, info);
  4012. }
  4013. }
  4014. break;
  4015. case "mindNetwork": //好友打开
  4016. aTool = 7;
  4017. _iframe = $$("iframe", {
  4018. "webkitallowfullscreen": "",
  4019. "mozallowfullscreen": "",
  4020. "allowfullscreen": "",
  4021. "frameborder": "no",
  4022. "border": "0",
  4023. "scrolling ": "no",
  4024. "style": {
  4025. "cssText": "border:0; width:100%; height:100%;"
  4026. },
  4027. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4028. })
  4029. _box.appendChild(_iframe);
  4030. _box.appendChild(_jie);
  4031. _formdiv = new U.UF.UI.form(
  4032. "思维网格",
  4033. _box, {
  4034. "id": "mindNetwork" + cid + stage + task + tool,
  4035. "style": {
  4036. "width": "90%",
  4037. "height": "90%",
  4038. "overflow": 'hidden'
  4039. },
  4040. "onresize": function () { }
  4041. }, {
  4042. closecallback: function () { }
  4043. }, {
  4044. "style": {
  4045. "height": "36px"
  4046. }
  4047. }).form; //创建窗体
  4048. _taskbar = {
  4049. "id": str + _formdiv.id,
  4050. "style": {
  4051. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4052. },
  4053. "name": "思维网格",
  4054. "forms": _formdiv,
  4055. "click": function () {
  4056. U.MD.D.I.openApplication(str, obj, info);
  4057. }
  4058. }
  4059. break;
  4060. case "courseDesign":
  4061. _iframe = $$("iframe", {
  4062. "webkitallowfullscreen": "",
  4063. "mozallowfullscreen": "",
  4064. "allowfullscreen": "",
  4065. "frameborder": "no",
  4066. "border": "0",
  4067. "scrolling ": "no",
  4068. "style": {
  4069. "cssText": "border:0; width:100%; height:100%;"
  4070. },
  4071. "src": "/course-design-vue"
  4072. })
  4073. _box.appendChild(_iframe);
  4074. _box.appendChild(_jie);
  4075. _formdiv = new U.UF.UI.form(
  4076. "项目设计",
  4077. _box, {
  4078. "id": "courseDesign" + cid + stage + task + tool,
  4079. "style": {
  4080. "width": "90%",
  4081. "height": "90%",
  4082. "overflow": 'hidden'
  4083. },
  4084. "onresize": function () { }
  4085. }, {
  4086. closecallback: function () { }
  4087. }, {
  4088. "style": {
  4089. "height": "36px"
  4090. }
  4091. }).form; //创建窗体
  4092. _taskbar = {
  4093. "id": str + _formdiv.id,
  4094. "style": {
  4095. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4096. },
  4097. "name": "项目设计",
  4098. "forms": _formdiv,
  4099. "click": function () {
  4100. U.MD.D.I.openApplication(str, obj, info);
  4101. }
  4102. }
  4103. break;
  4104. }
  4105. const script1 = document.createElement("script");
  4106. script1.type = "text/javascript";
  4107. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4108. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4109. const script2 = document.createElement("script");
  4110. script2.type = "text/javascript";
  4111. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4112. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4113. const script3 = document.createElement("script");
  4114. script3.type = "text/javascript";
  4115. script3.charset = "UTF-8";
  4116. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4117. const script4 = document.createElement("script");
  4118. script4.type = "text/javascript";
  4119. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4120. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4121. if (_iframe) {
  4122. if (str == 'doc') {
  4123. _iframe = _formdiv.querySelector('iframe')
  4124. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4125. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4126. _iframe.contentWindow.document.body.appendChild(script1);
  4127. _iframe.contentWindow.document.body.appendChild(script2);
  4128. // _iframe.contentWindow.document.body.appendChild(script3);
  4129. _iframe.contentWindow.document.body.appendChild(script4);
  4130. })
  4131. if (onloadListener) {
  4132. _iframe.contentDocument.location.reload()
  4133. } else {
  4134. _iframe.contentDocument.location.reload()
  4135. }
  4136. } else if (str == 'courseDesign') {
  4137. U.UF.DL.iframeLoad(_iframe, function () {
  4138. // _iframe.contentWindow.U.MD.O.W.load();
  4139. // _iframe.contentWindow.document.body.appendChild(script1);
  4140. _iframe.contentWindow.document.body.appendChild(script2);
  4141. _iframe.contentWindow.document.body.appendChild(script4);
  4142. })
  4143. } else if (str == 'mind') {
  4144. _iframe = _formdiv.querySelector('iframe')
  4145. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4146. //
  4147. _iframe.contentWindow.document.body.appendChild(script1);
  4148. _iframe.contentWindow.document.body.appendChild(script2);
  4149. _iframe.contentWindow.document.body.appendChild(script4);
  4150. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4151. })
  4152. if (onloadListener) {
  4153. _iframe.contentDocument.location.reload()
  4154. } else {
  4155. _iframe.contentDocument.location.reload()
  4156. }
  4157. } else if (str == 'whiteboard') {
  4158. _iframe = _formdiv.querySelector('iframe')
  4159. let onloadListener = _iframe.onload = () => {
  4160. _iframe.contentWindow.document.body.appendChild(script1);
  4161. _iframe.contentWindow.document.body.appendChild(script2);
  4162. _iframe.contentWindow.document.body.appendChild(script4);
  4163. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4164. };
  4165. if (onloadListener) {
  4166. _iframe.contentDocument.location.reload()
  4167. } else {
  4168. _iframe.contentDocument.location.reload()
  4169. }
  4170. } else {
  4171. _iframe.onload = () => {
  4172. _iframe.contentWindow.document.body.appendChild(script1);
  4173. _iframe.contentWindow.document.body.appendChild(script2);
  4174. // _iframe.contentWindow.document.body.appendChild(script3);
  4175. _iframe.contentWindow.document.body.appendChild(script4);
  4176. };
  4177. }
  4178. _jie.onclick = async () => {
  4179. let text = ''
  4180. if (aTool == 1) {
  4181. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4182. } else if (aTool == 6) {
  4183. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4184. } else if (aTool == 3) {
  4185. text = await U.MD.D.I.getEditorContent(_iframe);
  4186. }
  4187. _loading.style.display = 'flex'
  4188. console.log(_loading);
  4189. var _ajs = _iframe.contentWindow.document.createElement("script");
  4190. _ajs.type = "text/javascript";
  4191. _ajs.innerHTML =
  4192. // 'console.log(' + _loading + ');\n' +
  4193. 'var _js = document.createElement("script");\n' +
  4194. '_js.type="text/javascript";\n' +
  4195. '_js.charset="UTF-8";\n' +
  4196. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4197. "_js.onload = function(){\n" +
  4198. ' var a = document.getElementsByTagName("img")\n' +
  4199. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4200. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4201. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4202. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4203. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4204. "beforeUpload_shishi(file," +
  4205. "'" +
  4206. _userid +
  4207. "'" +
  4208. ", " +
  4209. "'" +
  4210. _cid +
  4211. "'" +
  4212. ", " +
  4213. "'" +
  4214. _stage +
  4215. "'" +
  4216. ", " +
  4217. "'" +
  4218. _task +
  4219. "'" +
  4220. ", " +
  4221. "'" +
  4222. _tool +
  4223. "'" +
  4224. ", " +
  4225. "'" +
  4226. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4227. "'" +
  4228. ", " +
  4229. "'" +
  4230. aTool +
  4231. "'" +
  4232. ", " +
  4233. "`" +
  4234. text +
  4235. "`" +
  4236. ")\n" +
  4237. " });\n" +
  4238. "}\n" +
  4239. "document.head.appendChild(_js);\n";
  4240. _iframe.contentWindow.document.head.appendChild(_ajs);
  4241. }
  4242. }
  4243. //U.MD.D.I.openClick(str);
  4244. //如果有任务栏信息
  4245. // if (_taskbar) {
  4246. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4247. // }
  4248. }
  4249. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4250. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4251. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4252. _userinfo = US.userInfo, //登录用户信息
  4253. _userid = US.userInfo.userid //登录用户id
  4254. let _iframe;
  4255. let _cid = cid,
  4256. _stage = stage,
  4257. _task = task,
  4258. _tool = tool;
  4259. var _jie = $$("div", {
  4260. "style": {
  4261. "position": "absolute",
  4262. "bottom": "50px",
  4263. "right": "50px",
  4264. "zIndex": "9999",
  4265. "backgroundColor": "#2268bc",
  4266. "color": "#fff",
  4267. "padding": "12px 20px",
  4268. "cursor": "pointer",
  4269. "borderRadius": "4px",
  4270. },
  4271. "innerHTML": "提交作业"
  4272. })
  4273. let aTool = ''
  4274. let _loading = document.createElement('div')
  4275. _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;"
  4276. // _loading.id = "";
  4277. let _lchild = document.createElement('div')
  4278. let _limg = document.createElement('img')
  4279. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4280. _limg.style = "width: 26px;margin-right: 10px;"
  4281. _lchild.appendChild(_limg)
  4282. let _lspan = document.createElement('span')
  4283. _lspan.innerHTML = "上传中..."
  4284. _lchild.appendChild(_lspan)
  4285. _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%);"
  4286. _loading.appendChild(_lchild)
  4287. var _box = $$('div', {
  4288. "style": {
  4289. "position": "relative",
  4290. "width": "100%",
  4291. "height": "100%",
  4292. },
  4293. })
  4294. _box.appendChild(_loading)
  4295. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4296. switch (str) {
  4297. case "whiteboard":
  4298. aTool = 1;
  4299. _iframe = $$("iframe", {
  4300. "frameborder": "no",
  4301. "border": "0",
  4302. "scrolling ": "no",
  4303. "style": {
  4304. "cssText": "border:0;width:100%;height:100%"
  4305. },
  4306. "src": "https://iwb.cocorobo.cn/"
  4307. })
  4308. _box.appendChild(_iframe);
  4309. _box.appendChild(_jie);
  4310. _formdiv = new U.UF.UI.form(
  4311. "电子白板",
  4312. _box, {
  4313. "id": "whiteboard" + cid + stage + task + tool,
  4314. "style": {
  4315. "width": "90%",
  4316. "height": "90%",
  4317. "overflow": 'hidden'
  4318. },
  4319. "onresize": function () { }
  4320. }, {
  4321. closecallback: function () { }
  4322. }, {
  4323. "style": {
  4324. "height": "36px"
  4325. }
  4326. }).form; //创建窗体
  4327. _taskbar = {
  4328. "id": str + _formdiv.id,
  4329. "style": {
  4330. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4331. },
  4332. "name": "电子白板",
  4333. "forms": _formdiv,
  4334. "click": function () {
  4335. U.MD.D.I.openApplication(str, obj, info);
  4336. }
  4337. }
  4338. break;
  4339. case "mind":
  4340. aTool = 3;
  4341. _iframe = $$("iframe", {
  4342. "frameborder": "no",
  4343. "border": "0",
  4344. "scrolling ": "no",
  4345. "style": {
  4346. "cssText": "border:0;width:100%;height:100%"
  4347. },
  4348. "src": "/kityminder-editor/dist/index.html"
  4349. })
  4350. _box.appendChild(_iframe);
  4351. _box.appendChild(_jie);
  4352. _formdiv = new U.UF.UI.form(
  4353. "思维导图",
  4354. _box, { //"/jsmind/example/demo.html"
  4355. "id": "mind" + cid + stage + task + tool,
  4356. "style": {
  4357. "width": "90%",
  4358. "height": "90%",
  4359. "overflow": 'hidden'
  4360. },
  4361. "onresize": function () { }
  4362. }, {
  4363. closecallback: function () { }
  4364. }, {
  4365. "style": {
  4366. "height": "36px"
  4367. }
  4368. }).form; //创建窗体
  4369. _taskbar = {
  4370. "id": str + _formdiv.id,
  4371. "style": {
  4372. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4373. },
  4374. "name": "思维导图",
  4375. "forms": _formdiv,
  4376. "click": function () {
  4377. U.MD.D.I.openApplication(str, obj, info);
  4378. }
  4379. }
  4380. break;
  4381. case "MindMap":
  4382. aTool = 3;
  4383. _iframe = $$("iframe", {
  4384. "frameborder": "no",
  4385. "border": "0",
  4386. "scrolling ": "no",
  4387. "style": {
  4388. "cssText": "border:0;width:100%;height:100%"
  4389. },
  4390. "src": "//cloud.cocorobo.cn/mind/"
  4391. })
  4392. _box.appendChild(_iframe);
  4393. _box.appendChild(_jie);
  4394. _formdiv = new U.UF.UI.form(
  4395. "思维导图",
  4396. _box, { //"/jsmind/example/demo.html"
  4397. "id": "mind" + cid + stage + task + tool,
  4398. "style": {
  4399. "width": "90%",
  4400. "height": "90%",
  4401. "overflow": 'hidden'
  4402. },
  4403. "onresize": function () { }
  4404. }, {
  4405. closecallback: function () { }
  4406. }, {
  4407. "style": {
  4408. "height": "36px"
  4409. }
  4410. }).form; //创建窗体
  4411. _taskbar = {
  4412. "id": str + _formdiv.id,
  4413. "style": {
  4414. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4415. },
  4416. "name": "思维导图",
  4417. "forms": _formdiv,
  4418. "click": function () {
  4419. U.MD.D.I.openApplication(str, obj, info);
  4420. }
  4421. }
  4422. break;
  4423. case "doc":
  4424. aTool = 6;
  4425. _iframe = $$("iframe", {
  4426. "frameborder": "no",
  4427. "border": "0",
  4428. "scrolling ": "no",
  4429. "style": {
  4430. "cssText": "border:0;width:100%;height:100%"
  4431. },
  4432. "src": "/Office/Word/WordEditArea.htm"
  4433. })
  4434. _box.appendChild(_iframe);
  4435. _box.appendChild(_jie);
  4436. _formdiv = new U.UF.UI.form(
  4437. "协同文档",
  4438. _box, {
  4439. "id": "doc" + cid + stage + task + tool,
  4440. "style": {
  4441. "width": "90%",
  4442. "height": "90%",
  4443. "overflow": 'hidden'
  4444. },
  4445. "onresize": function () { }
  4446. }, {
  4447. closecallback: function () { }
  4448. }, {
  4449. "style": {
  4450. "height": "36px"
  4451. }
  4452. }).form; //创建窗体
  4453. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4454. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4455. })
  4456. _taskbar = {
  4457. "id": str + _formdiv.id,
  4458. "style": {
  4459. "backgroundImage": "url(/img/icon/doc.png)"
  4460. },
  4461. "name": "协同文档",
  4462. "forms": _formdiv,
  4463. "click": function () {
  4464. U.MD.D.I.openApplication(str, obj, info);
  4465. }
  4466. }
  4467. break;
  4468. case "mindNetwork": //好友打开
  4469. aTool = 7;
  4470. _iframe = $$("iframe", {
  4471. "webkitallowfullscreen": "",
  4472. "mozallowfullscreen": "",
  4473. "allowfullscreen": "",
  4474. "frameborder": "no",
  4475. "border": "0",
  4476. "scrolling ": "no",
  4477. "style": {
  4478. "cssText": "border:0; width:100%; height:100%;"
  4479. },
  4480. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4481. })
  4482. _box.appendChild(_iframe);
  4483. _box.appendChild(_jie);
  4484. _formdiv = new U.UF.UI.form(
  4485. "思维网格",
  4486. _box, {
  4487. "id": "mindNetwork" + cid + stage + task + tool,
  4488. "style": {
  4489. "width": "90%",
  4490. "height": "90%",
  4491. "overflow": 'hidden'
  4492. },
  4493. "onresize": function () { }
  4494. }, {
  4495. closecallback: function () { }
  4496. }, {
  4497. "style": {
  4498. "height": "36px"
  4499. }
  4500. }).form; //创建窗体
  4501. _taskbar = {
  4502. "id": str + _formdiv.id,
  4503. "style": {
  4504. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4505. },
  4506. "name": "思维网格",
  4507. "forms": _formdiv,
  4508. "click": function () {
  4509. U.MD.D.I.openApplication(str, obj, info);
  4510. }
  4511. }
  4512. break;
  4513. case "courseDesign":
  4514. _iframe = $$("iframe", {
  4515. "webkitallowfullscreen": "",
  4516. "mozallowfullscreen": "",
  4517. "allowfullscreen": "",
  4518. "frameborder": "no",
  4519. "border": "0",
  4520. "scrolling ": "no",
  4521. "style": {
  4522. "cssText": "border:0; width:100%; height:100%;"
  4523. },
  4524. "src": "/course-design-vue"
  4525. })
  4526. _box.appendChild(_iframe);
  4527. _box.appendChild(_jie);
  4528. _formdiv = new U.UF.UI.form(
  4529. "项目设计",
  4530. _box, {
  4531. "id": "courseDesign" + cid + stage + task + tool,
  4532. "style": {
  4533. "width": "90%",
  4534. "height": "90%",
  4535. "overflow": 'hidden'
  4536. },
  4537. "onresize": function () { }
  4538. }, {
  4539. closecallback: function () { }
  4540. }, {
  4541. "style": {
  4542. "height": "36px"
  4543. }
  4544. }).form; //创建窗体
  4545. _taskbar = {
  4546. "id": str + _formdiv.id,
  4547. "style": {
  4548. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4549. },
  4550. "name": "项目设计",
  4551. "forms": _formdiv,
  4552. "click": function () {
  4553. U.MD.D.I.openApplication(str, obj, info);
  4554. }
  4555. }
  4556. break;
  4557. }
  4558. const script1 = document.createElement("script");
  4559. script1.type = "text/javascript";
  4560. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4561. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4562. const script2 = document.createElement("script");
  4563. script2.type = "text/javascript";
  4564. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4565. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4566. const script3 = document.createElement("script");
  4567. script3.type = "text/javascript";
  4568. script3.charset = "UTF-8";
  4569. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4570. const script4 = document.createElement("script");
  4571. script4.type = "text/javascript";
  4572. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4573. script4.src = window.origin + "/js/Common/jietu2E.js";
  4574. if (_iframe) {
  4575. if (str == 'doc') {
  4576. _iframe = _formdiv.querySelector('iframe')
  4577. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4578. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4579. _iframe.contentWindow.document.body.appendChild(script1);
  4580. _iframe.contentWindow.document.body.appendChild(script2);
  4581. // _iframe.contentWindow.document.body.appendChild(script3);
  4582. _iframe.contentWindow.document.body.appendChild(script4);
  4583. })
  4584. if (onloadListener) {
  4585. _iframe.contentDocument.location.reload()
  4586. } else {
  4587. _iframe.contentDocument.location.reload()
  4588. }
  4589. } else if (str == 'courseDesign') {
  4590. U.UF.DL.iframeLoad(_iframe, function () {
  4591. // _iframe.contentWindow.U.MD.O.W.load();
  4592. // _iframe.contentWindow.document.body.appendChild(script1);
  4593. _iframe.contentWindow.document.body.appendChild(script2);
  4594. _iframe.contentWindow.document.body.appendChild(script4);
  4595. })
  4596. } else if (str == 'mind') {
  4597. _iframe = _formdiv.querySelector('iframe')
  4598. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4599. //
  4600. _iframe.contentWindow.document.body.appendChild(script1);
  4601. _iframe.contentWindow.document.body.appendChild(script2);
  4602. _iframe.contentWindow.document.body.appendChild(script4);
  4603. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4604. })
  4605. if (onloadListener) {
  4606. _iframe.contentDocument.location.reload()
  4607. } else {
  4608. _iframe.contentDocument.location.reload()
  4609. }
  4610. } else if (str == 'whiteboard') {
  4611. _iframe = _formdiv.querySelector('iframe')
  4612. let onloadListener = _iframe.onload = () => {
  4613. _iframe.contentWindow.document.body.appendChild(script1);
  4614. _iframe.contentWindow.document.body.appendChild(script2);
  4615. _iframe.contentWindow.document.body.appendChild(script4);
  4616. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4617. };
  4618. if (onloadListener) {
  4619. _iframe.contentDocument.location.reload()
  4620. } else {
  4621. _iframe.contentDocument.location.reload()
  4622. }
  4623. } else {
  4624. _iframe.onload = () => {
  4625. _iframe.contentWindow.document.body.appendChild(script1);
  4626. _iframe.contentWindow.document.body.appendChild(script2);
  4627. // _iframe.contentWindow.document.body.appendChild(script3);
  4628. _iframe.contentWindow.document.body.appendChild(script4);
  4629. };
  4630. }
  4631. _jie.onclick = async () => {
  4632. let text = ''
  4633. if (aTool == 1) {
  4634. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4635. } else if (aTool == 6) {
  4636. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4637. } else if (aTool == 3) {
  4638. text = await U.MD.D.I.getEditorContent(_iframe);
  4639. }
  4640. _loading.style.display = 'flex'
  4641. console.log(_loading);
  4642. var _ajs = _iframe.contentWindow.document.createElement("script");
  4643. _ajs.type = "text/javascript";
  4644. _ajs.innerHTML =
  4645. // 'console.log(' + _loading + ');\n' +
  4646. 'var _js = document.createElement("script");\n' +
  4647. '_js.type="text/javascript";\n' +
  4648. '_js.charset="UTF-8";\n' +
  4649. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4650. "_js.onload = function(){\n" +
  4651. ' var a = document.getElementsByTagName("img")\n' +
  4652. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4653. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4654. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4655. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4656. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4657. "beforeUpload_shishi(file," +
  4658. "'" +
  4659. _userid +
  4660. "'" +
  4661. ", " +
  4662. "'" +
  4663. _cid +
  4664. "'" +
  4665. ", " +
  4666. "'" +
  4667. _stage +
  4668. "'" +
  4669. ", " +
  4670. "'" +
  4671. _task +
  4672. "'" +
  4673. ", " +
  4674. "'" +
  4675. _tool +
  4676. "'" +
  4677. ", " +
  4678. "'" +
  4679. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4680. "'" +
  4681. ", " +
  4682. "'" +
  4683. aTool +
  4684. "'" +
  4685. ", " +
  4686. "`" +
  4687. text +
  4688. "`" +
  4689. ")\n" +
  4690. " });\n" +
  4691. "}\n" +
  4692. "document.head.appendChild(_js);\n";
  4693. _iframe.contentWindow.document.head.appendChild(_ajs);
  4694. }
  4695. }
  4696. //U.MD.D.I.openClick(str);
  4697. //如果有任务栏信息
  4698. // if (_taskbar) {
  4699. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4700. // }
  4701. }
  4702. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4703. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4704. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4705. _userid = student.userid, //登录用户id
  4706. _username = student.student //用户名字
  4707. let _iframe;
  4708. let _cid = cid,
  4709. _stage = stage,
  4710. _task = task,
  4711. _tool = tool;
  4712. var _jie = $$("div", {
  4713. "style": {
  4714. "position": "absolute",
  4715. "bottom": "50px",
  4716. "right": "50px",
  4717. "zIndex": "9999",
  4718. "backgroundColor": "#2268bc",
  4719. "color": "#fff",
  4720. "padding": "12px 20px",
  4721. "cursor": "pointer",
  4722. "borderRadius": "4px",
  4723. },
  4724. "innerHTML": "提交作业"
  4725. })
  4726. let aTool = ''
  4727. let _loading = document.createElement('div')
  4728. _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;"
  4729. // _loading.id = "";
  4730. let _lchild = document.createElement('div')
  4731. let _limg = document.createElement('img')
  4732. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4733. _limg.style = "width: 26px;margin-right: 10px;"
  4734. _lchild.appendChild(_limg)
  4735. let _lspan = document.createElement('span')
  4736. _lspan.innerHTML = "上传中..."
  4737. _lchild.appendChild(_lspan)
  4738. _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%);"
  4739. _loading.appendChild(_lchild)
  4740. var _box = $$('div', {
  4741. "style": {
  4742. "position": "relative",
  4743. "width": "100%",
  4744. "height": "100%",
  4745. },
  4746. })
  4747. _box.appendChild(_loading)
  4748. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4749. switch (str) {
  4750. case "whiteboard":
  4751. aTool = 1;
  4752. _iframe = $$("iframe", {
  4753. "frameborder": "no",
  4754. "border": "0",
  4755. "scrolling ": "no",
  4756. "style": {
  4757. "cssText": "border:0;width:100%;height:100%"
  4758. },
  4759. "src": "https://iwb.cocorobo.cn/"
  4760. })
  4761. _box.appendChild(_iframe);
  4762. _box.appendChild(_jie);
  4763. _formdiv = new U.UF.UI.form(
  4764. "电子白板-" + _username,
  4765. _box, {
  4766. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4767. "style": {
  4768. "width": "90%",
  4769. "height": "90%",
  4770. "overflow": 'hidden'
  4771. },
  4772. "onresize": function () { }
  4773. }, {
  4774. closecallback: function () { }
  4775. }, {
  4776. "style": {
  4777. "height": "36px"
  4778. }
  4779. }).form; //创建窗体
  4780. _taskbar = {
  4781. "id": str + _formdiv.id,
  4782. "style": {
  4783. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4784. },
  4785. "name": "电子白板",
  4786. "forms": _formdiv,
  4787. "click": function () {
  4788. U.MD.D.I.openApplication(str, obj, info);
  4789. }
  4790. }
  4791. break;
  4792. case "mind":
  4793. aTool = 3;
  4794. _iframe = $$("iframe", {
  4795. "frameborder": "no",
  4796. "border": "0",
  4797. "scrolling ": "no",
  4798. "style": {
  4799. "cssText": "border:0;width:100%;height:100%"
  4800. },
  4801. "src": "/kityminder-editor/dist/index.html"
  4802. })
  4803. _box.appendChild(_iframe);
  4804. _box.appendChild(_jie);
  4805. _formdiv = new U.UF.UI.form(
  4806. "思维导图-" + _username,
  4807. _box, { //"/jsmind/example/demo.html"
  4808. "id": "mind" + cid + stage + task + tool + _userid,
  4809. "style": {
  4810. "width": "90%",
  4811. "height": "90%",
  4812. "overflow": 'hidden'
  4813. },
  4814. "onresize": function () { }
  4815. }, {
  4816. closecallback: function () { }
  4817. }, {
  4818. "style": {
  4819. "height": "36px"
  4820. }
  4821. }).form; //创建窗体
  4822. _taskbar = {
  4823. "id": str + _formdiv.id,
  4824. "style": {
  4825. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4826. },
  4827. "name": "思维导图",
  4828. "forms": _formdiv,
  4829. "click": function () {
  4830. U.MD.D.I.openApplication(str, obj, info);
  4831. }
  4832. }
  4833. break;
  4834. case "MindMap":
  4835. aTool = 3;
  4836. _iframe = $$("iframe", {
  4837. "frameborder": "no",
  4838. "border": "0",
  4839. "scrolling ": "no",
  4840. "style": {
  4841. "cssText": "border:0;width:100%;height:100%"
  4842. },
  4843. "src": "//cloud.cocorobo.cn/mind/"
  4844. })
  4845. _box.appendChild(_iframe);
  4846. _box.appendChild(_jie);
  4847. _formdiv = new U.UF.UI.form(
  4848. "思维导图-" + _username,
  4849. _box, { //"/jsmind/example/demo.html"
  4850. "id": "mind" + cid + stage + task + tool + _userid,
  4851. "style": {
  4852. "width": "90%",
  4853. "height": "90%",
  4854. "overflow": 'hidden'
  4855. },
  4856. "onresize": function () { }
  4857. }, {
  4858. closecallback: function () { }
  4859. }, {
  4860. "style": {
  4861. "height": "36px"
  4862. }
  4863. }).form; //创建窗体
  4864. _taskbar = {
  4865. "id": str + _formdiv.id,
  4866. "style": {
  4867. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4868. },
  4869. "name": "思维导图",
  4870. "forms": _formdiv,
  4871. "click": function () {
  4872. U.MD.D.I.openApplication(str, obj, info);
  4873. }
  4874. }
  4875. break;
  4876. case "doc":
  4877. aTool = 6;
  4878. _iframe = $$("iframe", {
  4879. "frameborder": "no",
  4880. "border": "0",
  4881. "scrolling ": "no",
  4882. "style": {
  4883. "cssText": "border:0;width:100%;height:100%"
  4884. },
  4885. "src": "/Office/Word/WordEditArea.htm"
  4886. })
  4887. _box.appendChild(_iframe);
  4888. _box.appendChild(_jie);
  4889. _formdiv = new U.UF.UI.form(
  4890. "协同文档-" + _username,
  4891. _box, {
  4892. "id": "doc" + cid + stage + task + tool + _userid,
  4893. "style": {
  4894. "width": "90%",
  4895. "height": "90%",
  4896. "overflow": 'hidden'
  4897. },
  4898. "onresize": function () { }
  4899. }, {
  4900. closecallback: function () { }
  4901. }, {
  4902. "style": {
  4903. "height": "36px"
  4904. }
  4905. }).form; //创建窗体
  4906. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4907. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4908. })
  4909. _taskbar = {
  4910. "id": str + _formdiv.id,
  4911. "style": {
  4912. "backgroundImage": "url(/img/icon/doc.png)"
  4913. },
  4914. "name": "协同文档",
  4915. "forms": _formdiv,
  4916. "click": function () {
  4917. U.MD.D.I.openApplication(str, obj, info);
  4918. }
  4919. }
  4920. break;
  4921. case "mindNetwork": //好友打开
  4922. aTool = 7;
  4923. _iframe = $$("iframe", {
  4924. "webkitallowfullscreen": "",
  4925. "mozallowfullscreen": "",
  4926. "allowfullscreen": "",
  4927. "frameborder": "no",
  4928. "border": "0",
  4929. "scrolling ": "no",
  4930. "style": {
  4931. "cssText": "border:0; width:100%; height:100%;"
  4932. },
  4933. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4934. })
  4935. _box.appendChild(_iframe);
  4936. _box.appendChild(_jie);
  4937. _formdiv = new U.UF.UI.form(
  4938. "思维网格-" + _username,
  4939. _box, {
  4940. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4941. "style": {
  4942. "width": "90%",
  4943. "height": "90%",
  4944. "overflow": 'hidden'
  4945. },
  4946. "onresize": function () { }
  4947. }, {
  4948. closecallback: function () { }
  4949. }, {
  4950. "style": {
  4951. "height": "36px"
  4952. }
  4953. }).form; //创建窗体
  4954. _taskbar = {
  4955. "id": str + _formdiv.id,
  4956. "style": {
  4957. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4958. },
  4959. "name": "思维网格",
  4960. "forms": _formdiv,
  4961. "click": function () {
  4962. U.MD.D.I.openApplication(str, obj, info);
  4963. }
  4964. }
  4965. break;
  4966. case "courseDesign":
  4967. _iframe = $$("iframe", {
  4968. "webkitallowfullscreen": "",
  4969. "mozallowfullscreen": "",
  4970. "allowfullscreen": "",
  4971. "frameborder": "no",
  4972. "border": "0",
  4973. "scrolling ": "no",
  4974. "style": {
  4975. "cssText": "border:0; width:100%; height:100%;"
  4976. },
  4977. "src": "/course-design-vue"
  4978. })
  4979. _box.appendChild(_iframe);
  4980. _box.appendChild(_jie);
  4981. _formdiv = new U.UF.UI.form(
  4982. "项目设计-" + _username,
  4983. _box, {
  4984. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4985. "style": {
  4986. "width": "90%",
  4987. "height": "90%",
  4988. "overflow": 'hidden'
  4989. },
  4990. "onresize": function () { }
  4991. }, {
  4992. closecallback: function () { }
  4993. }, {
  4994. "style": {
  4995. "height": "36px"
  4996. }
  4997. }).form; //创建窗体
  4998. _taskbar = {
  4999. "id": str + _formdiv.id,
  5000. "style": {
  5001. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5002. },
  5003. "name": "项目设计",
  5004. "forms": _formdiv,
  5005. "click": function () {
  5006. U.MD.D.I.openApplication(str, obj, info);
  5007. }
  5008. }
  5009. break;
  5010. }
  5011. const script1 = document.createElement("script");
  5012. script1.type = "text/javascript";
  5013. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5014. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5015. const script2 = document.createElement("script");
  5016. script2.type = "text/javascript";
  5017. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5018. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5019. const script3 = document.createElement("script");
  5020. script3.type = "text/javascript";
  5021. script3.charset = "UTF-8";
  5022. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5023. const script4 = document.createElement("script");
  5024. script4.type = "text/javascript";
  5025. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5026. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  5027. if (_iframe) {
  5028. if (str == 'doc') {
  5029. _iframe = _formdiv.querySelector('iframe')
  5030. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5031. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5032. _iframe.contentWindow.document.body.appendChild(script1);
  5033. _iframe.contentWindow.document.body.appendChild(script2);
  5034. // _iframe.contentWindow.document.body.appendChild(script3);
  5035. _iframe.contentWindow.document.body.appendChild(script4);
  5036. })
  5037. if (onloadListener) {
  5038. _iframe.contentDocument.location.reload()
  5039. } else {
  5040. _iframe.contentDocument.location.reload()
  5041. }
  5042. } else if (str == 'courseDesign') {
  5043. U.UF.DL.iframeLoad(_iframe, function () {
  5044. // _iframe.contentWindow.U.MD.O.W.load();
  5045. // _iframe.contentWindow.document.body.appendChild(script1);
  5046. _iframe.contentWindow.document.body.appendChild(script2);
  5047. _iframe.contentWindow.document.body.appendChild(script4);
  5048. })
  5049. } else if (str == 'mind') {
  5050. _iframe = _formdiv.querySelector('iframe')
  5051. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5052. //
  5053. _iframe.contentWindow.document.body.appendChild(script1);
  5054. _iframe.contentWindow.document.body.appendChild(script2);
  5055. _iframe.contentWindow.document.body.appendChild(script4);
  5056. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5057. })
  5058. if (onloadListener) {
  5059. _iframe.contentDocument.location.reload()
  5060. } else {
  5061. _iframe.contentDocument.location.reload()
  5062. }
  5063. } else if (str == 'whiteboard') {
  5064. _iframe = _formdiv.querySelector('iframe')
  5065. let onloadListener = _iframe.onload = () => {
  5066. _iframe.contentWindow.document.body.appendChild(script1);
  5067. _iframe.contentWindow.document.body.appendChild(script2);
  5068. _iframe.contentWindow.document.body.appendChild(script4);
  5069. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5070. };
  5071. if (onloadListener) {
  5072. _iframe.contentDocument.location.reload()
  5073. } else {
  5074. _iframe.contentDocument.location.reload()
  5075. }
  5076. } else {
  5077. _iframe.onload = () => {
  5078. _iframe.contentWindow.document.body.appendChild(script1);
  5079. _iframe.contentWindow.document.body.appendChild(script2);
  5080. // _iframe.contentWindow.document.body.appendChild(script3);
  5081. _iframe.contentWindow.document.body.appendChild(script4);
  5082. };
  5083. }
  5084. _jie.onclick = async () => {
  5085. let text = ''
  5086. if (aTool == 1) {
  5087. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5088. } else if (aTool == 6) {
  5089. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5090. } else if (aTool == 3) {
  5091. text = await U.MD.D.I.getEditorContent(_iframe);
  5092. }
  5093. _loading.style.display = 'flex'
  5094. console.log(_loading);
  5095. var _ajs = _iframe.contentWindow.document.createElement("script");
  5096. _ajs.type = "text/javascript";
  5097. _ajs.innerHTML =
  5098. // 'console.log(' + _loading + ');\n' +
  5099. 'var _js = document.createElement("script");\n' +
  5100. '_js.type="text/javascript";\n' +
  5101. '_js.charset="UTF-8";\n' +
  5102. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5103. "_js.onload = function(){\n" +
  5104. ' var a = document.getElementsByTagName("img")\n' +
  5105. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5106. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5107. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5108. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5109. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5110. "beforeUpload_shishi(file," +
  5111. "'" +
  5112. _userid +
  5113. "'" +
  5114. ", " +
  5115. "'" +
  5116. _cid +
  5117. "'" +
  5118. ", " +
  5119. "'" +
  5120. _stage +
  5121. "'" +
  5122. ", " +
  5123. "'" +
  5124. _task +
  5125. "'" +
  5126. ", " +
  5127. "'" +
  5128. _tool +
  5129. "'" +
  5130. ", " +
  5131. "'" +
  5132. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5133. "'" +
  5134. ", " +
  5135. "'" +
  5136. aTool +
  5137. "'" +
  5138. ", " +
  5139. "`" +
  5140. text +
  5141. "`" +
  5142. ")\n" +
  5143. " });\n" +
  5144. "}\n" +
  5145. "document.head.appendChild(_js);\n";
  5146. _iframe.contentWindow.document.head.appendChild(_ajs);
  5147. }
  5148. }
  5149. }
  5150. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5151. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5152. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5153. _userid = student.userid, //登录用户id
  5154. _username = student.student //用户名字
  5155. let _iframe;
  5156. let _cid = cid,
  5157. _stage = stage,
  5158. _task = task,
  5159. _tool = tool;
  5160. var _jie = $$("div", {
  5161. "style": {
  5162. "position": "absolute",
  5163. "bottom": "50px",
  5164. "right": "50px",
  5165. "zIndex": "9999",
  5166. "backgroundColor": "#2268bc",
  5167. "color": "#fff",
  5168. "padding": "12px 20px",
  5169. "cursor": "pointer",
  5170. "borderRadius": "4px",
  5171. },
  5172. "innerHTML": "提交作业"
  5173. })
  5174. let aTool = ''
  5175. let _loading = document.createElement('div')
  5176. _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;"
  5177. // _loading.id = "";
  5178. let _lchild = document.createElement('div')
  5179. let _limg = document.createElement('img')
  5180. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5181. _limg.style = "width: 26px;margin-right: 10px;"
  5182. _lchild.appendChild(_limg)
  5183. let _lspan = document.createElement('span')
  5184. _lspan.innerHTML = "上传中..."
  5185. _lchild.appendChild(_lspan)
  5186. _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%);"
  5187. _loading.appendChild(_lchild)
  5188. var _box = $$('div', {
  5189. "style": {
  5190. "position": "relative",
  5191. "width": "100%",
  5192. "height": "100%",
  5193. },
  5194. })
  5195. _box.appendChild(_loading)
  5196. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5197. switch (str) {
  5198. case "whiteboard":
  5199. aTool = 1;
  5200. _iframe = $$("iframe", {
  5201. "frameborder": "no",
  5202. "border": "0",
  5203. "scrolling ": "no",
  5204. "style": {
  5205. "cssText": "border:0;width:100%;height:100%"
  5206. },
  5207. "src": "https://iwb.cocorobo.cn/"
  5208. })
  5209. _box.appendChild(_iframe);
  5210. _box.appendChild(_jie);
  5211. _formdiv = new U.UF.UI.form(
  5212. "电子白板-" + _username,
  5213. _box, {
  5214. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5215. "style": {
  5216. "width": "90%",
  5217. "height": "90%",
  5218. "overflow": 'hidden'
  5219. },
  5220. "onresize": function () { }
  5221. }, {
  5222. closecallback: function () { }
  5223. }, {
  5224. "style": {
  5225. "height": "36px"
  5226. }
  5227. }).form; //创建窗体
  5228. _taskbar = {
  5229. "id": str + _formdiv.id,
  5230. "style": {
  5231. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5232. },
  5233. "name": "电子白板",
  5234. "forms": _formdiv,
  5235. "click": function () {
  5236. U.MD.D.I.openApplication(str, obj, info);
  5237. }
  5238. }
  5239. break;
  5240. case "mind":
  5241. aTool = 3;
  5242. _iframe = $$("iframe", {
  5243. "frameborder": "no",
  5244. "border": "0",
  5245. "scrolling ": "no",
  5246. "style": {
  5247. "cssText": "border:0;width:100%;height:100%"
  5248. },
  5249. "src": "/kityminder-editor/dist/index.html"
  5250. })
  5251. _box.appendChild(_iframe);
  5252. _box.appendChild(_jie);
  5253. _formdiv = new U.UF.UI.form(
  5254. "思维导图-" + _username,
  5255. _box, { //"/jsmind/example/demo.html"
  5256. "id": "mind" + cid + stage + task + tool + _userid,
  5257. "style": {
  5258. "width": "90%",
  5259. "height": "90%",
  5260. "overflow": 'hidden'
  5261. },
  5262. "onresize": function () { }
  5263. }, {
  5264. closecallback: function () { }
  5265. }, {
  5266. "style": {
  5267. "height": "36px"
  5268. }
  5269. }).form; //创建窗体
  5270. _taskbar = {
  5271. "id": str + _formdiv.id,
  5272. "style": {
  5273. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5274. },
  5275. "name": "思维导图",
  5276. "forms": _formdiv,
  5277. "click": function () {
  5278. U.MD.D.I.openApplication(str, obj, info);
  5279. }
  5280. }
  5281. break;
  5282. case "MindMap":
  5283. aTool = 3;
  5284. _iframe = $$("iframe", {
  5285. "frameborder": "no",
  5286. "border": "0",
  5287. "scrolling ": "no",
  5288. "style": {
  5289. "cssText": "border:0;width:100%;height:100%"
  5290. },
  5291. "src": "//cloud.cocorobo.cn/mind/"
  5292. })
  5293. _box.appendChild(_iframe);
  5294. _box.appendChild(_jie);
  5295. _formdiv = new U.UF.UI.form(
  5296. "思维导图-" + _username,
  5297. _box, { //"/jsmind/example/demo.html"
  5298. "id": "mind" + cid + stage + task + tool + _userid,
  5299. "style": {
  5300. "width": "90%",
  5301. "height": "90%",
  5302. "overflow": 'hidden'
  5303. },
  5304. "onresize": function () { }
  5305. }, {
  5306. closecallback: function () { }
  5307. }, {
  5308. "style": {
  5309. "height": "36px"
  5310. }
  5311. }).form; //创建窗体
  5312. _taskbar = {
  5313. "id": str + _formdiv.id,
  5314. "style": {
  5315. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5316. },
  5317. "name": "思维导图",
  5318. "forms": _formdiv,
  5319. "click": function () {
  5320. U.MD.D.I.openApplication(str, obj, info);
  5321. }
  5322. }
  5323. break;
  5324. case "doc":
  5325. aTool = 6;
  5326. _iframe = $$("iframe", {
  5327. "frameborder": "no",
  5328. "border": "0",
  5329. "scrolling ": "no",
  5330. "style": {
  5331. "cssText": "border:0;width:100%;height:100%"
  5332. },
  5333. "src": "/Office/Word/WordEditArea.htm"
  5334. })
  5335. _box.appendChild(_iframe);
  5336. _box.appendChild(_jie);
  5337. _formdiv = new U.UF.UI.form(
  5338. "协同文档-" + _username,
  5339. _box, {
  5340. "id": "doc" + cid + stage + task + tool + _userid,
  5341. "style": {
  5342. "width": "90%",
  5343. "height": "90%",
  5344. "overflow": 'hidden'
  5345. },
  5346. "onresize": function () { }
  5347. }, {
  5348. closecallback: function () { }
  5349. }, {
  5350. "style": {
  5351. "height": "36px"
  5352. }
  5353. }).form; //创建窗体
  5354. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5355. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5356. })
  5357. _taskbar = {
  5358. "id": str + _formdiv.id,
  5359. "style": {
  5360. "backgroundImage": "url(/img/icon/doc.png)"
  5361. },
  5362. "name": "协同文档",
  5363. "forms": _formdiv,
  5364. "click": function () {
  5365. U.MD.D.I.openApplication(str, obj, info);
  5366. }
  5367. }
  5368. break;
  5369. case "mindNetwork": //好友打开
  5370. aTool = 7;
  5371. _iframe = $$("iframe", {
  5372. "webkitallowfullscreen": "",
  5373. "mozallowfullscreen": "",
  5374. "allowfullscreen": "",
  5375. "frameborder": "no",
  5376. "border": "0",
  5377. "scrolling ": "no",
  5378. "style": {
  5379. "cssText": "border:0; width:100%; height:100%;"
  5380. },
  5381. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5382. })
  5383. _box.appendChild(_iframe);
  5384. _box.appendChild(_jie);
  5385. _formdiv = new U.UF.UI.form(
  5386. "思维网格-" + _username,
  5387. _box, {
  5388. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5389. "style": {
  5390. "width": "90%",
  5391. "height": "90%",
  5392. "overflow": 'hidden'
  5393. },
  5394. "onresize": function () { }
  5395. }, {
  5396. closecallback: function () { }
  5397. }, {
  5398. "style": {
  5399. "height": "36px"
  5400. }
  5401. }).form; //创建窗体
  5402. _taskbar = {
  5403. "id": str + _formdiv.id,
  5404. "style": {
  5405. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5406. },
  5407. "name": "思维网格",
  5408. "forms": _formdiv,
  5409. "click": function () {
  5410. U.MD.D.I.openApplication(str, obj, info);
  5411. }
  5412. }
  5413. break;
  5414. case "courseDesign":
  5415. _iframe = $$("iframe", {
  5416. "webkitallowfullscreen": "",
  5417. "mozallowfullscreen": "",
  5418. "allowfullscreen": "",
  5419. "frameborder": "no",
  5420. "border": "0",
  5421. "scrolling ": "no",
  5422. "style": {
  5423. "cssText": "border:0; width:100%; height:100%;"
  5424. },
  5425. "src": "/course-design-vue"
  5426. })
  5427. _box.appendChild(_iframe);
  5428. _box.appendChild(_jie);
  5429. _formdiv = new U.UF.UI.form(
  5430. "项目设计-" + _username,
  5431. _box, {
  5432. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5433. "style": {
  5434. "width": "90%",
  5435. "height": "90%",
  5436. "overflow": 'hidden'
  5437. },
  5438. "onresize": function () { }
  5439. }, {
  5440. closecallback: function () { }
  5441. }, {
  5442. "style": {
  5443. "height": "36px"
  5444. }
  5445. }).form; //创建窗体
  5446. _taskbar = {
  5447. "id": str + _formdiv.id,
  5448. "style": {
  5449. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5450. },
  5451. "name": "项目设计",
  5452. "forms": _formdiv,
  5453. "click": function () {
  5454. U.MD.D.I.openApplication(str, obj, info);
  5455. }
  5456. }
  5457. break;
  5458. }
  5459. const script1 = document.createElement("script");
  5460. script1.type = "text/javascript";
  5461. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5462. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5463. const script2 = document.createElement("script");
  5464. script2.type = "text/javascript";
  5465. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5466. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5467. const script3 = document.createElement("script");
  5468. script3.type = "text/javascript";
  5469. script3.charset = "UTF-8";
  5470. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5471. const script4 = document.createElement("script");
  5472. script4.type = "text/javascript";
  5473. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5474. script4.src = window.origin + "/js/Common/jietu2E.js";
  5475. if (_iframe) {
  5476. if (str == 'doc') {
  5477. _iframe = _formdiv.querySelector('iframe')
  5478. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5479. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5480. _iframe.contentWindow.document.body.appendChild(script1);
  5481. _iframe.contentWindow.document.body.appendChild(script2);
  5482. // _iframe.contentWindow.document.body.appendChild(script3);
  5483. _iframe.contentWindow.document.body.appendChild(script4);
  5484. })
  5485. if (onloadListener) {
  5486. _iframe.contentDocument.location.reload()
  5487. } else {
  5488. _iframe.contentDocument.location.reload()
  5489. }
  5490. } else if (str == 'courseDesign') {
  5491. U.UF.DL.iframeLoad(_iframe, function () {
  5492. // _iframe.contentWindow.U.MD.O.W.load();
  5493. // _iframe.contentWindow.document.body.appendChild(script1);
  5494. _iframe.contentWindow.document.body.appendChild(script2);
  5495. _iframe.contentWindow.document.body.appendChild(script4);
  5496. })
  5497. } else if (str == 'mind') {
  5498. _iframe = _formdiv.querySelector('iframe')
  5499. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5500. //
  5501. _iframe.contentWindow.document.body.appendChild(script1);
  5502. _iframe.contentWindow.document.body.appendChild(script2);
  5503. _iframe.contentWindow.document.body.appendChild(script4);
  5504. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5505. })
  5506. if (onloadListener) {
  5507. _iframe.contentDocument.location.reload()
  5508. } else {
  5509. _iframe.contentDocument.location.reload()
  5510. }
  5511. } else if (str == 'whiteboard') {
  5512. _iframe = _formdiv.querySelector('iframe')
  5513. let onloadListener = _iframe.onload = () => {
  5514. _iframe.contentWindow.document.body.appendChild(script1);
  5515. _iframe.contentWindow.document.body.appendChild(script2);
  5516. _iframe.contentWindow.document.body.appendChild(script4);
  5517. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5518. };
  5519. if (onloadListener) {
  5520. _iframe.contentDocument.location.reload()
  5521. } else {
  5522. _iframe.contentDocument.location.reload()
  5523. }
  5524. } else {
  5525. _iframe.onload = () => {
  5526. _iframe.contentWindow.document.body.appendChild(script1);
  5527. _iframe.contentWindow.document.body.appendChild(script2);
  5528. // _iframe.contentWindow.document.body.appendChild(script3);
  5529. _iframe.contentWindow.document.body.appendChild(script4);
  5530. };
  5531. }
  5532. _jie.onclick = async () => {
  5533. let text = ''
  5534. if (aTool == 1) {
  5535. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5536. } else if (aTool == 6) {
  5537. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5538. } else if (aTool == 3) {
  5539. text = await U.MD.D.I.getEditorContent(_iframe);
  5540. }
  5541. _loading.style.display = 'flex'
  5542. console.log(_loading);
  5543. var _ajs = _iframe.contentWindow.document.createElement("script");
  5544. _ajs.type = "text/javascript";
  5545. _ajs.innerHTML =
  5546. // 'console.log(' + _loading + ');\n' +
  5547. 'var _js = document.createElement("script");\n' +
  5548. '_js.type="text/javascript";\n' +
  5549. '_js.charset="UTF-8";\n' +
  5550. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5551. "_js.onload = function(){\n" +
  5552. ' var a = document.getElementsByTagName("img")\n' +
  5553. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5554. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5555. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5556. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5557. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5558. "beforeUpload_shishi(file," +
  5559. "'" +
  5560. _userid +
  5561. "'" +
  5562. ", " +
  5563. "'" +
  5564. _cid +
  5565. "'" +
  5566. ", " +
  5567. "'" +
  5568. _stage +
  5569. "'" +
  5570. ", " +
  5571. "'" +
  5572. _task +
  5573. "'" +
  5574. ", " +
  5575. "'" +
  5576. _tool +
  5577. "'" +
  5578. ", " +
  5579. "'" +
  5580. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5581. "'" +
  5582. ", " +
  5583. "'" +
  5584. aTool +
  5585. "'" +
  5586. ", " +
  5587. "`" +
  5588. text +
  5589. "`" +
  5590. ")\n" +
  5591. " });\n" +
  5592. "}\n" +
  5593. "document.head.appendChild(_js);\n";
  5594. _iframe.contentWindow.document.head.appendChild(_ajs);
  5595. }
  5596. }
  5597. }
  5598. U.MD.D.I.getEditorContent = function (iframe) {
  5599. return new Promise((resolve, reject) => {
  5600. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5601. console.log(content);
  5602. resolve(content)
  5603. });
  5604. });
  5605. }
  5606. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5607. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5608. // if (res.value[0].length > 0) {
  5609. // // resolve(res.value[0][0].text);
  5610. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5611. // $(fileInput).val('');
  5612. // });
  5613. // }
  5614. // }, [], { "type": "GET", "withCredentials": true });
  5615. var xmlhttp;
  5616. var Mac, Sn, DeviceId
  5617. if (window.XMLHttpRequest) {
  5618. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5619. xmlhttp = new XMLHttpRequest();
  5620. }
  5621. else {
  5622. // IE6, IE5 浏览器执行代码
  5623. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5624. }
  5625. xmlhttp.onreadystatechange = function () {
  5626. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5627. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5628. // resolve(res.value[0][0].text);
  5629. if (type == '2') {
  5630. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5631. } else if (type == '3') {
  5632. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5633. }
  5634. } else {
  5635. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5636. }
  5637. }
  5638. }
  5639. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5640. xmlhttp.send();
  5641. }
  5642. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5643. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5644. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5645. _userinfo = US.userInfo, //登录用户信息
  5646. _userid = US.userInfo.userid //登录用户id
  5647. let _iframe;
  5648. let _cid = cid,
  5649. _stage = stage,
  5650. _task = task,
  5651. _tool = tool;
  5652. var _jie = $$("div", {
  5653. "style": {
  5654. "position": "absolute",
  5655. "bottom": "50px",
  5656. "right": "50px",
  5657. "zIndex": "9999",
  5658. "backgroundColor": "#2268bc",
  5659. "color": "#fff",
  5660. "padding": "12px 20px",
  5661. "cursor": "pointer",
  5662. "borderRadius": "4px",
  5663. },
  5664. "innerHTML": "确认并提交"
  5665. })
  5666. let aTool = ''
  5667. let _loading = document.createElement('div')
  5668. _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;"
  5669. // _loading.id = "";
  5670. let _lchild = document.createElement('div')
  5671. let _limg = document.createElement('img')
  5672. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5673. _limg.style = "width: 26px;margin-right: 10px;"
  5674. _lchild.appendChild(_limg)
  5675. let _lspan = document.createElement('span')
  5676. _lspan.innerHTML = "上传中..."
  5677. _lchild.appendChild(_lspan)
  5678. _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%);"
  5679. _loading.appendChild(_lchild)
  5680. var _box = $$('div', {
  5681. "style": {
  5682. "position": "relative",
  5683. "width": "100%",
  5684. "height": "100%",
  5685. },
  5686. })
  5687. _box.appendChild(_loading)
  5688. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5689. switch (str) {
  5690. case "whiteboard":
  5691. aTool = 1;
  5692. _iframe = $$("iframe", {
  5693. "frameborder": "no",
  5694. "border": "0",
  5695. "scrolling ": "no",
  5696. "style": {
  5697. "cssText": "border:0;width:100%;height:100%"
  5698. },
  5699. "src": "https://iwb.cocorobo.cn/"
  5700. })
  5701. _box.appendChild(_iframe);
  5702. _box.appendChild(_jie);
  5703. _formdiv = new U.UF.UI.form(
  5704. "电子白板",
  5705. _box, {
  5706. "id": "whiteboards" + cid + stage + task + tool,
  5707. "style": {
  5708. "width": "90%",
  5709. "height": "90%",
  5710. "overflow": 'hidden'
  5711. },
  5712. "onresize": function () { }
  5713. }, {
  5714. closecallback: function () { }
  5715. }, {
  5716. "style": {
  5717. "height": "36px"
  5718. }
  5719. }).form; //创建窗体
  5720. _taskbar = {
  5721. "id": str + _formdiv.id,
  5722. "style": {
  5723. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5724. },
  5725. "name": "电子白板",
  5726. "forms": _formdiv,
  5727. "click": function () {
  5728. U.MD.D.I.openApplication(str, obj, info);
  5729. }
  5730. }
  5731. break;
  5732. case "mind":
  5733. aTool = 3;
  5734. _iframe = $$("iframe", {
  5735. "frameborder": "no",
  5736. "border": "0",
  5737. "scrolling ": "no",
  5738. "style": {
  5739. "cssText": "border:0;width:100%;height:100%"
  5740. },
  5741. "src": "/kityminder-editor/dist/index.html"
  5742. });
  5743. _box.appendChild(_iframe);
  5744. _box.appendChild(_jie);
  5745. _formdiv = new U.UF.UI.form(
  5746. "思维导图",
  5747. _box, { //"/jsmind/example/demo.html"
  5748. "id": "minds" + cid + stage + task + tool,
  5749. "style": {
  5750. "width": "90%",
  5751. "height": "90%",
  5752. "overflow": 'hidden'
  5753. },
  5754. "onresize": function () { }
  5755. }, {
  5756. closecallback: function () { }
  5757. }, {
  5758. "style": {
  5759. "height": "36px"
  5760. }
  5761. }).form; //创建窗体
  5762. _taskbar = {
  5763. "id": str + _formdiv.id,
  5764. "style": {
  5765. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5766. },
  5767. "name": "思维导图",
  5768. "forms": _formdiv,
  5769. "click": function () {
  5770. U.MD.D.I.openApplication(str, obj, info);
  5771. }
  5772. }
  5773. break;
  5774. case "doc":
  5775. aTool = 6;
  5776. _iframe = $$("iframe", {
  5777. "frameborder": "no",
  5778. "border": "0",
  5779. "scrolling ": "no",
  5780. "style": {
  5781. "cssText": "border:0;width:100%;height:100%"
  5782. },
  5783. "src": "/Office/Word/WordEditArea.htm"
  5784. })
  5785. _box.appendChild(_iframe);
  5786. _box.appendChild(_jie);
  5787. _formdiv = new U.UF.UI.form(
  5788. "协同文档",
  5789. _box, {
  5790. "id": "docs" + cid + stage + task + tool,
  5791. "style": {
  5792. "width": "90%",
  5793. "height": "90%",
  5794. "overflow": 'hidden'
  5795. },
  5796. "onresize": function () { }
  5797. }, {
  5798. closecallback: function () { }
  5799. }, {
  5800. "style": {
  5801. "height": "36px"
  5802. }
  5803. }).form; //创建窗体
  5804. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5805. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5806. })
  5807. _taskbar = {
  5808. "id": str + _formdiv.id,
  5809. "style": {
  5810. "backgroundImage": "url(/img/icon/doc.png)"
  5811. },
  5812. "name": "协同文档",
  5813. "forms": _formdiv,
  5814. "click": function () {
  5815. U.MD.D.I.openApplication(str, obj, info);
  5816. }
  5817. }
  5818. break;
  5819. }
  5820. const script1 = document.createElement("script");
  5821. script1.type = "text/javascript";
  5822. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5823. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5824. const script2 = document.createElement("script");
  5825. script2.type = "text/javascript";
  5826. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5827. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5828. const script3 = document.createElement("script");
  5829. script3.type = "text/javascript";
  5830. script3.charset = "UTF-8";
  5831. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5832. const script4 = document.createElement("script");
  5833. script4.type = "text/javascript";
  5834. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5835. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5836. if (_iframe) {
  5837. if (str == 'doc') {
  5838. _iframe = _formdiv.querySelector('iframe')
  5839. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5840. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5841. _iframe.contentWindow.document.body.appendChild(script1);
  5842. _iframe.contentWindow.document.body.appendChild(script2);
  5843. // _iframe.contentWindow.document.body.appendChild(script3);
  5844. _iframe.contentWindow.document.body.appendChild(script4);
  5845. })
  5846. if (onloadListener) {
  5847. _iframe.contentDocument.location.reload()
  5848. } else {
  5849. _iframe.contentDocument.location.reload()
  5850. }
  5851. } else if (str == 'mind') {
  5852. _iframe = _formdiv.querySelector('iframe')
  5853. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5854. _iframe.contentWindow.document.body.appendChild(script1);
  5855. _iframe.contentWindow.document.body.appendChild(script2);
  5856. _iframe.contentWindow.document.body.appendChild(script4);
  5857. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5858. })
  5859. if (onloadListener) {
  5860. _iframe.contentDocument.location.reload()
  5861. } else {
  5862. _iframe.contentDocument.location.reload()
  5863. }
  5864. } else {
  5865. _iframe.onload = () => {
  5866. _iframe.contentWindow.document.body.appendChild(script1);
  5867. _iframe.contentWindow.document.body.appendChild(script2);
  5868. // _iframe.contentWindow.document.body.appendChild(script3);
  5869. _iframe.contentWindow.document.body.appendChild(script4);
  5870. };
  5871. }
  5872. _jie.onclick = async () => {
  5873. let text = ''
  5874. if (aTool == 6) {
  5875. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5876. } else if (aTool == 3) {
  5877. text = await U.MD.D.I.getEditorContent(_iframe);
  5878. }
  5879. _loading.style.display = 'flex'
  5880. console.log(_loading);
  5881. var _ajs = _iframe.contentWindow.document.createElement("script");
  5882. _ajs.type = "text/javascript";
  5883. _ajs.innerHTML =
  5884. // 'console.log(' + _loading + ');\n' +
  5885. 'var _js = document.createElement("script");\n' +
  5886. '_js.type="text/javascript";\n' +
  5887. '_js.charset="UTF-8";\n' +
  5888. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5889. "_js.onload = function(){\n" +
  5890. ' var a = document.getElementsByTagName("img")\n' +
  5891. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5892. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5893. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5894. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5895. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5896. "beforeUpload_shishi(file," +
  5897. "'" +
  5898. _userid +
  5899. "'" +
  5900. ", " +
  5901. "'" +
  5902. _cid +
  5903. "'" +
  5904. ", " +
  5905. "'" +
  5906. _stage +
  5907. "'" +
  5908. ", " +
  5909. "'" +
  5910. _task +
  5911. "'" +
  5912. ", " +
  5913. "'" +
  5914. _tool +
  5915. "'" +
  5916. ", " +
  5917. "'" +
  5918. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5919. "'" +
  5920. ", " +
  5921. "'" +
  5922. aTool +
  5923. "'" +
  5924. ", " +
  5925. "`" +
  5926. text +
  5927. "`" +
  5928. ")\n" +
  5929. " });\n" +
  5930. "}\n" +
  5931. "document.head.appendChild(_js);\n";
  5932. _iframe.contentWindow.document.head.appendChild(_ajs);
  5933. }
  5934. }
  5935. //U.MD.D.I.openClick(str);
  5936. //如果有任务栏信息
  5937. // if (_taskbar) {
  5938. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5939. // }
  5940. }
  5941. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5942. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5943. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5944. _userinfo = US.userInfo, //登录用户信息
  5945. _userid = US.userInfo.userid //登录用户id
  5946. let _iframe;
  5947. let _cid = cid,
  5948. _stage = stage,
  5949. _task = task,
  5950. _tool = tool;
  5951. var _jie = $$("div", {
  5952. "style": {
  5953. "position": "absolute",
  5954. "bottom": "50px",
  5955. "right": "50px",
  5956. "zIndex": "9999",
  5957. "backgroundColor": "#2268bc",
  5958. "color": "#fff",
  5959. "padding": "12px 20px",
  5960. "cursor": "pointer",
  5961. "borderRadius": "4px",
  5962. },
  5963. "innerHTML": "确认并提交"
  5964. })
  5965. let aTool = ''
  5966. let _loading = document.createElement('div')
  5967. _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;"
  5968. // _loading.id = "";
  5969. let _lchild = document.createElement('div')
  5970. let _limg = document.createElement('img')
  5971. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5972. _limg.style = "width: 26px;margin-right: 10px;"
  5973. _lchild.appendChild(_limg)
  5974. let _lspan = document.createElement('span')
  5975. _lspan.innerHTML = "上传中..."
  5976. _lchild.appendChild(_lspan)
  5977. _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%);"
  5978. _loading.appendChild(_lchild)
  5979. var _box = $$('div', {
  5980. "style": {
  5981. "position": "relative",
  5982. "width": "100%",
  5983. "height": "100%",
  5984. },
  5985. })
  5986. _box.appendChild(_loading)
  5987. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5988. switch (str) {
  5989. case "whiteboard":
  5990. aTool = 1;
  5991. _iframe = $$("iframe", {
  5992. "frameborder": "no",
  5993. "border": "0",
  5994. "scrolling ": "no",
  5995. "style": {
  5996. "cssText": "border:0;width:100%;height:100%"
  5997. },
  5998. "src": "https://iwb.cocorobo.cn/"
  5999. })
  6000. _box.appendChild(_iframe);
  6001. _box.appendChild(_jie);
  6002. _formdiv = new U.UF.UI.form(
  6003. "电子白板",
  6004. _box, {
  6005. "id": "whiteboards" + cid + stage + task + tool,
  6006. "style": {
  6007. "width": "90%",
  6008. "height": "90%",
  6009. "overflow": 'hidden'
  6010. },
  6011. "onresize": function () { }
  6012. }, {
  6013. closecallback: function () { }
  6014. }, {
  6015. "style": {
  6016. "height": "36px"
  6017. }
  6018. }).form; //创建窗体
  6019. _taskbar = {
  6020. "id": str + _formdiv.id,
  6021. "style": {
  6022. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6023. },
  6024. "name": "电子白板",
  6025. "forms": _formdiv,
  6026. "click": function () {
  6027. U.MD.D.I.openApplication(str, obj, info);
  6028. }
  6029. }
  6030. break;
  6031. case "mind":
  6032. aTool = 3;
  6033. _iframe = $$("iframe", {
  6034. "frameborder": "no",
  6035. "border": "0",
  6036. "scrolling ": "no",
  6037. "style": {
  6038. "cssText": "border:0;width:100%;height:100%"
  6039. },
  6040. "src": "/kityminder-editor/dist/index.html"
  6041. });
  6042. _box.appendChild(_iframe);
  6043. _box.appendChild(_jie);
  6044. _formdiv = new U.UF.UI.form(
  6045. "思维导图",
  6046. _box, { //"/jsmind/example/demo.html"
  6047. "id": "minds" + cid + stage + task + tool,
  6048. "style": {
  6049. "width": "90%",
  6050. "height": "90%",
  6051. "overflow": 'hidden'
  6052. },
  6053. "onresize": function () { }
  6054. }, {
  6055. closecallback: function () { }
  6056. }, {
  6057. "style": {
  6058. "height": "36px"
  6059. }
  6060. }).form; //创建窗体
  6061. _taskbar = {
  6062. "id": str + _formdiv.id,
  6063. "style": {
  6064. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6065. },
  6066. "name": "思维导图",
  6067. "forms": _formdiv,
  6068. "click": function () {
  6069. U.MD.D.I.openApplication(str, obj, info);
  6070. }
  6071. }
  6072. break;
  6073. case "doc":
  6074. aTool = 6;
  6075. _iframe = $$("iframe", {
  6076. "frameborder": "no",
  6077. "border": "0",
  6078. "scrolling ": "no",
  6079. "style": {
  6080. "cssText": "border:0;width:100%;height:100%"
  6081. },
  6082. "src": "/Office/Word/WordEditArea.htm"
  6083. })
  6084. _box.appendChild(_iframe);
  6085. _box.appendChild(_jie);
  6086. _formdiv = new U.UF.UI.form(
  6087. "协同文档",
  6088. _box, {
  6089. "id": "docs" + cid + stage + task + tool,
  6090. "style": {
  6091. "width": "90%",
  6092. "height": "90%",
  6093. "overflow": 'hidden'
  6094. },
  6095. "onresize": function () { }
  6096. }, {
  6097. closecallback: function () { }
  6098. }, {
  6099. "style": {
  6100. "height": "36px"
  6101. }
  6102. }).form; //创建窗体
  6103. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6104. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6105. })
  6106. _taskbar = {
  6107. "id": str + _formdiv.id,
  6108. "style": {
  6109. "backgroundImage": "url(/img/icon/doc.png)"
  6110. },
  6111. "name": "协同文档",
  6112. "forms": _formdiv,
  6113. "click": function () {
  6114. U.MD.D.I.openApplication(str, obj, info);
  6115. }
  6116. }
  6117. break;
  6118. }
  6119. const script1 = document.createElement("script");
  6120. script1.type = "text/javascript";
  6121. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6122. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6123. const script2 = document.createElement("script");
  6124. script2.type = "text/javascript";
  6125. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6126. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6127. const script3 = document.createElement("script");
  6128. script3.type = "text/javascript";
  6129. script3.charset = "UTF-8";
  6130. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6131. const script4 = document.createElement("script");
  6132. script4.type = "text/javascript";
  6133. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6134. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6135. if (_iframe) {
  6136. if (str == 'doc') {
  6137. _iframe = _formdiv.querySelector('iframe')
  6138. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6139. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6140. _iframe.contentWindow.document.body.appendChild(script1);
  6141. _iframe.contentWindow.document.body.appendChild(script2);
  6142. // _iframe.contentWindow.document.body.appendChild(script3);
  6143. _iframe.contentWindow.document.body.appendChild(script4);
  6144. })
  6145. if (onloadListener) {
  6146. _iframe.contentDocument.location.reload()
  6147. } else {
  6148. _iframe.contentDocument.location.reload()
  6149. }
  6150. } else if (str == 'mind') {
  6151. _iframe = _formdiv.querySelector('iframe')
  6152. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6153. _iframe.contentWindow.document.body.appendChild(script1);
  6154. _iframe.contentWindow.document.body.appendChild(script2);
  6155. _iframe.contentWindow.document.body.appendChild(script4);
  6156. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6157. })
  6158. if (onloadListener) {
  6159. _iframe.contentDocument.location.reload()
  6160. } else {
  6161. _iframe.contentDocument.location.reload()
  6162. }
  6163. } else {
  6164. _iframe.onload = () => {
  6165. _iframe.contentWindow.document.body.appendChild(script1);
  6166. _iframe.contentWindow.document.body.appendChild(script2);
  6167. // _iframe.contentWindow.document.body.appendChild(script3);
  6168. _iframe.contentWindow.document.body.appendChild(script4);
  6169. };
  6170. }
  6171. _jie.onclick = async () => {
  6172. let text = ''
  6173. if (aTool == 6) {
  6174. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6175. } else if (aTool == 3) {
  6176. text = await U.MD.D.I.getEditorContent(_iframe);
  6177. }
  6178. _loading.style.display = 'flex'
  6179. console.log(_loading);
  6180. var _ajs = _iframe.contentWindow.document.createElement("script");
  6181. _ajs.type = "text/javascript";
  6182. _ajs.innerHTML =
  6183. // 'console.log(' + _loading + ');\n' +
  6184. 'var _js = document.createElement("script");\n' +
  6185. '_js.type="text/javascript";\n' +
  6186. '_js.charset="UTF-8";\n' +
  6187. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6188. "_js.onload = function(){\n" +
  6189. ' var a = document.getElementsByTagName("img")\n' +
  6190. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6191. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6192. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6193. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6194. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6195. "beforeUpload_shishi(file," +
  6196. "'" +
  6197. _userid +
  6198. "'" +
  6199. ", " +
  6200. "'" +
  6201. _cid +
  6202. "'" +
  6203. ", " +
  6204. "'" +
  6205. _stage +
  6206. "'" +
  6207. ", " +
  6208. "'" +
  6209. _task +
  6210. "'" +
  6211. ", " +
  6212. "'" +
  6213. _tool +
  6214. "'" +
  6215. ", " +
  6216. "'" +
  6217. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6218. "'" +
  6219. ", " +
  6220. "'" +
  6221. aTool +
  6222. "'" +
  6223. ", " +
  6224. "`" +
  6225. text +
  6226. "`" +
  6227. ")\n" +
  6228. " });\n" +
  6229. "}\n" +
  6230. "document.head.appendChild(_js);\n";
  6231. _iframe.contentWindow.document.head.appendChild(_ajs);
  6232. }
  6233. }
  6234. //U.MD.D.I.openClick(str);
  6235. //如果有任务栏信息
  6236. // if (_taskbar) {
  6237. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6238. // }
  6239. }
  6240. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6241. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6242. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6243. _userinfo = US.userInfo, //登录用户信息
  6244. _userid = US.userInfo.userid //登录用户id
  6245. let _iframe;
  6246. let _cid = cid,
  6247. _stage = stage,
  6248. _task = task,
  6249. _tool = tool;
  6250. var _jie = $$("div", {
  6251. "style": {
  6252. "position": "absolute",
  6253. "bottom": "50px",
  6254. "right": "50px",
  6255. "zIndex": "9999",
  6256. "backgroundColor": "#2268bc",
  6257. "color": "#fff",
  6258. "padding": "12px 20px",
  6259. "cursor": "pointer",
  6260. "borderRadius": "4px",
  6261. },
  6262. "innerHTML": "上传模板"
  6263. })
  6264. let aTool = ''
  6265. let _loading = document.createElement('div')
  6266. _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;"
  6267. // _loading.id = "";
  6268. let _lchild = document.createElement('div')
  6269. let _limg = document.createElement('img')
  6270. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6271. _limg.style = "width: 26px;margin-right: 10px;"
  6272. _lchild.appendChild(_limg)
  6273. let _lspan = document.createElement('span')
  6274. _lspan.innerHTML = "上传中..."
  6275. _lchild.appendChild(_lspan)
  6276. _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%);"
  6277. _loading.appendChild(_lchild)
  6278. var _box = $$('div', {
  6279. "style": {
  6280. "position": "relative",
  6281. "width": "100%",
  6282. "height": "100%",
  6283. },
  6284. })
  6285. _box.appendChild(_loading)
  6286. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6287. switch (str) {
  6288. case "whiteboard":
  6289. aTool = 1;
  6290. _iframe = $$("iframe", {
  6291. "frameborder": "no",
  6292. "border": "0",
  6293. "scrolling ": "no",
  6294. "style": {
  6295. "cssText": "border:0;width:100%;height:100%"
  6296. },
  6297. "src": "https://iwb.cocorobo.cn/"
  6298. })
  6299. _box.appendChild(_iframe);
  6300. _box.appendChild(_jie);
  6301. _formdiv = new U.UF.UI.form(
  6302. "电子白板",
  6303. _box, {
  6304. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6305. "style": {
  6306. "width": "90%",
  6307. "height": "90%",
  6308. "overflow": 'hidden'
  6309. },
  6310. "onresize": function () { }
  6311. }, {
  6312. closecallback: function () { }
  6313. }, {
  6314. "style": {
  6315. "height": "36px"
  6316. }
  6317. }).form; //创建窗体
  6318. _taskbar = {
  6319. "id": str + _formdiv.id,
  6320. "style": {
  6321. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6322. },
  6323. "name": "电子白板",
  6324. "forms": _formdiv,
  6325. "click": function () {
  6326. U.MD.D.I.openApplication(str, obj, info);
  6327. }
  6328. }
  6329. break;
  6330. case "mind":
  6331. aTool = 3;
  6332. _iframe = $$("iframe", {
  6333. "frameborder": "no",
  6334. "border": "0",
  6335. "scrolling ": "no",
  6336. "style": {
  6337. "cssText": "border:0;width:100%;height:100%"
  6338. },
  6339. "src": "/kityminder-editor/dist/index.html"
  6340. });
  6341. _box.appendChild(_iframe);
  6342. _box.appendChild(_jie);
  6343. _formdiv = new U.UF.UI.form(
  6344. "思维导图",
  6345. _box, { //"/jsmind/example/demo.html"
  6346. "id": "minds_Yu" + cid + stage + task + tool,
  6347. "style": {
  6348. "width": "90%",
  6349. "height": "90%",
  6350. "overflow": 'hidden'
  6351. },
  6352. "onresize": function () { }
  6353. }, {
  6354. closecallback: function () { }
  6355. }, {
  6356. "style": {
  6357. "height": "36px"
  6358. }
  6359. }).form; //创建窗体
  6360. _taskbar = {
  6361. "id": str + _formdiv.id,
  6362. "style": {
  6363. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6364. },
  6365. "name": "思维导图",
  6366. "forms": _formdiv,
  6367. "click": function () {
  6368. U.MD.D.I.openApplication(str, obj, info);
  6369. }
  6370. }
  6371. break;
  6372. case "doc":
  6373. aTool = 6;
  6374. _iframe = $$("iframe", {
  6375. "frameborder": "no",
  6376. "border": "0",
  6377. "scrolling ": "no",
  6378. "style": {
  6379. "cssText": "border:0;width:100%;height:100%"
  6380. },
  6381. "src": "/Office/Word/WordEditArea.htm"
  6382. })
  6383. _box.appendChild(_iframe);
  6384. _box.appendChild(_jie);
  6385. _formdiv = new U.UF.UI.form(
  6386. "协同文档",
  6387. _box, {
  6388. "id": "docs_Yu" + cid + stage + task + tool,
  6389. "style": {
  6390. "width": "90%",
  6391. "height": "90%",
  6392. "overflow": 'hidden'
  6393. },
  6394. "onresize": function () { }
  6395. }, {
  6396. closecallback: function () { }
  6397. }, {
  6398. "style": {
  6399. "height": "36px"
  6400. }
  6401. }).form; //创建窗体
  6402. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6403. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6404. })
  6405. _taskbar = {
  6406. "id": str + _formdiv.id,
  6407. "style": {
  6408. "backgroundImage": "url(/img/icon/doc.png)"
  6409. },
  6410. "name": "协同文档",
  6411. "forms": _formdiv,
  6412. "click": function () {
  6413. U.MD.D.I.openApplication(str, obj, info);
  6414. }
  6415. }
  6416. break;
  6417. case "CocoPi":
  6418. aTool = 57;
  6419. _iframe = $$("iframe", {
  6420. "allowpaymentrequest":"allowpaymentrequest",
  6421. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6422. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6423. "frameborder": "no",
  6424. "border": "0",
  6425. "scrolling ": "no",
  6426. "style": {
  6427. "cssText": "border:0;width:100%;height:100%"
  6428. },
  6429. "src": "https://pi.cocorobo.cn/"
  6430. })
  6431. _box.appendChild(_iframe);
  6432. _box.appendChild(_jie);
  6433. _formdiv = new U.UF.UI.form(
  6434. "CocoPi",
  6435. _box, {
  6436. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6437. "style": {
  6438. "width": "90%",
  6439. "height": "90%",
  6440. "overflow": 'hidden'
  6441. },
  6442. "onresize": function () { }
  6443. }, {
  6444. closecallback: function () { }
  6445. }, {
  6446. "style": {
  6447. "height": "36px"
  6448. }
  6449. }).form; //创建窗体
  6450. _taskbar = {
  6451. "id": str + _formdiv.id,
  6452. "style": {
  6453. "backgroundImage": "url(/img/icon/cocopi.png)"
  6454. },
  6455. "name": "CocoPi",
  6456. "forms": _formdiv,
  6457. "click": function () {
  6458. U.MD.D.I.openApplication(str, obj, info);
  6459. }
  6460. }
  6461. break;
  6462. }
  6463. if (_iframe) {
  6464. if (str == 'doc') {
  6465. _iframe = _formdiv.querySelector('iframe')
  6466. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6467. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6468. })
  6469. if (onloadListener) {
  6470. _iframe.contentDocument.location.reload()
  6471. } else {
  6472. _iframe.contentDocument.location.reload()
  6473. }
  6474. } else if (str == 'mind') {
  6475. _iframe = _formdiv.querySelector('iframe')
  6476. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6477. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6478. })
  6479. if (onloadListener) {
  6480. _iframe.contentDocument.location.reload()
  6481. } else {
  6482. _iframe.contentDocument.location.reload()
  6483. }
  6484. } else if (str == 'whiteboard') {
  6485. _iframe = _formdiv.querySelector('iframe')
  6486. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6487. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6488. })
  6489. if (onloadListener) {
  6490. _iframe.contentDocument.location.reload()
  6491. } else {
  6492. _iframe.contentDocument.location.reload()
  6493. }
  6494. } else if (str == 'CocoPi') {
  6495. _iframe = _formdiv.querySelector('iframe')
  6496. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6497. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6498. })
  6499. if (onloadListener) {
  6500. _iframe.contentDocument.location.reload()
  6501. } else {
  6502. _iframe.contentDocument.location.reload()
  6503. }
  6504. } else {
  6505. _iframe.onload = () => {
  6506. };
  6507. }
  6508. _jie.onclick = async () => {
  6509. let text = ''
  6510. let type = '2'
  6511. if (aTool == 1) {
  6512. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6513. type = '3'
  6514. } else if (aTool == 6) {
  6515. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6516. type = '1'
  6517. } else if (aTool == 3) {
  6518. text = await U.MD.D.I.getEditorContent(_iframe);
  6519. type = '2'
  6520. } else if (aTool == 57) {
  6521. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6522. type = '4'
  6523. }
  6524. _loading.style.display = 'flex'
  6525. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6526. }
  6527. }
  6528. //U.MD.D.I.openClick(str);
  6529. //如果有任务栏信息
  6530. // if (_taskbar) {
  6531. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6532. // }
  6533. }
  6534. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6535. var xmlhttp;
  6536. var Mac, Sn, DeviceId
  6537. if (window.XMLHttpRequest) {
  6538. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6539. xmlhttp = new XMLHttpRequest();
  6540. }
  6541. else {
  6542. // IE6, IE5 浏览器执行代码
  6543. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6544. }
  6545. xmlhttp.onreadystatechange = function () {
  6546. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6547. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6548. // resolve(res.value[0][0].text);
  6549. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6550. }
  6551. }
  6552. }
  6553. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6554. xmlhttp.send();
  6555. }
  6556. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6557. var xmlhttp;
  6558. var Mac, Sn, DeviceId
  6559. if (window.XMLHttpRequest) {
  6560. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6561. xmlhttp = new XMLHttpRequest();
  6562. }
  6563. else {
  6564. // IE6, IE5 浏览器执行代码
  6565. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6566. }
  6567. xmlhttp.onreadystatechange = function () {
  6568. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6569. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6570. // resolve(res.value[0][0].text);
  6571. if (type == '2') {
  6572. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6573. } else if (type == '3') {
  6574. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6575. } else if (type == '4') {
  6576. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6577. }
  6578. } else {
  6579. if (type == '2') {
  6580. iframe.contentWindow.editor.minder.importData('json', '')
  6581. } else if (type == '3') {
  6582. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6583. } else if (type == '4') {
  6584. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6585. }
  6586. }
  6587. }
  6588. }
  6589. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6590. xmlhttp.send();
  6591. }
  6592. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6593. var xmlhttp;
  6594. var Mac, Sn, DeviceId
  6595. if (window.XMLHttpRequest) {
  6596. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6597. xmlhttp = new XMLHttpRequest();
  6598. }
  6599. else {
  6600. // IE6, IE5 浏览器执行代码
  6601. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6602. }
  6603. xmlhttp.onreadystatechange = function () {
  6604. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6605. if (xmlhttp.response) {
  6606. // resolve(res.value[0][0].text);
  6607. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6608. // $(fileInput).val('');
  6609. // });
  6610. span.innerHTML = '上传成功'
  6611. setTimeout(() => {
  6612. loading.style.display = 'none'
  6613. }, 1000);
  6614. }
  6615. }
  6616. }
  6617. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6618. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6619. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6620. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6621. // 设置请求头,表示请求体的编码格式
  6622. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6623. // 设置请求体,使用url-encoded格式的数据
  6624. }
  6625. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6626. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6627. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6628. _userinfo = US.userInfo, //登录用户信息
  6629. _userid = US.userInfo.userid //登录用户id
  6630. let _iframe;
  6631. let _cid = cid,
  6632. _stage = stage,
  6633. _task = task,
  6634. _tool = tool;
  6635. var _jie = $$("div", {
  6636. "style": {
  6637. "position": "absolute",
  6638. "bottom": "50px",
  6639. "right": "50px",
  6640. "zIndex": "9999",
  6641. "backgroundColor": "#2268bc",
  6642. "color": "#fff",
  6643. "padding": "12px 20px",
  6644. "cursor": "pointer",
  6645. "borderRadius": "4px",
  6646. },
  6647. "innerHTML": "提交作业"
  6648. })
  6649. let aTool = ''
  6650. let _loading = document.createElement('div')
  6651. _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;"
  6652. // _loading.id = "";
  6653. let _lchild = document.createElement('div')
  6654. let _limg = document.createElement('img')
  6655. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6656. _limg.style = "width: 26px;margin-right: 10px;"
  6657. _lchild.appendChild(_limg)
  6658. let _lspan = document.createElement('span')
  6659. _lspan.innerHTML = "上传中..."
  6660. _lchild.appendChild(_lspan)
  6661. _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%);"
  6662. _loading.appendChild(_lchild)
  6663. var _box = $$('div', {
  6664. "style": {
  6665. "position": "relative",
  6666. "width": "100%",
  6667. "height": "100%",
  6668. },
  6669. })
  6670. _box.appendChild(_loading)
  6671. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6672. switch (str) {
  6673. case "CocoPi":
  6674. aTool = 57;
  6675. _iframe = $$("iframe", {
  6676. "allowpaymentrequest":"allowpaymentrequest",
  6677. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6678. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6679. "frameborder": "no",
  6680. "border": "0",
  6681. "scrolling ": "no",
  6682. "style": {
  6683. "cssText": "border:0;width:100%;height:100%"
  6684. },
  6685. "src": "https://pi.cocorobo.cn/"
  6686. })
  6687. _box.appendChild(_iframe);
  6688. _box.appendChild(_jie);
  6689. _formdiv = new U.UF.UI.form(
  6690. "CocoPi",
  6691. _box, {
  6692. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6693. "style": {
  6694. "width": "90%",
  6695. "height": "90%",
  6696. "overflow": 'hidden'
  6697. },
  6698. "onresize": function () { }
  6699. }, {
  6700. closecallback: function () { }
  6701. }, {
  6702. "style": {
  6703. "height": "36px"
  6704. }
  6705. }).form; //创建窗体
  6706. _taskbar = {
  6707. "id": str + _formdiv.id,
  6708. "style": {
  6709. "backgroundImage": "url(/img/icon/cocopi.png)"
  6710. },
  6711. "name": "CocoPi",
  6712. "forms": _formdiv,
  6713. "click": function () {
  6714. U.MD.D.I.openApplication(str, obj, info);
  6715. }
  6716. }
  6717. break;
  6718. }
  6719. if (_iframe) {
  6720. if (str == 'CocoPi') {
  6721. _iframe = _formdiv.querySelector('iframe')
  6722. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6723. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6724. })
  6725. if (onloadListener) {
  6726. _iframe.contentDocument.location.reload()
  6727. } else {
  6728. _iframe.contentDocument.location.reload()
  6729. }
  6730. }
  6731. _jie.onclick = async () => {
  6732. let text = ''
  6733. if (aTool == 57) {
  6734. text = _iframe.contentWindow.getLoadXmlStr()
  6735. }
  6736. _loading.style.display = 'flex'
  6737. console.log(_loading);
  6738. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6739. _loading.style.display = 'none'
  6740. let _div = document.createElement('div')
  6741. _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;"
  6742. let _inner = document.createElement('div')
  6743. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6744. _inner.innerHTML = "上传成功"
  6745. _div.appendChild(_inner)
  6746. _iframe.contentWindow.window.document.body.appendChild(_div)
  6747. _div.onclick = () => {
  6748. _iframe.contentWindow.window.document.body.removeChild(_div)
  6749. }
  6750. setTimeout(() => {
  6751. _iframe.contentWindow.window.document.body.removeChild(_div)
  6752. }, 1000);
  6753. }, [], { "type": "POST", "withCredentials": true });
  6754. }
  6755. }
  6756. }
  6757. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6758. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6759. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6760. _userid = student.userid, //登录用户id
  6761. _username = student.student //用户名字
  6762. let _iframe;
  6763. let _cid = cid,
  6764. _stage = stage,
  6765. _task = task,
  6766. _tool = tool;
  6767. var _jie = $$("div", {
  6768. "style": {
  6769. "position": "absolute",
  6770. "bottom": "50px",
  6771. "right": "50px",
  6772. "zIndex": "9999",
  6773. "backgroundColor": "#2268bc",
  6774. "color": "#fff",
  6775. "padding": "12px 20px",
  6776. "cursor": "pointer",
  6777. "borderRadius": "4px",
  6778. },
  6779. "innerHTML": "提交作业"
  6780. })
  6781. let aTool = ''
  6782. let _loading = document.createElement('div')
  6783. _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;"
  6784. // _loading.id = "";
  6785. let _lchild = document.createElement('div')
  6786. let _limg = document.createElement('img')
  6787. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6788. _limg.style = "width: 26px;margin-right: 10px;"
  6789. _lchild.appendChild(_limg)
  6790. let _lspan = document.createElement('span')
  6791. _lspan.innerHTML = "上传中..."
  6792. _lchild.appendChild(_lspan)
  6793. _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%);"
  6794. _loading.appendChild(_lchild)
  6795. var _box = $$('div', {
  6796. "style": {
  6797. "position": "relative",
  6798. "width": "100%",
  6799. "height": "100%",
  6800. },
  6801. })
  6802. _box.appendChild(_loading)
  6803. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6804. switch (str) {
  6805. case "CocoPi":
  6806. aTool = 57;
  6807. _iframe = $$("iframe", {
  6808. "allowpaymentrequest":"allowpaymentrequest",
  6809. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6810. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6811. "frameborder": "no",
  6812. "border": "0",
  6813. "scrolling ": "no",
  6814. "style": {
  6815. "cssText": "border:0;width:100%;height:100%"
  6816. },
  6817. "src": "https://pi.cocorobo.cn/"
  6818. })
  6819. _box.appendChild(_iframe);
  6820. _box.appendChild(_jie);
  6821. _formdiv = new U.UF.UI.form(
  6822. "CocoPi-" + _username,
  6823. _box, {
  6824. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6825. "style": {
  6826. "width": "90%",
  6827. "height": "90%",
  6828. "overflow": 'hidden'
  6829. },
  6830. "onresize": function () { }
  6831. }, {
  6832. closecallback: function () { }
  6833. }, {
  6834. "style": {
  6835. "height": "36px"
  6836. }
  6837. }).form; //创建窗体
  6838. _taskbar = {
  6839. "id": str + _formdiv.id,
  6840. "style": {
  6841. "backgroundImage": "url(/img/icon/cocopi.png)"
  6842. },
  6843. "name": "CocoPi",
  6844. "forms": _formdiv,
  6845. "click": function () {
  6846. U.MD.D.I.openApplication(str, obj, info);
  6847. }
  6848. }
  6849. break;
  6850. }
  6851. if (_iframe) {
  6852. if (str == 'CocoPi') {
  6853. _iframe = _formdiv.querySelector('iframe')
  6854. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6855. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6856. })
  6857. if (onloadListener) {
  6858. _iframe.contentDocument.location.reload()
  6859. } else {
  6860. _iframe.contentDocument.location.reload()
  6861. }
  6862. }
  6863. _jie.onclick = async () => {
  6864. let text = ''
  6865. if (aTool == 57) {
  6866. text = _iframe.contentWindow.getLoadXmlStr()
  6867. }
  6868. _loading.style.display = 'flex'
  6869. console.log(_loading);
  6870. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6871. _loading.style.display = 'none'
  6872. let _div = document.createElement('div')
  6873. _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;"
  6874. let _inner = document.createElement('div')
  6875. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6876. _inner.innerHTML = "上传成功"
  6877. _div.appendChild(_inner)
  6878. _iframe.contentWindow.window.document.body.appendChild(_div)
  6879. _div.onclick = () => {
  6880. _iframe.contentWindow.window.document.body.removeChild(_div)
  6881. }
  6882. setTimeout(() => {
  6883. _iframe.contentWindow.window.document.body.removeChild(_div)
  6884. }, 1000);
  6885. }, [], { "type": "POST", "withCredentials": true });
  6886. }
  6887. }
  6888. }
  6889. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6890. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6891. if (res.value[0].length > 0) {
  6892. if (atool == 57) {
  6893. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6894. }
  6895. } else {
  6896. if (atool == 57) {
  6897. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6898. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6899. }
  6900. }
  6901. }, [], { "type": "POST", "withCredentials": true });
  6902. }