DeskTop.js 423 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418
  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.siesStudentDeskIcon = [
  553. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  554. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  555. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  556. ];
  557. //福田
  558. U.MD.D.I.gdjgTeacherDeskIcon = [
  559. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  560. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  561. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  562. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  563. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  564. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  565. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  566. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  567. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  568. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  569. ];
  570. //gdjg
  571. U.MD.D.I.gdjgAdminDeskIcon = [
  572. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  573. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  574. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  575. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  576. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  577. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  578. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  579. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  580. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  581. ];
  582. //hk
  583. U.MD.D.I.hkteacherDeskIcon = [
  584. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  585. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  586. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  587. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  588. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  589. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  590. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  591. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  592. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  593. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  594. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  595. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  596. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  597. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  598. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  599. ];
  600. //hk
  601. U.MD.D.I.hkStudentDeskIcon = [
  602. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  604. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  605. ];
  606. //香海正覺蓮社佛教正覺中學
  607. U.MD.D.I.hkZJLSteacherDeskIcon = [
  608. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  609. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  610. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  611. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  612. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  613. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  614. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  615. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  616. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  617. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  618. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  619. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  620. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  621. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  622. ];
  623. //香海正覺蓮社佛教正覺中學
  624. U.MD.D.I.hkZJLSStudentDeskIcon = [
  625. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  626. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  627. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  628. ];
  629. //云海
  630. U.MD.D.I.yunhaiTeacherDeskIcon = [
  631. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  632. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  633. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  634. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  635. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  636. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  637. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  638. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  639. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  640. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  641. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  642. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  643. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  644. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  645. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  646. ];
  647. //福田
  648. U.MD.D.I.heyuanTeacherDeskIcon = [
  649. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  650. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  651. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  652. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  653. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  654. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  655. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  656. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  657. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  658. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  659. ];
  660. //福田
  661. U.MD.D.I.heyuanAdminDeskIcon = [
  662. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  663. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  664. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  665. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  666. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  667. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  668. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  669. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  670. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  671. ];
  672. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  673. U.MD.D.I.szherTeacherDeskIcon = [
  674. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  675. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  676. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  677. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  678. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  679. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  680. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  681. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  682. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  683. ];
  684. //dsei
  685. U.MD.D.I.dseiTeacherDeskIcon = [
  686. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  687. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  688. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  689. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  690. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  691. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  692. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  693. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  694. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  695. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  696. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  697. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  698. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  699. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  700. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  701. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  702. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  703. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  704. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  705. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  706. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  707. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  708. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  709. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  710. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  711. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  712. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  713. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  714. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  715. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  716. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  717. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  718. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  719. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  720. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  721. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  722. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  723. ];
  724. //dsei
  725. U.MD.D.I.dseiAdminDeskIcon = [
  726. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  727. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  728. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  729. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  730. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  731. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  732. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  733. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  734. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  735. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  736. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  737. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  738. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  739. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  740. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  741. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  742. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  743. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  744. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  745. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  746. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  747. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  748. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  749. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  750. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  751. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  752. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  753. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  754. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  755. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  756. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  757. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  758. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  759. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  760. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  761. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  762. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  763. ];
  764. //dsei
  765. U.MD.D.I.dseiStudentDeskIcon = [
  766. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  767. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  768. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  769. ];
  770. //未来教育基地
  771. U.MD.D.I.szjkyTeacherDeskIcon = [
  772. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  773. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  774. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  775. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  776. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  777. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  778. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  779. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  780. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  781. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  782. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  783. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  784. ];
  785. //未来教育基地
  786. U.MD.D.I.szjkyAdminDeskIcon = [
  787. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  788. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  789. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  790. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  791. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  792. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  793. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  794. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  795. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  796. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  797. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  798. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  799. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. ];
  801. //未来教育基地
  802. U.MD.D.I.szjkyStudentDeskIcon = [
  803. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  804. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  805. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  806. ];
  807. //#region 桌面初始化a
  808. /**
  809. * 初始化桌面的起始函数
  810. *
  811. */
  812. U.MD.D.I.init = function () {
  813. if ($("#U_MD_D_K")[0]) {
  814. //初始化桌面图标
  815. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  816. // var clickUrl = ':12588/requestIp.php';
  817. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  818. // U.MD.D.I.Ip = data;
  819. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  820. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  821. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  822. // })
  823. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  824. // })
  825. }
  826. }
  827. /**
  828. * 模式切换
  829. *
  830. */
  831. U.MD.D.I.ModeCheck = function (type) {
  832. if (US.Config.type == type) {
  833. return
  834. }
  835. US.Config.type = type
  836. $('.U_PBL_Check .active')[0].className = ''
  837. if (type == 1) {
  838. $('.U_PBL_Check div')[0].className = 'active'
  839. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  840. } else {
  841. $('.U_PBL_Check div')[1].className = 'active'
  842. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  843. }
  844. //初始化桌面图标
  845. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  846. if(type == 2){
  847. U.MD.D.I.openApplication("project")
  848. }
  849. }
  850. /**
  851. * 隐藏任务栏
  852. *
  853. * @param {element} 桌面元素
  854. */
  855. U.MD.D.I.hiddenTaskbar = function (el) {
  856. //任务栏位置变小
  857. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  858. //桌面的位置变大
  859. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  860. }
  861. /**
  862. * 隐藏任务栏
  863. *
  864. * @param {element} 桌面元素
  865. */
  866. U.MD.D.I.hiddenTaskbarout = function (el) {
  867. //任务栏位置变小
  868. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  869. //任务栏位置变化
  870. U.selectEl(el).css({ "bottom": "-60px" });
  871. //桌面的位置变大
  872. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  873. }
  874. }
  875. /**
  876. * 初始化打印桌面图标
  877. *
  878. * @param {element} 桌面元素
  879. */
  880. U.MD.D.I.initDesktopIcons = function (el, type) {
  881. var i, //用于循环
  882. _content, //桌面图标元素
  883. _iconcontent, //桌面图标元素
  884. _frag = $$("frag"), //定义一个碎片元素
  885. _type = US.userInfo.type,
  886. _org = US.userInfo.org,
  887. _oid = US.userInfo.organizeid,
  888. _role = US.userInfo.role,
  889. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  890. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  891. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  892. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  893. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  894. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  895. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  896. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  897. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  898. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  899. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  900. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  901. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  902. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  903. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  904. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  905. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  906. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  907. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  908. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  909. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  910. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  911. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  912. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  913. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  914. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon,//未来教育基地
  915. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon,//未来教育基地
  916. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon,//未来教育基地
  917. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon,//dsei
  918. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon,//dsei
  919. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon,//dsei
  920. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  921. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  922. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  923. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  924. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  925. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  926. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  927. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//sies
  928. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon,//sies
  929. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  930. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  931. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  932. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon,//hk
  933. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon,//hk
  934. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  935. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  936. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  937. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  938. 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'];
  939. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5','578de748-05d2-11ee-91d8-005056b86db5','54f09f1e-09f0-11ee-91d8-005056b86db5','7b016f69-0f4f-11ee-91d8-005056b86db5','1973f6c7-1561-11ee-91d8-005056b86db5'];
  940. //清楚桌面图标
  941. el.innerHTML = "";
  942. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  943. _teacherDesktopIconInfo.push(
  944. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  945. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  946. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  947. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  948. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  949. )
  950. _easyDesktopIconInfo.push(
  951. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  952. )
  953. }
  954. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  955. _teacherDesktopIconInfo.push(
  956. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  957. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  958. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  959. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  960. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  961. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  962. )
  963. }
  964. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  965. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  966. if(el.Name == '项目管理'){
  967. el.Name = 'PBL项目'
  968. }
  969. return el
  970. })
  971. }
  972. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  973. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  974. return el.Name != '魔盒识字' && el.Name != '24点'
  975. })
  976. }
  977. 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) {
  978. _studentDesktopIconInfo.push(
  979. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  980. )
  981. }
  982. //循环创建桌面图标
  983. if (type == 1) {
  984. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  985. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  986. _content = $$("div", {
  987. className: "U_MD_D_KO",
  988. "onmousedown": U.UF.C.closure(function (obj) {
  989. //防止拖动图标即打开了桌面应用
  990. U.MD.D.click(this, obj);
  991. }, [_studentDesktopIconInfo[i]]),
  992. "onclick": U.UF.C.closure(function (obj) {
  993. //防止拖动图标即打开了桌面应用
  994. U.MD.D.click(this, obj);
  995. }, [_studentDesktopIconInfo[i]])
  996. }, _frag); //
  997. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  998. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  999. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1000. }
  1001. }else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1002. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  1003. _content = $$("div", {
  1004. className: "U_MD_D_KO",
  1005. "onmousedown": U.UF.C.closure(function (obj) {
  1006. //防止拖动图标即打开了桌面应用
  1007. U.MD.D.click(this, obj);
  1008. }, [_hkZJLSStudentDeskIconInfo[i]]),
  1009. "onclick": U.UF.C.closure(function (obj) {
  1010. //防止拖动图标即打开了桌面应用
  1011. U.MD.D.click(this, obj);
  1012. }, [_hkZJLSStudentDeskIconInfo[i]])
  1013. }, _frag); //
  1014. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1015. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1016. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1017. }//
  1018. }else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1019. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1020. _content = $$("div", {
  1021. className: "U_MD_D_KO",
  1022. "onmousedown": U.UF.C.closure(function (obj) {
  1023. //防止拖动图标即打开了桌面应用
  1024. U.MD.D.click(this, obj);
  1025. }, [_szjkyStudentDeskIconInfo[i]]),
  1026. "onclick": U.UF.C.closure(function (obj) {
  1027. //防止拖动图标即打开了桌面应用
  1028. U.MD.D.click(this, obj);
  1029. }, [_szjkyStudentDeskIconInfo[i]])
  1030. }, _frag); //
  1031. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1032. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1033. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1034. }
  1035. }else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1036. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1037. _content = $$("div", {
  1038. className: "U_MD_D_KO",
  1039. "onmousedown": U.UF.C.closure(function (obj) {
  1040. //防止拖动图标即打开了桌面应用
  1041. U.MD.D.click(this, obj);
  1042. }, [_dseiStudentDeskIconInfo[i]]),
  1043. "onclick": U.UF.C.closure(function (obj) {
  1044. //防止拖动图标即打开了桌面应用
  1045. U.MD.D.click(this, obj);
  1046. }, [_dseiStudentDeskIconInfo[i]])
  1047. }, _frag); //
  1048. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1049. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1050. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1051. }
  1052. }else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1053. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1054. _content = $$("div", {
  1055. className: "U_MD_D_KO",
  1056. "onmousedown": U.UF.C.closure(function (obj) {
  1057. //防止拖动图标即打开了桌面应用
  1058. U.MD.D.click(this, obj);
  1059. }, [_siesStudentDeskIconInfo[i]]),
  1060. "onclick": U.UF.C.closure(function (obj) {
  1061. //防止拖动图标即打开了桌面应用
  1062. U.MD.D.click(this, obj);
  1063. }, [_siesStudentDeskIconInfo[i]])
  1064. }, _frag); //
  1065. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1066. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1067. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1068. }
  1069. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1070. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1071. _content = $$("div", {
  1072. className: "U_MD_D_KO",
  1073. "onmousedown": U.UF.C.closure(function (obj) {
  1074. //防止拖动图标即打开了桌面应用
  1075. U.MD.D.click(this, obj);
  1076. }, [_hkStudentDeskIconInfo[i]]),
  1077. "onclick": U.UF.C.closure(function (obj) {
  1078. //防止拖动图标即打开了桌面应用
  1079. U.MD.D.click(this, obj);
  1080. }, [_hkStudentDeskIconInfo[i]])
  1081. }, _frag); //
  1082. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1083. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1084. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1085. }
  1086. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1087. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1088. _content = $$("div", {
  1089. className: "U_MD_D_KO",
  1090. "onmousedown": U.UF.C.closure(function (obj) {
  1091. //防止拖动图标即打开了桌面应用
  1092. U.MD.D.click(this, obj);
  1093. }, [_studentDesktopIconInfo[i]]),
  1094. "onclick": U.UF.C.closure(function (obj) {
  1095. //防止拖动图标即打开了桌面应用
  1096. U.MD.D.click(this, obj);
  1097. }, [_studentDesktopIconInfo[i]])
  1098. }, _frag); //
  1099. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1100. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1101. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1102. }
  1103. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1104. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1105. _content = $$("div", {
  1106. className: "U_MD_D_KO",
  1107. "onmousedown": U.UF.C.closure(function (obj) {
  1108. //防止拖动图标即打开了桌面应用
  1109. U.MD.D.click(this, obj);
  1110. }, [_tcStudentDeskIconInfo[i]]),
  1111. "onclick": U.UF.C.closure(function (obj) {
  1112. //防止拖动图标即打开了桌面应用
  1113. U.MD.D.click(this, obj);
  1114. }, [_tcStudentDeskIconInfo[i]])
  1115. }, _frag); //
  1116. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1117. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1118. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1119. }
  1120. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1121. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1122. _content = $$("div", {
  1123. className: "U_MD_D_KO",
  1124. "onmousedown": U.UF.C.closure(function (obj) {
  1125. //防止拖动图标即打开了桌面应用
  1126. U.MD.D.click(this, obj);
  1127. }, [_szscStudentDeskIconInfo[i]]),
  1128. "onclick": U.UF.C.closure(function (obj) {
  1129. //防止拖动图标即打开了桌面应用
  1130. U.MD.D.click(this, obj);
  1131. }, [_szscStudentDeskIconInfo[i]])
  1132. }, _frag); //
  1133. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1134. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1135. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1136. }
  1137. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1138. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1139. _content = $$("div", {
  1140. className: "U_MD_D_KO",
  1141. "onmousedown": U.UF.C.closure(function (obj) {
  1142. //防止拖动图标即打开了桌面应用
  1143. U.MD.D.click(this, obj);
  1144. }, [_studentDesktopIconInfo3[i]]),
  1145. "onclick": U.UF.C.closure(function (obj) {
  1146. //防止拖动图标即打开了桌面应用
  1147. U.MD.D.click(this, obj);
  1148. }, [_studentDesktopIconInfo3[i]])
  1149. }, _frag); //
  1150. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1151. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1152. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1153. }
  1154. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1155. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1156. _content = $$("div", {
  1157. className: "U_MD_D_KO",
  1158. "onmousedown": U.UF.C.closure(function (obj) {
  1159. //防止拖动图标即打开了桌面应用
  1160. U.MD.D.click(this, obj);
  1161. }, [_studentDesktopIconInfo2[i]]),
  1162. "onclick": U.UF.C.closure(function (obj) {
  1163. //防止拖动图标即打开了桌面应用
  1164. U.MD.D.click(this, obj);
  1165. }, [_studentDesktopIconInfo2[i]])
  1166. }, _frag); //
  1167. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1168. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1169. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1170. }
  1171. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1172. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1173. _content = $$("div", {
  1174. className: "U_MD_D_KO",
  1175. "onmousedown": U.UF.C.closure(function (obj) {
  1176. //防止拖动图标即打开了桌面应用
  1177. U.MD.D.click(this, obj);
  1178. }, [_wanketeacherDesktopIconInfo[i]]),
  1179. "onclick": U.UF.C.closure(function (obj) {
  1180. //防止拖动图标即打开了桌面应用
  1181. U.MD.D.click(this, obj);
  1182. }, [_wanketeacherDesktopIconInfo[i]])
  1183. }, _frag); //
  1184. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1185. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1186. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1187. }
  1188. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1189. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1190. _content = $$("div", {
  1191. className: "U_MD_D_KO",
  1192. "onmousedown": U.UF.C.closure(function (obj) {
  1193. //防止拖动图标即打开了桌面应用
  1194. U.MD.D.click(this, obj);
  1195. }, [_wankeAdminDesktopIconInfo[i]]),
  1196. "onclick": U.UF.C.closure(function (obj) {
  1197. //防止拖动图标即打开了桌面应用
  1198. U.MD.D.click(this, obj);
  1199. }, [_wankeAdminDesktopIconInfo[i]])
  1200. }, _frag); //
  1201. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1202. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1203. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1204. }
  1205. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1206. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1207. _content = $$("div", {
  1208. className: "U_MD_D_KO",
  1209. "onmousedown": U.UF.C.closure(function (obj) {
  1210. //防止拖动图标即打开了桌面应用
  1211. U.MD.D.click(this, obj);
  1212. }, [_teacherDesktopIconInfo2[i]]),
  1213. "onclick": U.UF.C.closure(function (obj) {
  1214. //防止拖动图标即打开了桌面应用
  1215. U.MD.D.click(this, obj);
  1216. }, [_teacherDesktopIconInfo2[i]])
  1217. }, _frag); //
  1218. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1219. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1220. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1221. }
  1222. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1223. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1224. _content = $$("div", {
  1225. className: "U_MD_D_KO",
  1226. "onmousedown": U.UF.C.closure(function (obj) {
  1227. //防止拖动图标即打开了桌面应用
  1228. U.MD.D.click(this, obj);
  1229. }, [_lotechTeacherDeskIconInfo[i]]),
  1230. "onclick": U.UF.C.closure(function (obj) {
  1231. //防止拖动图标即打开了桌面应用
  1232. U.MD.D.click(this, obj);
  1233. }, [_lotechTeacherDeskIconInfo[i]])
  1234. }, _frag); //
  1235. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1236. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1237. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1238. }
  1239. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1240. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1241. _content = $$("div", {
  1242. className: "U_MD_D_KO",
  1243. "onmousedown": U.UF.C.closure(function (obj) {
  1244. //防止拖动图标即打开了桌面应用
  1245. U.MD.D.click(this, obj);
  1246. }, [_siesTeacherDeskIconInfo[i]]),
  1247. "onclick": U.UF.C.closure(function (obj) {
  1248. //防止拖动图标即打开了桌面应用
  1249. U.MD.D.click(this, obj);
  1250. }, [_siesTeacherDeskIconInfo[i]])
  1251. }, _frag); //
  1252. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1253. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1254. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1255. }
  1256. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1257. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1258. _content = $$("div", {
  1259. className: "U_MD_D_KO",
  1260. "onmousedown": U.UF.C.closure(function (obj) {
  1261. //防止拖动图标即打开了桌面应用
  1262. U.MD.D.click(this, obj);
  1263. }, [_longhuaTeacherDeskIconInfo[i]]),
  1264. "onclick": U.UF.C.closure(function (obj) {
  1265. //防止拖动图标即打开了桌面应用
  1266. U.MD.D.click(this, obj);
  1267. }, [_longhuaTeacherDeskIconInfo[i]])
  1268. }, _frag); //
  1269. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1270. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1271. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1272. }
  1273. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1274. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1275. _content = $$("div", {
  1276. className: "U_MD_D_KO",
  1277. "onmousedown": U.UF.C.closure(function (obj) {
  1278. //防止拖动图标即打开了桌面应用
  1279. U.MD.D.click(this, obj);
  1280. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1281. "onclick": U.UF.C.closure(function (obj) {
  1282. //防止拖动图标即打开了桌面应用
  1283. U.MD.D.click(this, obj);
  1284. }, [_yunhaiTeacherDeskIconInfo[i]])
  1285. }, _frag); //
  1286. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1287. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1288. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1289. }//_hkStudentDeskIconInfo
  1290. }else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1291. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1292. _content = $$("div", {
  1293. className: "U_MD_D_KO",
  1294. "onmousedown": U.UF.C.closure(function (obj) {
  1295. //防止拖动图标即打开了桌面应用
  1296. U.MD.D.click(this, obj);
  1297. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1298. "onclick": U.UF.C.closure(function (obj) {
  1299. //防止拖动图标即打开了桌面应用
  1300. U.MD.D.click(this, obj);
  1301. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1302. }, _frag); //
  1303. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1304. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1305. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1306. }
  1307. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1308. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1309. _content = $$("div", {
  1310. className: "U_MD_D_KO",
  1311. "onmousedown": U.UF.C.closure(function (obj) {
  1312. //防止拖动图标即打开了桌面应用
  1313. U.MD.D.click(this, obj);
  1314. }, [_hkTeacherDeskIconInfo[i]]),
  1315. "onclick": U.UF.C.closure(function (obj) {
  1316. //防止拖动图标即打开了桌面应用
  1317. U.MD.D.click(this, obj);
  1318. }, [_hkTeacherDeskIconInfo[i]])
  1319. }, _frag); //
  1320. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1321. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1322. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1323. }
  1324. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1325. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1326. _content = $$("div", {
  1327. className: "U_MD_D_KO",
  1328. "onmousedown": U.UF.C.closure(function (obj) {
  1329. //防止拖动图标即打开了桌面应用
  1330. U.MD.D.click(this, obj);
  1331. }, [_gdjgAdminDeskIconInfo[i]]),
  1332. "onclick": U.UF.C.closure(function (obj) {
  1333. //防止拖动图标即打开了桌面应用
  1334. U.MD.D.click(this, obj);
  1335. }, [_gdjgAdminDeskIconInfo[i]])
  1336. }, _frag); //
  1337. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1338. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1339. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1340. }
  1341. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1342. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1343. _content = $$("div", {
  1344. className: "U_MD_D_KO",
  1345. "onmousedown": U.UF.C.closure(function (obj) {
  1346. //防止拖动图标即打开了桌面应用
  1347. U.MD.D.click(this, obj);
  1348. }, [_gdjgTeacherDeskIconInfo[i]]),
  1349. "onclick": U.UF.C.closure(function (obj) {
  1350. //防止拖动图标即打开了桌面应用
  1351. U.MD.D.click(this, obj);
  1352. }, [_gdjgTeacherDeskIconInfo[i]])
  1353. }, _frag); //
  1354. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1355. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1356. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1357. }
  1358. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1359. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1360. _content = $$("div", {
  1361. className: "U_MD_D_KO",
  1362. "onmousedown": U.UF.C.closure(function (obj) {
  1363. //防止拖动图标即打开了桌面应用
  1364. U.MD.D.click(this, obj);
  1365. }, [_szherTeacherDeskIconInfo[i]]),
  1366. "onclick": U.UF.C.closure(function (obj) {
  1367. //防止拖动图标即打开了桌面应用
  1368. U.MD.D.click(this, obj);
  1369. }, [_szherTeacherDeskIconInfo[i]])
  1370. }, _frag); //
  1371. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1372. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1373. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1374. }
  1375. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1376. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1377. _content = $$("div", {
  1378. className: "U_MD_D_KO",
  1379. "onmousedown": U.UF.C.closure(function (obj) {
  1380. //防止拖动图标即打开了桌面应用
  1381. U.MD.D.click(this, obj);
  1382. }, [_heyuannAdminDeskIconInfo[i]]),
  1383. "onclick": U.UF.C.closure(function (obj) {
  1384. //防止拖动图标即打开了桌面应用
  1385. U.MD.D.click(this, obj);
  1386. }, [_heyuannAdminDeskIconInfo[i]])
  1387. }, _frag); //
  1388. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1389. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1390. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1391. }
  1392. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1393. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1394. _content = $$("div", {
  1395. className: "U_MD_D_KO",
  1396. "onmousedown": U.UF.C.closure(function (obj) {
  1397. //防止拖动图标即打开了桌面应用
  1398. U.MD.D.click(this, obj);
  1399. }, [_heyuanTeacherDeskIconInfo[i]]),
  1400. "onclick": U.UF.C.closure(function (obj) {
  1401. //防止拖动图标即打开了桌面应用
  1402. U.MD.D.click(this, obj);
  1403. }, [_heyuanTeacherDeskIconInfo[i]])
  1404. }, _frag); //
  1405. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1406. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1407. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1408. }//
  1409. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1410. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1411. _content = $$("div", {
  1412. className: "U_MD_D_KO",
  1413. "onmousedown": U.UF.C.closure(function (obj) {
  1414. //防止拖动图标即打开了桌面应用
  1415. U.MD.D.click(this, obj);
  1416. }, [_dseiAdminDeskIconInfo[i]]),
  1417. "onclick": U.UF.C.closure(function (obj) {
  1418. //防止拖动图标即打开了桌面应用
  1419. U.MD.D.click(this, obj);
  1420. }, [_dseiAdminDeskIconInfo[i]])
  1421. }, _frag); //
  1422. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1423. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1424. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1425. }
  1426. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1427. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1428. _content = $$("div", {
  1429. className: "U_MD_D_KO",
  1430. "onmousedown": U.UF.C.closure(function (obj) {
  1431. //防止拖动图标即打开了桌面应用
  1432. U.MD.D.click(this, obj);
  1433. }, [_dseiTeacherDeskIconInfo[i]]),
  1434. "onclick": U.UF.C.closure(function (obj) {
  1435. //防止拖动图标即打开了桌面应用
  1436. U.MD.D.click(this, obj);
  1437. }, [_dseiTeacherDeskIconInfo[i]])
  1438. }, _frag); //
  1439. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1440. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1441. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1442. }//
  1443. }else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1444. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1445. _content = $$("div", {
  1446. className: "U_MD_D_KO",
  1447. "onmousedown": U.UF.C.closure(function (obj) {
  1448. //防止拖动图标即打开了桌面应用
  1449. U.MD.D.click(this, obj);
  1450. }, [_szjkyAdminDeskIconInfo[i]]),
  1451. "onclick": U.UF.C.closure(function (obj) {
  1452. //防止拖动图标即打开了桌面应用
  1453. U.MD.D.click(this, obj);
  1454. }, [_szjkyAdminDeskIconInfo[i]])
  1455. }, _frag); //
  1456. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1457. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1458. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1459. }
  1460. }else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1461. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1462. _content = $$("div", {
  1463. className: "U_MD_D_KO",
  1464. "onmousedown": U.UF.C.closure(function (obj) {
  1465. //防止拖动图标即打开了桌面应用
  1466. U.MD.D.click(this, obj);
  1467. }, [_szjkyTeacherDeskIconInfo[i]]),
  1468. "onclick": U.UF.C.closure(function (obj) {
  1469. //防止拖动图标即打开了桌面应用
  1470. U.MD.D.click(this, obj);
  1471. }, [_szjkyTeacherDeskIconInfo[i]])
  1472. }, _frag); //
  1473. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1474. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1475. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1476. }
  1477. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1478. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1479. _content = $$("div", {
  1480. className: "U_MD_D_KO",
  1481. "onmousedown": U.UF.C.closure(function (obj) {
  1482. //防止拖动图标即打开了桌面应用
  1483. U.MD.D.click(this, obj);
  1484. }, [_futianAdminDeskIconInfo[i]]),
  1485. "onclick": U.UF.C.closure(function (obj) {
  1486. //防止拖动图标即打开了桌面应用
  1487. U.MD.D.click(this, obj);
  1488. }, [_futianAdminDeskIconInfo[i]])
  1489. }, _frag); //
  1490. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1491. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1492. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1493. }
  1494. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1495. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1496. _content = $$("div", {
  1497. className: "U_MD_D_KO",
  1498. "onmousedown": U.UF.C.closure(function (obj) {
  1499. //防止拖动图标即打开了桌面应用
  1500. U.MD.D.click(this, obj);
  1501. }, [_futianTeacherDeskIconInfo[i]]),
  1502. "onclick": U.UF.C.closure(function (obj) {
  1503. //防止拖动图标即打开了桌面应用
  1504. U.MD.D.click(this, obj);
  1505. }, [_futianTeacherDeskIconInfo[i]])
  1506. }, _frag); //
  1507. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1508. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1509. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1510. }
  1511. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1512. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1513. _content = $$("div", {
  1514. className: "U_MD_D_KO",
  1515. "onmousedown": U.UF.C.closure(function (obj) {
  1516. //防止拖动图标即打开了桌面应用
  1517. U.MD.D.click(this, obj);
  1518. }, [_MingdeTeacherDeskIcon[i]]),
  1519. "onclick": U.UF.C.closure(function (obj) {
  1520. //防止拖动图标即打开了桌面应用
  1521. U.MD.D.click(this, obj);
  1522. }, [_MingdeTeacherDeskIcon[i]])
  1523. }, _frag); //
  1524. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1525. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1526. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1527. }
  1528. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1529. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1530. _content = $$("div", {
  1531. className: "U_MD_D_KO",
  1532. "onmousedown": U.UF.C.closure(function (obj) {
  1533. //防止拖动图标即打开了桌面应用
  1534. U.MD.D.click(this, obj);
  1535. }, [_lhsAdminDesktopIconInfo[i]]),
  1536. "onclick": U.UF.C.closure(function (obj) {
  1537. //防止拖动图标即打开了桌面应用
  1538. U.MD.D.click(this, obj);
  1539. }, [_lhsAdminDesktopIconInfo[i]])
  1540. }, _frag); //
  1541. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1542. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1543. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1544. }
  1545. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1546. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1547. _content = $$("div", {
  1548. className: "U_MD_D_KO",
  1549. "onmousedown": U.UF.C.closure(function (obj) {
  1550. //防止拖动图标即打开了桌面应用
  1551. U.MD.D.click(this, obj);
  1552. }, [_lhsteacherDesktopIconInfo[i]]),
  1553. "onclick": U.UF.C.closure(function (obj) {
  1554. //防止拖动图标即打开了桌面应用
  1555. U.MD.D.click(this, obj);
  1556. }, [_lhsteacherDesktopIconInfo[i]])
  1557. }, _frag); //
  1558. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1559. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1560. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1561. }
  1562. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1563. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1564. _content = $$("div", {
  1565. className: "U_MD_D_KO",
  1566. "onmousedown": U.UF.C.closure(function (obj) {
  1567. //防止拖动图标即打开了桌面应用
  1568. U.MD.D.click(this, obj);
  1569. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1570. "onclick": U.UF.C.closure(function (obj) {
  1571. //防止拖动图标即打开了桌面应用
  1572. U.MD.D.click(this, obj);
  1573. }, [_zhoujiateacherDesktopIconInfo[i]])
  1574. }, _frag); //
  1575. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1576. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1577. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1578. }
  1579. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1580. for (i = 0; i < _hanDeskIcon.length; i++) {
  1581. _content = $$("div", {
  1582. className: "U_MD_D_KO",
  1583. "onmousedown": U.UF.C.closure(function (obj) {
  1584. //防止拖动图标即打开了桌面应用
  1585. U.MD.D.click(this, obj);
  1586. }, [_hanDeskIcon[i]]),
  1587. "onclick": U.UF.C.closure(function (obj) {
  1588. //防止拖动图标即打开了桌面应用
  1589. U.MD.D.click(this, obj);
  1590. }, [_hanDeskIcon[i]])
  1591. }, _frag); //
  1592. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1593. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1594. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1595. }
  1596. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1597. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1598. _content = $$("div", {
  1599. className: "U_MD_D_KO",
  1600. "onmousedown": U.UF.C.closure(function (obj) {
  1601. //防止拖动图标即打开了桌面应用
  1602. U.MD.D.click(this, obj);
  1603. }, [_orgStemDeskIcon[i]]),
  1604. "onclick": U.UF.C.closure(function (obj) {
  1605. //防止拖动图标即打开了桌面应用
  1606. U.MD.D.click(this, obj);
  1607. }, [_orgStemDeskIcon[i]])
  1608. }, _frag); //
  1609. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1610. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1611. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1612. }
  1613. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1614. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1615. _content = $$("div", {
  1616. className: "U_MD_D_KO",
  1617. "onmousedown": U.UF.C.closure(function (obj) {
  1618. //防止拖动图标即打开了桌面应用
  1619. U.MD.D.click(this, obj);
  1620. }, [_szulsDeskIcon[i]]),
  1621. "onclick": U.UF.C.closure(function (obj) {
  1622. //防止拖动图标即打开了桌面应用
  1623. U.MD.D.click(this, obj);
  1624. }, [_szulsDeskIcon[i]])
  1625. }, _frag); //
  1626. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1627. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1628. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1629. }
  1630. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1631. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1632. _content = $$("div", {
  1633. className: "U_MD_D_KO",
  1634. "onmousedown": U.UF.C.closure(function (obj) {
  1635. //防止拖动图标即打开了桌面应用
  1636. U.MD.D.click(this, obj);
  1637. }, [_orgDesktopIconInfo[i]]),
  1638. "onclick": U.UF.C.closure(function (obj) {
  1639. //防止拖动图标即打开了桌面应用
  1640. U.MD.D.click(this, obj);
  1641. }, [_orgDesktopIconInfo[i]])
  1642. }, _frag); //
  1643. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1644. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1645. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1646. }
  1647. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1648. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1649. _content = $$("div", {
  1650. className: "U_MD_D_KO",
  1651. "onmousedown": U.UF.C.closure(function (obj) {
  1652. //防止拖动图标即打开了桌面应用
  1653. U.MD.D.click(this, obj);
  1654. }, [_schoolDesktopIconInfo[i]]),
  1655. "onclick": U.UF.C.closure(function (obj) {
  1656. //防止拖动图标即打开了桌面应用
  1657. U.MD.D.click(this, obj);
  1658. }, [_schoolDesktopIconInfo[i]])
  1659. }, _frag); //
  1660. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1661. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1662. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1663. }
  1664. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1665. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1666. _content = $$("div", {
  1667. className: "U_MD_D_KO",
  1668. "onmousedown": U.UF.C.closure(function (obj) {
  1669. //防止拖动图标即打开了桌面应用
  1670. U.MD.D.click(this, obj);
  1671. }, [_GMteacherDesktopIconInfo[i]]),
  1672. "onclick": U.UF.C.closure(function (obj) {
  1673. //防止拖动图标即打开了桌面应用
  1674. U.MD.D.click(this, obj);
  1675. }, [_GMteacherDesktopIconInfo[i]])
  1676. }, _frag); //
  1677. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1678. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1679. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1680. }
  1681. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1682. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1683. _content = $$("div", {
  1684. className: "U_MD_D_KO",
  1685. "onmousedown": U.UF.C.closure(function (obj) {
  1686. //防止拖动图标即打开了桌面应用
  1687. U.MD.D.click(this, obj);
  1688. }, [_SONGteacherDesktopIconInfo[i]]),
  1689. "onclick": U.UF.C.closure(function (obj) {
  1690. //防止拖动图标即打开了桌面应用
  1691. U.MD.D.click(this, obj);
  1692. }, [_SONGteacherDesktopIconInfo[i]])
  1693. }, _frag); //
  1694. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1695. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1696. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1697. }
  1698. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1699. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1700. _content = $$("div", {
  1701. className: "U_MD_D_KO",
  1702. "onmousedown": U.UF.C.closure(function (obj) {
  1703. //防止拖动图标即打开了桌面应用
  1704. U.MD.D.click(this, obj);
  1705. }, [_GMstudentDesktopIconInfo[i]]),
  1706. "onclick": U.UF.C.closure(function (obj) {
  1707. //防止拖动图标即打开了桌面应用
  1708. U.MD.D.click(this, obj);
  1709. }, [_GMstudentDesktopIconInfo[i]])
  1710. }, _frag); //
  1711. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1712. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1713. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1714. }
  1715. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1716. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1717. _content = $$("div", {
  1718. className: "U_MD_D_KO",
  1719. "onmousedown": U.UF.C.closure(function (obj) {
  1720. //防止拖动图标即打开了桌面应用
  1721. U.MD.D.click(this, obj);
  1722. }, [_tcTeacherDeskIconInfo[i]]),
  1723. "onclick": U.UF.C.closure(function (obj) {
  1724. //防止拖动图标即打开了桌面应用
  1725. U.MD.D.click(this, obj);
  1726. }, [_tcTeacherDeskIconInfo[i]])
  1727. }, _frag); //
  1728. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1729. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1730. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1731. }
  1732. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1733. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1734. _content = $$("div", {
  1735. className: "U_MD_D_KO",
  1736. "onmousedown": U.UF.C.closure(function (obj) {
  1737. //防止拖动图标即打开了桌面应用
  1738. U.MD.D.click(this, obj);
  1739. }, [_tcOrganizerDeskIconInfo[i]]),
  1740. "onclick": U.UF.C.closure(function (obj) {
  1741. //防止拖动图标即打开了桌面应用
  1742. U.MD.D.click(this, obj);
  1743. }, [_tcOrganizerDeskIconInfo[i]])
  1744. }, _frag); //
  1745. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1746. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1747. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1748. }
  1749. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1750. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1751. _content = $$("div", {
  1752. className: "U_MD_D_KO",
  1753. "onmousedown": U.UF.C.closure(function (obj) {
  1754. //防止拖动图标即打开了桌面应用
  1755. U.MD.D.click(this, obj);
  1756. }, [_szscTeacherDeskIconInfo[i]]),
  1757. "onclick": U.UF.C.closure(function (obj) {
  1758. //防止拖动图标即打开了桌面应用
  1759. U.MD.D.click(this, obj);
  1760. }, [_szscTeacherDeskIconInfo[i]])
  1761. }, _frag); //
  1762. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1763. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1764. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1765. }
  1766. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1767. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1768. _content = $$("div", {
  1769. className: "U_MD_D_KO",
  1770. "onmousedown": U.UF.C.closure(function (obj) {
  1771. //防止拖动图标即打开了桌面应用
  1772. U.MD.D.click(this, obj);
  1773. }, [_szscOrganizerDeskIconInfo[i]]),
  1774. "onclick": U.UF.C.closure(function (obj) {
  1775. //防止拖动图标即打开了桌面应用
  1776. U.MD.D.click(this, obj);
  1777. }, [_szscOrganizerDeskIconInfo[i]])
  1778. }, _frag); //
  1779. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1780. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1781. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1782. }
  1783. } else {
  1784. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1785. _content = $$("div", {
  1786. className: "U_MD_D_KO",
  1787. "onmousedown": U.UF.C.closure(function (obj) {
  1788. //防止拖动图标即打开了桌面应用
  1789. U.MD.D.click(this, obj);
  1790. }, [_teacherDesktopIconInfo[i]]),
  1791. "onclick": U.UF.C.closure(function (obj) {
  1792. //防止拖动图标即打开了桌面应用
  1793. U.MD.D.click(this, obj);
  1794. }, [_teacherDesktopIconInfo[i]])
  1795. }, _frag); //
  1796. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1797. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1798. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1799. }
  1800. }
  1801. } else {
  1802. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1803. _content = $$("div", {
  1804. className: "U_MD_D_KO",
  1805. style: { 'width': '124px', 'height': '145px' },
  1806. "onmousedown": U.UF.C.closure(function (obj) {
  1807. //防止拖动图标即打开了桌面应用
  1808. U.MD.D.click(this, obj);
  1809. }, [_easyDesktopIconInfo[i]]),
  1810. "onclick": U.UF.C.closure(function (obj) {
  1811. //防止拖动图标即打开了桌面应用
  1812. U.MD.D.click(this, obj);
  1813. }, [_easyDesktopIconInfo[i]])
  1814. }, _frag); //
  1815. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1816. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1817. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1818. }
  1819. }
  1820. if (type == 1) {
  1821. //加载好后给图标定位
  1822. U.MD.D.iconPostion($(_frag).Child());
  1823. } else {
  1824. //加载好后给图标定位
  1825. U.MD.D.iconPostion2($(_frag).Child());
  1826. }
  1827. //把图标加载到页面
  1828. el.appendChild(_frag);
  1829. }
  1830. /**
  1831. * 显示任务栏
  1832. *
  1833. * @param {element} 桌面元素
  1834. */
  1835. U.MD.D.I.displayTaskbar = function (el) {
  1836. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1837. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1838. //任务栏位置变化
  1839. U.selectEl(el).css({ "bottom": "0px" });
  1840. //桌面位置变话
  1841. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1842. }
  1843. }
  1844. //#region 桌面图标拖动逻辑
  1845. /**
  1846. * 桌面排列图标
  1847. *
  1848. * @param {element} 桌面元素
  1849. * @param {object} 上下相距的距离
  1850. * @param {object} 左右相距的距离
  1851. * @return {object} 命名空间
  1852. */
  1853. U.MD.D.iconPostion = function (childs, top, left) {
  1854. var i; //用于循环处理
  1855. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1856. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1857. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1858. for (i = 0; i < childs.length; i++) {
  1859. //如果竖排top超过了范围处理
  1860. if (top + 95 > US.height - 10) {
  1861. //left超过了页面范围处理,则向上重叠打印处理
  1862. if ((left + 180) > US.width) {
  1863. top -= 110;
  1864. left -= 90;
  1865. }
  1866. //没有超过范围,那么left+90添加到下一个竖排打印
  1867. else {
  1868. left += 90;
  1869. top = 15;
  1870. };
  1871. }
  1872. //给图标的位置赋值
  1873. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1874. if (i < childs.length - 1) {
  1875. //页面图标每次向下加95
  1876. top += 95;
  1877. }
  1878. }
  1879. //返回最后调用的图标的位置
  1880. return [top, left];
  1881. }
  1882. /**
  1883. * 桌面排列图标
  1884. *
  1885. * @param {element} 桌面元素
  1886. * @param {object} 上下相距的距离
  1887. * @param {object} 左右相距的距离
  1888. * @return {object} 命名空间
  1889. */
  1890. U.MD.D.iconPostion2 = function (childs, top, left) {
  1891. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1892. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1893. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1894. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1895. for (i = 0; i < childs.length; i++) {
  1896. //如果竖排top超过了范围处理
  1897. if (left + 150 > US.width - 10) {
  1898. //left超过了页面范围处理,则向上重叠打印处理
  1899. if ((top + 180) > US.Height) {
  1900. top -= 150;
  1901. left -= 150;
  1902. }
  1903. //没有超过范围,那么left+90添加到下一个竖排打印
  1904. else {
  1905. top += 150;
  1906. left = ol;
  1907. };
  1908. }
  1909. //给图标的位置赋值
  1910. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1911. if (i < childs.length - 1) {
  1912. //页面图标每次向下加95
  1913. left += 150;
  1914. }
  1915. }
  1916. //返回最后调用的图标的位置
  1917. return [top, left];
  1918. }
  1919. /**
  1920. * 桌面点击事件逻辑
  1921. *
  1922. * @param {element} 桌面元素
  1923. * @param {object} 上下相距的距离
  1924. * @param {object} 左右相距的距离
  1925. * @return {object} 命名空间
  1926. */
  1927. U.MD.D.click = function (el, obj) {
  1928. var _buttonnumber = event.button; //点击的按钮的事件值
  1929. var _userinfo = US.userInfo;
  1930. U.UF.EV.stopBubble(); //阻止向上冒泡
  1931. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1932. if (_buttonnumber < 2) {
  1933. //如果是click事件的处理
  1934. if (event.type == "click") {
  1935. //如果元素在mousemove事件中没有移动则出发click事件
  1936. if (!U.MD.D.I.IsDrag) {
  1937. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1938. U.alert("请先登录您的账号!");
  1939. setTimeout(() => {
  1940. U.MD.U.L.login();
  1941. }, 2000);
  1942. } else {
  1943. //打开应用处理
  1944. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1945. }
  1946. }
  1947. }
  1948. //如果是mouse事件的处理
  1949. else {
  1950. if (US.Config.type == '1') {
  1951. //拖动处理,添加拖动和拖动结束事件
  1952. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1953. }
  1954. }
  1955. U.MD.D.I.IsDrag = false;
  1956. }
  1957. }
  1958. /**
  1959. * 拖动的处理
  1960. *
  1961. */
  1962. U.MD.D.iconMove = function () {
  1963. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1964. U.MD.D.I.IsDrag = true;
  1965. }
  1966. /**
  1967. * 拖动结束后,这里是定位处理,以网状的形式定位
  1968. *
  1969. * @param {element} 拖动的元素
  1970. * @return {object} 命名空间
  1971. */
  1972. U.MD.D.iconUp = function (el) {
  1973. var _top = 15,
  1974. _left = 20,
  1975. _margin,
  1976. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1977. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1978. if (_positioninfo["OT"] > 15) {
  1979. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1980. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1981. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1982. }
  1983. if (_positioninfo["OL"] > 20) {
  1984. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1985. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1986. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1987. }
  1988. //while循环判断么一个重叠的元素
  1989. do {
  1990. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1991. _top = _positioninfo[0] + 95; //得到定位后的top
  1992. _left = _positioninfo[1]; //得到定位后的left
  1993. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1994. }
  1995. /**
  1996. * 判断拖动后图标是否重叠
  1997. *
  1998. * @param {element} 拖动的元素
  1999. * @param {element} 桌面所有的元素
  2000. * @param {array} 拖动元素的位置
  2001. ----------[0] 上 top
  2002. ----------[1] 左 left
  2003. * @return {object} 命名空间
  2004. */
  2005. U.MD.D.isOverlap = function (el, childs, postionarray) {
  2006. //循环所有的图标
  2007. for (var i = 0; i < childs.length; i++) {
  2008. //判断有没有和该图标诶子重叠的元素
  2009. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  2010. return childs[i]; //如果有返回
  2011. }
  2012. }
  2013. }
  2014. //#endregion
  2015. //#endregion
  2016. //#region 桌面应用
  2017. /**
  2018. * 打开应用
  2019. *
  2020. * @param {string} 类型
  2021. -----------------Disk 网盘系统
  2022. -----------------PDisk 学习系统网盘
  2023. -----------------Poto 图片
  2024. -----------------Video 视频
  2025. -----------------Music 音乐
  2026. -----------------Word word
  2027. -----------------Excel excel
  2028. -----------------Txt 记事本
  2029. -----------------PB 学习系统
  2030. -----------------Blog 朋友圈系统
  2031. -----------------FTP ftp系统
  2032. -----------------Group 好友群
  2033. -----------------SY 首页系统
  2034. -----------------Set 个人设置
  2035. -----------------XSet 系统设置
  2036. -----------------App 我们所有的app
  2037. -----------------BC c.1473.cn 平台
  2038. -----------------CWeb d.1473.cn 变成平台
  2039. -----------------其他的外联系统 我们统一用iframe打开
  2040. * @param {array} 类型
  2041. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  2042. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  2043. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  2044. 如果第一个参数为其他,则无第二个参数
  2045. * @returns {array}
  2046. */
  2047. window.addEventListener('message', function (e) { // 监听 message 事件
  2048. // alert(e.data.type);
  2049. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  2050. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2051. //3是展示全部阶段 2学生 1老师 4专家
  2052. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  2053. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2054. //3是展示全部阶段 2学生 1老师 4专家
  2055. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  2056. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2057. //3是展示全部阶段 2学生 1老师 4专家
  2058. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  2059. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2060. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  2061. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2062. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  2063. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2064. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  2065. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2066. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  2067. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2068. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  2069. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2070. //3是展示全部阶段 2学生 1老师 4专家
  2071. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  2072. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2073. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  2074. U.MD.D.I.selectUser();
  2075. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2076. var _formel = document.getElementById("study");
  2077. U.UF.F.windowZooming(_formel);
  2078. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2079. var _formel = document.getElementById("studyDetail");
  2080. U.UF.F.windowZooming(_formel);
  2081. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2082. var _formel = document.getElementById("studyDetail");
  2083. U.UF.F.windowZooming(_formel);
  2084. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2085. var _formel = document.getElementById("studentStudy");
  2086. U.UF.F.windowZooming(_formel);
  2087. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2088. // var _formel = document.getElementById("study");
  2089. //如果最大化了,那么就把他缩小
  2090. // if (_formel.ismaximize) {
  2091. // return;
  2092. // }
  2093. // U.UF.F.windowZooming(_formel);
  2094. // U.UF.F.topWindow(_formel);
  2095. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2096. // var _formel = document.getElementById("studyDetail");
  2097. //如果最大化了,那么就把他缩小
  2098. // if (_formel.ismaximize) {
  2099. // return;
  2100. // }
  2101. // U.UF.F.windowZooming(_formel);
  2102. // U.UF.F.topWindow(_formel);
  2103. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2104. // var _formel = document.getElementById("studentStudy");
  2105. // if (_formel.ismaximize) {
  2106. // return;
  2107. // }
  2108. // U.UF.F.windowZooming(_formel);
  2109. // U.UF.F.topWindow(_formel);
  2110. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2111. var _formel = document.getElementById("study");
  2112. // if (_formel.ismaximize) {
  2113. // return;
  2114. // }
  2115. // U.UF.F.windowZooming(_formel);
  2116. U.UF.F.topWindow(_formel);
  2117. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2118. var _formel = document.getElementById("studentIndex");
  2119. U.UF.F.windowZooming(_formel);
  2120. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2121. var _formel = document.getElementById("studyDetailS");
  2122. U.UF.F.windowZooming(_formel);
  2123. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2124. var _formel = document.getElementById("studioIndex");
  2125. U.UF.F.windowZooming(_formel);
  2126. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2127. var _formel = document.getElementById("studyDetailStudio");
  2128. U.UF.F.windowZooming(_formel);
  2129. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2130. var _formel = document.getElementById("studyDetailStudio");
  2131. U.UF.F.windowZooming(_formel);
  2132. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2133. var _formel = document.getElementById("studyDetailNT");
  2134. U.UF.F.windowZooming(_formel);
  2135. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2136. var _formel = document.getElementById("studyDetailS");
  2137. U.UF.F.windowZooming(_formel);
  2138. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2139. var _formel = document.getElementById("studyDetailS");
  2140. U.UF.F.topWindow(_formel);
  2141. } else if (e.data.tools && e.data.tools == "1") {
  2142. // U.MD.D.I.openApplication("whiteboard")
  2143. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2144. } else if (e.data.tools && e.data.tools == "2") {
  2145. U.MD.D.I.openApplication("note")
  2146. } else if (e.data.tools && e.data.tools == "3") {
  2147. // U.MD.D.I.openApplication("mind")
  2148. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2149. } else if (e.data.tools && e.data.tools == "4") {
  2150. U.MD.D.I.openApplication("investigation")
  2151. } else if (e.data.tools && e.data.tools == "6") {
  2152. // U.MD.D.I.openApplication("doc")
  2153. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2154. } else if (e.data.tools && e.data.tools == "7") {
  2155. // U.MD.D.I.openApplication("mindNetwork")
  2156. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2157. } else if (e.data.tools && e.data.tools == "8") {
  2158. U.MD.D.I.openApplication("library")
  2159. } else if (e.data.tools && e.data.tools == "17") {
  2160. U.MD.D.I.openApplication("stuLibrary")
  2161. } else if (e.data.tools && e.data.tools == "18") {
  2162. U.MD.D.I.openApplication("train")
  2163. } else if (e.data.tools && e.data.tools == "21") {
  2164. U.MD.D.I.openApplication("program")
  2165. } else if (e.data.tools && e.data.tools == "22") {
  2166. U.MD.D.I.openApplication("AIprogram2")
  2167. } else if (e.data.tools && e.data.tools == "23") {
  2168. U.MD.D.I.openApplication("Pythonprogram")
  2169. } else if (e.data.tools && e.data.tools == "24") {
  2170. U.MD.D.I.openApplication("AIprogram")
  2171. } else if (e.data.tools && e.data.tools == "25") {
  2172. U.MD.D.I.openApplication("sys")
  2173. } else if (e.data.tools && e.data.tools == "26") {
  2174. // U.MD.D.I.openApplication("courseDesign")
  2175. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2176. } else if (e.data.tools && e.data.tools == "31") {
  2177. U.MD.D.I.openApplication("netWorkPanel")
  2178. } else if (e.data.tools && e.data.tools == "32") {
  2179. U.MD.D.I.openApplication("codeEdit")
  2180. } else if (e.data.tools && e.data.tools == "57") {
  2181. U.MD.D.I.openApplication("CocoPi")
  2182. } else if (e.data.tools && e.data.tools == "63") {
  2183. U.MD.D.I.openApplication("Wood")
  2184. } else if (e.data.tools && e.data.tools == "58") {
  2185. U.MD.D.I.openApplication("car")
  2186. } else if (e.data.tools && e.data.tools == "59") {
  2187. U.MD.D.I.openApplication("lineSearch")
  2188. } else if (e.data.tools && e.data.tools == "60") {
  2189. U.MD.D.I.openApplication("deepLearning")
  2190. } else if (e.data.tools && e.data.tools == "61") {
  2191. U.MD.D.I.openApplication("allHistory")
  2192. } else if (e.data.tools && e.data.tools == "28") {
  2193. U.MD.D.I.openApplication("translation")
  2194. } else if (e.data.tools && e.data.tools == "37") {
  2195. U.MD.D.I.openApplication("mohe")
  2196. } else if (e.data.tools && e.data.tools == "38") {
  2197. U.MD.D.I.openApplication("24game")
  2198. } else if (e.data.tools && e.data.tools == "39") {
  2199. U.MD.D.I.openApplication("GeoGebra")
  2200. } else if (e.data.tools && e.data.tools == "43") {
  2201. U.MD.D.I.openApplication("studentEvaluate")
  2202. } else if (e.data.tools && e.data.tools == "44") {
  2203. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2204. } else if (e.data.tools && e.data.tools == "46") {
  2205. U.MD.D.I.openApplication("project")
  2206. } else if (e.data.tools && e.data.tools == "1s") {
  2207. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2208. } else if (e.data.tools && e.data.tools == "3s") {
  2209. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2210. } else if (e.data.tools && e.data.tools == "6s") {
  2211. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2212. } else if (e.data.tools && e.data.tools == "1studio") {
  2213. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2214. } else if (e.data.tools && e.data.tools == "3studio") {
  2215. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2216. } else if (e.data.tools && e.data.tools == "6studio") {
  2217. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2218. } else if (e.data.tools && e.data.tools == "3y") {
  2219. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2220. } else if (e.data.tools && e.data.tools == "1y") {
  2221. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2222. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2223. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2224. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2225. U.MD.D.I.openApplication("AIAnalyse")
  2226. } else if (e.data.tools && e.data.tools == "1teacher") {
  2227. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2228. } else if (e.data.tools && e.data.tools == "3teacher") {
  2229. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2230. } else if (e.data.tools && e.data.tools == "7teacher") {
  2231. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2232. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2233. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2234. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2235. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2236. } else if (e.data.tools && e.data.tools == "1E") {
  2237. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2238. } else if (e.data.tools && e.data.tools == "3E") {
  2239. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2240. } else if (e.data.tools && e.data.tools == "57y") {
  2241. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2242. } else if (e.data.tools && e.data.tools == "57u") {
  2243. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2244. } else if (e.data.tools && e.data.tools == "57teacher") {
  2245. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2246. } else if (e.data.tools && e.data.tools == "64") {
  2247. U.MD.D.I.openApplication("AIChat")
  2248. }
  2249. });
  2250. U.MD.D.I.selectUser = function () {
  2251. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2252. if (res.value[0].length > 0) {
  2253. US.userInfo = res.value[0][0];
  2254. $(".userName")[0].innerHTML = US.userInfo.username;
  2255. }
  2256. }, [], { "type": "GET", "withCredentials": true });
  2257. }
  2258. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2259. var _userinfo = US.userInfo, //登录用户信息
  2260. _userid = US.userInfo.userid, //登录用户id
  2261. _oid = _userinfo.organizeid,
  2262. _type = US.userInfo.type,
  2263. _org = US.userInfo.org,
  2264. _role = US.userInfo.role,
  2265. _classId = US.userInfo.classid;
  2266. if (_type == 4) {
  2267. tType = 4
  2268. }
  2269. switch (str) {
  2270. case "studyDetailNT"://无终端模式
  2271. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2272. setTimeout(() => {
  2273. U.MD.U.L.login();
  2274. }, 2000);
  2275. } else {
  2276. _formdiv = new U.UF.UI.form(
  2277. "课程详情",
  2278. $$("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 }), {
  2279. "id": "studyDetailNT",
  2280. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2281. "onresize": function () { }
  2282. }, {
  2283. closecallback: function () { }
  2284. }, { "style": { "height": "36px" } }).form; //创建窗体
  2285. _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); } }
  2286. break;
  2287. }
  2288. case "studyDetail":
  2289. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2290. setTimeout(() => {
  2291. U.MD.U.L.login();
  2292. }, 2000);
  2293. } else {
  2294. _formdiv = new U.UF.UI.form(
  2295. "课程详情",
  2296. $$("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 }), {
  2297. "id": "studyDetail",
  2298. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2299. "onresize": function () { }
  2300. }, {
  2301. closecallback: function () { }
  2302. }, { "style": { "height": "36px" } }).form; //创建窗体
  2303. _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); } }
  2304. break;
  2305. }
  2306. case "studyDetailS":
  2307. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2308. setTimeout(() => {
  2309. U.MD.U.L.login();
  2310. }, 2000);
  2311. } else {
  2312. _formdiv = new U.UF.UI.form(
  2313. "项目详情",
  2314. $$("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 }), {
  2315. "id": "studyDetailS",
  2316. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2317. "onresize": function () { }
  2318. }, {
  2319. closecallback: function () { }
  2320. }, { "style": { "height": "36px" } }).form; //创建窗体
  2321. _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); } }
  2322. break;
  2323. }
  2324. case "studyDetailStudio":
  2325. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2326. setTimeout(() => {
  2327. U.MD.U.L.login();
  2328. }, 2000);
  2329. } else {
  2330. _formdiv = new U.UF.UI.form(
  2331. "工作详情",
  2332. $$("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 }), {
  2333. "id": "studyDetailStudio",
  2334. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2335. "onresize": function () { }
  2336. }, {
  2337. closecallback: function () { }
  2338. }, { "style": { "height": "36px" } }).form; //创建窗体
  2339. _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); } }
  2340. break;
  2341. }
  2342. case "studyDetailS5":
  2343. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2344. setTimeout(() => {
  2345. U.MD.U.L.login();
  2346. }, 2000);
  2347. } else {
  2348. _formdiv = new U.UF.UI.form(
  2349. "项目详情",
  2350. $$("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 }), {
  2351. "id": "studyDetailS",
  2352. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2353. "onresize": function () { }
  2354. }, {
  2355. closecallback: function () { }
  2356. }, { "style": { "height": "36px" } }).form; //创建窗体
  2357. _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); } }
  2358. break;
  2359. }
  2360. case "studyDetailGM":
  2361. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2362. setTimeout(() => {
  2363. U.MD.U.L.login();
  2364. }, 2000);
  2365. } else {
  2366. _formdiv = new U.UF.UI.form(
  2367. "课程详情",
  2368. $$("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 }), {
  2369. "id": "studyDetail",
  2370. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2371. "onresize": function () { }
  2372. }, {
  2373. closecallback: function () { }
  2374. }, { "style": { "height": "36px" } }).form; //创建窗体
  2375. _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); } }
  2376. break;
  2377. }
  2378. case "hanUrl":
  2379. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2380. setTimeout(() => {
  2381. U.MD.U.L.login();
  2382. }, 2000);
  2383. } else {
  2384. _formdiv = new U.UF.UI.form(
  2385. "汉字宫",
  2386. $$("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" }), {
  2387. "id": "hanUrl",
  2388. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2389. "onresize": function () { }
  2390. }, {
  2391. closecallback: function () { }
  2392. }, { "style": { "height": "36px" } }).form; //创建窗体
  2393. _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); } }
  2394. break;
  2395. }
  2396. }
  2397. }
  2398. U.MD.D.I.openApplication = function (str, obj, info) {
  2399. obj = obj || {};
  2400. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2401. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2402. _userinfo = US.userInfo, //登录用户信息
  2403. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2404. _oid = obj.organizeid || _userinfo.organizeid,
  2405. _type = US.userInfo.type,
  2406. _org = US.userInfo.org,
  2407. _role = US.userInfo.role,
  2408. _classId = US.userInfo.classid,
  2409. _TscreenType = 1
  2410. _screenType = 2,
  2411. _SscreenType = 3;
  2412. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2413. return;
  2414. }
  2415. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2416. switch (str) {
  2417. case "studnetProject": //好友打开
  2418. _formdiv = new U.UF.UI.form(
  2419. "我的项目",
  2420. $$("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 }), {
  2421. "id": "studnetProject",
  2422. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2423. "onresize": function () { }
  2424. }, {
  2425. closecallback: function () { }
  2426. }, { "style": { "height": "36px" } }).form; //创建窗体
  2427. _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); } }
  2428. break;
  2429. case "studentEvaluate": //好友打开
  2430. _formdiv = new U.UF.UI.form(
  2431. "我的评价",
  2432. $$("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 }), {
  2433. "id": "studentEvaluate",
  2434. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2435. "onresize": function () { }
  2436. }, {
  2437. closecallback: function () { }
  2438. }, { "style": { "height": "36px" } }).form; //创建窗体
  2439. _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); } }
  2440. break;
  2441. case "my":
  2442. _formdiv = new U.UF.UI.form(
  2443. "我的资料",
  2444. $$("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 }), {
  2445. "id": "my",
  2446. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2447. "onresize": function () { }
  2448. }, {
  2449. closecallback: function () { }
  2450. }, { "style": { "height": "36px" } }).form; //创建窗体
  2451. _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); } }
  2452. break;
  2453. case "program":
  2454. _formdiv = new U.UF.UI.form(
  2455. "编程平台",
  2456. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2457. "id": "program",
  2458. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2459. "onresize": function () { }
  2460. }, {
  2461. closecallback: function () { }
  2462. }, { "style": { "height": "36px" } }).form; //创建窗体
  2463. _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); } }
  2464. break;
  2465. case "library":
  2466. _formdiv = new U.UF.UI.form(
  2467. "素材库",
  2468. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/library?userid=" + _userid + "&org=" + _org }), {
  2469. "id": "library",
  2470. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2471. "onresize": function () { }
  2472. }, {
  2473. closecallback: function () { }
  2474. }, { "style": { "height": "36px" } }).form; //创建窗体
  2475. _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); } }
  2476. break;
  2477. case "whiteboard":
  2478. _formdiv = new U.UF.UI.form(
  2479. "电子白板",
  2480. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2481. "id": "whiteboard",
  2482. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2483. "onresize": function () { }
  2484. }, {
  2485. closecallback: function () { }
  2486. }, { "style": { "height": "36px" } }).form; //创建窗体
  2487. _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); } }
  2488. break;
  2489. case "investigation":
  2490. _formdiv = new U.UF.UI.form(
  2491. "问卷调查",
  2492. $$("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 }), {
  2493. "id": "investigation",
  2494. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2495. "onresize": function () { }
  2496. }, {
  2497. closecallback: function () { }
  2498. }, { "style": { "height": "36px" } }).form; //创建窗体
  2499. _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); } }
  2500. break;
  2501. case "note":
  2502. _formdiv = new U.UF.UI.form(
  2503. "便签分类",
  2504. $$("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 }), {
  2505. "id": "note",
  2506. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2507. "onresize": function () { }
  2508. }, {
  2509. closecallback: function () { }
  2510. }, { "style": { "height": "36px" } }).form; //创建窗体
  2511. _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); } }
  2512. break;
  2513. // case "score":
  2514. // _formdiv = new U.UF.UI.form(
  2515. // "量规评分",
  2516. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2517. // "id": "score",
  2518. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2519. // "onresize": function() {}
  2520. // }, {
  2521. // closecallback: function() {}
  2522. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2523. // _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); } }
  2524. // break;
  2525. case "mind":
  2526. _formdiv = new U.UF.UI.form(
  2527. "思维导图",
  2528. $$("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"
  2529. "id": "mind",
  2530. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2531. "onresize": function () { }
  2532. }, {
  2533. closecallback: function () { }
  2534. }, { "style": { "height": "36px" } }).form; //创建窗体
  2535. _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); } }
  2536. break;
  2537. case "doc":
  2538. // U.MD.D.I.isRoom();
  2539. _formdiv = new U.UF.UI.form(
  2540. "协同文档",
  2541. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2542. "id": "doc",
  2543. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2544. "onresize": function () { }
  2545. }, {
  2546. closecallback: function () { }
  2547. }, { "style": { "height": "36px" } }).form; //创建窗体
  2548. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2549. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2550. // })
  2551. _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); } }
  2552. break;
  2553. case "studentStudy":
  2554. _formdiv = new U.UF.UI.form(
  2555. "课程中心",
  2556. $$("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
  2557. "id": "studentStudy",
  2558. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2559. "onresize": function () { }
  2560. }, {
  2561. closecallback: function () { }
  2562. }, { "style": { "height": "36px" } }).form; //创建窗体
  2563. _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); } }
  2564. break;
  2565. case "train": //好友打开
  2566. _formdiv = new U.UF.UI.form(
  2567. "训练平台",
  2568. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2569. "id": "train",
  2570. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2571. "onresize": function () { }
  2572. }, {
  2573. closecallback: function () { }
  2574. }, { "style": { "height": "36px" } }).form; //创建窗体
  2575. _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); } }
  2576. break;
  2577. case "mindNetwork": //好友打开
  2578. _formdiv = new U.UF.UI.form(
  2579. "思维网格",
  2580. $$("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 }), {
  2581. "id": "mindNetwork",
  2582. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2583. "onresize": function () { }
  2584. }, {
  2585. closecallback: function () { }
  2586. }, { "style": { "height": "36px" } }).form; //创建窗体
  2587. _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); } }
  2588. break;
  2589. case "studentClassRoom": //好友打开
  2590. _formdiv = new U.UF.UI.form(
  2591. "实时课堂",
  2592. $$("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 }), {
  2593. "id": "studentClassRoom",
  2594. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2595. "onresize": function () { }
  2596. }, {
  2597. closecallback: function () { }
  2598. }, { "style": { "height": "36px" } }).form; //创建窗体
  2599. _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); } }
  2600. setTimeout(() => {
  2601. U.UF.F.windowZooming(_formdiv)
  2602. }, 0);
  2603. break;
  2604. }
  2605. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2606. switch (str) {
  2607. case "studnetProject": //好友打开
  2608. _formdiv = new U.UF.UI.form(
  2609. "我的项目",
  2610. $$("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 }), {
  2611. "id": "studnetProject",
  2612. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2613. "onresize": function () { }
  2614. }, {
  2615. closecallback: function () { }
  2616. }, { "style": { "height": "36px" } }).form; //创建窗体
  2617. _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); } }
  2618. break;
  2619. case "studentEvaluate": //好友打开
  2620. _formdiv = new U.UF.UI.form(
  2621. "我的评价",
  2622. $$("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 }), {
  2623. "id": "studentEvaluate",
  2624. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2625. "onresize": function () { }
  2626. }, {
  2627. closecallback: function () { }
  2628. }, { "style": { "height": "36px" } }).form; //创建窗体
  2629. _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); } }
  2630. break;
  2631. case "my":
  2632. _formdiv = new U.UF.UI.form(
  2633. "我的资料",
  2634. $$("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 }), {
  2635. "id": "my",
  2636. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2637. "onresize": function () { }
  2638. }, {
  2639. closecallback: function () { }
  2640. }, { "style": { "height": "36px" } }).form; //创建窗体
  2641. _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); } }
  2642. break;
  2643. case "program":
  2644. _formdiv = new U.UF.UI.form(
  2645. "编程平台",
  2646. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2647. "id": "program",
  2648. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2649. "onresize": function () { }
  2650. }, {
  2651. closecallback: function () { }
  2652. }, { "style": { "height": "36px" } }).form; //创建窗体
  2653. _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); } }
  2654. break;
  2655. case "library":
  2656. _formdiv = new U.UF.UI.form(
  2657. "素材库",
  2658. $$("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 }), {
  2659. "id": "library",
  2660. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2661. "onresize": function () { }
  2662. }, {
  2663. closecallback: function () { }
  2664. }, { "style": { "height": "36px" } }).form; //创建窗体
  2665. _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); } }
  2666. break;
  2667. case "whiteboard":
  2668. _formdiv = new U.UF.UI.form(
  2669. "电子白板",
  2670. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2671. "id": "whiteboard",
  2672. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2673. "onresize": function () { }
  2674. }, {
  2675. closecallback: function () { }
  2676. }, { "style": { "height": "36px" } }).form; //创建窗体
  2677. _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); } }
  2678. break;
  2679. case "investigation":
  2680. _formdiv = new U.UF.UI.form(
  2681. "问卷调查",
  2682. $$("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 }), {
  2683. "id": "investigation",
  2684. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2685. "onresize": function () { }
  2686. }, {
  2687. closecallback: function () { }
  2688. }, { "style": { "height": "36px" } }).form; //创建窗体
  2689. _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); } }
  2690. break;
  2691. case "note":
  2692. _formdiv = new U.UF.UI.form(
  2693. "便签分类",
  2694. $$("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 }), {
  2695. "id": "note",
  2696. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2697. "onresize": function () { }
  2698. }, {
  2699. closecallback: function () { }
  2700. }, { "style": { "height": "36px" } }).form; //创建窗体
  2701. _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); } }
  2702. break;
  2703. // case "score":
  2704. // _formdiv = new U.UF.UI.form(
  2705. // "量规评分",
  2706. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2707. // "id": "score",
  2708. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2709. // "onresize": function() {}
  2710. // }, {
  2711. // closecallback: function() {}
  2712. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2713. // _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); } }
  2714. // break;
  2715. case "mind":
  2716. _formdiv = new U.UF.UI.form(
  2717. "思维导图",
  2718. $$("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"
  2719. "id": "mind",
  2720. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2721. "onresize": function () { }
  2722. }, {
  2723. closecallback: function () { }
  2724. }, { "style": { "height": "36px" } }).form; //创建窗体
  2725. _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); } }
  2726. break;
  2727. case "doc":
  2728. // U.MD.D.I.isRoom();
  2729. _formdiv = new U.UF.UI.form(
  2730. "协同文档",
  2731. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2732. "id": "doc",
  2733. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2734. "onresize": function () { }
  2735. }, {
  2736. closecallback: function () { }
  2737. }, { "style": { "height": "36px" } }).form; //创建窗体
  2738. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2739. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2740. })
  2741. _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); } }
  2742. break;
  2743. case "train": //好友打开
  2744. _formdiv = new U.UF.UI.form(
  2745. "训练平台",
  2746. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2747. "id": "train",
  2748. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2749. "onresize": function () { }
  2750. }, {
  2751. closecallback: function () { }
  2752. }, { "style": { "height": "36px" } }).form; //创建窗体
  2753. _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); } }
  2754. break;
  2755. case "studentStudy":
  2756. _formdiv = new U.UF.UI.form(
  2757. "课程中心",
  2758. $$("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
  2759. "id": "studentStudy",
  2760. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2761. "onresize": function () { }
  2762. }, {
  2763. closecallback: function () { }
  2764. }, { "style": { "height": "36px" } }).form; //创建窗体
  2765. _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); } }
  2766. break;
  2767. case "mindNetwork": //好友打开
  2768. _formdiv = new U.UF.UI.form(
  2769. "思维网格",
  2770. $$("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 }), {
  2771. "id": "mindNetwork",
  2772. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2773. "onresize": function () { }
  2774. }, {
  2775. closecallback: function () { }
  2776. }, { "style": { "height": "36px" } }).form; //创建窗体
  2777. _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); } }
  2778. break;
  2779. case "studentClassRoom": //好友打开
  2780. _formdiv = new U.UF.UI.form(
  2781. "实时课堂",
  2782. $$("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 }), {
  2783. "id": "studentClassRoom",
  2784. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2785. "onresize": function () { }
  2786. }, {
  2787. closecallback: function () { }
  2788. }, { "style": { "height": "36px" } }).form; //创建窗体
  2789. _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); } }
  2790. setTimeout(() => {
  2791. U.UF.F.windowZooming(_formdiv)
  2792. }, 0);
  2793. break;
  2794. }
  2795. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2796. //选择应用处理
  2797. switch (str) {
  2798. case "project": //好友打开
  2799. _formdiv = new U.UF.UI.form(
  2800. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2801. $$("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 }), {
  2802. "id": "project",
  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/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2809. break;
  2810. case "student":
  2811. _formdiv = new U.UF.UI.form(
  2812. "学生管理",
  2813. $$("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 }), {
  2814. "id": "student",
  2815. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2816. "onresize": function () { }
  2817. }, {
  2818. closecallback: function () { }
  2819. }, { "style": { "height": "36px" } }).form; //创建窗体
  2820. _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); } }
  2821. break;
  2822. case "evaluate":
  2823. _formdiv = new U.UF.UI.form(
  2824. "学生评价",
  2825. $$("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 }), {
  2826. "id": "evaluate",
  2827. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2828. "onresize": function () { }
  2829. }, {
  2830. closecallback: function () { }
  2831. }, { "style": { "height": "36px" } }).form; //创建窗体
  2832. _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); } }
  2833. break;
  2834. case "sys":
  2835. _formdiv = new U.UF.UI.form(
  2836. "目标管理",
  2837. $$("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 }), {
  2838. "id": "sys",
  2839. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2840. "onresize": function () { }
  2841. }, {
  2842. closecallback: function () { }
  2843. }, { "style": { "height": "36px" } }).form; //创建窗体
  2844. _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); } }
  2845. break;
  2846. case "courseDesign":
  2847. _formdiv = new U.UF.UI.form(
  2848. "项目设计",
  2849. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2850. "id": "courseDesign",
  2851. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2852. "onresize": function () { }
  2853. }, {
  2854. closecallback: function () { }
  2855. }, { "style": { "height": "36px" } }).form; //创建窗体
  2856. _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); } }
  2857. break;
  2858. case "program":
  2859. _formdiv = new U.UF.UI.form(
  2860. "编程平台",
  2861. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2862. "id": "program",
  2863. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2864. "onresize": function () { }
  2865. }, {
  2866. closecallback: function () { }
  2867. }, { "style": { "height": "36px" } }).form; //创建窗体
  2868. _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); } }
  2869. break;
  2870. case "class":
  2871. _formdiv = new U.UF.UI.form(
  2872. "班级管理",
  2873. $$("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 }), {
  2874. "id": "class",
  2875. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2876. "onresize": function () { }
  2877. }, {
  2878. closecallback: function () { }
  2879. }, { "style": { "height": "36px" } }).form; //创建窗体
  2880. _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); } }
  2881. break;
  2882. case "Grade":
  2883. _formdiv = new U.UF.UI.form(
  2884. "年级管理",
  2885. $$("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 }), {
  2886. "id": "Grade",
  2887. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2888. "onresize": function () { }
  2889. }, {
  2890. closecallback: function () { }
  2891. }, { "style": { "height": "36px" } }).form; //创建窗体
  2892. _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); } }
  2893. break;
  2894. case "teacherOffice":
  2895. _formdiv = new U.UF.UI.form(
  2896. "教研室",
  2897. $$("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 }), {
  2898. "id": "teacherOffice",
  2899. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2900. "onresize": function () { }
  2901. }, {
  2902. closecallback: function () { }
  2903. }, { "style": { "height": "36px" } }).form; //创建窗体
  2904. _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); } }
  2905. break;
  2906. case "my":
  2907. _formdiv = new U.UF.UI.form(
  2908. "我的资料",
  2909. $$("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 }), {
  2910. "id": "my",
  2911. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2912. "onresize": function () { }
  2913. }, {
  2914. closecallback: function () { }
  2915. }, { "style": { "height": "36px" } }).form; //创建窗体
  2916. _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); } }
  2917. break;
  2918. case "notice":
  2919. _formdiv = new U.UF.UI.form(
  2920. "通知公告",
  2921. $$("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 }), {
  2922. "id": "notice",
  2923. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2924. "onresize": function () { }
  2925. }, {
  2926. closecallback: function () { }
  2927. }, { "style": { "height": "36px" } }).form; //创建窗体
  2928. _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); } }
  2929. break;
  2930. case "library":
  2931. _formdiv = new U.UF.UI.form(
  2932. "素材库",
  2933. $$("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 }), {
  2934. "id": "library",
  2935. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2936. "onresize": function () { }
  2937. }, {
  2938. closecallback: function () { }
  2939. }, { "style": { "height": "36px" } }).form; //创建窗体
  2940. _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); } }
  2941. break;
  2942. case "whiteboard":
  2943. _formdiv = new U.UF.UI.form(
  2944. "电子白板",
  2945. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2946. "id": "whiteboard",
  2947. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2948. "onresize": function () { }
  2949. }, {
  2950. closecallback: function () { }
  2951. }, { "style": { "height": "36px" } }).form; //创建窗体
  2952. _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); } }
  2953. break;
  2954. case "investigation":
  2955. _formdiv = new U.UF.UI.form(
  2956. "问卷调查",
  2957. $$("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 }), {
  2958. "id": "investigation",
  2959. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2960. "onresize": function () { }
  2961. }, {
  2962. closecallback: function () { }
  2963. }, { "style": { "height": "36px" } }).form; //创建窗体
  2964. _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); } }
  2965. break;
  2966. case "note":
  2967. _formdiv = new U.UF.UI.form(
  2968. "便签分类",
  2969. $$("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 }), {
  2970. "id": "note",
  2971. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2972. "onresize": function () { }
  2973. }, {
  2974. closecallback: function () { }
  2975. }, { "style": { "height": "36px" } }).form; //创建窗体
  2976. _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); } }
  2977. break;
  2978. // case "score":
  2979. // _formdiv = new U.UF.UI.form(
  2980. // "量规评分",
  2981. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2982. // "id": "score",
  2983. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2984. // "onresize": function() {}
  2985. // }, {
  2986. // closecallback: function() {}
  2987. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2988. // _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); } }
  2989. // break;
  2990. case "mind":
  2991. _formdiv = new U.UF.UI.form(
  2992. "思维导图",
  2993. $$("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"
  2994. "id": "mind",
  2995. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2996. "onresize": function () { }
  2997. }, {
  2998. closecallback: function () { }
  2999. }, { "style": { "height": "36px" } }).form; //创建窗体
  3000. _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); } }
  3001. break;
  3002. case "doc":
  3003. // U.MD.D.I.isRoom();
  3004. _formdiv = new U.UF.UI.form(
  3005. "协同文档",
  3006. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3007. "id": "doc",
  3008. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3009. "onresize": function () { }
  3010. }, {
  3011. closecallback: function () { }
  3012. }, { "style": { "height": "36px" } }).form; //创建窗体
  3013. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3014. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3015. })
  3016. _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); } }
  3017. break;
  3018. case "study":
  3019. _formdiv = new U.UF.UI.form(
  3020. "课程中心",
  3021. $$("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
  3022. "id": "study",
  3023. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3024. "onresize": function () { }
  3025. }, {
  3026. closecallback: function () { }
  3027. }, { "style": { "height": "36px" } }).form; //创建窗体
  3028. _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); } }
  3029. break;
  3030. case "mindNetwork": //好友打开
  3031. _formdiv = new U.UF.UI.form(
  3032. "思维网格",
  3033. $$("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 }), {
  3034. "id": "mindNetwork",
  3035. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3036. "onresize": function () { }
  3037. }, {
  3038. closecallback: function () { }
  3039. }, { "style": { "height": "36px" } }).form; //创建窗体
  3040. _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); } }
  3041. break;
  3042. case "train": //好友打开
  3043. _formdiv = new U.UF.UI.form(
  3044. "训练平台",
  3045. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3046. "id": "mindNetwork",
  3047. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3048. "onresize": function () { }
  3049. }, {
  3050. closecallback: function () { }
  3051. }, { "style": { "height": "36px" } }).form; //创建窗体
  3052. _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); } }
  3053. break;
  3054. case "teacherClassRoom": //好友打开
  3055. _formdiv = new U.UF.UI.form(
  3056. "实时课堂",
  3057. $$("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 }), {
  3058. "id": "teacherClassRoom",
  3059. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3060. "onresize": function () { }
  3061. }, {
  3062. closecallback: function () { }
  3063. }, { "style": { "height": "36px" } }).form; //创建窗体
  3064. _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); } }
  3065. setTimeout(() => {
  3066. U.UF.F.windowZooming(_formdiv)
  3067. }, 0);
  3068. break;
  3069. }
  3070. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3071. switch (str) {
  3072. case "project": //好友打开
  3073. _formdiv = new U.UF.UI.form(
  3074. "课程管理",
  3075. $$("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 }), {
  3076. "id": "project",
  3077. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3078. "onresize": function () { }
  3079. }, {
  3080. closecallback: function () { }
  3081. }, { "style": { "height": "36px" } }).form; //创建窗体
  3082. _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); } }
  3083. break;
  3084. case "evaluate":
  3085. _formdiv = new U.UF.UI.form(
  3086. "学生评价",
  3087. $$("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 }), {
  3088. "id": "evaluate",
  3089. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3090. "onresize": function () { }
  3091. }, {
  3092. closecallback: function () { }
  3093. }, { "style": { "height": "36px" } }).form; //创建窗体
  3094. _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); } }
  3095. break;
  3096. case "notice":
  3097. _formdiv = new U.UF.UI.form(
  3098. "通知公告",
  3099. $$("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 }), {
  3100. "id": "notice",
  3101. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3102. "onresize": function () { }
  3103. }, {
  3104. closecallback: function () { }
  3105. }, { "style": { "height": "36px" } }).form; //创建窗体
  3106. _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); } }
  3107. break;
  3108. case "stuLibrary":
  3109. _formdiv = new U.UF.UI.form(
  3110. "学习资料",
  3111. $$("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 }), {
  3112. "id": "stuLibrary",
  3113. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3114. "onresize": function () { }
  3115. }, {
  3116. closecallback: function () { }
  3117. }, { "style": { "height": "36px" } }).form; //创建窗体
  3118. _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); } }
  3119. break;
  3120. case "program":
  3121. _formdiv = new U.UF.UI.form(
  3122. "编程平台",
  3123. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3124. "id": "program",
  3125. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3126. "onresize": function () { }
  3127. }, {
  3128. closecallback: function () { }
  3129. }, { "style": { "height": "36px" } }).form; //创建窗体
  3130. _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); } }
  3131. break;
  3132. case "whiteboard":
  3133. _formdiv = new U.UF.UI.form(
  3134. "电子白板",
  3135. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  3136. "id": "whiteboard",
  3137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3138. "onresize": function () { }
  3139. }, {
  3140. closecallback: function () { }
  3141. }, { "style": { "height": "36px" } }).form; //创建窗体
  3142. _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); } }
  3143. break;
  3144. case "investigation":
  3145. _formdiv = new U.UF.UI.form(
  3146. "问卷调查",
  3147. $$("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 }), {
  3148. "id": "investigation",
  3149. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3150. "onresize": function () { }
  3151. }, {
  3152. closecallback: function () { }
  3153. }, { "style": { "height": "36px" } }).form; //创建窗体
  3154. _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); } }
  3155. break;
  3156. case "mind":
  3157. _formdiv = new U.UF.UI.form(
  3158. "思维导图",
  3159. $$("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"
  3160. "id": "mind",
  3161. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3162. "onresize": function () { }
  3163. }, {
  3164. closecallback: function () { }
  3165. }, { "style": { "height": "36px" } }).form; //创建窗体
  3166. _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); } }
  3167. break;
  3168. case "doc":
  3169. // U.MD.D.I.isRoom();
  3170. _formdiv = new U.UF.UI.form(
  3171. "协同文档",
  3172. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3173. "id": "doc",
  3174. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3175. "onresize": function () { }
  3176. }, {
  3177. closecallback: function () { }
  3178. }, { "style": { "height": "36px" } }).form; //创建窗体
  3179. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3180. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3181. })
  3182. _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); } }
  3183. break;
  3184. case "study":
  3185. _formdiv = new U.UF.UI.form(
  3186. "课程中心",
  3187. $$("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
  3188. "id": "study",
  3189. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3190. "onresize": function () { }
  3191. }, {
  3192. closecallback: function () { }
  3193. }, { "style": { "height": "36px" } }).form; //创建窗体
  3194. _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); } }
  3195. break;
  3196. case "mindNetwork": //好友打开
  3197. _formdiv = new U.UF.UI.form(
  3198. "思维网格",
  3199. $$("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 }), {
  3200. "id": "mindNetwork",
  3201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3202. "onresize": function () { }
  3203. }, {
  3204. closecallback: function () { }
  3205. }, { "style": { "height": "36px" } }).form; //创建窗体
  3206. _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); } }
  3207. break;
  3208. case "train": //好友打开
  3209. _formdiv = new U.UF.UI.form(
  3210. "训练平台",
  3211. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3212. "id": "train",
  3213. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3214. "onresize": function () { }
  3215. }, {
  3216. closecallback: function () { }
  3217. }, { "style": { "height": "36px" } }).form; //创建窗体
  3218. _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); } }
  3219. break;
  3220. case "sys":
  3221. _formdiv = new U.UF.UI.form(
  3222. "目标管理",
  3223. $$("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 }), {
  3224. "id": "sys",
  3225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3226. "onresize": function () { }
  3227. }, {
  3228. closecallback: function () { }
  3229. }, { "style": { "height": "36px" } }).form; //创建窗体
  3230. _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); } }
  3231. break;
  3232. case "courseDesign":
  3233. _formdiv = new U.UF.UI.form(
  3234. "项目设计",
  3235. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3236. "id": "courseDesign",
  3237. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3238. "onresize": function () { }
  3239. }, {
  3240. closecallback: function () { }
  3241. }, { "style": { "height": "36px" } }).form; //创建窗体
  3242. _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); } }
  3243. break;
  3244. }
  3245. } else if (!_type) {
  3246. switch (str) {
  3247. case "my":
  3248. _formdiv = new U.UF.UI.form(
  3249. "我的资料",
  3250. $$("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 }), {
  3251. "id": "my",
  3252. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3253. "onresize": function () { }
  3254. }, {
  3255. closecallback: function () { }
  3256. }, { "style": { "height": "36px" } }).form; //创建窗体
  3257. _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); } }
  3258. break;
  3259. }
  3260. }
  3261. switch (str) {
  3262. // AIprogram2 AI体验 aihub.cocorobo.cn
  3263. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  3264. // AIprogram AI编程 ai-blockly.cocorobo.cn
  3265. case "AIprogram2": //AI体验
  3266. _formdiv = new U.UF.UI.form(
  3267. "AI体验",
  3268. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3269. "id": "AIprogram2",
  3270. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3271. "onresize": function () { }
  3272. }, {
  3273. closecallback: function () { }
  3274. }, { "style": { "height": "36px" } }).form; //创建窗体
  3275. _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); } }
  3276. break;
  3277. case "Pythonprogram": //python编程
  3278. _formdiv = new U.UF.UI.form(
  3279. "Python编程",
  3280. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3281. "id": "Pythonprogram",
  3282. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3283. "onresize": function () { }
  3284. }, {
  3285. closecallback: function () { }
  3286. }, { "style": { "height": "36px" } }).form; //创建窗体
  3287. _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); } }
  3288. break;
  3289. case "AIprogram": //ai编程
  3290. _formdiv = new U.UF.UI.form(
  3291. "AI编程平台",
  3292. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3293. "id": "AIprogram",
  3294. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3295. "onresize": function () { }
  3296. }, {
  3297. closecallback: function () { }
  3298. }, { "style": { "height": "36px" } }).form; //创建窗体
  3299. _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); } }
  3300. break;
  3301. case "CocoPi": //CocoPi
  3302. _formdiv = new U.UF.UI.form(
  3303. "CocoPi",
  3304. $$("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" }), {
  3305. "id": "CocoPi",
  3306. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3307. "onresize": function () { }
  3308. }, {
  3309. closecallback: function () { }
  3310. }, { "style": { "height": "36px" } }).form; //创建窗体
  3311. _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); } }
  3312. break;
  3313. case "Wood": //Wood
  3314. _formdiv = new U.UF.UI.form(
  3315. "海龟编程",
  3316. $$("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/" }), {
  3317. "id": "Wood",
  3318. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3319. "onresize": function () { }
  3320. }, {
  3321. closecallback: function () { }
  3322. }, { "style": { "height": "36px" } }).form; //创建窗体
  3323. _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); } }
  3324. break;
  3325. case "car": //模拟驾驶
  3326. _formdiv = new U.UF.UI.form(
  3327. "模拟驾驶",
  3328. $$("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/" }), {
  3329. "id": "car",
  3330. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3331. "onresize": function () { }
  3332. }, {
  3333. closecallback: function () { }
  3334. }, { "style": { "height": "36px" } }).form; //创建窗体
  3335. _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); } }
  3336. break;
  3337. case "lineSearch": //路径搜索
  3338. _formdiv = new U.UF.UI.form(
  3339. "路径搜索",
  3340. $$("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/" }), {
  3341. "id": "lineSearch",
  3342. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3343. "onresize": function () { }
  3344. }, {
  3345. closecallback: function () { }
  3346. }, { "style": { "height": "36px" } }).form; //创建窗体
  3347. _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); } }
  3348. break;
  3349. case "deepLearning": //深度学习
  3350. _formdiv = new U.UF.UI.form(
  3351. "深度学习",
  3352. $$("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/#" }), {
  3353. "id": "deepLearning",
  3354. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3355. "onresize": function () { }
  3356. }, {
  3357. closecallback: function () { }
  3358. }, { "style": { "height": "36px" } }).form; //创建窗体
  3359. _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); } }
  3360. break;
  3361. case "allHistory": //深度学习
  3362. _formdiv = new U.UF.UI.form(
  3363. "全历史",
  3364. $$("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/" }), {
  3365. "id": "allHistory",
  3366. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3367. "onresize": function () { }
  3368. }, {
  3369. closecallback: function () { }
  3370. }, { "style": { "height": "36px" } }).form; //创建窗体
  3371. _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); } }
  3372. break;
  3373. case "chatPDF": //ai编程
  3374. _formdiv = new U.UF.UI.form(
  3375. "chatPDF",
  3376. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3377. "id": "chatPDF",
  3378. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3379. "onresize": function () { }
  3380. }, {
  3381. closecallback: function () { }
  3382. }, { "style": { "height": "36px" } }).form; //创建窗体
  3383. _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); } }
  3384. break;
  3385. case "resources": //国家教育
  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": "https://so.eduyun.cn/synResource" }), {
  3389. "id": "resources",
  3390. "style": { "width": "80%", "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/resources.png)" }, "name": "国家教育", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3396. break;
  3397. case "codeEdit": //源码编辑
  3398. _formdiv = new U.UF.UI.form(
  3399. "源码编辑",
  3400. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3401. "id": "codeEdit",
  3402. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3403. "onresize": function () { }
  3404. }, {
  3405. closecallback: function () { }
  3406. }, { "style": { "height": "36px" } }).form; //创建窗体
  3407. _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); } }
  3408. break; //
  3409. case "MindMap": //MindMap
  3410. _formdiv = new U.UF.UI.form(
  3411. "MindMap",
  3412. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3413. "id": "MindMap",
  3414. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3415. "onresize": function () { }
  3416. }, {
  3417. closecallback: function () { }
  3418. }, { "style": { "height": "36px" } }).form; //创建窗体
  3419. _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); } }
  3420. break;
  3421. case "netWorkPanel": //netWorkPanel
  3422. _formdiv = new U.UF.UI.form(
  3423. "netWorkPanel",
  3424. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3425. "id": "netWorkPanel",
  3426. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3427. "onresize": function () { }
  3428. }, {
  3429. closecallback: function () { }
  3430. }, { "style": { "height": "36px" } }).form; //创建窗体
  3431. _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); } }
  3432. break;
  3433. case "GeoGebra": //GeoGebra
  3434. _formdiv = new U.UF.UI.form(
  3435. "GeoGebra",
  3436. $$("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" }), {
  3437. "id": "GeoGebra",
  3438. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3439. "onresize": function () { }
  3440. }, {
  3441. closecallback: function () { }
  3442. }, { "style": { "height": "36px" } }).form; //创建窗体
  3443. _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); } }
  3444. break;
  3445. case "translation": //翻译
  3446. _formdiv = new U.UF.UI.form(
  3447. "翻译",
  3448. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3449. "id": "translation",
  3450. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3451. "onresize": function () { }
  3452. }, {
  3453. closecallback: function () { }
  3454. }, { "style": { "height": "36px" } }).form; //创建窗体
  3455. _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); } }
  3456. break;
  3457. case "mohe": //魔盒
  3458. _formdiv = new U.UF.UI.form(
  3459. "魔盒识字",
  3460. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3461. "id": "mohe",
  3462. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3463. "onresize": function () { }
  3464. }, {
  3465. closecallback: function () { }
  3466. }, { "style": { "height": "36px" } }).form; //创建窗体
  3467. _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); } }
  3468. break;
  3469. case "24game": //24点
  3470. _formdiv = new U.UF.UI.form(
  3471. "24点",
  3472. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3473. "id": "24game",
  3474. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3475. "onresize": function () { }
  3476. }, {
  3477. closecallback: function () { }
  3478. }, { "style": { "height": "36px" } }).form; //创建窗体
  3479. _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); } }
  3480. break;
  3481. case "case":
  3482. _formdiv = new U.UF.UI.form(
  3483. "课程进展",
  3484. $$("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 }), {
  3485. "id": "case",
  3486. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3487. "onresize": function () { }
  3488. }, {
  3489. closecallback: function () { }
  3490. }, { "style": { "height": "36px" } }).form; //创建窗体
  3491. _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); } }
  3492. break;
  3493. case "snf":
  3494. _formdiv = new U.UF.UI.form(
  3495. "赛诺梵",
  3496. $$("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" }), {
  3497. "id": "snf",
  3498. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3499. "onresize": function () { }
  3500. }, {
  3501. closecallback: function () { }
  3502. }, { "style": { "height": "36px" } }).form; //创建窗体
  3503. _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); } }
  3504. break;
  3505. case "hanFamily":
  3506. _formdiv = new U.UF.UI.form(
  3507. "汉字家族",
  3508. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3509. "id": "hanFamily",
  3510. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3511. "onresize": function () { }
  3512. }, {
  3513. closecallback: function () { }
  3514. }, { "style": { "height": "36px" } }).form; //创建窗体
  3515. _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); } }
  3516. break;
  3517. case "hanClassics":
  3518. _formdiv = new U.UF.UI.form(
  3519. "国学经典",
  3520. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3521. "id": "hanClassics",
  3522. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3523. "onresize": function () { }
  3524. }, {
  3525. closecallback: function () { }
  3526. }, { "style": { "height": "36px" } }).form; //创建窗体
  3527. _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); } }
  3528. break;
  3529. case "hanTraining":
  3530. _formdiv = new U.UF.UI.form(
  3531. "笔画训练",
  3532. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3533. "id": "hanTraining",
  3534. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3535. "onresize": function () { }
  3536. }, {
  3537. closecallback: function () { }
  3538. }, { "style": { "height": "36px" } }).form; //创建窗体
  3539. _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); } }
  3540. break;
  3541. case "hanClass":
  3542. _formdiv = new U.UF.UI.form(
  3543. "书法课堂",
  3544. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3545. "id": "hanClass",
  3546. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3547. "onresize": function () { }
  3548. }, {
  3549. closecallback: function () { }
  3550. }, { "style": { "height": "36px" } }).form; //创建窗体
  3551. _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); } }
  3552. break;
  3553. case "han":
  3554. _formdiv = new U.UF.UI.form(
  3555. "汉字宫",
  3556. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3557. "id": "han",
  3558. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3559. "onresize": function () { }
  3560. }, {
  3561. closecallback: function () { }
  3562. }, { "style": { "height": "36px" } }).form; //创建窗体
  3563. _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); } }
  3564. break;
  3565. case "projectGM": //课程管理
  3566. _formdiv = new U.UF.UI.form(
  3567. "课程管理",
  3568. $$("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 }), {
  3569. "id": "projectGM",
  3570. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3571. "onresize": function () { }
  3572. }, {
  3573. closecallback: function () { }
  3574. }, { "style": { "height": "36px" } }).form; //创建窗体
  3575. _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); } }
  3576. break;
  3577. case "studyGM"://课程中心
  3578. _formdiv = new U.UF.UI.form(
  3579. "课程中心",
  3580. $$("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
  3581. "id": "study",
  3582. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3583. "onresize": function () { }
  3584. }, {
  3585. closecallback: function () { }
  3586. }, { "style": { "height": "36px" } }).form; //创建窗体
  3587. _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); } }
  3588. break;
  3589. // studentGM
  3590. case "studentGM"://学生管理
  3591. _formdiv = new U.UF.UI.form(
  3592. "学生管理",
  3593. $$("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 }), {
  3594. "id": "studentGM",
  3595. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3596. "onresize": function () { }
  3597. }, {
  3598. closecallback: function () { }
  3599. }, { "style": { "height": "36px" } }).form; //创建窗体
  3600. _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); } }
  3601. break;
  3602. case "evaluateGM"://学生评价
  3603. _formdiv = new U.UF.UI.form(
  3604. "学生评价",
  3605. $$("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 }), {
  3606. "id": "evaluateGM",
  3607. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3608. "onresize": function () { }
  3609. }, {
  3610. closecallback: function () { }
  3611. }, { "style": { "height": "36px" } }).form; //创建窗体
  3612. _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); } }
  3613. break;
  3614. // classGM
  3615. case "classGM"://班级管理
  3616. _formdiv = new U.UF.UI.form(
  3617. "班级管理",
  3618. $$("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 }), {
  3619. "id": "classGM",
  3620. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3621. "onresize": function () { }
  3622. }, {
  3623. closecallback: function () { }
  3624. }, { "style": { "height": "36px" } }).form; //创建窗体
  3625. _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); } }
  3626. break;
  3627. // dataGM
  3628. case "dataGM":
  3629. _formdiv = new U.UF.UI.form(
  3630. "我的资料",
  3631. $$("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 }), {
  3632. "id": "dataGM",
  3633. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3634. "onresize": function () { }
  3635. }, {
  3636. closecallback: function () { }
  3637. }, { "style": { "height": "36px" } }).form; //创建窗体
  3638. _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); } }
  3639. break;
  3640. // caseGM
  3641. case "caseGM"://课程进展
  3642. _formdiv = new U.UF.UI.form(
  3643. "课程进展",
  3644. $$("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 }), {
  3645. "id": "caseGM",
  3646. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3647. "onresize": function () { }
  3648. }, {
  3649. closecallback: function () { }
  3650. }, { "style": { "height": "36px" } }).form; //创建窗体
  3651. _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); } }
  3652. break;
  3653. // meterialGM
  3654. case "meterialGM"://素材库
  3655. _formdiv = new U.UF.UI.form(
  3656. "素材库",
  3657. $$("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 }), {
  3658. "id": "meterialGM",
  3659. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3660. "onresize": function () { }
  3661. }, {
  3662. closecallback: function () { }
  3663. }, { "style": { "height": "36px" } }).form; //创建窗体
  3664. _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); } }
  3665. break;
  3666. // evaluateSGM
  3667. case "evaluateSGM": //我的评价
  3668. _formdiv = new U.UF.UI.form(
  3669. "我的评价",
  3670. $$("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 }), {
  3671. "id": "evaluateSGM",
  3672. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3673. "onresize": function () { }
  3674. }, {
  3675. closecallback: function () { }
  3676. }, { "style": { "height": "36px" } }).form; //创建窗体
  3677. _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); } }
  3678. break;
  3679. case "jupyter": //jupyter
  3680. _formdiv = new U.UF.UI.form(
  3681. "jupyter",
  3682. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3683. "id": "jupyter",
  3684. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3685. "onresize": function () { }
  3686. }, {
  3687. closecallback: function () { }
  3688. }, { "style": { "height": "36px" } }).form; //创建窗体
  3689. _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); } }
  3690. break;
  3691. case "number": //数字实验室
  3692. _formdiv = new U.UF.UI.form(
  3693. "数字实验室",
  3694. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3695. "id": "number",
  3696. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3697. "onresize": function () { }
  3698. }, {
  3699. closecallback: function () { }
  3700. }, { "style": { "height": "36px" } }).form; //创建窗体
  3701. _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); } }
  3702. break;
  3703. case "studentCourse": //项目管理 学生
  3704. _formdiv = new U.UF.UI.form(
  3705. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3706. $$("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 }), {
  3707. "id": "studentCourse",
  3708. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3709. "onresize": function () { }
  3710. }, {
  3711. closecallback: function () { }
  3712. }, { "style": { "height": "36px" } }).form; //创建窗体
  3713. _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); } }
  3714. break;
  3715. case "studentCourseS": //项目管理 老师
  3716. _formdiv = new U.UF.UI.form(
  3717. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3718. $$("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 }), {
  3719. "id": "studentCourseS",
  3720. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3721. "onresize": function () { }
  3722. }, {
  3723. closecallback: function () { }
  3724. }, { "style": { "height": "36px" } }).form; //创建窗体
  3725. _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); } }
  3726. break;
  3727. case "studentIndex": //项目中心
  3728. _formdiv = new U.UF.UI.form(
  3729. "项目中心",
  3730. $$("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 }), {
  3731. "id": "studentIndex",
  3732. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3733. "onresize": function () { }
  3734. }, {
  3735. closecallback: function () { }
  3736. }, { "style": { "height": "36px" } }).form; //创建窗体
  3737. _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); } }
  3738. break;
  3739. case "CaseDesignS":
  3740. _formdiv = new U.UF.UI.form(
  3741. "项目进展",
  3742. $$("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 }), {
  3743. "id": "case",
  3744. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3745. "onresize": function () { }
  3746. }, {
  3747. closecallback: function () { }
  3748. }, { "style": { "height": "36px" } }).form; //创建窗体
  3749. _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); } }
  3750. break;
  3751. case "tcStudent": //腾讯学生管理
  3752. _formdiv = new U.UF.UI.form(
  3753. "学生管理",
  3754. $$("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 }), {
  3755. "id": "tcStudent",
  3756. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3757. "onresize": function () { }
  3758. }, {
  3759. closecallback: function () { }
  3760. }, { "style": { "height": "36px" } }).form; //创建窗体
  3761. _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); } }
  3762. break;
  3763. case "tcSchool": //腾讯学校管理
  3764. _formdiv = new U.UF.UI.form(
  3765. "学校管理",
  3766. $$("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 }), {
  3767. "id": "tcSchool",
  3768. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3769. "onresize": function () { }
  3770. }, {
  3771. closecallback: function () { }
  3772. }, { "style": { "height": "36px" } }).form; //创建窗体
  3773. _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); } }
  3774. break;
  3775. case "tcTeacher": //腾讯学校管理
  3776. _formdiv = new U.UF.UI.form(
  3777. "教师管理",
  3778. $$("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 }), {
  3779. "id": "tcTeacher",
  3780. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3781. "onresize": function () { }
  3782. }, {
  3783. closecallback: function () { }
  3784. }, { "style": { "height": "36px" } }).form; //创建窗体
  3785. _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); } }
  3786. break;
  3787. case "tcData": //腾讯我的资料
  3788. _formdiv = new U.UF.UI.form(
  3789. "我的资料",
  3790. $$("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 }), {
  3791. "id": "tcData",
  3792. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3793. "onresize": function () { }
  3794. }, {
  3795. closecallback: function () { }
  3796. }, { "style": { "height": "36px" } }).form; //创建窗体
  3797. _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); } }
  3798. break;
  3799. case "tcNotice": //腾讯消息通知
  3800. _formdiv = new U.UF.UI.form(
  3801. "消息通知",
  3802. $$("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 }), {
  3803. "id": "tcNotice",
  3804. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3805. "onresize": function () { }
  3806. }, {
  3807. closecallback: function () { }
  3808. }, { "style": { "height": "36px" } }).form; //创建窗体
  3809. _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); } }
  3810. break;
  3811. case "myReport": //好友打开
  3812. _formdiv = new U.UF.UI.form(
  3813. "我的评价",
  3814. $$("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 }), {
  3815. "id": "myReport",
  3816. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3817. "onresize": function () { }
  3818. }, {
  3819. closecallback: function () { }
  3820. }, { "style": { "height": "36px" } }).form; //创建窗体
  3821. _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); } }
  3822. break;
  3823. case "learnAna": //好友打开
  3824. _formdiv = new U.UF.UI.form(
  3825. "学习分析",
  3826. $$("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 }), {
  3827. "id": "learnAna",
  3828. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3829. "onresize": function () { }
  3830. }, {
  3831. closecallback: function () { }
  3832. }, { "style": { "height": "36px" } }).form; //创建窗体
  3833. _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); } }
  3834. break;
  3835. case "AIChat": //AI共创
  3836. _formdiv = new U.UF.UI.form(
  3837. "AI共创",
  3838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3839. "id": "AIChat",
  3840. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3841. "onresize": function () { }
  3842. }, {
  3843. istop: true,
  3844. closecallback: function () { $("#aichat_icon").remove(); },
  3845. narrowcallback: function () {
  3846. if (!$("#aichat_icon")[0]) {
  3847. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3848. }
  3849. },
  3850. }, { "style": { "height": "36px" } }).form; //创建窗体
  3851. _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); } }
  3852. break;
  3853. case "ainew": //AI共创
  3854. _formdiv = new U.UF.UI.form(
  3855. "AI协同",
  3856. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3857. "id": "ainew",
  3858. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3859. "onresize": function () { }
  3860. }, {
  3861. closecallback: function () { }
  3862. }, { "style": { "height": "36px" } }).form; //创建窗体
  3863. _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); } }
  3864. break;
  3865. case "AIAnalyse": //AI共创
  3866. _formdiv = new U.UF.UI.form(
  3867. "AI分析",
  3868. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3869. "id": "AIAnalyse",
  3870. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3871. "onresize": function () { }
  3872. }, {
  3873. closecallback: function () { }
  3874. }, { "style": { "height": "36px" } }).form; //创建窗体
  3875. _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); } }
  3876. break;
  3877. case "studioCourse": //AI共创
  3878. _formdiv = new U.UF.UI.form(
  3879. "工作管理",
  3880. $$("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 }), {
  3881. "id": "studioCourse",
  3882. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3883. "onresize": function () { }
  3884. }, {
  3885. closecallback: function () { }
  3886. }, { "style": { "height": "36px" } }).form; //创建窗体
  3887. _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); } }
  3888. break;
  3889. case "studioIndex": //AI共创
  3890. _formdiv = new U.UF.UI.form(
  3891. "工作中心",
  3892. $$("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 }), {
  3893. "id": "studioIndex",
  3894. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3895. "onresize": function () { }
  3896. }, {
  3897. closecallback: function () { }
  3898. }, { "style": { "height": "36px" } }).form; //创建窗体
  3899. _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); } }
  3900. break;
  3901. case "source":
  3902. _formdiv = new U.UF.UI.form(
  3903. "教学资源",
  3904. $$("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 }), {
  3905. "id": "source",
  3906. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3907. "onresize": function () { }
  3908. }, {
  3909. closecallback: function () { }
  3910. }, { "style": { "height": "36px" } }).form; //创建窗体
  3911. _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); } }
  3912. break;
  3913. }
  3914. //U.MD.D.I.openClick(str);
  3915. //如果有任务栏信息
  3916. if (_taskbar) {
  3917. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3918. }
  3919. }
  3920. // U.MD.D.I.openClick = function(str){
  3921. // var click = '';
  3922. // switch(str){
  3923. // case 'friend':
  3924. // click = '我的好友';
  3925. // break;
  3926. // case 'domain':
  3927. // click = '域名管理';
  3928. // break;
  3929. // case 'disk':
  3930. // click = '我的云盘';
  3931. // break;
  3932. // case 'word':
  3933. // click = 'Word';
  3934. // break;
  3935. // case 'excel':
  3936. // click = 'Execl';
  3937. // break;
  3938. // case 'txt':
  3939. // click = '文本文件';
  3940. // break;
  3941. // case 'lookupFriend':
  3942. // click = '查找好友';
  3943. // break;
  3944. // case 'ftp':
  3945. // click = 'FTP';
  3946. // break;
  3947. // case 'group':
  3948. // click = '群组';
  3949. // break;
  3950. // case 'set':
  3951. // click = '我的设置';
  3952. // break;
  3953. // case 'systemSet':
  3954. // click = '系统设置';
  3955. // break;
  3956. // case 'boomYun':
  3957. // click = '互联办公';
  3958. // break;
  3959. // case 'xz':
  3960. // click = '云端下载';
  3961. // break;
  3962. // case 'client':
  3963. // click = '有思浏览器';
  3964. // break;
  3965. // case 'backEndProgramming':
  3966. // click = '在线后台编程';
  3967. // break;
  3968. // case 'frontEndProgramming':
  3969. // click = '在线前端编程';
  3970. // break;
  3971. // default: break;
  3972. // }
  3973. // if(U.MD.D.I.Ip && click){
  3974. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3975. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3976. // })
  3977. // }
  3978. // }
  3979. /**
  3980. *函数作用:ajax简易函数,使用post格式
  3981. *@param url {data} 后台地址
  3982. *@param data {data} 参数json
  3983. *@param fn {data} 回调函数
  3984. *
  3985. */
  3986. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3987. // var xhr = new XMLHttpRequest();
  3988. // xhr.open("GET",url,true);
  3989. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3990. // xhr.onreadystatechange = function(){
  3991. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3992. // fn.call(this,xhr.responseText);
  3993. // }
  3994. // };
  3995. // xhr.send();
  3996. // }
  3997. /*判断是否是内网IP*/
  3998. // U.MD.D.I.isInnerIPFn = function(str){
  3999. // var curPageUrl = str;
  4000. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  4001. // curPageUrl =curPageUrl.replace(reg1,'');
  4002. // // console.log('curPageUrl-1 '+curPageUrl);
  4003. // var reg2 = /\:+/g;//替换冒号为一点
  4004. // curPageUrl =curPageUrl.replace(reg2,'.');
  4005. // // console.log('curPageUrl-2 '+curPageUrl);
  4006. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  4007. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4008. // if(curPageUrl[2] != '16'){
  4009. // return ipAddress;
  4010. // }else{
  4011. // return false;
  4012. // }
  4013. // }
  4014. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4015. // //compatibility for firefox and chrome
  4016. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4017. // var pc = new myPeerConnection({
  4018. // iceServers: []
  4019. // }),
  4020. // noop = function() {},
  4021. // localIPs = {},
  4022. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4023. // key;
  4024. // function iterateIP(ip) {
  4025. // if (!localIPs[ip]) onNewIP(ip);
  4026. // localIPs[ip] = true;
  4027. // }
  4028. // //create a bogus data channel
  4029. // pc.createDataChannel("");
  4030. // // create offer and set local description
  4031. // pc.createOffer().then(function(sdp) {
  4032. // sdp.sdp.split('\n').forEach(function(line) {
  4033. // if (line.indexOf('candidate') < 0) return;
  4034. // line.match(ipRegex).forEach(iterateIP);
  4035. // });
  4036. // pc.setLocalDescription(sdp, noop, noop);
  4037. // }).catch(function(reason) {
  4038. // // An error occurred, so handle the failure to connect
  4039. // });
  4040. // //sten for candidate events
  4041. // pc.onicecandidate = function(ice) {
  4042. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4043. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4044. // };
  4045. // }
  4046. // U.MD.D.I.getUserIpBool = function(callback){
  4047. // U.MD.D.I.getUserIP(function(ip){
  4048. // alert("Got IP! :" + ip);
  4049. // });
  4050. //}
  4051. //#endregion
  4052. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  4053. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4054. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4055. _userinfo = US.userInfo, //登录用户信息
  4056. _userid = US.userInfo.userid //登录用户id
  4057. let _iframe;
  4058. let _cid = cid,
  4059. _stage = stage,
  4060. _task = task,
  4061. _tool = tool;
  4062. var _jie = $$("div", {
  4063. "style": {
  4064. "position": "absolute",
  4065. "bottom": "50px",
  4066. "right": "50px",
  4067. "zIndex": "9999",
  4068. "backgroundColor": "#2268bc",
  4069. "color": "#fff",
  4070. "padding": "12px 20px",
  4071. "cursor": "pointer",
  4072. "borderRadius": "4px",
  4073. },
  4074. "innerHTML": "提交作业"
  4075. })
  4076. let aTool = ''
  4077. let _loading = document.createElement('div')
  4078. _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;"
  4079. // _loading.id = "";
  4080. let _lchild = document.createElement('div')
  4081. let _limg = document.createElement('img')
  4082. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4083. _limg.style = "width: 26px;margin-right: 10px;"
  4084. _lchild.appendChild(_limg)
  4085. let _lspan = document.createElement('span')
  4086. _lspan.innerHTML = "上传中..."
  4087. _lchild.appendChild(_lspan)
  4088. _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%);"
  4089. _loading.appendChild(_lchild)
  4090. var _box = $$('div', {
  4091. "style": {
  4092. "position": "relative",
  4093. "width": "100%",
  4094. "height": "100%",
  4095. },
  4096. })
  4097. _box.appendChild(_loading)
  4098. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  4099. switch (str) {
  4100. case "whiteboard":
  4101. aTool = 1;
  4102. _iframe = $$("iframe", {
  4103. "frameborder": "no",
  4104. "border": "0",
  4105. "scrolling ": "no",
  4106. "style": {
  4107. "cssText": "border:0;width:100%;height:100%"
  4108. },
  4109. "src": "https://iwb.cocorobo.cn/"
  4110. })
  4111. _box.appendChild(_iframe);
  4112. _box.appendChild(_jie);
  4113. _formdiv = new U.UF.UI.form(
  4114. "电子白板",
  4115. _box, {
  4116. "id": "whiteboard" + cid + stage + task + tool,
  4117. "style": {
  4118. "width": "90%",
  4119. "height": "90%",
  4120. "overflow": 'hidden'
  4121. },
  4122. "onresize": function () { }
  4123. }, {
  4124. closecallback: function () { }
  4125. }, {
  4126. "style": {
  4127. "height": "36px"
  4128. }
  4129. }).form; //创建窗体
  4130. _taskbar = {
  4131. "id": str + _formdiv.id,
  4132. "style": {
  4133. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4134. },
  4135. "name": "电子白板",
  4136. "forms": _formdiv,
  4137. "click": function () {
  4138. U.MD.D.I.openApplication(str, obj, info);
  4139. }
  4140. }
  4141. break;
  4142. case "mind":
  4143. aTool = 3;
  4144. _iframe = $$("iframe", {
  4145. "frameborder": "no",
  4146. "border": "0",
  4147. "scrolling ": "no",
  4148. "style": {
  4149. "cssText": "border:0;width:100%;height:100%"
  4150. },
  4151. "src": "/kityminder-editor/dist/index.html"
  4152. })
  4153. _box.appendChild(_iframe);
  4154. _box.appendChild(_jie);
  4155. _formdiv = new U.UF.UI.form(
  4156. "思维导图",
  4157. _box, { //"/jsmind/example/demo.html"
  4158. "id": "mind" + cid + stage + task + tool,
  4159. "style": {
  4160. "width": "90%",
  4161. "height": "90%",
  4162. "overflow": 'hidden'
  4163. },
  4164. "onresize": function () { }
  4165. }, {
  4166. closecallback: function () { }
  4167. }, {
  4168. "style": {
  4169. "height": "36px"
  4170. }
  4171. }).form; //创建窗体
  4172. _taskbar = {
  4173. "id": str + _formdiv.id,
  4174. "style": {
  4175. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4176. },
  4177. "name": "思维导图",
  4178. "forms": _formdiv,
  4179. "click": function () {
  4180. U.MD.D.I.openApplication(str, obj, info);
  4181. }
  4182. }
  4183. break;
  4184. case "MindMap":
  4185. aTool = 3;
  4186. _iframe = $$("iframe", {
  4187. "frameborder": "no",
  4188. "border": "0",
  4189. "scrolling ": "no",
  4190. "style": {
  4191. "cssText": "border:0;width:100%;height:100%"
  4192. },
  4193. "src": "//cloud.cocorobo.cn/mind/"
  4194. })
  4195. _box.appendChild(_iframe);
  4196. _box.appendChild(_jie);
  4197. _formdiv = new U.UF.UI.form(
  4198. "思维导图",
  4199. _box, { //"/jsmind/example/demo.html"
  4200. "id": "mind" + cid + stage + task + tool,
  4201. "style": {
  4202. "width": "90%",
  4203. "height": "90%",
  4204. "overflow": 'hidden'
  4205. },
  4206. "onresize": function () { }
  4207. }, {
  4208. closecallback: function () { }
  4209. }, {
  4210. "style": {
  4211. "height": "36px"
  4212. }
  4213. }).form; //创建窗体
  4214. _taskbar = {
  4215. "id": str + _formdiv.id,
  4216. "style": {
  4217. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4218. },
  4219. "name": "思维导图",
  4220. "forms": _formdiv,
  4221. "click": function () {
  4222. U.MD.D.I.openApplication(str, obj, info);
  4223. }
  4224. }
  4225. break;
  4226. case "doc":
  4227. aTool = 6;
  4228. _iframe = $$("iframe", {
  4229. "frameborder": "no",
  4230. "border": "0",
  4231. "scrolling ": "no",
  4232. "style": {
  4233. "cssText": "border:0;width:100%;height:100%"
  4234. },
  4235. "src": "/Office/Word/WordEditArea.htm"
  4236. })
  4237. _box.appendChild(_iframe);
  4238. _box.appendChild(_jie);
  4239. _formdiv = new U.UF.UI.form(
  4240. "协同文档",
  4241. _box, {
  4242. "id": "doc" + cid + stage + task + tool,
  4243. "style": {
  4244. "width": "90%",
  4245. "height": "90%",
  4246. "overflow": 'hidden'
  4247. },
  4248. "onresize": function () { }
  4249. }, {
  4250. closecallback: function () { }
  4251. }, {
  4252. "style": {
  4253. "height": "36px"
  4254. }
  4255. }).form; //创建窗体
  4256. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4257. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4258. })
  4259. _taskbar = {
  4260. "id": str + _formdiv.id,
  4261. "style": {
  4262. "backgroundImage": "url(/img/icon/doc.png)"
  4263. },
  4264. "name": "协同文档",
  4265. "forms": _formdiv,
  4266. "click": function () {
  4267. U.MD.D.I.openApplication(str, obj, info);
  4268. }
  4269. }
  4270. break;
  4271. case "mindNetwork": //好友打开
  4272. aTool = 7;
  4273. _iframe = $$("iframe", {
  4274. "webkitallowfullscreen": "",
  4275. "mozallowfullscreen": "",
  4276. "allowfullscreen": "",
  4277. "frameborder": "no",
  4278. "border": "0",
  4279. "scrolling ": "no",
  4280. "style": {
  4281. "cssText": "border:0; width:100%; height:100%;"
  4282. },
  4283. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4284. })
  4285. _box.appendChild(_iframe);
  4286. _box.appendChild(_jie);
  4287. _formdiv = new U.UF.UI.form(
  4288. "思维网格",
  4289. _box, {
  4290. "id": "mindNetwork" + cid + stage + task + tool,
  4291. "style": {
  4292. "width": "90%",
  4293. "height": "90%",
  4294. "overflow": 'hidden'
  4295. },
  4296. "onresize": function () { }
  4297. }, {
  4298. closecallback: function () { }
  4299. }, {
  4300. "style": {
  4301. "height": "36px"
  4302. }
  4303. }).form; //创建窗体
  4304. _taskbar = {
  4305. "id": str + _formdiv.id,
  4306. "style": {
  4307. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4308. },
  4309. "name": "思维网格",
  4310. "forms": _formdiv,
  4311. "click": function () {
  4312. U.MD.D.I.openApplication(str, obj, info);
  4313. }
  4314. }
  4315. break;
  4316. case "courseDesign":
  4317. _iframe = $$("iframe", {
  4318. "webkitallowfullscreen": "",
  4319. "mozallowfullscreen": "",
  4320. "allowfullscreen": "",
  4321. "frameborder": "no",
  4322. "border": "0",
  4323. "scrolling ": "no",
  4324. "style": {
  4325. "cssText": "border:0; width:100%; height:100%;"
  4326. },
  4327. "src": "/course-design-vue"
  4328. })
  4329. _box.appendChild(_iframe);
  4330. _box.appendChild(_jie);
  4331. _formdiv = new U.UF.UI.form(
  4332. "项目设计",
  4333. _box, {
  4334. "id": "courseDesign" + cid + stage + task + tool,
  4335. "style": {
  4336. "width": "90%",
  4337. "height": "90%",
  4338. "overflow": 'hidden'
  4339. },
  4340. "onresize": function () { }
  4341. }, {
  4342. closecallback: function () { }
  4343. }, {
  4344. "style": {
  4345. "height": "36px"
  4346. }
  4347. }).form; //创建窗体
  4348. _taskbar = {
  4349. "id": str + _formdiv.id,
  4350. "style": {
  4351. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4352. },
  4353. "name": "项目设计",
  4354. "forms": _formdiv,
  4355. "click": function () {
  4356. U.MD.D.I.openApplication(str, obj, info);
  4357. }
  4358. }
  4359. break;
  4360. }
  4361. const script1 = document.createElement("script");
  4362. script1.type = "text/javascript";
  4363. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4364. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4365. const script2 = document.createElement("script");
  4366. script2.type = "text/javascript";
  4367. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4368. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4369. const script3 = document.createElement("script");
  4370. script3.type = "text/javascript";
  4371. script3.charset = "UTF-8";
  4372. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4373. const script4 = document.createElement("script");
  4374. script4.type = "text/javascript";
  4375. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4376. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4377. if (_iframe) {
  4378. if (str == 'doc') {
  4379. _iframe = _formdiv.querySelector('iframe')
  4380. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4381. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4382. _iframe.contentWindow.document.body.appendChild(script1);
  4383. _iframe.contentWindow.document.body.appendChild(script2);
  4384. // _iframe.contentWindow.document.body.appendChild(script3);
  4385. _iframe.contentWindow.document.body.appendChild(script4);
  4386. })
  4387. if (onloadListener) {
  4388. _iframe.contentDocument.location.reload()
  4389. } else {
  4390. _iframe.contentDocument.location.reload()
  4391. }
  4392. } else if (str == 'courseDesign') {
  4393. U.UF.DL.iframeLoad(_iframe, function () {
  4394. // _iframe.contentWindow.U.MD.O.W.load();
  4395. // _iframe.contentWindow.document.body.appendChild(script1);
  4396. _iframe.contentWindow.document.body.appendChild(script2);
  4397. _iframe.contentWindow.document.body.appendChild(script4);
  4398. })
  4399. } else if (str == 'mind') {
  4400. _iframe = _formdiv.querySelector('iframe')
  4401. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4402. //
  4403. _iframe.contentWindow.document.body.appendChild(script1);
  4404. _iframe.contentWindow.document.body.appendChild(script2);
  4405. _iframe.contentWindow.document.body.appendChild(script4);
  4406. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4407. })
  4408. if (onloadListener) {
  4409. _iframe.contentDocument.location.reload()
  4410. } else {
  4411. _iframe.contentDocument.location.reload()
  4412. }
  4413. } else if (str == 'whiteboard') {
  4414. _iframe = _formdiv.querySelector('iframe')
  4415. let onloadListener = _iframe.onload = () => {
  4416. _iframe.contentWindow.document.body.appendChild(script1);
  4417. _iframe.contentWindow.document.body.appendChild(script2);
  4418. _iframe.contentWindow.document.body.appendChild(script4);
  4419. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4420. };
  4421. if (onloadListener) {
  4422. _iframe.contentDocument.location.reload()
  4423. } else {
  4424. _iframe.contentDocument.location.reload()
  4425. }
  4426. } else {
  4427. _iframe.onload = () => {
  4428. _iframe.contentWindow.document.body.appendChild(script1);
  4429. _iframe.contentWindow.document.body.appendChild(script2);
  4430. // _iframe.contentWindow.document.body.appendChild(script3);
  4431. _iframe.contentWindow.document.body.appendChild(script4);
  4432. };
  4433. }
  4434. _jie.onclick = async () => {
  4435. let text = ''
  4436. if (aTool == 1) {
  4437. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4438. } else if (aTool == 6) {
  4439. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4440. } else if (aTool == 3) {
  4441. text = await U.MD.D.I.getEditorContent(_iframe);
  4442. }
  4443. _loading.style.display = 'flex'
  4444. console.log(_loading);
  4445. var _ajs = _iframe.contentWindow.document.createElement("script");
  4446. _ajs.type = "text/javascript";
  4447. _ajs.innerHTML =
  4448. // 'console.log(' + _loading + ');\n' +
  4449. 'var _js = document.createElement("script");\n' +
  4450. '_js.type="text/javascript";\n' +
  4451. '_js.charset="UTF-8";\n' +
  4452. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4453. "_js.onload = function(){\n" +
  4454. ' var a = document.getElementsByTagName("img")\n' +
  4455. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4456. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4457. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4458. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4459. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4460. "beforeUpload_shishi(file," +
  4461. "'" +
  4462. _userid +
  4463. "'" +
  4464. ", " +
  4465. "'" +
  4466. _cid +
  4467. "'" +
  4468. ", " +
  4469. "'" +
  4470. _stage +
  4471. "'" +
  4472. ", " +
  4473. "'" +
  4474. _task +
  4475. "'" +
  4476. ", " +
  4477. "'" +
  4478. _tool +
  4479. "'" +
  4480. ", " +
  4481. "'" +
  4482. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4483. "'" +
  4484. ", " +
  4485. "'" +
  4486. aTool +
  4487. "'" +
  4488. ", " +
  4489. "`" +
  4490. text +
  4491. "`" +
  4492. ")\n" +
  4493. " });\n" +
  4494. "}\n" +
  4495. "document.head.appendChild(_js);\n";
  4496. _iframe.contentWindow.document.head.appendChild(_ajs);
  4497. }
  4498. }
  4499. //U.MD.D.I.openClick(str);
  4500. //如果有任务栏信息
  4501. // if (_taskbar) {
  4502. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4503. // }
  4504. }
  4505. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4506. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4507. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4508. _userinfo = US.userInfo, //登录用户信息
  4509. _userid = US.userInfo.userid //登录用户id
  4510. let _iframe;
  4511. let _cid = cid,
  4512. _stage = stage,
  4513. _task = task,
  4514. _tool = tool;
  4515. var _jie = $$("div", {
  4516. "style": {
  4517. "position": "absolute",
  4518. "bottom": "50px",
  4519. "right": "50px",
  4520. "zIndex": "9999",
  4521. "backgroundColor": "#2268bc",
  4522. "color": "#fff",
  4523. "padding": "12px 20px",
  4524. "cursor": "pointer",
  4525. "borderRadius": "4px",
  4526. },
  4527. "innerHTML": "提交作业"
  4528. })
  4529. let aTool = ''
  4530. let _loading = document.createElement('div')
  4531. _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;"
  4532. // _loading.id = "";
  4533. let _lchild = document.createElement('div')
  4534. let _limg = document.createElement('img')
  4535. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4536. _limg.style = "width: 26px;margin-right: 10px;"
  4537. _lchild.appendChild(_limg)
  4538. let _lspan = document.createElement('span')
  4539. _lspan.innerHTML = "上传中..."
  4540. _lchild.appendChild(_lspan)
  4541. _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%);"
  4542. _loading.appendChild(_lchild)
  4543. var _box = $$('div', {
  4544. "style": {
  4545. "position": "relative",
  4546. "width": "100%",
  4547. "height": "100%",
  4548. },
  4549. })
  4550. _box.appendChild(_loading)
  4551. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4552. switch (str) {
  4553. case "whiteboard":
  4554. aTool = 1;
  4555. _iframe = $$("iframe", {
  4556. "frameborder": "no",
  4557. "border": "0",
  4558. "scrolling ": "no",
  4559. "style": {
  4560. "cssText": "border:0;width:100%;height:100%"
  4561. },
  4562. "src": "https://iwb.cocorobo.cn/"
  4563. })
  4564. _box.appendChild(_iframe);
  4565. _box.appendChild(_jie);
  4566. _formdiv = new U.UF.UI.form(
  4567. "电子白板",
  4568. _box, {
  4569. "id": "whiteboard" + cid + stage + task + tool,
  4570. "style": {
  4571. "width": "90%",
  4572. "height": "90%",
  4573. "overflow": 'hidden'
  4574. },
  4575. "onresize": function () { }
  4576. }, {
  4577. closecallback: function () { }
  4578. }, {
  4579. "style": {
  4580. "height": "36px"
  4581. }
  4582. }).form; //创建窗体
  4583. _taskbar = {
  4584. "id": str + _formdiv.id,
  4585. "style": {
  4586. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4587. },
  4588. "name": "电子白板",
  4589. "forms": _formdiv,
  4590. "click": function () {
  4591. U.MD.D.I.openApplication(str, obj, info);
  4592. }
  4593. }
  4594. break;
  4595. case "mind":
  4596. aTool = 3;
  4597. _iframe = $$("iframe", {
  4598. "frameborder": "no",
  4599. "border": "0",
  4600. "scrolling ": "no",
  4601. "style": {
  4602. "cssText": "border:0;width:100%;height:100%"
  4603. },
  4604. "src": "/kityminder-editor/dist/index.html"
  4605. })
  4606. _box.appendChild(_iframe);
  4607. _box.appendChild(_jie);
  4608. _formdiv = new U.UF.UI.form(
  4609. "思维导图",
  4610. _box, { //"/jsmind/example/demo.html"
  4611. "id": "mind" + cid + stage + task + tool,
  4612. "style": {
  4613. "width": "90%",
  4614. "height": "90%",
  4615. "overflow": 'hidden'
  4616. },
  4617. "onresize": function () { }
  4618. }, {
  4619. closecallback: function () { }
  4620. }, {
  4621. "style": {
  4622. "height": "36px"
  4623. }
  4624. }).form; //创建窗体
  4625. _taskbar = {
  4626. "id": str + _formdiv.id,
  4627. "style": {
  4628. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4629. },
  4630. "name": "思维导图",
  4631. "forms": _formdiv,
  4632. "click": function () {
  4633. U.MD.D.I.openApplication(str, obj, info);
  4634. }
  4635. }
  4636. break;
  4637. case "MindMap":
  4638. aTool = 3;
  4639. _iframe = $$("iframe", {
  4640. "frameborder": "no",
  4641. "border": "0",
  4642. "scrolling ": "no",
  4643. "style": {
  4644. "cssText": "border:0;width:100%;height:100%"
  4645. },
  4646. "src": "//cloud.cocorobo.cn/mind/"
  4647. })
  4648. _box.appendChild(_iframe);
  4649. _box.appendChild(_jie);
  4650. _formdiv = new U.UF.UI.form(
  4651. "思维导图",
  4652. _box, { //"/jsmind/example/demo.html"
  4653. "id": "mind" + cid + stage + task + tool,
  4654. "style": {
  4655. "width": "90%",
  4656. "height": "90%",
  4657. "overflow": 'hidden'
  4658. },
  4659. "onresize": function () { }
  4660. }, {
  4661. closecallback: function () { }
  4662. }, {
  4663. "style": {
  4664. "height": "36px"
  4665. }
  4666. }).form; //创建窗体
  4667. _taskbar = {
  4668. "id": str + _formdiv.id,
  4669. "style": {
  4670. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4671. },
  4672. "name": "思维导图",
  4673. "forms": _formdiv,
  4674. "click": function () {
  4675. U.MD.D.I.openApplication(str, obj, info);
  4676. }
  4677. }
  4678. break;
  4679. case "doc":
  4680. aTool = 6;
  4681. _iframe = $$("iframe", {
  4682. "frameborder": "no",
  4683. "border": "0",
  4684. "scrolling ": "no",
  4685. "style": {
  4686. "cssText": "border:0;width:100%;height:100%"
  4687. },
  4688. "src": "/Office/Word/WordEditArea.htm"
  4689. })
  4690. _box.appendChild(_iframe);
  4691. _box.appendChild(_jie);
  4692. _formdiv = new U.UF.UI.form(
  4693. "协同文档",
  4694. _box, {
  4695. "id": "doc" + cid + stage + task + tool,
  4696. "style": {
  4697. "width": "90%",
  4698. "height": "90%",
  4699. "overflow": 'hidden'
  4700. },
  4701. "onresize": function () { }
  4702. }, {
  4703. closecallback: function () { }
  4704. }, {
  4705. "style": {
  4706. "height": "36px"
  4707. }
  4708. }).form; //创建窗体
  4709. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4710. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4711. })
  4712. _taskbar = {
  4713. "id": str + _formdiv.id,
  4714. "style": {
  4715. "backgroundImage": "url(/img/icon/doc.png)"
  4716. },
  4717. "name": "协同文档",
  4718. "forms": _formdiv,
  4719. "click": function () {
  4720. U.MD.D.I.openApplication(str, obj, info);
  4721. }
  4722. }
  4723. break;
  4724. case "mindNetwork": //好友打开
  4725. aTool = 7;
  4726. _iframe = $$("iframe", {
  4727. "webkitallowfullscreen": "",
  4728. "mozallowfullscreen": "",
  4729. "allowfullscreen": "",
  4730. "frameborder": "no",
  4731. "border": "0",
  4732. "scrolling ": "no",
  4733. "style": {
  4734. "cssText": "border:0; width:100%; height:100%;"
  4735. },
  4736. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4737. })
  4738. _box.appendChild(_iframe);
  4739. _box.appendChild(_jie);
  4740. _formdiv = new U.UF.UI.form(
  4741. "思维网格",
  4742. _box, {
  4743. "id": "mindNetwork" + cid + stage + task + tool,
  4744. "style": {
  4745. "width": "90%",
  4746. "height": "90%",
  4747. "overflow": 'hidden'
  4748. },
  4749. "onresize": function () { }
  4750. }, {
  4751. closecallback: function () { }
  4752. }, {
  4753. "style": {
  4754. "height": "36px"
  4755. }
  4756. }).form; //创建窗体
  4757. _taskbar = {
  4758. "id": str + _formdiv.id,
  4759. "style": {
  4760. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4761. },
  4762. "name": "思维网格",
  4763. "forms": _formdiv,
  4764. "click": function () {
  4765. U.MD.D.I.openApplication(str, obj, info);
  4766. }
  4767. }
  4768. break;
  4769. case "courseDesign":
  4770. _iframe = $$("iframe", {
  4771. "webkitallowfullscreen": "",
  4772. "mozallowfullscreen": "",
  4773. "allowfullscreen": "",
  4774. "frameborder": "no",
  4775. "border": "0",
  4776. "scrolling ": "no",
  4777. "style": {
  4778. "cssText": "border:0; width:100%; height:100%;"
  4779. },
  4780. "src": "/course-design-vue"
  4781. })
  4782. _box.appendChild(_iframe);
  4783. _box.appendChild(_jie);
  4784. _formdiv = new U.UF.UI.form(
  4785. "项目设计",
  4786. _box, {
  4787. "id": "courseDesign" + cid + stage + task + tool,
  4788. "style": {
  4789. "width": "90%",
  4790. "height": "90%",
  4791. "overflow": 'hidden'
  4792. },
  4793. "onresize": function () { }
  4794. }, {
  4795. closecallback: function () { }
  4796. }, {
  4797. "style": {
  4798. "height": "36px"
  4799. }
  4800. }).form; //创建窗体
  4801. _taskbar = {
  4802. "id": str + _formdiv.id,
  4803. "style": {
  4804. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4805. },
  4806. "name": "项目设计",
  4807. "forms": _formdiv,
  4808. "click": function () {
  4809. U.MD.D.I.openApplication(str, obj, info);
  4810. }
  4811. }
  4812. break;
  4813. }
  4814. const script1 = document.createElement("script");
  4815. script1.type = "text/javascript";
  4816. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4817. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4818. const script2 = document.createElement("script");
  4819. script2.type = "text/javascript";
  4820. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4821. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4822. const script3 = document.createElement("script");
  4823. script3.type = "text/javascript";
  4824. script3.charset = "UTF-8";
  4825. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4826. const script4 = document.createElement("script");
  4827. script4.type = "text/javascript";
  4828. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4829. script4.src = window.origin + "/js/Common/jietu2E.js";
  4830. if (_iframe) {
  4831. if (str == 'doc') {
  4832. _iframe = _formdiv.querySelector('iframe')
  4833. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4834. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4835. _iframe.contentWindow.document.body.appendChild(script1);
  4836. _iframe.contentWindow.document.body.appendChild(script2);
  4837. // _iframe.contentWindow.document.body.appendChild(script3);
  4838. _iframe.contentWindow.document.body.appendChild(script4);
  4839. })
  4840. if (onloadListener) {
  4841. _iframe.contentDocument.location.reload()
  4842. } else {
  4843. _iframe.contentDocument.location.reload()
  4844. }
  4845. } else if (str == 'courseDesign') {
  4846. U.UF.DL.iframeLoad(_iframe, function () {
  4847. // _iframe.contentWindow.U.MD.O.W.load();
  4848. // _iframe.contentWindow.document.body.appendChild(script1);
  4849. _iframe.contentWindow.document.body.appendChild(script2);
  4850. _iframe.contentWindow.document.body.appendChild(script4);
  4851. })
  4852. } else if (str == 'mind') {
  4853. _iframe = _formdiv.querySelector('iframe')
  4854. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4855. //
  4856. _iframe.contentWindow.document.body.appendChild(script1);
  4857. _iframe.contentWindow.document.body.appendChild(script2);
  4858. _iframe.contentWindow.document.body.appendChild(script4);
  4859. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4860. })
  4861. if (onloadListener) {
  4862. _iframe.contentDocument.location.reload()
  4863. } else {
  4864. _iframe.contentDocument.location.reload()
  4865. }
  4866. } else if (str == 'whiteboard') {
  4867. _iframe = _formdiv.querySelector('iframe')
  4868. let onloadListener = _iframe.onload = () => {
  4869. _iframe.contentWindow.document.body.appendChild(script1);
  4870. _iframe.contentWindow.document.body.appendChild(script2);
  4871. _iframe.contentWindow.document.body.appendChild(script4);
  4872. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4873. };
  4874. if (onloadListener) {
  4875. _iframe.contentDocument.location.reload()
  4876. } else {
  4877. _iframe.contentDocument.location.reload()
  4878. }
  4879. } else {
  4880. _iframe.onload = () => {
  4881. _iframe.contentWindow.document.body.appendChild(script1);
  4882. _iframe.contentWindow.document.body.appendChild(script2);
  4883. // _iframe.contentWindow.document.body.appendChild(script3);
  4884. _iframe.contentWindow.document.body.appendChild(script4);
  4885. };
  4886. }
  4887. _jie.onclick = async () => {
  4888. let text = ''
  4889. if (aTool == 1) {
  4890. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4891. } else if (aTool == 6) {
  4892. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4893. } else if (aTool == 3) {
  4894. text = await U.MD.D.I.getEditorContent(_iframe);
  4895. }
  4896. _loading.style.display = 'flex'
  4897. console.log(_loading);
  4898. var _ajs = _iframe.contentWindow.document.createElement("script");
  4899. _ajs.type = "text/javascript";
  4900. _ajs.innerHTML =
  4901. // 'console.log(' + _loading + ');\n' +
  4902. 'var _js = document.createElement("script");\n' +
  4903. '_js.type="text/javascript";\n' +
  4904. '_js.charset="UTF-8";\n' +
  4905. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4906. "_js.onload = function(){\n" +
  4907. ' var a = document.getElementsByTagName("img")\n' +
  4908. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4909. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4910. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4911. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4912. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4913. "beforeUpload_shishi(file," +
  4914. "'" +
  4915. _userid +
  4916. "'" +
  4917. ", " +
  4918. "'" +
  4919. _cid +
  4920. "'" +
  4921. ", " +
  4922. "'" +
  4923. _stage +
  4924. "'" +
  4925. ", " +
  4926. "'" +
  4927. _task +
  4928. "'" +
  4929. ", " +
  4930. "'" +
  4931. _tool +
  4932. "'" +
  4933. ", " +
  4934. "'" +
  4935. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4936. "'" +
  4937. ", " +
  4938. "'" +
  4939. aTool +
  4940. "'" +
  4941. ", " +
  4942. "`" +
  4943. text +
  4944. "`" +
  4945. ")\n" +
  4946. " });\n" +
  4947. "}\n" +
  4948. "document.head.appendChild(_js);\n";
  4949. _iframe.contentWindow.document.head.appendChild(_ajs);
  4950. }
  4951. }
  4952. //U.MD.D.I.openClick(str);
  4953. //如果有任务栏信息
  4954. // if (_taskbar) {
  4955. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4956. // }
  4957. }
  4958. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4959. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4960. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4961. _userid = student.userid, //登录用户id
  4962. _username = student.student //用户名字
  4963. let _iframe;
  4964. let _cid = cid,
  4965. _stage = stage,
  4966. _task = task,
  4967. _tool = tool;
  4968. var _jie = $$("div", {
  4969. "style": {
  4970. "position": "absolute",
  4971. "bottom": "50px",
  4972. "right": "50px",
  4973. "zIndex": "9999",
  4974. "backgroundColor": "#2268bc",
  4975. "color": "#fff",
  4976. "padding": "12px 20px",
  4977. "cursor": "pointer",
  4978. "borderRadius": "4px",
  4979. },
  4980. "innerHTML": "提交作业"
  4981. })
  4982. let aTool = ''
  4983. let _loading = document.createElement('div')
  4984. _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;"
  4985. // _loading.id = "";
  4986. let _lchild = document.createElement('div')
  4987. let _limg = document.createElement('img')
  4988. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4989. _limg.style = "width: 26px;margin-right: 10px;"
  4990. _lchild.appendChild(_limg)
  4991. let _lspan = document.createElement('span')
  4992. _lspan.innerHTML = "上传中..."
  4993. _lchild.appendChild(_lspan)
  4994. _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%);"
  4995. _loading.appendChild(_lchild)
  4996. var _box = $$('div', {
  4997. "style": {
  4998. "position": "relative",
  4999. "width": "100%",
  5000. "height": "100%",
  5001. },
  5002. })
  5003. _box.appendChild(_loading)
  5004. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  5005. switch (str) {
  5006. case "whiteboard":
  5007. aTool = 1;
  5008. _iframe = $$("iframe", {
  5009. "frameborder": "no",
  5010. "border": "0",
  5011. "scrolling ": "no",
  5012. "style": {
  5013. "cssText": "border:0;width:100%;height:100%"
  5014. },
  5015. "src": "https://iwb.cocorobo.cn/"
  5016. })
  5017. _box.appendChild(_iframe);
  5018. _box.appendChild(_jie);
  5019. _formdiv = new U.UF.UI.form(
  5020. "电子白板-" + _username,
  5021. _box, {
  5022. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5023. "style": {
  5024. "width": "90%",
  5025. "height": "90%",
  5026. "overflow": 'hidden'
  5027. },
  5028. "onresize": function () { }
  5029. }, {
  5030. closecallback: function () { }
  5031. }, {
  5032. "style": {
  5033. "height": "36px"
  5034. }
  5035. }).form; //创建窗体
  5036. _taskbar = {
  5037. "id": str + _formdiv.id,
  5038. "style": {
  5039. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5040. },
  5041. "name": "电子白板",
  5042. "forms": _formdiv,
  5043. "click": function () {
  5044. U.MD.D.I.openApplication(str, obj, info);
  5045. }
  5046. }
  5047. break;
  5048. case "mind":
  5049. aTool = 3;
  5050. _iframe = $$("iframe", {
  5051. "frameborder": "no",
  5052. "border": "0",
  5053. "scrolling ": "no",
  5054. "style": {
  5055. "cssText": "border:0;width:100%;height:100%"
  5056. },
  5057. "src": "/kityminder-editor/dist/index.html"
  5058. })
  5059. _box.appendChild(_iframe);
  5060. _box.appendChild(_jie);
  5061. _formdiv = new U.UF.UI.form(
  5062. "思维导图-" + _username,
  5063. _box, { //"/jsmind/example/demo.html"
  5064. "id": "mind" + cid + stage + task + tool + _userid,
  5065. "style": {
  5066. "width": "90%",
  5067. "height": "90%",
  5068. "overflow": 'hidden'
  5069. },
  5070. "onresize": function () { }
  5071. }, {
  5072. closecallback: function () { }
  5073. }, {
  5074. "style": {
  5075. "height": "36px"
  5076. }
  5077. }).form; //创建窗体
  5078. _taskbar = {
  5079. "id": str + _formdiv.id,
  5080. "style": {
  5081. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5082. },
  5083. "name": "思维导图",
  5084. "forms": _formdiv,
  5085. "click": function () {
  5086. U.MD.D.I.openApplication(str, obj, info);
  5087. }
  5088. }
  5089. break;
  5090. case "MindMap":
  5091. aTool = 3;
  5092. _iframe = $$("iframe", {
  5093. "frameborder": "no",
  5094. "border": "0",
  5095. "scrolling ": "no",
  5096. "style": {
  5097. "cssText": "border:0;width:100%;height:100%"
  5098. },
  5099. "src": "//cloud.cocorobo.cn/mind/"
  5100. })
  5101. _box.appendChild(_iframe);
  5102. _box.appendChild(_jie);
  5103. _formdiv = new U.UF.UI.form(
  5104. "思维导图-" + _username,
  5105. _box, { //"/jsmind/example/demo.html"
  5106. "id": "mind" + cid + stage + task + tool + _userid,
  5107. "style": {
  5108. "width": "90%",
  5109. "height": "90%",
  5110. "overflow": 'hidden'
  5111. },
  5112. "onresize": function () { }
  5113. }, {
  5114. closecallback: function () { }
  5115. }, {
  5116. "style": {
  5117. "height": "36px"
  5118. }
  5119. }).form; //创建窗体
  5120. _taskbar = {
  5121. "id": str + _formdiv.id,
  5122. "style": {
  5123. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5124. },
  5125. "name": "思维导图",
  5126. "forms": _formdiv,
  5127. "click": function () {
  5128. U.MD.D.I.openApplication(str, obj, info);
  5129. }
  5130. }
  5131. break;
  5132. case "doc":
  5133. aTool = 6;
  5134. _iframe = $$("iframe", {
  5135. "frameborder": "no",
  5136. "border": "0",
  5137. "scrolling ": "no",
  5138. "style": {
  5139. "cssText": "border:0;width:100%;height:100%"
  5140. },
  5141. "src": "/Office/Word/WordEditArea.htm"
  5142. })
  5143. _box.appendChild(_iframe);
  5144. _box.appendChild(_jie);
  5145. _formdiv = new U.UF.UI.form(
  5146. "协同文档-" + _username,
  5147. _box, {
  5148. "id": "doc" + cid + stage + task + tool + _userid,
  5149. "style": {
  5150. "width": "90%",
  5151. "height": "90%",
  5152. "overflow": 'hidden'
  5153. },
  5154. "onresize": function () { }
  5155. }, {
  5156. closecallback: function () { }
  5157. }, {
  5158. "style": {
  5159. "height": "36px"
  5160. }
  5161. }).form; //创建窗体
  5162. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5163. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5164. })
  5165. _taskbar = {
  5166. "id": str + _formdiv.id,
  5167. "style": {
  5168. "backgroundImage": "url(/img/icon/doc.png)"
  5169. },
  5170. "name": "协同文档",
  5171. "forms": _formdiv,
  5172. "click": function () {
  5173. U.MD.D.I.openApplication(str, obj, info);
  5174. }
  5175. }
  5176. break;
  5177. case "mindNetwork": //好友打开
  5178. aTool = 7;
  5179. _iframe = $$("iframe", {
  5180. "webkitallowfullscreen": "",
  5181. "mozallowfullscreen": "",
  5182. "allowfullscreen": "",
  5183. "frameborder": "no",
  5184. "border": "0",
  5185. "scrolling ": "no",
  5186. "style": {
  5187. "cssText": "border:0; width:100%; height:100%;"
  5188. },
  5189. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5190. })
  5191. _box.appendChild(_iframe);
  5192. _box.appendChild(_jie);
  5193. _formdiv = new U.UF.UI.form(
  5194. "思维网格-" + _username,
  5195. _box, {
  5196. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5197. "style": {
  5198. "width": "90%",
  5199. "height": "90%",
  5200. "overflow": 'hidden'
  5201. },
  5202. "onresize": function () { }
  5203. }, {
  5204. closecallback: function () { }
  5205. }, {
  5206. "style": {
  5207. "height": "36px"
  5208. }
  5209. }).form; //创建窗体
  5210. _taskbar = {
  5211. "id": str + _formdiv.id,
  5212. "style": {
  5213. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5214. },
  5215. "name": "思维网格",
  5216. "forms": _formdiv,
  5217. "click": function () {
  5218. U.MD.D.I.openApplication(str, obj, info);
  5219. }
  5220. }
  5221. break;
  5222. case "courseDesign":
  5223. _iframe = $$("iframe", {
  5224. "webkitallowfullscreen": "",
  5225. "mozallowfullscreen": "",
  5226. "allowfullscreen": "",
  5227. "frameborder": "no",
  5228. "border": "0",
  5229. "scrolling ": "no",
  5230. "style": {
  5231. "cssText": "border:0; width:100%; height:100%;"
  5232. },
  5233. "src": "/course-design-vue"
  5234. })
  5235. _box.appendChild(_iframe);
  5236. _box.appendChild(_jie);
  5237. _formdiv = new U.UF.UI.form(
  5238. "项目设计-" + _username,
  5239. _box, {
  5240. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5241. "style": {
  5242. "width": "90%",
  5243. "height": "90%",
  5244. "overflow": 'hidden'
  5245. },
  5246. "onresize": function () { }
  5247. }, {
  5248. closecallback: function () { }
  5249. }, {
  5250. "style": {
  5251. "height": "36px"
  5252. }
  5253. }).form; //创建窗体
  5254. _taskbar = {
  5255. "id": str + _formdiv.id,
  5256. "style": {
  5257. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5258. },
  5259. "name": "项目设计",
  5260. "forms": _formdiv,
  5261. "click": function () {
  5262. U.MD.D.I.openApplication(str, obj, info);
  5263. }
  5264. }
  5265. break;
  5266. }
  5267. const script1 = document.createElement("script");
  5268. script1.type = "text/javascript";
  5269. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5270. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5271. const script2 = document.createElement("script");
  5272. script2.type = "text/javascript";
  5273. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5274. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5275. const script3 = document.createElement("script");
  5276. script3.type = "text/javascript";
  5277. script3.charset = "UTF-8";
  5278. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5279. const script4 = document.createElement("script");
  5280. script4.type = "text/javascript";
  5281. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5282. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  5283. if (_iframe) {
  5284. if (str == 'doc') {
  5285. _iframe = _formdiv.querySelector('iframe')
  5286. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5287. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5288. _iframe.contentWindow.document.body.appendChild(script1);
  5289. _iframe.contentWindow.document.body.appendChild(script2);
  5290. // _iframe.contentWindow.document.body.appendChild(script3);
  5291. _iframe.contentWindow.document.body.appendChild(script4);
  5292. })
  5293. if (onloadListener) {
  5294. _iframe.contentDocument.location.reload()
  5295. } else {
  5296. _iframe.contentDocument.location.reload()
  5297. }
  5298. } else if (str == 'courseDesign') {
  5299. U.UF.DL.iframeLoad(_iframe, function () {
  5300. // _iframe.contentWindow.U.MD.O.W.load();
  5301. // _iframe.contentWindow.document.body.appendChild(script1);
  5302. _iframe.contentWindow.document.body.appendChild(script2);
  5303. _iframe.contentWindow.document.body.appendChild(script4);
  5304. })
  5305. } else if (str == 'mind') {
  5306. _iframe = _formdiv.querySelector('iframe')
  5307. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5308. //
  5309. _iframe.contentWindow.document.body.appendChild(script1);
  5310. _iframe.contentWindow.document.body.appendChild(script2);
  5311. _iframe.contentWindow.document.body.appendChild(script4);
  5312. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5313. })
  5314. if (onloadListener) {
  5315. _iframe.contentDocument.location.reload()
  5316. } else {
  5317. _iframe.contentDocument.location.reload()
  5318. }
  5319. } else if (str == 'whiteboard') {
  5320. _iframe = _formdiv.querySelector('iframe')
  5321. let onloadListener = _iframe.onload = () => {
  5322. _iframe.contentWindow.document.body.appendChild(script1);
  5323. _iframe.contentWindow.document.body.appendChild(script2);
  5324. _iframe.contentWindow.document.body.appendChild(script4);
  5325. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5326. };
  5327. if (onloadListener) {
  5328. _iframe.contentDocument.location.reload()
  5329. } else {
  5330. _iframe.contentDocument.location.reload()
  5331. }
  5332. } else {
  5333. _iframe.onload = () => {
  5334. _iframe.contentWindow.document.body.appendChild(script1);
  5335. _iframe.contentWindow.document.body.appendChild(script2);
  5336. // _iframe.contentWindow.document.body.appendChild(script3);
  5337. _iframe.contentWindow.document.body.appendChild(script4);
  5338. };
  5339. }
  5340. _jie.onclick = async () => {
  5341. let text = ''
  5342. if (aTool == 1) {
  5343. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5344. } else if (aTool == 6) {
  5345. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5346. } else if (aTool == 3) {
  5347. text = await U.MD.D.I.getEditorContent(_iframe);
  5348. }
  5349. _loading.style.display = 'flex'
  5350. console.log(_loading);
  5351. var _ajs = _iframe.contentWindow.document.createElement("script");
  5352. _ajs.type = "text/javascript";
  5353. _ajs.innerHTML =
  5354. // 'console.log(' + _loading + ');\n' +
  5355. 'var _js = document.createElement("script");\n' +
  5356. '_js.type="text/javascript";\n' +
  5357. '_js.charset="UTF-8";\n' +
  5358. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5359. "_js.onload = function(){\n" +
  5360. ' var a = document.getElementsByTagName("img")\n' +
  5361. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5362. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5363. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5364. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5365. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5366. "beforeUpload_shishi(file," +
  5367. "'" +
  5368. _userid +
  5369. "'" +
  5370. ", " +
  5371. "'" +
  5372. _cid +
  5373. "'" +
  5374. ", " +
  5375. "'" +
  5376. _stage +
  5377. "'" +
  5378. ", " +
  5379. "'" +
  5380. _task +
  5381. "'" +
  5382. ", " +
  5383. "'" +
  5384. _tool +
  5385. "'" +
  5386. ", " +
  5387. "'" +
  5388. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5389. "'" +
  5390. ", " +
  5391. "'" +
  5392. aTool +
  5393. "'" +
  5394. ", " +
  5395. "`" +
  5396. text +
  5397. "`" +
  5398. ")\n" +
  5399. " });\n" +
  5400. "}\n" +
  5401. "document.head.appendChild(_js);\n";
  5402. _iframe.contentWindow.document.head.appendChild(_ajs);
  5403. }
  5404. }
  5405. }
  5406. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5407. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5408. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5409. _userid = student.userid, //登录用户id
  5410. _username = student.student //用户名字
  5411. let _iframe;
  5412. let _cid = cid,
  5413. _stage = stage,
  5414. _task = task,
  5415. _tool = tool;
  5416. var _jie = $$("div", {
  5417. "style": {
  5418. "position": "absolute",
  5419. "bottom": "50px",
  5420. "right": "50px",
  5421. "zIndex": "9999",
  5422. "backgroundColor": "#2268bc",
  5423. "color": "#fff",
  5424. "padding": "12px 20px",
  5425. "cursor": "pointer",
  5426. "borderRadius": "4px",
  5427. },
  5428. "innerHTML": "提交作业"
  5429. })
  5430. let aTool = ''
  5431. let _loading = document.createElement('div')
  5432. _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;"
  5433. // _loading.id = "";
  5434. let _lchild = document.createElement('div')
  5435. let _limg = document.createElement('img')
  5436. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5437. _limg.style = "width: 26px;margin-right: 10px;"
  5438. _lchild.appendChild(_limg)
  5439. let _lspan = document.createElement('span')
  5440. _lspan.innerHTML = "上传中..."
  5441. _lchild.appendChild(_lspan)
  5442. _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%);"
  5443. _loading.appendChild(_lchild)
  5444. var _box = $$('div', {
  5445. "style": {
  5446. "position": "relative",
  5447. "width": "100%",
  5448. "height": "100%",
  5449. },
  5450. })
  5451. _box.appendChild(_loading)
  5452. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5453. switch (str) {
  5454. case "whiteboard":
  5455. aTool = 1;
  5456. _iframe = $$("iframe", {
  5457. "frameborder": "no",
  5458. "border": "0",
  5459. "scrolling ": "no",
  5460. "style": {
  5461. "cssText": "border:0;width:100%;height:100%"
  5462. },
  5463. "src": "https://iwb.cocorobo.cn/"
  5464. })
  5465. _box.appendChild(_iframe);
  5466. _box.appendChild(_jie);
  5467. _formdiv = new U.UF.UI.form(
  5468. "电子白板-" + _username,
  5469. _box, {
  5470. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5471. "style": {
  5472. "width": "90%",
  5473. "height": "90%",
  5474. "overflow": 'hidden'
  5475. },
  5476. "onresize": function () { }
  5477. }, {
  5478. closecallback: function () { }
  5479. }, {
  5480. "style": {
  5481. "height": "36px"
  5482. }
  5483. }).form; //创建窗体
  5484. _taskbar = {
  5485. "id": str + _formdiv.id,
  5486. "style": {
  5487. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5488. },
  5489. "name": "电子白板",
  5490. "forms": _formdiv,
  5491. "click": function () {
  5492. U.MD.D.I.openApplication(str, obj, info);
  5493. }
  5494. }
  5495. break;
  5496. case "mind":
  5497. aTool = 3;
  5498. _iframe = $$("iframe", {
  5499. "frameborder": "no",
  5500. "border": "0",
  5501. "scrolling ": "no",
  5502. "style": {
  5503. "cssText": "border:0;width:100%;height:100%"
  5504. },
  5505. "src": "/kityminder-editor/dist/index.html"
  5506. })
  5507. _box.appendChild(_iframe);
  5508. _box.appendChild(_jie);
  5509. _formdiv = new U.UF.UI.form(
  5510. "思维导图-" + _username,
  5511. _box, { //"/jsmind/example/demo.html"
  5512. "id": "mind" + cid + stage + task + tool + _userid,
  5513. "style": {
  5514. "width": "90%",
  5515. "height": "90%",
  5516. "overflow": 'hidden'
  5517. },
  5518. "onresize": function () { }
  5519. }, {
  5520. closecallback: function () { }
  5521. }, {
  5522. "style": {
  5523. "height": "36px"
  5524. }
  5525. }).form; //创建窗体
  5526. _taskbar = {
  5527. "id": str + _formdiv.id,
  5528. "style": {
  5529. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5530. },
  5531. "name": "思维导图",
  5532. "forms": _formdiv,
  5533. "click": function () {
  5534. U.MD.D.I.openApplication(str, obj, info);
  5535. }
  5536. }
  5537. break;
  5538. case "MindMap":
  5539. aTool = 3;
  5540. _iframe = $$("iframe", {
  5541. "frameborder": "no",
  5542. "border": "0",
  5543. "scrolling ": "no",
  5544. "style": {
  5545. "cssText": "border:0;width:100%;height:100%"
  5546. },
  5547. "src": "//cloud.cocorobo.cn/mind/"
  5548. })
  5549. _box.appendChild(_iframe);
  5550. _box.appendChild(_jie);
  5551. _formdiv = new U.UF.UI.form(
  5552. "思维导图-" + _username,
  5553. _box, { //"/jsmind/example/demo.html"
  5554. "id": "mind" + cid + stage + task + tool + _userid,
  5555. "style": {
  5556. "width": "90%",
  5557. "height": "90%",
  5558. "overflow": 'hidden'
  5559. },
  5560. "onresize": function () { }
  5561. }, {
  5562. closecallback: function () { }
  5563. }, {
  5564. "style": {
  5565. "height": "36px"
  5566. }
  5567. }).form; //创建窗体
  5568. _taskbar = {
  5569. "id": str + _formdiv.id,
  5570. "style": {
  5571. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5572. },
  5573. "name": "思维导图",
  5574. "forms": _formdiv,
  5575. "click": function () {
  5576. U.MD.D.I.openApplication(str, obj, info);
  5577. }
  5578. }
  5579. break;
  5580. case "doc":
  5581. aTool = 6;
  5582. _iframe = $$("iframe", {
  5583. "frameborder": "no",
  5584. "border": "0",
  5585. "scrolling ": "no",
  5586. "style": {
  5587. "cssText": "border:0;width:100%;height:100%"
  5588. },
  5589. "src": "/Office/Word/WordEditArea.htm"
  5590. })
  5591. _box.appendChild(_iframe);
  5592. _box.appendChild(_jie);
  5593. _formdiv = new U.UF.UI.form(
  5594. "协同文档-" + _username,
  5595. _box, {
  5596. "id": "doc" + cid + stage + task + tool + _userid,
  5597. "style": {
  5598. "width": "90%",
  5599. "height": "90%",
  5600. "overflow": 'hidden'
  5601. },
  5602. "onresize": function () { }
  5603. }, {
  5604. closecallback: function () { }
  5605. }, {
  5606. "style": {
  5607. "height": "36px"
  5608. }
  5609. }).form; //创建窗体
  5610. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5611. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5612. })
  5613. _taskbar = {
  5614. "id": str + _formdiv.id,
  5615. "style": {
  5616. "backgroundImage": "url(/img/icon/doc.png)"
  5617. },
  5618. "name": "协同文档",
  5619. "forms": _formdiv,
  5620. "click": function () {
  5621. U.MD.D.I.openApplication(str, obj, info);
  5622. }
  5623. }
  5624. break;
  5625. case "mindNetwork": //好友打开
  5626. aTool = 7;
  5627. _iframe = $$("iframe", {
  5628. "webkitallowfullscreen": "",
  5629. "mozallowfullscreen": "",
  5630. "allowfullscreen": "",
  5631. "frameborder": "no",
  5632. "border": "0",
  5633. "scrolling ": "no",
  5634. "style": {
  5635. "cssText": "border:0; width:100%; height:100%;"
  5636. },
  5637. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5638. })
  5639. _box.appendChild(_iframe);
  5640. _box.appendChild(_jie);
  5641. _formdiv = new U.UF.UI.form(
  5642. "思维网格-" + _username,
  5643. _box, {
  5644. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5645. "style": {
  5646. "width": "90%",
  5647. "height": "90%",
  5648. "overflow": 'hidden'
  5649. },
  5650. "onresize": function () { }
  5651. }, {
  5652. closecallback: function () { }
  5653. }, {
  5654. "style": {
  5655. "height": "36px"
  5656. }
  5657. }).form; //创建窗体
  5658. _taskbar = {
  5659. "id": str + _formdiv.id,
  5660. "style": {
  5661. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5662. },
  5663. "name": "思维网格",
  5664. "forms": _formdiv,
  5665. "click": function () {
  5666. U.MD.D.I.openApplication(str, obj, info);
  5667. }
  5668. }
  5669. break;
  5670. case "courseDesign":
  5671. _iframe = $$("iframe", {
  5672. "webkitallowfullscreen": "",
  5673. "mozallowfullscreen": "",
  5674. "allowfullscreen": "",
  5675. "frameborder": "no",
  5676. "border": "0",
  5677. "scrolling ": "no",
  5678. "style": {
  5679. "cssText": "border:0; width:100%; height:100%;"
  5680. },
  5681. "src": "/course-design-vue"
  5682. })
  5683. _box.appendChild(_iframe);
  5684. _box.appendChild(_jie);
  5685. _formdiv = new U.UF.UI.form(
  5686. "项目设计-" + _username,
  5687. _box, {
  5688. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5689. "style": {
  5690. "width": "90%",
  5691. "height": "90%",
  5692. "overflow": 'hidden'
  5693. },
  5694. "onresize": function () { }
  5695. }, {
  5696. closecallback: function () { }
  5697. }, {
  5698. "style": {
  5699. "height": "36px"
  5700. }
  5701. }).form; //创建窗体
  5702. _taskbar = {
  5703. "id": str + _formdiv.id,
  5704. "style": {
  5705. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5706. },
  5707. "name": "项目设计",
  5708. "forms": _formdiv,
  5709. "click": function () {
  5710. U.MD.D.I.openApplication(str, obj, info);
  5711. }
  5712. }
  5713. break;
  5714. }
  5715. const script1 = document.createElement("script");
  5716. script1.type = "text/javascript";
  5717. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5718. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5719. const script2 = document.createElement("script");
  5720. script2.type = "text/javascript";
  5721. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5722. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5723. const script3 = document.createElement("script");
  5724. script3.type = "text/javascript";
  5725. script3.charset = "UTF-8";
  5726. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5727. const script4 = document.createElement("script");
  5728. script4.type = "text/javascript";
  5729. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5730. script4.src = window.origin + "/js/Common/jietu2E.js";
  5731. if (_iframe) {
  5732. if (str == 'doc') {
  5733. _iframe = _formdiv.querySelector('iframe')
  5734. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5735. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5736. _iframe.contentWindow.document.body.appendChild(script1);
  5737. _iframe.contentWindow.document.body.appendChild(script2);
  5738. // _iframe.contentWindow.document.body.appendChild(script3);
  5739. _iframe.contentWindow.document.body.appendChild(script4);
  5740. })
  5741. if (onloadListener) {
  5742. _iframe.contentDocument.location.reload()
  5743. } else {
  5744. _iframe.contentDocument.location.reload()
  5745. }
  5746. } else if (str == 'courseDesign') {
  5747. U.UF.DL.iframeLoad(_iframe, function () {
  5748. // _iframe.contentWindow.U.MD.O.W.load();
  5749. // _iframe.contentWindow.document.body.appendChild(script1);
  5750. _iframe.contentWindow.document.body.appendChild(script2);
  5751. _iframe.contentWindow.document.body.appendChild(script4);
  5752. })
  5753. } else if (str == 'mind') {
  5754. _iframe = _formdiv.querySelector('iframe')
  5755. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5756. //
  5757. _iframe.contentWindow.document.body.appendChild(script1);
  5758. _iframe.contentWindow.document.body.appendChild(script2);
  5759. _iframe.contentWindow.document.body.appendChild(script4);
  5760. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5761. })
  5762. if (onloadListener) {
  5763. _iframe.contentDocument.location.reload()
  5764. } else {
  5765. _iframe.contentDocument.location.reload()
  5766. }
  5767. } else if (str == 'whiteboard') {
  5768. _iframe = _formdiv.querySelector('iframe')
  5769. let onloadListener = _iframe.onload = () => {
  5770. _iframe.contentWindow.document.body.appendChild(script1);
  5771. _iframe.contentWindow.document.body.appendChild(script2);
  5772. _iframe.contentWindow.document.body.appendChild(script4);
  5773. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5774. };
  5775. if (onloadListener) {
  5776. _iframe.contentDocument.location.reload()
  5777. } else {
  5778. _iframe.contentDocument.location.reload()
  5779. }
  5780. } else {
  5781. _iframe.onload = () => {
  5782. _iframe.contentWindow.document.body.appendChild(script1);
  5783. _iframe.contentWindow.document.body.appendChild(script2);
  5784. // _iframe.contentWindow.document.body.appendChild(script3);
  5785. _iframe.contentWindow.document.body.appendChild(script4);
  5786. };
  5787. }
  5788. _jie.onclick = async () => {
  5789. let text = ''
  5790. if (aTool == 1) {
  5791. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5792. } else if (aTool == 6) {
  5793. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5794. } else if (aTool == 3) {
  5795. text = await U.MD.D.I.getEditorContent(_iframe);
  5796. }
  5797. _loading.style.display = 'flex'
  5798. console.log(_loading);
  5799. var _ajs = _iframe.contentWindow.document.createElement("script");
  5800. _ajs.type = "text/javascript";
  5801. _ajs.innerHTML =
  5802. // 'console.log(' + _loading + ');\n' +
  5803. 'var _js = document.createElement("script");\n' +
  5804. '_js.type="text/javascript";\n' +
  5805. '_js.charset="UTF-8";\n' +
  5806. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5807. "_js.onload = function(){\n" +
  5808. ' var a = document.getElementsByTagName("img")\n' +
  5809. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5810. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5811. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5812. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5813. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5814. "beforeUpload_shishi(file," +
  5815. "'" +
  5816. _userid +
  5817. "'" +
  5818. ", " +
  5819. "'" +
  5820. _cid +
  5821. "'" +
  5822. ", " +
  5823. "'" +
  5824. _stage +
  5825. "'" +
  5826. ", " +
  5827. "'" +
  5828. _task +
  5829. "'" +
  5830. ", " +
  5831. "'" +
  5832. _tool +
  5833. "'" +
  5834. ", " +
  5835. "'" +
  5836. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5837. "'" +
  5838. ", " +
  5839. "'" +
  5840. aTool +
  5841. "'" +
  5842. ", " +
  5843. "`" +
  5844. text +
  5845. "`" +
  5846. ")\n" +
  5847. " });\n" +
  5848. "}\n" +
  5849. "document.head.appendChild(_js);\n";
  5850. _iframe.contentWindow.document.head.appendChild(_ajs);
  5851. }
  5852. }
  5853. }
  5854. U.MD.D.I.getEditorContent = function (iframe) {
  5855. return new Promise((resolve, reject) => {
  5856. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5857. console.log(content);
  5858. resolve(content)
  5859. });
  5860. });
  5861. }
  5862. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5863. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5864. // if (res.value[0].length > 0) {
  5865. // // resolve(res.value[0][0].text);
  5866. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5867. // $(fileInput).val('');
  5868. // });
  5869. // }
  5870. // }, [], { "type": "GET", "withCredentials": true });
  5871. var xmlhttp;
  5872. var Mac, Sn, DeviceId
  5873. if (window.XMLHttpRequest) {
  5874. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5875. xmlhttp = new XMLHttpRequest();
  5876. }
  5877. else {
  5878. // IE6, IE5 浏览器执行代码
  5879. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5880. }
  5881. xmlhttp.onreadystatechange = function () {
  5882. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5883. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5884. // resolve(res.value[0][0].text);
  5885. if (type == '2') {
  5886. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5887. } else if (type == '3') {
  5888. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5889. }
  5890. } else {
  5891. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5892. }
  5893. }
  5894. }
  5895. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5896. xmlhttp.send();
  5897. }
  5898. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5899. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5900. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5901. _userinfo = US.userInfo, //登录用户信息
  5902. _userid = US.userInfo.userid //登录用户id
  5903. let _iframe;
  5904. let _cid = cid,
  5905. _stage = stage,
  5906. _task = task,
  5907. _tool = tool;
  5908. var _jie = $$("div", {
  5909. "style": {
  5910. "position": "absolute",
  5911. "bottom": "50px",
  5912. "right": "50px",
  5913. "zIndex": "9999",
  5914. "backgroundColor": "#2268bc",
  5915. "color": "#fff",
  5916. "padding": "12px 20px",
  5917. "cursor": "pointer",
  5918. "borderRadius": "4px",
  5919. },
  5920. "innerHTML": "确认并提交"
  5921. })
  5922. let aTool = ''
  5923. let _loading = document.createElement('div')
  5924. _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;"
  5925. // _loading.id = "";
  5926. let _lchild = document.createElement('div')
  5927. let _limg = document.createElement('img')
  5928. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5929. _limg.style = "width: 26px;margin-right: 10px;"
  5930. _lchild.appendChild(_limg)
  5931. let _lspan = document.createElement('span')
  5932. _lspan.innerHTML = "上传中..."
  5933. _lchild.appendChild(_lspan)
  5934. _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%);"
  5935. _loading.appendChild(_lchild)
  5936. var _box = $$('div', {
  5937. "style": {
  5938. "position": "relative",
  5939. "width": "100%",
  5940. "height": "100%",
  5941. },
  5942. })
  5943. _box.appendChild(_loading)
  5944. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5945. switch (str) {
  5946. case "whiteboard":
  5947. aTool = 1;
  5948. _iframe = $$("iframe", {
  5949. "frameborder": "no",
  5950. "border": "0",
  5951. "scrolling ": "no",
  5952. "style": {
  5953. "cssText": "border:0;width:100%;height:100%"
  5954. },
  5955. "src": "https://iwb.cocorobo.cn/"
  5956. })
  5957. _box.appendChild(_iframe);
  5958. _box.appendChild(_jie);
  5959. _formdiv = new U.UF.UI.form(
  5960. "电子白板",
  5961. _box, {
  5962. "id": "whiteboards" + cid + stage + task + tool,
  5963. "style": {
  5964. "width": "90%",
  5965. "height": "90%",
  5966. "overflow": 'hidden'
  5967. },
  5968. "onresize": function () { }
  5969. }, {
  5970. closecallback: function () { }
  5971. }, {
  5972. "style": {
  5973. "height": "36px"
  5974. }
  5975. }).form; //创建窗体
  5976. _taskbar = {
  5977. "id": str + _formdiv.id,
  5978. "style": {
  5979. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5980. },
  5981. "name": "电子白板",
  5982. "forms": _formdiv,
  5983. "click": function () {
  5984. U.MD.D.I.openApplication(str, obj, info);
  5985. }
  5986. }
  5987. break;
  5988. case "mind":
  5989. aTool = 3;
  5990. _iframe = $$("iframe", {
  5991. "frameborder": "no",
  5992. "border": "0",
  5993. "scrolling ": "no",
  5994. "style": {
  5995. "cssText": "border:0;width:100%;height:100%"
  5996. },
  5997. "src": "/kityminder-editor/dist/index.html"
  5998. });
  5999. _box.appendChild(_iframe);
  6000. _box.appendChild(_jie);
  6001. _formdiv = new U.UF.UI.form(
  6002. "思维导图",
  6003. _box, { //"/jsmind/example/demo.html"
  6004. "id": "minds" + cid + stage + task + tool,
  6005. "style": {
  6006. "width": "90%",
  6007. "height": "90%",
  6008. "overflow": 'hidden'
  6009. },
  6010. "onresize": function () { }
  6011. }, {
  6012. closecallback: function () { }
  6013. }, {
  6014. "style": {
  6015. "height": "36px"
  6016. }
  6017. }).form; //创建窗体
  6018. _taskbar = {
  6019. "id": str + _formdiv.id,
  6020. "style": {
  6021. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6022. },
  6023. "name": "思维导图",
  6024. "forms": _formdiv,
  6025. "click": function () {
  6026. U.MD.D.I.openApplication(str, obj, info);
  6027. }
  6028. }
  6029. break;
  6030. case "doc":
  6031. aTool = 6;
  6032. _iframe = $$("iframe", {
  6033. "frameborder": "no",
  6034. "border": "0",
  6035. "scrolling ": "no",
  6036. "style": {
  6037. "cssText": "border:0;width:100%;height:100%"
  6038. },
  6039. "src": "/Office/Word/WordEditArea.htm"
  6040. })
  6041. _box.appendChild(_iframe);
  6042. _box.appendChild(_jie);
  6043. _formdiv = new U.UF.UI.form(
  6044. "协同文档",
  6045. _box, {
  6046. "id": "docs" + cid + stage + task + tool,
  6047. "style": {
  6048. "width": "90%",
  6049. "height": "90%",
  6050. "overflow": 'hidden'
  6051. },
  6052. "onresize": function () { }
  6053. }, {
  6054. closecallback: function () { }
  6055. }, {
  6056. "style": {
  6057. "height": "36px"
  6058. }
  6059. }).form; //创建窗体
  6060. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6061. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6062. })
  6063. _taskbar = {
  6064. "id": str + _formdiv.id,
  6065. "style": {
  6066. "backgroundImage": "url(/img/icon/doc.png)"
  6067. },
  6068. "name": "协同文档",
  6069. "forms": _formdiv,
  6070. "click": function () {
  6071. U.MD.D.I.openApplication(str, obj, info);
  6072. }
  6073. }
  6074. break;
  6075. }
  6076. const script1 = document.createElement("script");
  6077. script1.type = "text/javascript";
  6078. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6079. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6080. const script2 = document.createElement("script");
  6081. script2.type = "text/javascript";
  6082. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6083. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6084. const script3 = document.createElement("script");
  6085. script3.type = "text/javascript";
  6086. script3.charset = "UTF-8";
  6087. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6088. const script4 = document.createElement("script");
  6089. script4.type = "text/javascript";
  6090. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6091. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  6092. if (_iframe) {
  6093. if (str == 'doc') {
  6094. _iframe = _formdiv.querySelector('iframe')
  6095. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6096. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6097. _iframe.contentWindow.document.body.appendChild(script1);
  6098. _iframe.contentWindow.document.body.appendChild(script2);
  6099. // _iframe.contentWindow.document.body.appendChild(script3);
  6100. _iframe.contentWindow.document.body.appendChild(script4);
  6101. })
  6102. if (onloadListener) {
  6103. _iframe.contentDocument.location.reload()
  6104. } else {
  6105. _iframe.contentDocument.location.reload()
  6106. }
  6107. } else if (str == 'mind') {
  6108. _iframe = _formdiv.querySelector('iframe')
  6109. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6110. _iframe.contentWindow.document.body.appendChild(script1);
  6111. _iframe.contentWindow.document.body.appendChild(script2);
  6112. _iframe.contentWindow.document.body.appendChild(script4);
  6113. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6114. })
  6115. if (onloadListener) {
  6116. _iframe.contentDocument.location.reload()
  6117. } else {
  6118. _iframe.contentDocument.location.reload()
  6119. }
  6120. } else {
  6121. _iframe.onload = () => {
  6122. _iframe.contentWindow.document.body.appendChild(script1);
  6123. _iframe.contentWindow.document.body.appendChild(script2);
  6124. // _iframe.contentWindow.document.body.appendChild(script3);
  6125. _iframe.contentWindow.document.body.appendChild(script4);
  6126. };
  6127. }
  6128. _jie.onclick = async () => {
  6129. let text = ''
  6130. if (aTool == 6) {
  6131. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6132. } else if (aTool == 3) {
  6133. text = await U.MD.D.I.getEditorContent(_iframe);
  6134. }
  6135. _loading.style.display = 'flex'
  6136. console.log(_loading);
  6137. var _ajs = _iframe.contentWindow.document.createElement("script");
  6138. _ajs.type = "text/javascript";
  6139. _ajs.innerHTML =
  6140. // 'console.log(' + _loading + ');\n' +
  6141. 'var _js = document.createElement("script");\n' +
  6142. '_js.type="text/javascript";\n' +
  6143. '_js.charset="UTF-8";\n' +
  6144. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6145. "_js.onload = function(){\n" +
  6146. ' var a = document.getElementsByTagName("img")\n' +
  6147. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6148. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6149. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6150. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6151. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6152. "beforeUpload_shishi(file," +
  6153. "'" +
  6154. _userid +
  6155. "'" +
  6156. ", " +
  6157. "'" +
  6158. _cid +
  6159. "'" +
  6160. ", " +
  6161. "'" +
  6162. _stage +
  6163. "'" +
  6164. ", " +
  6165. "'" +
  6166. _task +
  6167. "'" +
  6168. ", " +
  6169. "'" +
  6170. _tool +
  6171. "'" +
  6172. ", " +
  6173. "'" +
  6174. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  6175. "'" +
  6176. ", " +
  6177. "'" +
  6178. aTool +
  6179. "'" +
  6180. ", " +
  6181. "`" +
  6182. text +
  6183. "`" +
  6184. ")\n" +
  6185. " });\n" +
  6186. "}\n" +
  6187. "document.head.appendChild(_js);\n";
  6188. _iframe.contentWindow.document.head.appendChild(_ajs);
  6189. }
  6190. }
  6191. //U.MD.D.I.openClick(str);
  6192. //如果有任务栏信息
  6193. // if (_taskbar) {
  6194. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6195. // }
  6196. }
  6197. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6198. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6199. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6200. _userinfo = US.userInfo, //登录用户信息
  6201. _userid = US.userInfo.userid //登录用户id
  6202. let _iframe;
  6203. let _cid = cid,
  6204. _stage = stage,
  6205. _task = task,
  6206. _tool = tool;
  6207. var _jie = $$("div", {
  6208. "style": {
  6209. "position": "absolute",
  6210. "bottom": "50px",
  6211. "right": "50px",
  6212. "zIndex": "9999",
  6213. "backgroundColor": "#2268bc",
  6214. "color": "#fff",
  6215. "padding": "12px 20px",
  6216. "cursor": "pointer",
  6217. "borderRadius": "4px",
  6218. },
  6219. "innerHTML": "确认并提交"
  6220. })
  6221. let aTool = ''
  6222. let _loading = document.createElement('div')
  6223. _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;"
  6224. // _loading.id = "";
  6225. let _lchild = document.createElement('div')
  6226. let _limg = document.createElement('img')
  6227. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6228. _limg.style = "width: 26px;margin-right: 10px;"
  6229. _lchild.appendChild(_limg)
  6230. let _lspan = document.createElement('span')
  6231. _lspan.innerHTML = "上传中..."
  6232. _lchild.appendChild(_lspan)
  6233. _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%);"
  6234. _loading.appendChild(_lchild)
  6235. var _box = $$('div', {
  6236. "style": {
  6237. "position": "relative",
  6238. "width": "100%",
  6239. "height": "100%",
  6240. },
  6241. })
  6242. _box.appendChild(_loading)
  6243. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  6244. switch (str) {
  6245. case "whiteboard":
  6246. aTool = 1;
  6247. _iframe = $$("iframe", {
  6248. "frameborder": "no",
  6249. "border": "0",
  6250. "scrolling ": "no",
  6251. "style": {
  6252. "cssText": "border:0;width:100%;height:100%"
  6253. },
  6254. "src": "https://iwb.cocorobo.cn/"
  6255. })
  6256. _box.appendChild(_iframe);
  6257. _box.appendChild(_jie);
  6258. _formdiv = new U.UF.UI.form(
  6259. "电子白板",
  6260. _box, {
  6261. "id": "whiteboards" + cid + stage + task + tool,
  6262. "style": {
  6263. "width": "90%",
  6264. "height": "90%",
  6265. "overflow": 'hidden'
  6266. },
  6267. "onresize": function () { }
  6268. }, {
  6269. closecallback: function () { }
  6270. }, {
  6271. "style": {
  6272. "height": "36px"
  6273. }
  6274. }).form; //创建窗体
  6275. _taskbar = {
  6276. "id": str + _formdiv.id,
  6277. "style": {
  6278. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6279. },
  6280. "name": "电子白板",
  6281. "forms": _formdiv,
  6282. "click": function () {
  6283. U.MD.D.I.openApplication(str, obj, info);
  6284. }
  6285. }
  6286. break;
  6287. case "mind":
  6288. aTool = 3;
  6289. _iframe = $$("iframe", {
  6290. "frameborder": "no",
  6291. "border": "0",
  6292. "scrolling ": "no",
  6293. "style": {
  6294. "cssText": "border:0;width:100%;height:100%"
  6295. },
  6296. "src": "/kityminder-editor/dist/index.html"
  6297. });
  6298. _box.appendChild(_iframe);
  6299. _box.appendChild(_jie);
  6300. _formdiv = new U.UF.UI.form(
  6301. "思维导图",
  6302. _box, { //"/jsmind/example/demo.html"
  6303. "id": "minds" + cid + stage + task + tool,
  6304. "style": {
  6305. "width": "90%",
  6306. "height": "90%",
  6307. "overflow": 'hidden'
  6308. },
  6309. "onresize": function () { }
  6310. }, {
  6311. closecallback: function () { }
  6312. }, {
  6313. "style": {
  6314. "height": "36px"
  6315. }
  6316. }).form; //创建窗体
  6317. _taskbar = {
  6318. "id": str + _formdiv.id,
  6319. "style": {
  6320. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6321. },
  6322. "name": "思维导图",
  6323. "forms": _formdiv,
  6324. "click": function () {
  6325. U.MD.D.I.openApplication(str, obj, info);
  6326. }
  6327. }
  6328. break;
  6329. case "doc":
  6330. aTool = 6;
  6331. _iframe = $$("iframe", {
  6332. "frameborder": "no",
  6333. "border": "0",
  6334. "scrolling ": "no",
  6335. "style": {
  6336. "cssText": "border:0;width:100%;height:100%"
  6337. },
  6338. "src": "/Office/Word/WordEditArea.htm"
  6339. })
  6340. _box.appendChild(_iframe);
  6341. _box.appendChild(_jie);
  6342. _formdiv = new U.UF.UI.form(
  6343. "协同文档",
  6344. _box, {
  6345. "id": "docs" + cid + stage + task + tool,
  6346. "style": {
  6347. "width": "90%",
  6348. "height": "90%",
  6349. "overflow": 'hidden'
  6350. },
  6351. "onresize": function () { }
  6352. }, {
  6353. closecallback: function () { }
  6354. }, {
  6355. "style": {
  6356. "height": "36px"
  6357. }
  6358. }).form; //创建窗体
  6359. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6360. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6361. })
  6362. _taskbar = {
  6363. "id": str + _formdiv.id,
  6364. "style": {
  6365. "backgroundImage": "url(/img/icon/doc.png)"
  6366. },
  6367. "name": "协同文档",
  6368. "forms": _formdiv,
  6369. "click": function () {
  6370. U.MD.D.I.openApplication(str, obj, info);
  6371. }
  6372. }
  6373. break;
  6374. }
  6375. const script1 = document.createElement("script");
  6376. script1.type = "text/javascript";
  6377. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6378. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6379. const script2 = document.createElement("script");
  6380. script2.type = "text/javascript";
  6381. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6382. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6383. const script3 = document.createElement("script");
  6384. script3.type = "text/javascript";
  6385. script3.charset = "UTF-8";
  6386. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6387. const script4 = document.createElement("script");
  6388. script4.type = "text/javascript";
  6389. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6390. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6391. if (_iframe) {
  6392. if (str == 'doc') {
  6393. _iframe = _formdiv.querySelector('iframe')
  6394. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6395. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6396. _iframe.contentWindow.document.body.appendChild(script1);
  6397. _iframe.contentWindow.document.body.appendChild(script2);
  6398. // _iframe.contentWindow.document.body.appendChild(script3);
  6399. _iframe.contentWindow.document.body.appendChild(script4);
  6400. })
  6401. if (onloadListener) {
  6402. _iframe.contentDocument.location.reload()
  6403. } else {
  6404. _iframe.contentDocument.location.reload()
  6405. }
  6406. } else if (str == 'mind') {
  6407. _iframe = _formdiv.querySelector('iframe')
  6408. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6409. _iframe.contentWindow.document.body.appendChild(script1);
  6410. _iframe.contentWindow.document.body.appendChild(script2);
  6411. _iframe.contentWindow.document.body.appendChild(script4);
  6412. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6413. })
  6414. if (onloadListener) {
  6415. _iframe.contentDocument.location.reload()
  6416. } else {
  6417. _iframe.contentDocument.location.reload()
  6418. }
  6419. } else {
  6420. _iframe.onload = () => {
  6421. _iframe.contentWindow.document.body.appendChild(script1);
  6422. _iframe.contentWindow.document.body.appendChild(script2);
  6423. // _iframe.contentWindow.document.body.appendChild(script3);
  6424. _iframe.contentWindow.document.body.appendChild(script4);
  6425. };
  6426. }
  6427. _jie.onclick = async () => {
  6428. let text = ''
  6429. if (aTool == 6) {
  6430. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6431. } else if (aTool == 3) {
  6432. text = await U.MD.D.I.getEditorContent(_iframe);
  6433. }
  6434. _loading.style.display = 'flex'
  6435. console.log(_loading);
  6436. var _ajs = _iframe.contentWindow.document.createElement("script");
  6437. _ajs.type = "text/javascript";
  6438. _ajs.innerHTML =
  6439. // 'console.log(' + _loading + ');\n' +
  6440. 'var _js = document.createElement("script");\n' +
  6441. '_js.type="text/javascript";\n' +
  6442. '_js.charset="UTF-8";\n' +
  6443. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6444. "_js.onload = function(){\n" +
  6445. ' var a = document.getElementsByTagName("img")\n' +
  6446. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6447. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6448. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6449. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6450. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6451. "beforeUpload_shishi(file," +
  6452. "'" +
  6453. _userid +
  6454. "'" +
  6455. ", " +
  6456. "'" +
  6457. _cid +
  6458. "'" +
  6459. ", " +
  6460. "'" +
  6461. _stage +
  6462. "'" +
  6463. ", " +
  6464. "'" +
  6465. _task +
  6466. "'" +
  6467. ", " +
  6468. "'" +
  6469. _tool +
  6470. "'" +
  6471. ", " +
  6472. "'" +
  6473. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6474. "'" +
  6475. ", " +
  6476. "'" +
  6477. aTool +
  6478. "'" +
  6479. ", " +
  6480. "`" +
  6481. text +
  6482. "`" +
  6483. ")\n" +
  6484. " });\n" +
  6485. "}\n" +
  6486. "document.head.appendChild(_js);\n";
  6487. _iframe.contentWindow.document.head.appendChild(_ajs);
  6488. }
  6489. }
  6490. //U.MD.D.I.openClick(str);
  6491. //如果有任务栏信息
  6492. // if (_taskbar) {
  6493. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6494. // }
  6495. }
  6496. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6497. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6498. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6499. _userinfo = US.userInfo, //登录用户信息
  6500. _userid = US.userInfo.userid //登录用户id
  6501. let _iframe;
  6502. let _cid = cid,
  6503. _stage = stage,
  6504. _task = task,
  6505. _tool = tool;
  6506. var _jie = $$("div", {
  6507. "style": {
  6508. "position": "absolute",
  6509. "bottom": "50px",
  6510. "right": "50px",
  6511. "zIndex": "9999",
  6512. "backgroundColor": "#2268bc",
  6513. "color": "#fff",
  6514. "padding": "12px 20px",
  6515. "cursor": "pointer",
  6516. "borderRadius": "4px",
  6517. },
  6518. "innerHTML": "上传模板"
  6519. })
  6520. let aTool = ''
  6521. let _loading = document.createElement('div')
  6522. _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;"
  6523. // _loading.id = "";
  6524. let _lchild = document.createElement('div')
  6525. let _limg = document.createElement('img')
  6526. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6527. _limg.style = "width: 26px;margin-right: 10px;"
  6528. _lchild.appendChild(_limg)
  6529. let _lspan = document.createElement('span')
  6530. _lspan.innerHTML = "上传中..."
  6531. _lchild.appendChild(_lspan)
  6532. _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%);"
  6533. _loading.appendChild(_lchild)
  6534. var _box = $$('div', {
  6535. "style": {
  6536. "position": "relative",
  6537. "width": "100%",
  6538. "height": "100%",
  6539. },
  6540. })
  6541. _box.appendChild(_loading)
  6542. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6543. switch (str) {
  6544. case "whiteboard":
  6545. aTool = 1;
  6546. _iframe = $$("iframe", {
  6547. "frameborder": "no",
  6548. "border": "0",
  6549. "scrolling ": "no",
  6550. "style": {
  6551. "cssText": "border:0;width:100%;height:100%"
  6552. },
  6553. "src": "https://iwb.cocorobo.cn/"
  6554. })
  6555. _box.appendChild(_iframe);
  6556. _box.appendChild(_jie);
  6557. _formdiv = new U.UF.UI.form(
  6558. "电子白板",
  6559. _box, {
  6560. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6561. "style": {
  6562. "width": "90%",
  6563. "height": "90%",
  6564. "overflow": 'hidden'
  6565. },
  6566. "onresize": function () { }
  6567. }, {
  6568. closecallback: function () { }
  6569. }, {
  6570. "style": {
  6571. "height": "36px"
  6572. }
  6573. }).form; //创建窗体
  6574. _taskbar = {
  6575. "id": str + _formdiv.id,
  6576. "style": {
  6577. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6578. },
  6579. "name": "电子白板",
  6580. "forms": _formdiv,
  6581. "click": function () {
  6582. U.MD.D.I.openApplication(str, obj, info);
  6583. }
  6584. }
  6585. break;
  6586. case "mind":
  6587. aTool = 3;
  6588. _iframe = $$("iframe", {
  6589. "frameborder": "no",
  6590. "border": "0",
  6591. "scrolling ": "no",
  6592. "style": {
  6593. "cssText": "border:0;width:100%;height:100%"
  6594. },
  6595. "src": "/kityminder-editor/dist/index.html"
  6596. });
  6597. _box.appendChild(_iframe);
  6598. _box.appendChild(_jie);
  6599. _formdiv = new U.UF.UI.form(
  6600. "思维导图",
  6601. _box, { //"/jsmind/example/demo.html"
  6602. "id": "minds_Yu" + cid + stage + task + tool,
  6603. "style": {
  6604. "width": "90%",
  6605. "height": "90%",
  6606. "overflow": 'hidden'
  6607. },
  6608. "onresize": function () { }
  6609. }, {
  6610. closecallback: function () { }
  6611. }, {
  6612. "style": {
  6613. "height": "36px"
  6614. }
  6615. }).form; //创建窗体
  6616. _taskbar = {
  6617. "id": str + _formdiv.id,
  6618. "style": {
  6619. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6620. },
  6621. "name": "思维导图",
  6622. "forms": _formdiv,
  6623. "click": function () {
  6624. U.MD.D.I.openApplication(str, obj, info);
  6625. }
  6626. }
  6627. break;
  6628. case "doc":
  6629. aTool = 6;
  6630. _iframe = $$("iframe", {
  6631. "frameborder": "no",
  6632. "border": "0",
  6633. "scrolling ": "no",
  6634. "style": {
  6635. "cssText": "border:0;width:100%;height:100%"
  6636. },
  6637. "src": "/Office/Word/WordEditArea.htm"
  6638. })
  6639. _box.appendChild(_iframe);
  6640. _box.appendChild(_jie);
  6641. _formdiv = new U.UF.UI.form(
  6642. "协同文档",
  6643. _box, {
  6644. "id": "docs_Yu" + cid + stage + task + tool,
  6645. "style": {
  6646. "width": "90%",
  6647. "height": "90%",
  6648. "overflow": 'hidden'
  6649. },
  6650. "onresize": function () { }
  6651. }, {
  6652. closecallback: function () { }
  6653. }, {
  6654. "style": {
  6655. "height": "36px"
  6656. }
  6657. }).form; //创建窗体
  6658. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6659. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6660. })
  6661. _taskbar = {
  6662. "id": str + _formdiv.id,
  6663. "style": {
  6664. "backgroundImage": "url(/img/icon/doc.png)"
  6665. },
  6666. "name": "协同文档",
  6667. "forms": _formdiv,
  6668. "click": function () {
  6669. U.MD.D.I.openApplication(str, obj, info);
  6670. }
  6671. }
  6672. break;
  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_Yu" + 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 == 'doc') {
  6721. _iframe = _formdiv.querySelector('iframe')
  6722. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6723. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6724. })
  6725. if (onloadListener) {
  6726. _iframe.contentDocument.location.reload()
  6727. } else {
  6728. _iframe.contentDocument.location.reload()
  6729. }
  6730. } else if (str == 'mind') {
  6731. _iframe = _formdiv.querySelector('iframe')
  6732. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6733. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6734. })
  6735. if (onloadListener) {
  6736. _iframe.contentDocument.location.reload()
  6737. } else {
  6738. _iframe.contentDocument.location.reload()
  6739. }
  6740. } else if (str == 'whiteboard') {
  6741. _iframe = _formdiv.querySelector('iframe')
  6742. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6743. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6744. })
  6745. if (onloadListener) {
  6746. _iframe.contentDocument.location.reload()
  6747. } else {
  6748. _iframe.contentDocument.location.reload()
  6749. }
  6750. } else if (str == 'CocoPi') {
  6751. _iframe = _formdiv.querySelector('iframe')
  6752. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6753. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6754. })
  6755. if (onloadListener) {
  6756. _iframe.contentDocument.location.reload()
  6757. } else {
  6758. _iframe.contentDocument.location.reload()
  6759. }
  6760. } else {
  6761. _iframe.onload = () => {
  6762. };
  6763. }
  6764. _jie.onclick = async () => {
  6765. let text = ''
  6766. let type = '2'
  6767. if (aTool == 1) {
  6768. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6769. type = '3'
  6770. } else if (aTool == 6) {
  6771. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6772. type = '1'
  6773. } else if (aTool == 3) {
  6774. text = await U.MD.D.I.getEditorContent(_iframe);
  6775. type = '2'
  6776. } else if (aTool == 57) {
  6777. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6778. type = '4'
  6779. }
  6780. _loading.style.display = 'flex'
  6781. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6782. }
  6783. }
  6784. //U.MD.D.I.openClick(str);
  6785. //如果有任务栏信息
  6786. // if (_taskbar) {
  6787. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6788. // }
  6789. }
  6790. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6791. var xmlhttp;
  6792. var Mac, Sn, DeviceId
  6793. if (window.XMLHttpRequest) {
  6794. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6795. xmlhttp = new XMLHttpRequest();
  6796. }
  6797. else {
  6798. // IE6, IE5 浏览器执行代码
  6799. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6800. }
  6801. xmlhttp.onreadystatechange = function () {
  6802. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6803. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6804. // resolve(res.value[0][0].text);
  6805. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6806. }
  6807. }
  6808. }
  6809. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6810. xmlhttp.send();
  6811. }
  6812. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6813. var xmlhttp;
  6814. var Mac, Sn, DeviceId
  6815. if (window.XMLHttpRequest) {
  6816. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6817. xmlhttp = new XMLHttpRequest();
  6818. }
  6819. else {
  6820. // IE6, IE5 浏览器执行代码
  6821. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6822. }
  6823. xmlhttp.onreadystatechange = function () {
  6824. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6825. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6826. // resolve(res.value[0][0].text);
  6827. if (type == '2') {
  6828. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6829. } else if (type == '3') {
  6830. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6831. } else if (type == '4') {
  6832. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6833. }
  6834. } else {
  6835. if (type == '2') {
  6836. iframe.contentWindow.editor.minder.importData('json', '')
  6837. } else if (type == '3') {
  6838. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6839. } else if (type == '4') {
  6840. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6841. }
  6842. }
  6843. }
  6844. }
  6845. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6846. xmlhttp.send();
  6847. }
  6848. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6849. var xmlhttp;
  6850. var Mac, Sn, DeviceId
  6851. if (window.XMLHttpRequest) {
  6852. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6853. xmlhttp = new XMLHttpRequest();
  6854. }
  6855. else {
  6856. // IE6, IE5 浏览器执行代码
  6857. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6858. }
  6859. xmlhttp.onreadystatechange = function () {
  6860. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6861. if (xmlhttp.response) {
  6862. // resolve(res.value[0][0].text);
  6863. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6864. // $(fileInput).val('');
  6865. // });
  6866. span.innerHTML = '上传成功'
  6867. setTimeout(() => {
  6868. loading.style.display = 'none'
  6869. }, 1000);
  6870. }
  6871. }
  6872. }
  6873. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6874. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6875. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6876. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6877. // 设置请求头,表示请求体的编码格式
  6878. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6879. // 设置请求体,使用url-encoded格式的数据
  6880. }
  6881. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6882. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6883. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6884. _userinfo = US.userInfo, //登录用户信息
  6885. _userid = US.userInfo.userid //登录用户id
  6886. let _iframe;
  6887. let _cid = cid,
  6888. _stage = stage,
  6889. _task = task,
  6890. _tool = tool;
  6891. var _jie = $$("div", {
  6892. "style": {
  6893. "position": "absolute",
  6894. "bottom": "50px",
  6895. "right": "50px",
  6896. "zIndex": "9999",
  6897. "backgroundColor": "#2268bc",
  6898. "color": "#fff",
  6899. "padding": "12px 20px",
  6900. "cursor": "pointer",
  6901. "borderRadius": "4px",
  6902. },
  6903. "innerHTML": "提交作业"
  6904. })
  6905. let aTool = ''
  6906. let _loading = document.createElement('div')
  6907. _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;"
  6908. // _loading.id = "";
  6909. let _lchild = document.createElement('div')
  6910. let _limg = document.createElement('img')
  6911. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6912. _limg.style = "width: 26px;margin-right: 10px;"
  6913. _lchild.appendChild(_limg)
  6914. let _lspan = document.createElement('span')
  6915. _lspan.innerHTML = "上传中..."
  6916. _lchild.appendChild(_lspan)
  6917. _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%);"
  6918. _loading.appendChild(_lchild)
  6919. var _box = $$('div', {
  6920. "style": {
  6921. "position": "relative",
  6922. "width": "100%",
  6923. "height": "100%",
  6924. },
  6925. })
  6926. _box.appendChild(_loading)
  6927. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6928. switch (str) {
  6929. case "CocoPi":
  6930. aTool = 57;
  6931. _iframe = $$("iframe", {
  6932. "allowpaymentrequest":"allowpaymentrequest",
  6933. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6934. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6935. "frameborder": "no",
  6936. "border": "0",
  6937. "scrolling ": "no",
  6938. "style": {
  6939. "cssText": "border:0;width:100%;height:100%"
  6940. },
  6941. "src": "https://pi.cocorobo.cn/"
  6942. })
  6943. _box.appendChild(_iframe);
  6944. _box.appendChild(_jie);
  6945. _formdiv = new U.UF.UI.form(
  6946. "CocoPi",
  6947. _box, {
  6948. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6949. "style": {
  6950. "width": "90%",
  6951. "height": "90%",
  6952. "overflow": 'hidden'
  6953. },
  6954. "onresize": function () { }
  6955. }, {
  6956. closecallback: function () { }
  6957. }, {
  6958. "style": {
  6959. "height": "36px"
  6960. }
  6961. }).form; //创建窗体
  6962. _taskbar = {
  6963. "id": str + _formdiv.id,
  6964. "style": {
  6965. "backgroundImage": "url(/img/icon/cocopi.png)"
  6966. },
  6967. "name": "CocoPi",
  6968. "forms": _formdiv,
  6969. "click": function () {
  6970. U.MD.D.I.openApplication(str, obj, info);
  6971. }
  6972. }
  6973. break;
  6974. }
  6975. if (_iframe) {
  6976. if (str == 'CocoPi') {
  6977. _iframe = _formdiv.querySelector('iframe')
  6978. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6979. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6980. })
  6981. if (onloadListener) {
  6982. _iframe.contentDocument.location.reload()
  6983. } else {
  6984. _iframe.contentDocument.location.reload()
  6985. }
  6986. }
  6987. _jie.onclick = async () => {
  6988. let text = ''
  6989. if (aTool == 57) {
  6990. text = _iframe.contentWindow.getLoadXmlStr()
  6991. }
  6992. _loading.style.display = 'flex'
  6993. console.log(_loading);
  6994. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6995. _loading.style.display = 'none'
  6996. let _div = document.createElement('div')
  6997. _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;"
  6998. let _inner = document.createElement('div')
  6999. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7000. _inner.innerHTML = "上传成功"
  7001. _div.appendChild(_inner)
  7002. _iframe.contentWindow.window.document.body.appendChild(_div)
  7003. _div.onclick = () => {
  7004. _iframe.contentWindow.window.document.body.removeChild(_div)
  7005. }
  7006. setTimeout(() => {
  7007. _iframe.contentWindow.window.document.body.removeChild(_div)
  7008. }, 1000);
  7009. }, [], { "type": "POST", "withCredentials": true });
  7010. }
  7011. }
  7012. }
  7013. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  7014. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  7015. _formdiv, //创建任务栏时同时弹出的窗体元素。
  7016. _userid = student.userid, //登录用户id
  7017. _username = student.student //用户名字
  7018. let _iframe;
  7019. let _cid = cid,
  7020. _stage = stage,
  7021. _task = task,
  7022. _tool = tool;
  7023. var _jie = $$("div", {
  7024. "style": {
  7025. "position": "absolute",
  7026. "bottom": "50px",
  7027. "right": "50px",
  7028. "zIndex": "9999",
  7029. "backgroundColor": "#2268bc",
  7030. "color": "#fff",
  7031. "padding": "12px 20px",
  7032. "cursor": "pointer",
  7033. "borderRadius": "4px",
  7034. },
  7035. "innerHTML": "提交作业"
  7036. })
  7037. let aTool = ''
  7038. let _loading = document.createElement('div')
  7039. _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;"
  7040. // _loading.id = "";
  7041. let _lchild = document.createElement('div')
  7042. let _limg = document.createElement('img')
  7043. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7044. _limg.style = "width: 26px;margin-right: 10px;"
  7045. _lchild.appendChild(_limg)
  7046. let _lspan = document.createElement('span')
  7047. _lspan.innerHTML = "上传中..."
  7048. _lchild.appendChild(_lspan)
  7049. _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%);"
  7050. _loading.appendChild(_lchild)
  7051. var _box = $$('div', {
  7052. "style": {
  7053. "position": "relative",
  7054. "width": "100%",
  7055. "height": "100%",
  7056. },
  7057. })
  7058. _box.appendChild(_loading)
  7059. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  7060. switch (str) {
  7061. case "CocoPi":
  7062. aTool = 57;
  7063. _iframe = $$("iframe", {
  7064. "allowpaymentrequest":"allowpaymentrequest",
  7065. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7066. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  7067. "frameborder": "no",
  7068. "border": "0",
  7069. "scrolling ": "no",
  7070. "style": {
  7071. "cssText": "border:0;width:100%;height:100%"
  7072. },
  7073. "src": "https://pi.cocorobo.cn/"
  7074. })
  7075. _box.appendChild(_iframe);
  7076. _box.appendChild(_jie);
  7077. _formdiv = new U.UF.UI.form(
  7078. "CocoPi-" + _username,
  7079. _box, {
  7080. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7081. "style": {
  7082. "width": "90%",
  7083. "height": "90%",
  7084. "overflow": 'hidden'
  7085. },
  7086. "onresize": function () { }
  7087. }, {
  7088. closecallback: function () { }
  7089. }, {
  7090. "style": {
  7091. "height": "36px"
  7092. }
  7093. }).form; //创建窗体
  7094. _taskbar = {
  7095. "id": str + _formdiv.id,
  7096. "style": {
  7097. "backgroundImage": "url(/img/icon/cocopi.png)"
  7098. },
  7099. "name": "CocoPi",
  7100. "forms": _formdiv,
  7101. "click": function () {
  7102. U.MD.D.I.openApplication(str, obj, info);
  7103. }
  7104. }
  7105. break;
  7106. }
  7107. if (_iframe) {
  7108. if (str == 'CocoPi') {
  7109. _iframe = _formdiv.querySelector('iframe')
  7110. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  7111. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  7112. })
  7113. if (onloadListener) {
  7114. _iframe.contentDocument.location.reload()
  7115. } else {
  7116. _iframe.contentDocument.location.reload()
  7117. }
  7118. }
  7119. _jie.onclick = async () => {
  7120. let text = ''
  7121. if (aTool == 57) {
  7122. text = _iframe.contentWindow.getLoadXmlStr()
  7123. }
  7124. _loading.style.display = 'flex'
  7125. console.log(_loading);
  7126. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  7127. _loading.style.display = 'none'
  7128. let _div = document.createElement('div')
  7129. _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;"
  7130. let _inner = document.createElement('div')
  7131. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7132. _inner.innerHTML = "上传成功"
  7133. _div.appendChild(_inner)
  7134. _iframe.contentWindow.window.document.body.appendChild(_div)
  7135. _div.onclick = () => {
  7136. _iframe.contentWindow.window.document.body.removeChild(_div)
  7137. }
  7138. setTimeout(() => {
  7139. _iframe.contentWindow.window.document.body.removeChild(_div)
  7140. }, 1000);
  7141. }, [], { "type": "POST", "withCredentials": true });
  7142. }
  7143. }
  7144. }
  7145. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  7146. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  7147. if (res.value[0].length > 0) {
  7148. if (atool == 57) {
  7149. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7150. }
  7151. } else {
  7152. if (atool == 57) {
  7153. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7154. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7155. }
  7156. }
  7157. }, [], { "type": "POST", "withCredentials": true });
  7158. }