DeskTop.js 422 KB

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