DeskTop.js 392 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037
  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": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  17. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  18. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  19. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  20. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  21. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  22. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  23. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  24. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  25. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  26. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  27. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  28. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  29. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  30. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  31. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  32. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  34. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  35. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  36. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  37. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  38. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  39. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  40. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  41. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  42. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  43. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  44. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  45. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  46. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  47. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  48. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  49. ];
  50. //极简模式
  51. U.MD.D.I.easyDeskIcon = [
  52. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  56. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  57. ];
  58. //教师桌面图标的全局变量
  59. U.MD.D.I.teacherDeskIcon2 = [
  60. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  61. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  62. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  63. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  64. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  65. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  66. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  67. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  68. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  69. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  70. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  71. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  72. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  73. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  74. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  75. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  76. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  77. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  78. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  79. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  80. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  81. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  82. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  83. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  84. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  85. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  86. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  87. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  88. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  89. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  90. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  91. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  92. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  93. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  94. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  95. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  96. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  97. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  98. ];
  99. U.MD.D.I.studentDeskIcon = [
  100. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  101. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  102. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  103. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  104. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  105. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  106. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  107. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  108. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  109. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  110. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  111. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  112. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  113. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  114. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  115. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  116. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  117. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  118. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  119. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  120. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  121. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  122. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  123. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  124. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  125. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  126. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  127. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  128. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  129. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  130. ];
  131. U.MD.D.I.studentDeskIcon2 = [
  132. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  133. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  134. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  135. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  136. ]
  137. U.MD.D.I.studentDeskIcon3 = [
  138. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  139. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  140. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. ]
  142. U.MD.D.I.schoolDeskIcon = [
  143. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  144. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  145. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  146. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  147. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  148. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  149. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  150. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  151. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  152. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  153. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  154. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  155. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  156. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  157. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  158. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  159. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  160. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  161. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  162. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  163. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  164. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  165. ];
  166. U.MD.D.I.orgDeskIcon = [
  167. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  168. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  169. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  170. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  171. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  172. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  173. ];
  174. U.MD.D.I.orgStemDeskIcon = [
  175. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  176. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  177. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  178. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  179. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  180. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  181. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  182. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  183. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  184. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  185. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  186. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  187. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  188. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  189. ];
  190. U.MD.D.I.szulsDeskIcon = [
  191. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  192. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  193. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  194. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  195. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  196. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  197. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  198. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  199. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  200. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  201. ];
  202. U.MD.D.I.hanDeskIcon = [
  203. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  204. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  205. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  206. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  207. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  208. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  209. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  210. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  211. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  212. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  213. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  214. ];
  215. U.MD.D.I.GMteacherDeskIcon = [
  216. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  219. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  220. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  221. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  222. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  223. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  224. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  225. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  226. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  227. ];
  228. U.MD.D.I.GMstudentDeskIcon = [
  229. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  230. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  231. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  233. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  234. ];
  235. //北师大
  236. U.MD.D.I.BSDNSteacherDeskIcon = [
  237. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  238. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  239. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  240. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  241. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  242. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  243. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  244. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  245. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  246. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  247. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  248. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  249. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  250. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  251. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  252. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  253. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  254. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  255. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  256. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  257. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  258. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  259. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  260. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  261. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  262. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  263. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  264. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  265. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  266. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  267. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  268. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  269. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  270. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  271. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  272. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  273. ];
  274. //松山湖
  275. U.MD.D.I.SONGteacherDeskIcon = [
  276. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  277. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  278. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  279. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  280. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  281. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  282. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  283. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  284. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  285. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  286. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  287. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  288. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  289. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  290. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  291. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  292. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  293. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  294. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  295. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  296. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  297. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  298. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  299. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  300. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  301. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  302. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  303. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  304. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  305. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  306. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  307. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  308. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  309. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  310. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  311. ];
  312. U.MD.D.I.tcStudentDeskIcon = [
  313. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  314. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  315. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  316. ];
  317. U.MD.D.I.tcTeacherDeskIcon = [
  318. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  319. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  320. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  321. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  322. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  323. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  324. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcOrganizerDeskIcon = [
  328. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  331. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  334. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  335. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  336. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  337. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  338. ];
  339. U.MD.D.I.szscStudentDeskIcon = [
  340. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  341. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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.szscTeacherDeskIcon = [
  346. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  347. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  348. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  349. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  350. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  351. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  352. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  353. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscOrganizerDeskIcon = [
  357. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  362. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  363. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  364. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  365. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  366. ];
  367. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  368. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  369. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  370. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  371. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  372. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  373. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  374. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  375. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  376. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  377. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  378. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  379. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  380. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  381. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  382. ];
  383. U.MD.D.I.wankeAdminDeskIcon = [
  384. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  385. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  386. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  387. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  388. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  389. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  390. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  391. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  392. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  393. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  394. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  395. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  398. ];
  399. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  400. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  401. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  402. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  403. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  404. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  405. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  406. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  413. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  414. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  415. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  416. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  417. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  418. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  419. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  422. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  423. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  424. ];
  425. //明德教师桌面图标的全局变量
  426. U.MD.D.I.MingdeTeacherDeskIcon = [
  427. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  428. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  429. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  430. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  431. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  432. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  433. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  434. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  435. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  436. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  437. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  438. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  439. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  440. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  441. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  442. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  443. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  444. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  445. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  446. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  447. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  448. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  449. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  450. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  451. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  452. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  453. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  454. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  456. ];
  457. //97c4ee8b-d010-4042-986d-e9d3c217264f
  458. //教师桌面图标的全局变量
  459. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  460. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  463. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  464. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  465. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  466. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  467. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  468. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  469. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianTeacherDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  481. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  482. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  483. ];
  484. //福田
  485. U.MD.D.I.futianAdminDeskIcon = [
  486. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  487. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  488. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  489. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  490. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  491. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  492. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  493. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //lotech
  497. U.MD.D.I.lotechTeacherDeskIcon = [
  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": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  506. ];
  507. //龙华中心小学教师桌面图标的全局变量
  508. U.MD.D.I.longhuateacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  516. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  517. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  518. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  519. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  520. ];
  521. //教科院实小教师桌面图标的全局变量
  522. U.MD.D.I.siesteacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  526. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  527. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  528. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  529. // { "Name": "班级管理", "Url": "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. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  534. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  535. ];
  536. //福田
  537. U.MD.D.I.gdjgTeacherDeskIcon = [
  538. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  539. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  540. { "Name": "项目管理", "Url": "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": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  543. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  544. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  545. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  546. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  547. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  548. ];
  549. //gdjg
  550. U.MD.D.I.gdjgAdminDeskIcon = [
  551. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  552. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  558. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  559. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  560. ];
  561. //hk
  562. U.MD.D.I.hkteacherDeskIcon = [
  563. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  564. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  565. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  566. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  567. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  568. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  569. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  570. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  571. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  572. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  573. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  574. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  575. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  576. ];
  577. //hk
  578. U.MD.D.I.hkStudentDeskIcon = [
  579. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  581. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  582. ];
  583. //云海
  584. U.MD.D.I.yunhaiTeacherDeskIcon = [
  585. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  586. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  587. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  588. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  589. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  590. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  591. // { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  592. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  593. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  594. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  595. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  596. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  597. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  598. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  599. ];
  600. //福田
  601. U.MD.D.I.heyuanTeacherDeskIcon = [
  602. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  603. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  604. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  605. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  606. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  607. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  608. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  609. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  610. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  611. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  612. ];
  613. //福田
  614. U.MD.D.I.heyuanAdminDeskIcon = [
  615. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  616. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  617. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  618. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  619. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  620. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  621. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  622. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  623. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. ];
  625. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  626. U.MD.D.I.szherTeacherDeskIcon = [
  627. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  628. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  629. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  630. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  631. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  632. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  633. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  634. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  636. ];
  637. //#region 桌面初始化a
  638. /**
  639. * 初始化桌面的起始函数
  640. *
  641. */
  642. U.MD.D.I.init = function () {
  643. if ($("#U_MD_D_K")[0]) {
  644. //初始化桌面图标
  645. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  646. // var clickUrl = ':12588/requestIp.php';
  647. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  648. // U.MD.D.I.Ip = data;
  649. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  650. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  651. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  652. // })
  653. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  654. // })
  655. }
  656. }
  657. /**
  658. * 模式切换
  659. *
  660. */
  661. U.MD.D.I.ModeCheck = function (type) {
  662. if (US.Config.type == type) {
  663. return
  664. }
  665. US.Config.type = type
  666. $('.U_PBL_Check .active')[0].className = ''
  667. if (type == 1) {
  668. $('.U_PBL_Check div')[0].className = 'active'
  669. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  670. } else {
  671. $('.U_PBL_Check div')[1].className = 'active'
  672. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  673. }
  674. //初始化桌面图标
  675. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  676. if(type == 2){
  677. U.MD.D.I.openApplication("project")
  678. }
  679. }
  680. /**
  681. * 隐藏任务栏
  682. *
  683. * @param {element} 桌面元素
  684. */
  685. U.MD.D.I.hiddenTaskbar = function (el) {
  686. //任务栏位置变小
  687. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  688. //桌面的位置变大
  689. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  690. }
  691. /**
  692. * 隐藏任务栏
  693. *
  694. * @param {element} 桌面元素
  695. */
  696. U.MD.D.I.hiddenTaskbarout = function (el) {
  697. //任务栏位置变小
  698. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  699. //任务栏位置变化
  700. U.selectEl(el).css({ "bottom": "-60px" });
  701. //桌面的位置变大
  702. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  703. }
  704. }
  705. /**
  706. * 初始化打印桌面图标
  707. *
  708. * @param {element} 桌面元素
  709. */
  710. U.MD.D.I.initDesktopIcons = function (el, type) {
  711. var i, //用于循环
  712. _content, //桌面图标元素
  713. _iconcontent, //桌面图标元素
  714. _frag = $$("frag"), //定义一个碎片元素
  715. _type = US.userInfo.type,
  716. _org = US.userInfo.org,
  717. _oid = US.userInfo.organizeid,
  718. _role = US.userInfo.role,
  719. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  720. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  721. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  722. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  723. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  724. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  725. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  726. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  727. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  728. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  729. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  730. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  731. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  732. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  733. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  734. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  735. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  736. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  737. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  738. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  739. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  740. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  741. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  742. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  743. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  744. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  745. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  746. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  747. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  748. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  749. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  750. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  751. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  752. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  753. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  754. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  755. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  756. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  757. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  758. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  759. 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'];
  760. 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'];
  761. //清楚桌面图标
  762. el.innerHTML = "";
  763. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  764. _teacherDesktopIconInfo.push(
  765. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  766. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  767. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  768. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  769. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  770. )
  771. _easyDesktopIconInfo.push(
  772. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  773. )
  774. }
  775. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  776. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  777. if(el.Name == '项目管理'){
  778. el.Name = 'PBL项目'
  779. }
  780. return el
  781. })
  782. }
  783. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  784. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  785. return el.Name != '魔盒识字' && el.Name != '24点'
  786. })
  787. }
  788. 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) {
  789. _studentDesktopIconInfo.push(
  790. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  791. )
  792. }
  793. //循环创建桌面图标
  794. if (type == 1) {
  795. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  796. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  797. _content = $$("div", {
  798. className: "U_MD_D_KO",
  799. "onmousedown": U.UF.C.closure(function (obj) {
  800. //防止拖动图标即打开了桌面应用
  801. U.MD.D.click(this, obj);
  802. }, [_studentDesktopIconInfo[i]]),
  803. "onclick": U.UF.C.closure(function (obj) {
  804. //防止拖动图标即打开了桌面应用
  805. U.MD.D.click(this, obj);
  806. }, [_studentDesktopIconInfo[i]])
  807. }, _frag); //
  808. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  809. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  810. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  811. }
  812. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  813. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  814. _content = $$("div", {
  815. className: "U_MD_D_KO",
  816. "onmousedown": U.UF.C.closure(function (obj) {
  817. //防止拖动图标即打开了桌面应用
  818. U.MD.D.click(this, obj);
  819. }, [_hkStudentDeskIconInfo[i]]),
  820. "onclick": U.UF.C.closure(function (obj) {
  821. //防止拖动图标即打开了桌面应用
  822. U.MD.D.click(this, obj);
  823. }, [_hkStudentDeskIconInfo[i]])
  824. }, _frag); //
  825. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  826. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  827. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  828. }
  829. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  830. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  831. _content = $$("div", {
  832. className: "U_MD_D_KO",
  833. "onmousedown": U.UF.C.closure(function (obj) {
  834. //防止拖动图标即打开了桌面应用
  835. U.MD.D.click(this, obj);
  836. }, [_studentDesktopIconInfo[i]]),
  837. "onclick": U.UF.C.closure(function (obj) {
  838. //防止拖动图标即打开了桌面应用
  839. U.MD.D.click(this, obj);
  840. }, [_studentDesktopIconInfo[i]])
  841. }, _frag); //
  842. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  843. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  844. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  845. }
  846. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  847. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  848. _content = $$("div", {
  849. className: "U_MD_D_KO",
  850. "onmousedown": U.UF.C.closure(function (obj) {
  851. //防止拖动图标即打开了桌面应用
  852. U.MD.D.click(this, obj);
  853. }, [_tcStudentDeskIconInfo[i]]),
  854. "onclick": U.UF.C.closure(function (obj) {
  855. //防止拖动图标即打开了桌面应用
  856. U.MD.D.click(this, obj);
  857. }, [_tcStudentDeskIconInfo[i]])
  858. }, _frag); //
  859. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  860. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  861. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  862. }
  863. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  864. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  865. _content = $$("div", {
  866. className: "U_MD_D_KO",
  867. "onmousedown": U.UF.C.closure(function (obj) {
  868. //防止拖动图标即打开了桌面应用
  869. U.MD.D.click(this, obj);
  870. }, [_szscStudentDeskIconInfo[i]]),
  871. "onclick": U.UF.C.closure(function (obj) {
  872. //防止拖动图标即打开了桌面应用
  873. U.MD.D.click(this, obj);
  874. }, [_szscStudentDeskIconInfo[i]])
  875. }, _frag); //
  876. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  877. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  878. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  879. }
  880. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  881. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  882. _content = $$("div", {
  883. className: "U_MD_D_KO",
  884. "onmousedown": U.UF.C.closure(function (obj) {
  885. //防止拖动图标即打开了桌面应用
  886. U.MD.D.click(this, obj);
  887. }, [_studentDesktopIconInfo3[i]]),
  888. "onclick": U.UF.C.closure(function (obj) {
  889. //防止拖动图标即打开了桌面应用
  890. U.MD.D.click(this, obj);
  891. }, [_studentDesktopIconInfo3[i]])
  892. }, _frag); //
  893. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  894. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  895. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  896. }
  897. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  898. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  899. _content = $$("div", {
  900. className: "U_MD_D_KO",
  901. "onmousedown": U.UF.C.closure(function (obj) {
  902. //防止拖动图标即打开了桌面应用
  903. U.MD.D.click(this, obj);
  904. }, [_studentDesktopIconInfo2[i]]),
  905. "onclick": U.UF.C.closure(function (obj) {
  906. //防止拖动图标即打开了桌面应用
  907. U.MD.D.click(this, obj);
  908. }, [_studentDesktopIconInfo2[i]])
  909. }, _frag); //
  910. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  911. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  912. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  913. }
  914. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  915. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  916. _content = $$("div", {
  917. className: "U_MD_D_KO",
  918. "onmousedown": U.UF.C.closure(function (obj) {
  919. //防止拖动图标即打开了桌面应用
  920. U.MD.D.click(this, obj);
  921. }, [_wanketeacherDesktopIconInfo[i]]),
  922. "onclick": U.UF.C.closure(function (obj) {
  923. //防止拖动图标即打开了桌面应用
  924. U.MD.D.click(this, obj);
  925. }, [_wanketeacherDesktopIconInfo[i]])
  926. }, _frag); //
  927. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  928. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  929. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  930. }
  931. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  932. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  933. _content = $$("div", {
  934. className: "U_MD_D_KO",
  935. "onmousedown": U.UF.C.closure(function (obj) {
  936. //防止拖动图标即打开了桌面应用
  937. U.MD.D.click(this, obj);
  938. }, [_wankeAdminDesktopIconInfo[i]]),
  939. "onclick": U.UF.C.closure(function (obj) {
  940. //防止拖动图标即打开了桌面应用
  941. U.MD.D.click(this, obj);
  942. }, [_wankeAdminDesktopIconInfo[i]])
  943. }, _frag); //
  944. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  945. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  946. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  947. }
  948. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  949. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  950. _content = $$("div", {
  951. className: "U_MD_D_KO",
  952. "onmousedown": U.UF.C.closure(function (obj) {
  953. //防止拖动图标即打开了桌面应用
  954. U.MD.D.click(this, obj);
  955. }, [_teacherDesktopIconInfo2[i]]),
  956. "onclick": U.UF.C.closure(function (obj) {
  957. //防止拖动图标即打开了桌面应用
  958. U.MD.D.click(this, obj);
  959. }, [_teacherDesktopIconInfo2[i]])
  960. }, _frag); //
  961. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  962. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  963. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  964. }
  965. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  966. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  967. _content = $$("div", {
  968. className: "U_MD_D_KO",
  969. "onmousedown": U.UF.C.closure(function (obj) {
  970. //防止拖动图标即打开了桌面应用
  971. U.MD.D.click(this, obj);
  972. }, [_lotechTeacherDeskIconInfo[i]]),
  973. "onclick": U.UF.C.closure(function (obj) {
  974. //防止拖动图标即打开了桌面应用
  975. U.MD.D.click(this, obj);
  976. }, [_lotechTeacherDeskIconInfo[i]])
  977. }, _frag); //
  978. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  979. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  980. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  981. }
  982. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  983. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  984. _content = $$("div", {
  985. className: "U_MD_D_KO",
  986. "onmousedown": U.UF.C.closure(function (obj) {
  987. //防止拖动图标即打开了桌面应用
  988. U.MD.D.click(this, obj);
  989. }, [_siesTeacherDeskIconInfo[i]]),
  990. "onclick": U.UF.C.closure(function (obj) {
  991. //防止拖动图标即打开了桌面应用
  992. U.MD.D.click(this, obj);
  993. }, [_siesTeacherDeskIconInfo[i]])
  994. }, _frag); //
  995. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  996. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  997. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  998. }
  999. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1000. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1001. _content = $$("div", {
  1002. className: "U_MD_D_KO",
  1003. "onmousedown": U.UF.C.closure(function (obj) {
  1004. //防止拖动图标即打开了桌面应用
  1005. U.MD.D.click(this, obj);
  1006. }, [_longhuaTeacherDeskIconInfo[i]]),
  1007. "onclick": U.UF.C.closure(function (obj) {
  1008. //防止拖动图标即打开了桌面应用
  1009. U.MD.D.click(this, obj);
  1010. }, [_longhuaTeacherDeskIconInfo[i]])
  1011. }, _frag); //
  1012. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1013. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1014. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1015. }
  1016. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1017. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1018. _content = $$("div", {
  1019. className: "U_MD_D_KO",
  1020. "onmousedown": U.UF.C.closure(function (obj) {
  1021. //防止拖动图标即打开了桌面应用
  1022. U.MD.D.click(this, obj);
  1023. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1024. "onclick": U.UF.C.closure(function (obj) {
  1025. //防止拖动图标即打开了桌面应用
  1026. U.MD.D.click(this, obj);
  1027. }, [_yunhaiTeacherDeskIconInfo[i]])
  1028. }, _frag); //
  1029. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1030. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1031. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1032. }//_hkStudentDeskIconInfo
  1033. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1034. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1035. _content = $$("div", {
  1036. className: "U_MD_D_KO",
  1037. "onmousedown": U.UF.C.closure(function (obj) {
  1038. //防止拖动图标即打开了桌面应用
  1039. U.MD.D.click(this, obj);
  1040. }, [_hkTeacherDeskIconInfo[i]]),
  1041. "onclick": U.UF.C.closure(function (obj) {
  1042. //防止拖动图标即打开了桌面应用
  1043. U.MD.D.click(this, obj);
  1044. }, [_hkTeacherDeskIconInfo[i]])
  1045. }, _frag); //
  1046. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1047. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1048. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1049. }
  1050. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1051. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1052. _content = $$("div", {
  1053. className: "U_MD_D_KO",
  1054. "onmousedown": U.UF.C.closure(function (obj) {
  1055. //防止拖动图标即打开了桌面应用
  1056. U.MD.D.click(this, obj);
  1057. }, [_gdjgAdminDeskIconInfo[i]]),
  1058. "onclick": U.UF.C.closure(function (obj) {
  1059. //防止拖动图标即打开了桌面应用
  1060. U.MD.D.click(this, obj);
  1061. }, [_gdjgAdminDeskIconInfo[i]])
  1062. }, _frag); //
  1063. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1064. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1065. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1066. }
  1067. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1068. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1069. _content = $$("div", {
  1070. className: "U_MD_D_KO",
  1071. "onmousedown": U.UF.C.closure(function (obj) {
  1072. //防止拖动图标即打开了桌面应用
  1073. U.MD.D.click(this, obj);
  1074. }, [_gdjgTeacherDeskIconInfo[i]]),
  1075. "onclick": U.UF.C.closure(function (obj) {
  1076. //防止拖动图标即打开了桌面应用
  1077. U.MD.D.click(this, obj);
  1078. }, [_gdjgTeacherDeskIconInfo[i]])
  1079. }, _frag); //
  1080. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1081. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1082. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1083. }
  1084. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1085. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1086. _content = $$("div", {
  1087. className: "U_MD_D_KO",
  1088. "onmousedown": U.UF.C.closure(function (obj) {
  1089. //防止拖动图标即打开了桌面应用
  1090. U.MD.D.click(this, obj);
  1091. }, [_szherTeacherDeskIconInfo[i]]),
  1092. "onclick": U.UF.C.closure(function (obj) {
  1093. //防止拖动图标即打开了桌面应用
  1094. U.MD.D.click(this, obj);
  1095. }, [_szherTeacherDeskIconInfo[i]])
  1096. }, _frag); //
  1097. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1098. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1099. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1100. }
  1101. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1102. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1103. _content = $$("div", {
  1104. className: "U_MD_D_KO",
  1105. "onmousedown": U.UF.C.closure(function (obj) {
  1106. //防止拖动图标即打开了桌面应用
  1107. U.MD.D.click(this, obj);
  1108. }, [_heyuannAdminDeskIconInfo[i]]),
  1109. "onclick": U.UF.C.closure(function (obj) {
  1110. //防止拖动图标即打开了桌面应用
  1111. U.MD.D.click(this, obj);
  1112. }, [_heyuannAdminDeskIconInfo[i]])
  1113. }, _frag); //
  1114. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1115. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1116. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1117. }
  1118. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1119. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1120. _content = $$("div", {
  1121. className: "U_MD_D_KO",
  1122. "onmousedown": U.UF.C.closure(function (obj) {
  1123. //防止拖动图标即打开了桌面应用
  1124. U.MD.D.click(this, obj);
  1125. }, [_heyuanTeacherDeskIconInfo[i]]),
  1126. "onclick": U.UF.C.closure(function (obj) {
  1127. //防止拖动图标即打开了桌面应用
  1128. U.MD.D.click(this, obj);
  1129. }, [_heyuanTeacherDeskIconInfo[i]])
  1130. }, _frag); //
  1131. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1132. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1133. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1134. }
  1135. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1136. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1137. _content = $$("div", {
  1138. className: "U_MD_D_KO",
  1139. "onmousedown": U.UF.C.closure(function (obj) {
  1140. //防止拖动图标即打开了桌面应用
  1141. U.MD.D.click(this, obj);
  1142. }, [_futianAdminDeskIconInfo[i]]),
  1143. "onclick": U.UF.C.closure(function (obj) {
  1144. //防止拖动图标即打开了桌面应用
  1145. U.MD.D.click(this, obj);
  1146. }, [_futianAdminDeskIconInfo[i]])
  1147. }, _frag); //
  1148. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1149. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1150. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1151. }
  1152. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1153. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1154. _content = $$("div", {
  1155. className: "U_MD_D_KO",
  1156. "onmousedown": U.UF.C.closure(function (obj) {
  1157. //防止拖动图标即打开了桌面应用
  1158. U.MD.D.click(this, obj);
  1159. }, [_futianTeacherDeskIconInfo[i]]),
  1160. "onclick": U.UF.C.closure(function (obj) {
  1161. //防止拖动图标即打开了桌面应用
  1162. U.MD.D.click(this, obj);
  1163. }, [_futianTeacherDeskIconInfo[i]])
  1164. }, _frag); //
  1165. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1166. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1167. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1168. }
  1169. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1170. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1171. _content = $$("div", {
  1172. className: "U_MD_D_KO",
  1173. "onmousedown": U.UF.C.closure(function (obj) {
  1174. //防止拖动图标即打开了桌面应用
  1175. U.MD.D.click(this, obj);
  1176. }, [_MingdeTeacherDeskIcon[i]]),
  1177. "onclick": U.UF.C.closure(function (obj) {
  1178. //防止拖动图标即打开了桌面应用
  1179. U.MD.D.click(this, obj);
  1180. }, [_MingdeTeacherDeskIcon[i]])
  1181. }, _frag); //
  1182. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1183. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1184. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1185. }
  1186. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1187. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1188. _content = $$("div", {
  1189. className: "U_MD_D_KO",
  1190. "onmousedown": U.UF.C.closure(function (obj) {
  1191. //防止拖动图标即打开了桌面应用
  1192. U.MD.D.click(this, obj);
  1193. }, [_lhsAdminDesktopIconInfo[i]]),
  1194. "onclick": U.UF.C.closure(function (obj) {
  1195. //防止拖动图标即打开了桌面应用
  1196. U.MD.D.click(this, obj);
  1197. }, [_lhsAdminDesktopIconInfo[i]])
  1198. }, _frag); //
  1199. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1200. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1201. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1202. }
  1203. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1204. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1205. _content = $$("div", {
  1206. className: "U_MD_D_KO",
  1207. "onmousedown": U.UF.C.closure(function (obj) {
  1208. //防止拖动图标即打开了桌面应用
  1209. U.MD.D.click(this, obj);
  1210. }, [_lhsteacherDesktopIconInfo[i]]),
  1211. "onclick": U.UF.C.closure(function (obj) {
  1212. //防止拖动图标即打开了桌面应用
  1213. U.MD.D.click(this, obj);
  1214. }, [_lhsteacherDesktopIconInfo[i]])
  1215. }, _frag); //
  1216. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1217. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1218. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1219. }
  1220. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1221. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1222. _content = $$("div", {
  1223. className: "U_MD_D_KO",
  1224. "onmousedown": U.UF.C.closure(function (obj) {
  1225. //防止拖动图标即打开了桌面应用
  1226. U.MD.D.click(this, obj);
  1227. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1228. "onclick": U.UF.C.closure(function (obj) {
  1229. //防止拖动图标即打开了桌面应用
  1230. U.MD.D.click(this, obj);
  1231. }, [_zhoujiateacherDesktopIconInfo[i]])
  1232. }, _frag); //
  1233. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1234. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1235. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1236. }
  1237. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1238. for (i = 0; i < _hanDeskIcon.length; i++) {
  1239. _content = $$("div", {
  1240. className: "U_MD_D_KO",
  1241. "onmousedown": U.UF.C.closure(function (obj) {
  1242. //防止拖动图标即打开了桌面应用
  1243. U.MD.D.click(this, obj);
  1244. }, [_hanDeskIcon[i]]),
  1245. "onclick": U.UF.C.closure(function (obj) {
  1246. //防止拖动图标即打开了桌面应用
  1247. U.MD.D.click(this, obj);
  1248. }, [_hanDeskIcon[i]])
  1249. }, _frag); //
  1250. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1251. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1252. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1253. }
  1254. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1255. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1256. _content = $$("div", {
  1257. className: "U_MD_D_KO",
  1258. "onmousedown": U.UF.C.closure(function (obj) {
  1259. //防止拖动图标即打开了桌面应用
  1260. U.MD.D.click(this, obj);
  1261. }, [_orgStemDeskIcon[i]]),
  1262. "onclick": U.UF.C.closure(function (obj) {
  1263. //防止拖动图标即打开了桌面应用
  1264. U.MD.D.click(this, obj);
  1265. }, [_orgStemDeskIcon[i]])
  1266. }, _frag); //
  1267. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1268. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1269. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1270. }
  1271. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1272. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1273. _content = $$("div", {
  1274. className: "U_MD_D_KO",
  1275. "onmousedown": U.UF.C.closure(function (obj) {
  1276. //防止拖动图标即打开了桌面应用
  1277. U.MD.D.click(this, obj);
  1278. }, [_szulsDeskIcon[i]]),
  1279. "onclick": U.UF.C.closure(function (obj) {
  1280. //防止拖动图标即打开了桌面应用
  1281. U.MD.D.click(this, obj);
  1282. }, [_szulsDeskIcon[i]])
  1283. }, _frag); //
  1284. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1285. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1286. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1287. }
  1288. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1289. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1290. _content = $$("div", {
  1291. className: "U_MD_D_KO",
  1292. "onmousedown": U.UF.C.closure(function (obj) {
  1293. //防止拖动图标即打开了桌面应用
  1294. U.MD.D.click(this, obj);
  1295. }, [_orgDesktopIconInfo[i]]),
  1296. "onclick": U.UF.C.closure(function (obj) {
  1297. //防止拖动图标即打开了桌面应用
  1298. U.MD.D.click(this, obj);
  1299. }, [_orgDesktopIconInfo[i]])
  1300. }, _frag); //
  1301. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1302. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1303. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1304. }
  1305. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1306. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1307. _content = $$("div", {
  1308. className: "U_MD_D_KO",
  1309. "onmousedown": U.UF.C.closure(function (obj) {
  1310. //防止拖动图标即打开了桌面应用
  1311. U.MD.D.click(this, obj);
  1312. }, [_schoolDesktopIconInfo[i]]),
  1313. "onclick": U.UF.C.closure(function (obj) {
  1314. //防止拖动图标即打开了桌面应用
  1315. U.MD.D.click(this, obj);
  1316. }, [_schoolDesktopIconInfo[i]])
  1317. }, _frag); //
  1318. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1319. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1320. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1321. }
  1322. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1323. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1324. _content = $$("div", {
  1325. className: "U_MD_D_KO",
  1326. "onmousedown": U.UF.C.closure(function (obj) {
  1327. //防止拖动图标即打开了桌面应用
  1328. U.MD.D.click(this, obj);
  1329. }, [_GMteacherDesktopIconInfo[i]]),
  1330. "onclick": U.UF.C.closure(function (obj) {
  1331. //防止拖动图标即打开了桌面应用
  1332. U.MD.D.click(this, obj);
  1333. }, [_GMteacherDesktopIconInfo[i]])
  1334. }, _frag); //
  1335. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1336. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1337. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1338. }
  1339. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1340. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1341. _content = $$("div", {
  1342. className: "U_MD_D_KO",
  1343. "onmousedown": U.UF.C.closure(function (obj) {
  1344. //防止拖动图标即打开了桌面应用
  1345. U.MD.D.click(this, obj);
  1346. }, [_SONGteacherDesktopIconInfo[i]]),
  1347. "onclick": U.UF.C.closure(function (obj) {
  1348. //防止拖动图标即打开了桌面应用
  1349. U.MD.D.click(this, obj);
  1350. }, [_SONGteacherDesktopIconInfo[i]])
  1351. }, _frag); //
  1352. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1353. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1354. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1355. }
  1356. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1357. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1358. _content = $$("div", {
  1359. className: "U_MD_D_KO",
  1360. "onmousedown": U.UF.C.closure(function (obj) {
  1361. //防止拖动图标即打开了桌面应用
  1362. U.MD.D.click(this, obj);
  1363. }, [_GMstudentDesktopIconInfo[i]]),
  1364. "onclick": U.UF.C.closure(function (obj) {
  1365. //防止拖动图标即打开了桌面应用
  1366. U.MD.D.click(this, obj);
  1367. }, [_GMstudentDesktopIconInfo[i]])
  1368. }, _frag); //
  1369. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1370. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1371. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1372. }
  1373. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1374. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1375. _content = $$("div", {
  1376. className: "U_MD_D_KO",
  1377. "onmousedown": U.UF.C.closure(function (obj) {
  1378. //防止拖动图标即打开了桌面应用
  1379. U.MD.D.click(this, obj);
  1380. }, [_tcTeacherDeskIconInfo[i]]),
  1381. "onclick": U.UF.C.closure(function (obj) {
  1382. //防止拖动图标即打开了桌面应用
  1383. U.MD.D.click(this, obj);
  1384. }, [_tcTeacherDeskIconInfo[i]])
  1385. }, _frag); //
  1386. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1387. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1388. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1389. }
  1390. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1391. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1392. _content = $$("div", {
  1393. className: "U_MD_D_KO",
  1394. "onmousedown": U.UF.C.closure(function (obj) {
  1395. //防止拖动图标即打开了桌面应用
  1396. U.MD.D.click(this, obj);
  1397. }, [_tcOrganizerDeskIconInfo[i]]),
  1398. "onclick": U.UF.C.closure(function (obj) {
  1399. //防止拖动图标即打开了桌面应用
  1400. U.MD.D.click(this, obj);
  1401. }, [_tcOrganizerDeskIconInfo[i]])
  1402. }, _frag); //
  1403. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1404. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1405. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1406. }
  1407. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1408. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1409. _content = $$("div", {
  1410. className: "U_MD_D_KO",
  1411. "onmousedown": U.UF.C.closure(function (obj) {
  1412. //防止拖动图标即打开了桌面应用
  1413. U.MD.D.click(this, obj);
  1414. }, [_szscTeacherDeskIconInfo[i]]),
  1415. "onclick": U.UF.C.closure(function (obj) {
  1416. //防止拖动图标即打开了桌面应用
  1417. U.MD.D.click(this, obj);
  1418. }, [_szscTeacherDeskIconInfo[i]])
  1419. }, _frag); //
  1420. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1421. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1422. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1423. }
  1424. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1425. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1426. _content = $$("div", {
  1427. className: "U_MD_D_KO",
  1428. "onmousedown": U.UF.C.closure(function (obj) {
  1429. //防止拖动图标即打开了桌面应用
  1430. U.MD.D.click(this, obj);
  1431. }, [_szscOrganizerDeskIconInfo[i]]),
  1432. "onclick": U.UF.C.closure(function (obj) {
  1433. //防止拖动图标即打开了桌面应用
  1434. U.MD.D.click(this, obj);
  1435. }, [_szscOrganizerDeskIconInfo[i]])
  1436. }, _frag); //
  1437. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1438. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1439. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1440. }
  1441. } else {
  1442. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1443. _content = $$("div", {
  1444. className: "U_MD_D_KO",
  1445. "onmousedown": U.UF.C.closure(function (obj) {
  1446. //防止拖动图标即打开了桌面应用
  1447. U.MD.D.click(this, obj);
  1448. }, [_teacherDesktopIconInfo[i]]),
  1449. "onclick": U.UF.C.closure(function (obj) {
  1450. //防止拖动图标即打开了桌面应用
  1451. U.MD.D.click(this, obj);
  1452. }, [_teacherDesktopIconInfo[i]])
  1453. }, _frag); //
  1454. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1455. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1456. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1457. }
  1458. }
  1459. } else {
  1460. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1461. _content = $$("div", {
  1462. className: "U_MD_D_KO",
  1463. style: { 'width': '124px', 'height': '145px' },
  1464. "onmousedown": U.UF.C.closure(function (obj) {
  1465. //防止拖动图标即打开了桌面应用
  1466. U.MD.D.click(this, obj);
  1467. }, [_easyDesktopIconInfo[i]]),
  1468. "onclick": U.UF.C.closure(function (obj) {
  1469. //防止拖动图标即打开了桌面应用
  1470. U.MD.D.click(this, obj);
  1471. }, [_easyDesktopIconInfo[i]])
  1472. }, _frag); //
  1473. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1474. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1475. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1476. }
  1477. }
  1478. if (type == 1) {
  1479. //加载好后给图标定位
  1480. U.MD.D.iconPostion($(_frag).Child());
  1481. } else {
  1482. //加载好后给图标定位
  1483. U.MD.D.iconPostion2($(_frag).Child());
  1484. }
  1485. //把图标加载到页面
  1486. el.appendChild(_frag);
  1487. }
  1488. /**
  1489. * 显示任务栏
  1490. *
  1491. * @param {element} 桌面元素
  1492. */
  1493. U.MD.D.I.displayTaskbar = function (el) {
  1494. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1495. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1496. //任务栏位置变化
  1497. U.selectEl(el).css({ "bottom": "0px" });
  1498. //桌面位置变话
  1499. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1500. }
  1501. }
  1502. //#region 桌面图标拖动逻辑
  1503. /**
  1504. * 桌面排列图标
  1505. *
  1506. * @param {element} 桌面元素
  1507. * @param {object} 上下相距的距离
  1508. * @param {object} 左右相距的距离
  1509. * @return {object} 命名空间
  1510. */
  1511. U.MD.D.iconPostion = function (childs, top, left) {
  1512. var i; //用于循环处理
  1513. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1514. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1515. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1516. for (i = 0; i < childs.length; i++) {
  1517. //如果竖排top超过了范围处理
  1518. if (top + 95 > US.height - 10) {
  1519. //left超过了页面范围处理,则向上重叠打印处理
  1520. if ((left + 180) > US.width) {
  1521. top -= 110;
  1522. left -= 90;
  1523. }
  1524. //没有超过范围,那么left+90添加到下一个竖排打印
  1525. else {
  1526. left += 90;
  1527. top = 15;
  1528. };
  1529. }
  1530. //给图标的位置赋值
  1531. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1532. if (i < childs.length - 1) {
  1533. //页面图标每次向下加95
  1534. top += 95;
  1535. }
  1536. }
  1537. //返回最后调用的图标的位置
  1538. return [top, left];
  1539. }
  1540. /**
  1541. * 桌面排列图标
  1542. *
  1543. * @param {element} 桌面元素
  1544. * @param {object} 上下相距的距离
  1545. * @param {object} 左右相距的距离
  1546. * @return {object} 命名空间
  1547. */
  1548. U.MD.D.iconPostion2 = function (childs, top, left) {
  1549. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1550. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1551. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1552. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1553. for (i = 0; i < childs.length; i++) {
  1554. //如果竖排top超过了范围处理
  1555. if (left + 150 > US.width - 10) {
  1556. //left超过了页面范围处理,则向上重叠打印处理
  1557. if ((top + 180) > US.Height) {
  1558. top -= 150;
  1559. left -= 150;
  1560. }
  1561. //没有超过范围,那么left+90添加到下一个竖排打印
  1562. else {
  1563. top += 150;
  1564. left = ol;
  1565. };
  1566. }
  1567. //给图标的位置赋值
  1568. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1569. if (i < childs.length - 1) {
  1570. //页面图标每次向下加95
  1571. left += 150;
  1572. }
  1573. }
  1574. //返回最后调用的图标的位置
  1575. return [top, left];
  1576. }
  1577. /**
  1578. * 桌面点击事件逻辑
  1579. *
  1580. * @param {element} 桌面元素
  1581. * @param {object} 上下相距的距离
  1582. * @param {object} 左右相距的距离
  1583. * @return {object} 命名空间
  1584. */
  1585. U.MD.D.click = function (el, obj) {
  1586. var _buttonnumber = event.button; //点击的按钮的事件值
  1587. var _userinfo = US.userInfo;
  1588. U.UF.EV.stopBubble(); //阻止向上冒泡
  1589. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1590. if (_buttonnumber < 2) {
  1591. //如果是click事件的处理
  1592. if (event.type == "click") {
  1593. //如果元素在mousemove事件中没有移动则出发click事件
  1594. if (!U.MD.D.I.IsDrag) {
  1595. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1596. U.alert("请先登录您的账号!");
  1597. setTimeout(() => {
  1598. U.MD.U.L.login();
  1599. }, 2000);
  1600. } else {
  1601. //打开应用处理
  1602. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1603. }
  1604. }
  1605. }
  1606. //如果是mouse事件的处理
  1607. else {
  1608. if (US.Config.type == '1') {
  1609. //拖动处理,添加拖动和拖动结束事件
  1610. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1611. }
  1612. }
  1613. U.MD.D.I.IsDrag = false;
  1614. }
  1615. }
  1616. /**
  1617. * 拖动的处理
  1618. *
  1619. */
  1620. U.MD.D.iconMove = function () {
  1621. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1622. U.MD.D.I.IsDrag = true;
  1623. }
  1624. /**
  1625. * 拖动结束后,这里是定位处理,以网状的形式定位
  1626. *
  1627. * @param {element} 拖动的元素
  1628. * @return {object} 命名空间
  1629. */
  1630. U.MD.D.iconUp = function (el) {
  1631. var _top = 15,
  1632. _left = 20,
  1633. _margin,
  1634. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1635. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1636. if (_positioninfo["OT"] > 15) {
  1637. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1638. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1639. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1640. }
  1641. if (_positioninfo["OL"] > 20) {
  1642. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1643. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1644. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1645. }
  1646. //while循环判断么一个重叠的元素
  1647. do {
  1648. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1649. _top = _positioninfo[0] + 95; //得到定位后的top
  1650. _left = _positioninfo[1]; //得到定位后的left
  1651. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1652. }
  1653. /**
  1654. * 判断拖动后图标是否重叠
  1655. *
  1656. * @param {element} 拖动的元素
  1657. * @param {element} 桌面所有的元素
  1658. * @param {array} 拖动元素的位置
  1659. ----------[0] 上 top
  1660. ----------[1] 左 left
  1661. * @return {object} 命名空间
  1662. */
  1663. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1664. //循环所有的图标
  1665. for (var i = 0; i < childs.length; i++) {
  1666. //判断有没有和该图标诶子重叠的元素
  1667. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1668. return childs[i]; //如果有返回
  1669. }
  1670. }
  1671. }
  1672. //#endregion
  1673. //#endregion
  1674. //#region 桌面应用
  1675. /**
  1676. * 打开应用
  1677. *
  1678. * @param {string} 类型
  1679. -----------------Disk 网盘系统
  1680. -----------------PDisk 学习系统网盘
  1681. -----------------Poto 图片
  1682. -----------------Video 视频
  1683. -----------------Music 音乐
  1684. -----------------Word word
  1685. -----------------Excel excel
  1686. -----------------Txt 记事本
  1687. -----------------PB 学习系统
  1688. -----------------Blog 朋友圈系统
  1689. -----------------FTP ftp系统
  1690. -----------------Group 好友群
  1691. -----------------SY 首页系统
  1692. -----------------Set 个人设置
  1693. -----------------XSet 系统设置
  1694. -----------------App 我们所有的app
  1695. -----------------BC c.1473.cn 平台
  1696. -----------------CWeb d.1473.cn 变成平台
  1697. -----------------其他的外联系统 我们统一用iframe打开
  1698. * @param {array} 类型
  1699. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1700. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1701. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1702. 如果第一个参数为其他,则无第二个参数
  1703. * @returns {array}
  1704. */
  1705. window.addEventListener('message', function (e) { // 监听 message 事件
  1706. // alert(e.data.type);
  1707. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1708. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1709. //3是展示全部阶段 2学生 1老师 4专家
  1710. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1711. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1712. //3是展示全部阶段 2学生 1老师 4专家
  1713. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1714. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1715. //3是展示全部阶段 2学生 1老师 4专家
  1716. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1717. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1718. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1719. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1720. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1721. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1722. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1723. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1724. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1725. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1726. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1727. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1728. //3是展示全部阶段 2学生 1老师 4专家
  1729. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1730. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1731. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1732. U.MD.D.I.selectUser();
  1733. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1734. var _formel = document.getElementById("study");
  1735. U.UF.F.windowZooming(_formel);
  1736. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1737. var _formel = document.getElementById("studyDetail");
  1738. U.UF.F.windowZooming(_formel);
  1739. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1740. var _formel = document.getElementById("studyDetail");
  1741. U.UF.F.windowZooming(_formel);
  1742. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1743. var _formel = document.getElementById("studentStudy");
  1744. U.UF.F.windowZooming(_formel);
  1745. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1746. // var _formel = document.getElementById("study");
  1747. //如果最大化了,那么就把他缩小
  1748. // if (_formel.ismaximize) {
  1749. // return;
  1750. // }
  1751. // U.UF.F.windowZooming(_formel);
  1752. // U.UF.F.topWindow(_formel);
  1753. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1754. // var _formel = document.getElementById("studyDetail");
  1755. //如果最大化了,那么就把他缩小
  1756. // if (_formel.ismaximize) {
  1757. // return;
  1758. // }
  1759. // U.UF.F.windowZooming(_formel);
  1760. // U.UF.F.topWindow(_formel);
  1761. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1762. // var _formel = document.getElementById("studentStudy");
  1763. // if (_formel.ismaximize) {
  1764. // return;
  1765. // }
  1766. // U.UF.F.windowZooming(_formel);
  1767. // U.UF.F.topWindow(_formel);
  1768. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1769. var _formel = document.getElementById("study");
  1770. // if (_formel.ismaximize) {
  1771. // return;
  1772. // }
  1773. // U.UF.F.windowZooming(_formel);
  1774. U.UF.F.topWindow(_formel);
  1775. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1776. var _formel = document.getElementById("studentIndex");
  1777. U.UF.F.windowZooming(_formel);
  1778. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1779. var _formel = document.getElementById("studyDetailS");
  1780. U.UF.F.windowZooming(_formel);
  1781. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1782. var _formel = document.getElementById("studioIndex");
  1783. U.UF.F.windowZooming(_formel);
  1784. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1785. var _formel = document.getElementById("studyDetailStudio");
  1786. U.UF.F.windowZooming(_formel);
  1787. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1788. var _formel = document.getElementById("studyDetailStudio");
  1789. U.UF.F.windowZooming(_formel);
  1790. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1791. var _formel = document.getElementById("studyDetailNT");
  1792. U.UF.F.windowZooming(_formel);
  1793. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1794. var _formel = document.getElementById("studyDetailS");
  1795. U.UF.F.windowZooming(_formel);
  1796. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1797. var _formel = document.getElementById("studyDetailS");
  1798. U.UF.F.topWindow(_formel);
  1799. } else if (e.data.tools && e.data.tools == "1") {
  1800. // U.MD.D.I.openApplication("whiteboard")
  1801. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1802. } else if (e.data.tools && e.data.tools == "2") {
  1803. U.MD.D.I.openApplication("note")
  1804. } else if (e.data.tools && e.data.tools == "3") {
  1805. // U.MD.D.I.openApplication("mind")
  1806. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1807. } else if (e.data.tools && e.data.tools == "4") {
  1808. U.MD.D.I.openApplication("investigation")
  1809. } else if (e.data.tools && e.data.tools == "6") {
  1810. // U.MD.D.I.openApplication("doc")
  1811. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1812. } else if (e.data.tools && e.data.tools == "7") {
  1813. // U.MD.D.I.openApplication("mindNetwork")
  1814. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1815. } else if (e.data.tools && e.data.tools == "8") {
  1816. U.MD.D.I.openApplication("library")
  1817. } else if (e.data.tools && e.data.tools == "17") {
  1818. U.MD.D.I.openApplication("stuLibrary")
  1819. } else if (e.data.tools && e.data.tools == "18") {
  1820. U.MD.D.I.openApplication("train")
  1821. } else if (e.data.tools && e.data.tools == "21") {
  1822. U.MD.D.I.openApplication("program")
  1823. } else if (e.data.tools && e.data.tools == "22") {
  1824. U.MD.D.I.openApplication("AIprogram2")
  1825. } else if (e.data.tools && e.data.tools == "23") {
  1826. U.MD.D.I.openApplication("Pythonprogram")
  1827. } else if (e.data.tools && e.data.tools == "24") {
  1828. U.MD.D.I.openApplication("AIprogram")
  1829. } else if (e.data.tools && e.data.tools == "25") {
  1830. U.MD.D.I.openApplication("sys")
  1831. } else if (e.data.tools && e.data.tools == "26") {
  1832. // U.MD.D.I.openApplication("courseDesign")
  1833. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1834. } else if (e.data.tools && e.data.tools == "31") {
  1835. U.MD.D.I.openApplication("netWorkPanel")
  1836. } else if (e.data.tools && e.data.tools == "32") {
  1837. U.MD.D.I.openApplication("codeEdit")
  1838. } else if (e.data.tools && e.data.tools == "57") {
  1839. U.MD.D.I.openApplication("CocoPi")
  1840. } else if (e.data.tools && e.data.tools == "63") {
  1841. U.MD.D.I.openApplication("Wood")
  1842. } else if (e.data.tools && e.data.tools == "58") {
  1843. U.MD.D.I.openApplication("car")
  1844. } else if (e.data.tools && e.data.tools == "59") {
  1845. U.MD.D.I.openApplication("lineSearch")
  1846. } else if (e.data.tools && e.data.tools == "60") {
  1847. U.MD.D.I.openApplication("deepLearning")
  1848. } else if (e.data.tools && e.data.tools == "61") {
  1849. U.MD.D.I.openApplication("allHistory")
  1850. } else if (e.data.tools && e.data.tools == "28") {
  1851. U.MD.D.I.openApplication("translation")
  1852. } else if (e.data.tools && e.data.tools == "37") {
  1853. U.MD.D.I.openApplication("mohe")
  1854. } else if (e.data.tools && e.data.tools == "38") {
  1855. U.MD.D.I.openApplication("24game")
  1856. } else if (e.data.tools && e.data.tools == "39") {
  1857. U.MD.D.I.openApplication("GeoGebra")
  1858. } else if (e.data.tools && e.data.tools == "43") {
  1859. U.MD.D.I.openApplication("studentEvaluate")
  1860. } else if (e.data.tools && e.data.tools == "44") {
  1861. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1862. } else if (e.data.tools && e.data.tools == "46") {
  1863. U.MD.D.I.openApplication("project")
  1864. } else if (e.data.tools && e.data.tools == "1s") {
  1865. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1866. } else if (e.data.tools && e.data.tools == "3s") {
  1867. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1868. } else if (e.data.tools && e.data.tools == "6s") {
  1869. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1870. } else if (e.data.tools && e.data.tools == "1studio") {
  1871. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1872. } else if (e.data.tools && e.data.tools == "3studio") {
  1873. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1874. } else if (e.data.tools && e.data.tools == "6studio") {
  1875. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1876. } else if (e.data.tools && e.data.tools == "3y") {
  1877. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1878. } else if (e.data.tools && e.data.tools == "1y") {
  1879. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1880. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1881. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1882. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1883. U.MD.D.I.openApplication("AIAnalyse")
  1884. } else if (e.data.tools && e.data.tools == "1teacher") {
  1885. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1886. } else if (e.data.tools && e.data.tools == "3teacher") {
  1887. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1888. } else if (e.data.tools && e.data.tools == "7teacher") {
  1889. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1890. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1891. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1892. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1893. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1894. } else if (e.data.tools && e.data.tools == "1E") {
  1895. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1896. } else if (e.data.tools && e.data.tools == "3E") {
  1897. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1898. } else if (e.data.tools && e.data.tools == "57y") {
  1899. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1900. } else if (e.data.tools && e.data.tools == "57u") {
  1901. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1902. } else if (e.data.tools && e.data.tools == "57teacher") {
  1903. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1904. }
  1905. });
  1906. U.MD.D.I.selectUser = function () {
  1907. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1908. if (res.value[0].length > 0) {
  1909. US.userInfo = res.value[0][0];
  1910. $(".userName")[0].innerHTML = US.userInfo.username;
  1911. }
  1912. }, [], { "type": "GET", "withCredentials": true });
  1913. }
  1914. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1915. var _userinfo = US.userInfo, //登录用户信息
  1916. _userid = US.userInfo.userid, //登录用户id
  1917. _oid = _userinfo.organizeid,
  1918. _type = US.userInfo.type,
  1919. _org = US.userInfo.org,
  1920. _role = US.userInfo.role,
  1921. _classId = US.userInfo.classid;
  1922. if (_type == 4) {
  1923. tType = 4
  1924. }
  1925. switch (str) {
  1926. case "studyDetailNT"://无终端模式
  1927. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1928. setTimeout(() => {
  1929. U.MD.U.L.login();
  1930. }, 2000);
  1931. } else {
  1932. _formdiv = new U.UF.UI.form(
  1933. "课程详情",
  1934. $$("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 }), {
  1935. "id": "studyDetailNT",
  1936. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1937. "onresize": function () { }
  1938. }, {
  1939. closecallback: function () { }
  1940. }, { "style": { "height": "36px" } }).form; //创建窗体
  1941. _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); } }
  1942. break;
  1943. }
  1944. case "studyDetail":
  1945. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1946. setTimeout(() => {
  1947. U.MD.U.L.login();
  1948. }, 2000);
  1949. } else {
  1950. _formdiv = new U.UF.UI.form(
  1951. "课程详情",
  1952. $$("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 }), {
  1953. "id": "studyDetail",
  1954. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1955. "onresize": function () { }
  1956. }, {
  1957. closecallback: function () { }
  1958. }, { "style": { "height": "36px" } }).form; //创建窗体
  1959. _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); } }
  1960. break;
  1961. }
  1962. case "studyDetailS":
  1963. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1964. setTimeout(() => {
  1965. U.MD.U.L.login();
  1966. }, 2000);
  1967. } else {
  1968. _formdiv = new U.UF.UI.form(
  1969. "项目详情",
  1970. $$("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 }), {
  1971. "id": "studyDetailS",
  1972. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1973. "onresize": function () { }
  1974. }, {
  1975. closecallback: function () { }
  1976. }, { "style": { "height": "36px" } }).form; //创建窗体
  1977. _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); } }
  1978. break;
  1979. }
  1980. case "studyDetailStudio":
  1981. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1982. setTimeout(() => {
  1983. U.MD.U.L.login();
  1984. }, 2000);
  1985. } else {
  1986. _formdiv = new U.UF.UI.form(
  1987. "工作详情",
  1988. $$("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 }), {
  1989. "id": "studyDetailStudio",
  1990. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1991. "onresize": function () { }
  1992. }, {
  1993. closecallback: function () { }
  1994. }, { "style": { "height": "36px" } }).form; //创建窗体
  1995. _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); } }
  1996. break;
  1997. }
  1998. case "studyDetailS5":
  1999. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2000. setTimeout(() => {
  2001. U.MD.U.L.login();
  2002. }, 2000);
  2003. } else {
  2004. _formdiv = new U.UF.UI.form(
  2005. "项目详情",
  2006. $$("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 }), {
  2007. "id": "studyDetailS",
  2008. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2009. "onresize": function () { }
  2010. }, {
  2011. closecallback: function () { }
  2012. }, { "style": { "height": "36px" } }).form; //创建窗体
  2013. _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); } }
  2014. break;
  2015. }
  2016. case "studyDetailGM":
  2017. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2018. setTimeout(() => {
  2019. U.MD.U.L.login();
  2020. }, 2000);
  2021. } else {
  2022. _formdiv = new U.UF.UI.form(
  2023. "课程详情",
  2024. $$("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 }), {
  2025. "id": "studyDetail",
  2026. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2027. "onresize": function () { }
  2028. }, {
  2029. closecallback: function () { }
  2030. }, { "style": { "height": "36px" } }).form; //创建窗体
  2031. _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); } }
  2032. break;
  2033. }
  2034. case "hanUrl":
  2035. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2036. setTimeout(() => {
  2037. U.MD.U.L.login();
  2038. }, 2000);
  2039. } else {
  2040. _formdiv = new U.UF.UI.form(
  2041. "汉字宫",
  2042. $$("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" }), {
  2043. "id": "hanUrl",
  2044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _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); } }
  2050. break;
  2051. }
  2052. }
  2053. }
  2054. U.MD.D.I.openApplication = function (str, obj, info) {
  2055. obj = obj || {};
  2056. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2057. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2058. _userinfo = US.userInfo, //登录用户信息
  2059. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2060. _oid = obj.organizeid || _userinfo.organizeid,
  2061. _type = US.userInfo.type,
  2062. _org = US.userInfo.org,
  2063. _role = US.userInfo.role,
  2064. _classId = US.userInfo.classid,
  2065. _TscreenType = 1
  2066. _screenType = 2,
  2067. _SscreenType = 3;
  2068. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2069. return;
  2070. }
  2071. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2072. switch (str) {
  2073. case "studnetProject": //好友打开
  2074. _formdiv = new U.UF.UI.form(
  2075. "我的项目",
  2076. $$("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 }), {
  2077. "id": "studnetProject",
  2078. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2079. "onresize": function () { }
  2080. }, {
  2081. closecallback: function () { }
  2082. }, { "style": { "height": "36px" } }).form; //创建窗体
  2083. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": "我的项目", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2084. break;
  2085. case "studentEvaluate": //好友打开
  2086. _formdiv = new U.UF.UI.form(
  2087. "我的评价",
  2088. $$("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 }), {
  2089. "id": "studentEvaluate",
  2090. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2091. "onresize": function () { }
  2092. }, {
  2093. closecallback: function () { }
  2094. }, { "style": { "height": "36px" } }).form; //创建窗体
  2095. _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); } }
  2096. break;
  2097. case "my":
  2098. _formdiv = new U.UF.UI.form(
  2099. "我的资料",
  2100. $$("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 }), {
  2101. "id": "my",
  2102. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2103. "onresize": function () { }
  2104. }, {
  2105. closecallback: function () { }
  2106. }, { "style": { "height": "36px" } }).form; //创建窗体
  2107. _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); } }
  2108. break;
  2109. case "program":
  2110. _formdiv = new U.UF.UI.form(
  2111. "编程平台",
  2112. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2113. "id": "program",
  2114. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2115. "onresize": function () { }
  2116. }, {
  2117. closecallback: function () { }
  2118. }, { "style": { "height": "36px" } }).form; //创建窗体
  2119. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2120. break;
  2121. case "library":
  2122. _formdiv = new U.UF.UI.form(
  2123. "素材库",
  2124. $$("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 }), {
  2125. "id": "library",
  2126. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2127. "onresize": function () { }
  2128. }, {
  2129. closecallback: function () { }
  2130. }, { "style": { "height": "36px" } }).form; //创建窗体
  2131. _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); } }
  2132. break;
  2133. case "whiteboard":
  2134. _formdiv = new U.UF.UI.form(
  2135. "电子白板",
  2136. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2137. "id": "whiteboard",
  2138. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2139. "onresize": function () { }
  2140. }, {
  2141. closecallback: function () { }
  2142. }, { "style": { "height": "36px" } }).form; //创建窗体
  2143. _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); } }
  2144. break;
  2145. case "investigation":
  2146. _formdiv = new U.UF.UI.form(
  2147. "问卷调查",
  2148. $$("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 }), {
  2149. "id": "investigation",
  2150. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2151. "onresize": function () { }
  2152. }, {
  2153. closecallback: function () { }
  2154. }, { "style": { "height": "36px" } }).form; //创建窗体
  2155. _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); } }
  2156. break;
  2157. case "note":
  2158. _formdiv = new U.UF.UI.form(
  2159. "便签分类",
  2160. $$("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 }), {
  2161. "id": "note",
  2162. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2163. "onresize": function () { }
  2164. }, {
  2165. closecallback: function () { }
  2166. }, { "style": { "height": "36px" } }).form; //创建窗体
  2167. _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); } }
  2168. break;
  2169. // case "score":
  2170. // _formdiv = new U.UF.UI.form(
  2171. // "量规评分",
  2172. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2173. // "id": "score",
  2174. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2175. // "onresize": function() {}
  2176. // }, {
  2177. // closecallback: function() {}
  2178. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2179. // _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); } }
  2180. // break;
  2181. case "mind":
  2182. _formdiv = new U.UF.UI.form(
  2183. "思维导图",
  2184. $$("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"
  2185. "id": "mind",
  2186. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2187. "onresize": function () { }
  2188. }, {
  2189. closecallback: function () { }
  2190. }, { "style": { "height": "36px" } }).form; //创建窗体
  2191. _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); } }
  2192. break;
  2193. case "doc":
  2194. // U.MD.D.I.isRoom();
  2195. _formdiv = new U.UF.UI.form(
  2196. "协同文档",
  2197. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2198. "id": "doc",
  2199. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2200. "onresize": function () { }
  2201. }, {
  2202. closecallback: function () { }
  2203. }, { "style": { "height": "36px" } }).form; //创建窗体
  2204. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2205. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2206. // })
  2207. _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); } }
  2208. break;
  2209. case "studentStudy":
  2210. _formdiv = new U.UF.UI.form(
  2211. "课程中心",
  2212. $$("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
  2213. "id": "studentStudy",
  2214. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2215. "onresize": function () { }
  2216. }, {
  2217. closecallback: function () { }
  2218. }, { "style": { "height": "36px" } }).form; //创建窗体
  2219. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2220. break;
  2221. case "train": //好友打开
  2222. _formdiv = new U.UF.UI.form(
  2223. "训练平台",
  2224. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2225. "id": "train",
  2226. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2227. "onresize": function () { }
  2228. }, {
  2229. closecallback: function () { }
  2230. }, { "style": { "height": "36px" } }).form; //创建窗体
  2231. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2232. break;
  2233. case "mindNetwork": //好友打开
  2234. _formdiv = new U.UF.UI.form(
  2235. "思维网格",
  2236. $$("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 }), {
  2237. "id": "mindNetwork",
  2238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2239. "onresize": function () { }
  2240. }, {
  2241. closecallback: function () { }
  2242. }, { "style": { "height": "36px" } }).form; //创建窗体
  2243. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2244. break;
  2245. case "studentClassRoom": //好友打开
  2246. _formdiv = new U.UF.UI.form(
  2247. "实时课堂",
  2248. $$("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 }), {
  2249. "id": "studentClassRoom",
  2250. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2251. "onresize": function () { }
  2252. }, {
  2253. closecallback: function () { }
  2254. }, { "style": { "height": "36px" } }).form; //创建窗体
  2255. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2256. setTimeout(() => {
  2257. U.UF.F.windowZooming(_formdiv)
  2258. }, 0);
  2259. break;
  2260. }
  2261. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2262. switch (str) {
  2263. case "studnetProject": //好友打开
  2264. _formdiv = new U.UF.UI.form(
  2265. "我的项目",
  2266. $$("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 }), {
  2267. "id": "studnetProject",
  2268. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2269. "onresize": function () { }
  2270. }, {
  2271. closecallback: function () { }
  2272. }, { "style": { "height": "36px" } }).form; //创建窗体
  2273. _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); } }
  2274. break;
  2275. case "studentEvaluate": //好友打开
  2276. _formdiv = new U.UF.UI.form(
  2277. "我的评价",
  2278. $$("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 }), {
  2279. "id": "studentEvaluate",
  2280. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2281. "onresize": function () { }
  2282. }, {
  2283. closecallback: function () { }
  2284. }, { "style": { "height": "36px" } }).form; //创建窗体
  2285. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "我的评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2286. break;
  2287. case "my":
  2288. _formdiv = new U.UF.UI.form(
  2289. "我的资料",
  2290. $$("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 }), {
  2291. "id": "my",
  2292. "style": { "width": "42%", "height": "90%", "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/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2298. break;
  2299. case "program":
  2300. _formdiv = new U.UF.UI.form(
  2301. "编程平台",
  2302. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2303. "id": "program",
  2304. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2305. "onresize": function () { }
  2306. }, {
  2307. closecallback: function () { }
  2308. }, { "style": { "height": "36px" } }).form; //创建窗体
  2309. _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); } }
  2310. break;
  2311. case "library":
  2312. _formdiv = new U.UF.UI.form(
  2313. "素材库",
  2314. $$("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 }), {
  2315. "id": "library",
  2316. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2317. "onresize": function () { }
  2318. }, {
  2319. closecallback: function () { }
  2320. }, { "style": { "height": "36px" } }).form; //创建窗体
  2321. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2322. break;
  2323. case "whiteboard":
  2324. _formdiv = new U.UF.UI.form(
  2325. "电子白板",
  2326. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2327. "id": "whiteboard",
  2328. "style": { "width": "90%", "height": "90%", "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/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2334. break;
  2335. case "investigation":
  2336. _formdiv = new U.UF.UI.form(
  2337. "问卷调查",
  2338. $$("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 }), {
  2339. "id": "investigation",
  2340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2341. "onresize": function () { }
  2342. }, {
  2343. closecallback: function () { }
  2344. }, { "style": { "height": "36px" } }).form; //创建窗体
  2345. _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); } }
  2346. break;
  2347. case "note":
  2348. _formdiv = new U.UF.UI.form(
  2349. "便签分类",
  2350. $$("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 }), {
  2351. "id": "note",
  2352. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2353. "onresize": function () { }
  2354. }, {
  2355. closecallback: function () { }
  2356. }, { "style": { "height": "36px" } }).form; //创建窗体
  2357. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2358. break;
  2359. // case "score":
  2360. // _formdiv = new U.UF.UI.form(
  2361. // "量规评分",
  2362. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2363. // "id": "score",
  2364. // "style": { "width": "90%", "height": "90%", "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/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2370. // break;
  2371. case "mind":
  2372. _formdiv = new U.UF.UI.form(
  2373. "思维导图",
  2374. $$("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"
  2375. "id": "mind",
  2376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2377. "onresize": function () { }
  2378. }, {
  2379. closecallback: function () { }
  2380. }, { "style": { "height": "36px" } }).form; //创建窗体
  2381. _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); } }
  2382. break;
  2383. case "doc":
  2384. // U.MD.D.I.isRoom();
  2385. _formdiv = new U.UF.UI.form(
  2386. "协同文档",
  2387. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2388. "id": "doc",
  2389. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2390. "onresize": function () { }
  2391. }, {
  2392. closecallback: function () { }
  2393. }, { "style": { "height": "36px" } }).form; //创建窗体
  2394. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2395. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2396. })
  2397. _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); } }
  2398. break;
  2399. case "train": //好友打开
  2400. _formdiv = new U.UF.UI.form(
  2401. "训练平台",
  2402. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2403. "id": "train",
  2404. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2405. "onresize": function () { }
  2406. }, {
  2407. closecallback: function () { }
  2408. }, { "style": { "height": "36px" } }).form; //创建窗体
  2409. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2410. break;
  2411. case "studentStudy":
  2412. _formdiv = new U.UF.UI.form(
  2413. "课程中心",
  2414. $$("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
  2415. "id": "studentStudy",
  2416. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2422. break;
  2423. case "mindNetwork": //好友打开
  2424. _formdiv = new U.UF.UI.form(
  2425. "思维网格",
  2426. $$("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 }), {
  2427. "id": "mindNetwork",
  2428. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2429. "onresize": function () { }
  2430. }, {
  2431. closecallback: function () { }
  2432. }, { "style": { "height": "36px" } }).form; //创建窗体
  2433. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2434. break;
  2435. case "studentClassRoom": //好友打开
  2436. _formdiv = new U.UF.UI.form(
  2437. "实时课堂",
  2438. $$("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 }), {
  2439. "id": "studentClassRoom",
  2440. "style": { "width": "90%", "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/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2446. setTimeout(() => {
  2447. U.UF.F.windowZooming(_formdiv)
  2448. }, 0);
  2449. break;
  2450. }
  2451. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2452. //选择应用处理
  2453. switch (str) {
  2454. case "project": //好友打开
  2455. _formdiv = new U.UF.UI.form(
  2456. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2457. $$("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 }), {
  2458. "id": "project",
  2459. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2460. "onresize": function () { }
  2461. }, {
  2462. closecallback: function () { }
  2463. }, { "style": { "height": "36px" } }).form; //创建窗体
  2464. _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); } }
  2465. break;
  2466. case "student":
  2467. _formdiv = new U.UF.UI.form(
  2468. "学生管理",
  2469. $$("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 }), {
  2470. "id": "student",
  2471. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2472. "onresize": function () { }
  2473. }, {
  2474. closecallback: function () { }
  2475. }, { "style": { "height": "36px" } }).form; //创建窗体
  2476. _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); } }
  2477. break;
  2478. case "evaluate":
  2479. _formdiv = new U.UF.UI.form(
  2480. "学生评价",
  2481. $$("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 }), {
  2482. "id": "evaluate",
  2483. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2484. "onresize": function () { }
  2485. }, {
  2486. closecallback: function () { }
  2487. }, { "style": { "height": "36px" } }).form; //创建窗体
  2488. _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); } }
  2489. break;
  2490. case "sys":
  2491. _formdiv = new U.UF.UI.form(
  2492. "目标管理",
  2493. $$("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 }), {
  2494. "id": "sys",
  2495. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2496. "onresize": function () { }
  2497. }, {
  2498. closecallback: function () { }
  2499. }, { "style": { "height": "36px" } }).form; //创建窗体
  2500. _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); } }
  2501. break;
  2502. case "courseDesign":
  2503. _formdiv = new U.UF.UI.form(
  2504. "项目设计",
  2505. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2506. "id": "courseDesign",
  2507. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2508. "onresize": function () { }
  2509. }, {
  2510. closecallback: function () { }
  2511. }, { "style": { "height": "36px" } }).form; //创建窗体
  2512. _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); } }
  2513. break;
  2514. case "program":
  2515. _formdiv = new U.UF.UI.form(
  2516. "编程平台",
  2517. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2518. "id": "program",
  2519. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2520. "onresize": function () { }
  2521. }, {
  2522. closecallback: function () { }
  2523. }, { "style": { "height": "36px" } }).form; //创建窗体
  2524. _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); } }
  2525. break;
  2526. case "class":
  2527. _formdiv = new U.UF.UI.form(
  2528. "班级管理",
  2529. $$("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 }), {
  2530. "id": "class",
  2531. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2532. "onresize": function () { }
  2533. }, {
  2534. closecallback: function () { }
  2535. }, { "style": { "height": "36px" } }).form; //创建窗体
  2536. _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); } }
  2537. break;
  2538. case "Grade":
  2539. _formdiv = new U.UF.UI.form(
  2540. "年级管理",
  2541. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2542. "id": "class",
  2543. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2544. "onresize": function () { }
  2545. }, {
  2546. closecallback: function () { }
  2547. }, { "style": { "height": "36px" } }).form; //创建窗体
  2548. _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); } }
  2549. break;
  2550. case "my":
  2551. _formdiv = new U.UF.UI.form(
  2552. "我的资料",
  2553. $$("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 }), {
  2554. "id": "my",
  2555. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2556. "onresize": function () { }
  2557. }, {
  2558. closecallback: function () { }
  2559. }, { "style": { "height": "36px" } }).form; //创建窗体
  2560. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2561. break;
  2562. case "notice":
  2563. _formdiv = new U.UF.UI.form(
  2564. "通知公告",
  2565. $$("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 }), {
  2566. "id": "notice",
  2567. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2568. "onresize": function () { }
  2569. }, {
  2570. closecallback: function () { }
  2571. }, { "style": { "height": "36px" } }).form; //创建窗体
  2572. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2573. break;
  2574. case "library":
  2575. _formdiv = new U.UF.UI.form(
  2576. "素材库",
  2577. $$("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 }), {
  2578. "id": "library",
  2579. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2580. "onresize": function () { }
  2581. }, {
  2582. closecallback: function () { }
  2583. }, { "style": { "height": "36px" } }).form; //创建窗体
  2584. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2585. break;
  2586. case "whiteboard":
  2587. _formdiv = new U.UF.UI.form(
  2588. "电子白板",
  2589. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2590. "id": "whiteboard",
  2591. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2592. "onresize": function () { }
  2593. }, {
  2594. closecallback: function () { }
  2595. }, { "style": { "height": "36px" } }).form; //创建窗体
  2596. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2597. break;
  2598. case "investigation":
  2599. _formdiv = new U.UF.UI.form(
  2600. "问卷调查",
  2601. $$("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 }), {
  2602. "id": "investigation",
  2603. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2604. "onresize": function () { }
  2605. }, {
  2606. closecallback: function () { }
  2607. }, { "style": { "height": "36px" } }).form; //创建窗体
  2608. _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); } }
  2609. break;
  2610. case "note":
  2611. _formdiv = new U.UF.UI.form(
  2612. "便签分类",
  2613. $$("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 }), {
  2614. "id": "note",
  2615. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2616. "onresize": function () { }
  2617. }, {
  2618. closecallback: function () { }
  2619. }, { "style": { "height": "36px" } }).form; //创建窗体
  2620. _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); } }
  2621. break;
  2622. // case "score":
  2623. // _formdiv = new U.UF.UI.form(
  2624. // "量规评分",
  2625. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2626. // "id": "score",
  2627. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2628. // "onresize": function() {}
  2629. // }, {
  2630. // closecallback: function() {}
  2631. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2632. // _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); } }
  2633. // break;
  2634. case "mind":
  2635. _formdiv = new U.UF.UI.form(
  2636. "思维导图",
  2637. $$("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"
  2638. "id": "mind",
  2639. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2640. "onresize": function () { }
  2641. }, {
  2642. closecallback: function () { }
  2643. }, { "style": { "height": "36px" } }).form; //创建窗体
  2644. _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); } }
  2645. break;
  2646. case "doc":
  2647. // U.MD.D.I.isRoom();
  2648. _formdiv = new U.UF.UI.form(
  2649. "协同文档",
  2650. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2651. "id": "doc",
  2652. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2653. "onresize": function () { }
  2654. }, {
  2655. closecallback: function () { }
  2656. }, { "style": { "height": "36px" } }).form; //创建窗体
  2657. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2658. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2659. })
  2660. _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); } }
  2661. break;
  2662. case "study":
  2663. _formdiv = new U.UF.UI.form(
  2664. "课程中心",
  2665. $$("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
  2666. "id": "study",
  2667. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2668. "onresize": function () { }
  2669. }, {
  2670. closecallback: function () { }
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2673. break;
  2674. case "mindNetwork": //好友打开
  2675. _formdiv = new U.UF.UI.form(
  2676. "思维网格",
  2677. $$("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 }), {
  2678. "id": "mindNetwork",
  2679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2680. "onresize": function () { }
  2681. }, {
  2682. closecallback: function () { }
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2685. break;
  2686. case "train": //好友打开
  2687. _formdiv = new U.UF.UI.form(
  2688. "训练平台",
  2689. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2690. "id": "mindNetwork",
  2691. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function () { }
  2693. }, {
  2694. closecallback: function () { }
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2697. break;
  2698. case "teacherClassRoom": //好友打开
  2699. _formdiv = new U.UF.UI.form(
  2700. "实时课堂",
  2701. $$("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 }), {
  2702. "id": "teacherClassRoom",
  2703. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. "onresize": function () { }
  2705. }, {
  2706. closecallback: function () { }
  2707. }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2709. setTimeout(() => {
  2710. U.UF.F.windowZooming(_formdiv)
  2711. }, 0);
  2712. break;
  2713. }
  2714. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2715. switch (str) {
  2716. case "project": //好友打开
  2717. _formdiv = new U.UF.UI.form(
  2718. "课程管理",
  2719. $$("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 }), {
  2720. "id": "project",
  2721. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2722. "onresize": function () { }
  2723. }, {
  2724. closecallback: function () { }
  2725. }, { "style": { "height": "36px" } }).form; //创建窗体
  2726. _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); } }
  2727. break;
  2728. case "evaluate":
  2729. _formdiv = new U.UF.UI.form(
  2730. "学生评价",
  2731. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2732. "id": "evaluate",
  2733. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2734. "onresize": function () { }
  2735. }, {
  2736. closecallback: function () { }
  2737. }, { "style": { "height": "36px" } }).form; //创建窗体
  2738. _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); } }
  2739. break;
  2740. case "notice":
  2741. _formdiv = new U.UF.UI.form(
  2742. "通知公告",
  2743. $$("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 }), {
  2744. "id": "notice",
  2745. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2746. "onresize": function () { }
  2747. }, {
  2748. closecallback: function () { }
  2749. }, { "style": { "height": "36px" } }).form; //创建窗体
  2750. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "通知公告", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2751. break;
  2752. case "stuLibrary":
  2753. _formdiv = new U.UF.UI.form(
  2754. "学习资料",
  2755. $$("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 }), {
  2756. "id": "stuLibrary",
  2757. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2758. "onresize": function () { }
  2759. }, {
  2760. closecallback: function () { }
  2761. }, { "style": { "height": "36px" } }).form; //创建窗体
  2762. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/stuLibrary.png)" }, "name": "学习资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2763. break;
  2764. case "program":
  2765. _formdiv = new U.UF.UI.form(
  2766. "编程平台",
  2767. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2768. "id": "program",
  2769. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2770. "onresize": function () { }
  2771. }, {
  2772. closecallback: function () { }
  2773. }, { "style": { "height": "36px" } }).form; //创建窗体
  2774. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2775. break;
  2776. case "whiteboard":
  2777. _formdiv = new U.UF.UI.form(
  2778. "电子白板",
  2779. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2780. "id": "whiteboard",
  2781. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2782. "onresize": function () { }
  2783. }, {
  2784. closecallback: function () { }
  2785. }, { "style": { "height": "36px" } }).form; //创建窗体
  2786. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2787. break;
  2788. case "investigation":
  2789. _formdiv = new U.UF.UI.form(
  2790. "问卷调查",
  2791. $$("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 }), {
  2792. "id": "investigation",
  2793. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2794. "onresize": function () { }
  2795. }, {
  2796. closecallback: function () { }
  2797. }, { "style": { "height": "36px" } }).form; //创建窗体
  2798. _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); } }
  2799. break;
  2800. case "mind":
  2801. _formdiv = new U.UF.UI.form(
  2802. "思维导图",
  2803. $$("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"
  2804. "id": "mind",
  2805. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2806. "onresize": function () { }
  2807. }, {
  2808. closecallback: function () { }
  2809. }, { "style": { "height": "36px" } }).form; //创建窗体
  2810. _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); } }
  2811. break;
  2812. case "doc":
  2813. // U.MD.D.I.isRoom();
  2814. _formdiv = new U.UF.UI.form(
  2815. "协同文档",
  2816. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2817. "id": "doc",
  2818. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2819. "onresize": function () { }
  2820. }, {
  2821. closecallback: function () { }
  2822. }, { "style": { "height": "36px" } }).form; //创建窗体
  2823. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2824. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2825. })
  2826. _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); } }
  2827. break;
  2828. case "study":
  2829. _formdiv = new U.UF.UI.form(
  2830. "课程中心",
  2831. $$("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
  2832. "id": "study",
  2833. "style": { "width": "100%", "height": "100%", "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/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2839. break;
  2840. case "mindNetwork": //好友打开
  2841. _formdiv = new U.UF.UI.form(
  2842. "思维网格",
  2843. $$("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 }), {
  2844. "id": "mindNetwork",
  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/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2851. break;
  2852. case "train": //好友打开
  2853. _formdiv = new U.UF.UI.form(
  2854. "训练平台",
  2855. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2856. "id": "train",
  2857. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2858. "onresize": function () { }
  2859. }, {
  2860. closecallback: function () { }
  2861. }, { "style": { "height": "36px" } }).form; //创建窗体
  2862. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2863. break;
  2864. case "sys":
  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/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2868. "id": "sys",
  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/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2875. break;
  2876. case "courseDesign":
  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": "/course-design-vue" }), {
  2880. "id": "courseDesign",
  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/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2887. break;
  2888. }
  2889. } else if (!_type) {
  2890. switch (str) {
  2891. case "my":
  2892. _formdiv = new U.UF.UI.form(
  2893. "我的资料",
  2894. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2895. "id": "my",
  2896. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2897. "onresize": function () { }
  2898. }, {
  2899. closecallback: function () { }
  2900. }, { "style": { "height": "36px" } }).form; //创建窗体
  2901. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2902. break;
  2903. }
  2904. }
  2905. switch (str) {
  2906. // AIprogram2 AI体验 aihub.cocorobo.cn
  2907. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2908. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2909. case "AIprogram2": //AI体验
  2910. _formdiv = new U.UF.UI.form(
  2911. "AI体验",
  2912. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2913. "id": "AIprogram2",
  2914. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2915. "onresize": function () { }
  2916. }, {
  2917. closecallback: function () { }
  2918. }, { "style": { "height": "36px" } }).form; //创建窗体
  2919. _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); } }
  2920. break;
  2921. case "Pythonprogram": //python编程
  2922. _formdiv = new U.UF.UI.form(
  2923. "Python编程",
  2924. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2925. "id": "Pythonprogram",
  2926. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2927. "onresize": function () { }
  2928. }, {
  2929. closecallback: function () { }
  2930. }, { "style": { "height": "36px" } }).form; //创建窗体
  2931. _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); } }
  2932. break;
  2933. case "AIprogram": //ai编程
  2934. _formdiv = new U.UF.UI.form(
  2935. "AI编程平台",
  2936. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2937. "id": "AIprogram",
  2938. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2939. "onresize": function () { }
  2940. }, {
  2941. closecallback: function () { }
  2942. }, { "style": { "height": "36px" } }).form; //创建窗体
  2943. _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); } }
  2944. break;
  2945. case "CocoPi": //CocoPi
  2946. _formdiv = new U.UF.UI.form(
  2947. "CocoPi",
  2948. $$("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://v.cocorobo.cn" }), {
  2949. "id": "CocoPi",
  2950. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2951. "onresize": function () { }
  2952. }, {
  2953. closecallback: function () { }
  2954. }, { "style": { "height": "36px" } }).form; //创建窗体
  2955. _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); } }
  2956. break;
  2957. case "Wood": //Wood
  2958. _formdiv = new U.UF.UI.form(
  2959. "海龟编程",
  2960. $$("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/" }), {
  2961. "id": "Wood",
  2962. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2963. "onresize": function () { }
  2964. }, {
  2965. closecallback: function () { }
  2966. }, { "style": { "height": "36px" } }).form; //创建窗体
  2967. _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); } }
  2968. break;
  2969. case "car": //模拟驾驶
  2970. _formdiv = new U.UF.UI.form(
  2971. "模拟驾驶",
  2972. $$("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/" }), {
  2973. "id": "car",
  2974. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2975. "onresize": function () { }
  2976. }, {
  2977. closecallback: function () { }
  2978. }, { "style": { "height": "36px" } }).form; //创建窗体
  2979. _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); } }
  2980. break;
  2981. case "lineSearch": //路径搜索
  2982. _formdiv = new U.UF.UI.form(
  2983. "路径搜索",
  2984. $$("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/" }), {
  2985. "id": "lineSearch",
  2986. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2987. "onresize": function () { }
  2988. }, {
  2989. closecallback: function () { }
  2990. }, { "style": { "height": "36px" } }).form; //创建窗体
  2991. _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); } }
  2992. break;
  2993. case "deepLearning": //深度学习
  2994. _formdiv = new U.UF.UI.form(
  2995. "深度学习",
  2996. $$("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/#" }), {
  2997. "id": "deepLearning",
  2998. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2999. "onresize": function () { }
  3000. }, {
  3001. closecallback: function () { }
  3002. }, { "style": { "height": "36px" } }).form; //创建窗体
  3003. _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); } }
  3004. break;
  3005. case "allHistory": //深度学习
  3006. _formdiv = new U.UF.UI.form(
  3007. "全历史",
  3008. $$("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/" }), {
  3009. "id": "allHistory",
  3010. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3011. "onresize": function () { }
  3012. }, {
  3013. closecallback: function () { }
  3014. }, { "style": { "height": "36px" } }).form; //创建窗体
  3015. _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); } }
  3016. break;
  3017. case "chatPDF": //ai编程
  3018. _formdiv = new U.UF.UI.form(
  3019. "chatPDF",
  3020. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3021. "id": "chatPDF",
  3022. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3023. "onresize": function () { }
  3024. }, {
  3025. closecallback: function () { }
  3026. }, { "style": { "height": "36px" } }).form; //创建窗体
  3027. _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); } }
  3028. break;
  3029. case "resources": //国家教育
  3030. _formdiv = new U.UF.UI.form(
  3031. "国家教育",
  3032. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3033. "id": "resources",
  3034. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3035. "onresize": function () { }
  3036. }, {
  3037. closecallback: function () { }
  3038. }, { "style": { "height": "36px" } }).form; //创建窗体
  3039. _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); } }
  3040. break;
  3041. case "codeEdit": //源码编辑
  3042. _formdiv = new U.UF.UI.form(
  3043. "源码编辑",
  3044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3045. "id": "codeEdit",
  3046. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3047. "onresize": function () { }
  3048. }, {
  3049. closecallback: function () { }
  3050. }, { "style": { "height": "36px" } }).form; //创建窗体
  3051. _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); } }
  3052. break; //
  3053. case "MindMap": //MindMap
  3054. _formdiv = new U.UF.UI.form(
  3055. "MindMap",
  3056. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3057. "id": "MindMap",
  3058. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3059. "onresize": function () { }
  3060. }, {
  3061. closecallback: function () { }
  3062. }, { "style": { "height": "36px" } }).form; //创建窗体
  3063. _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); } }
  3064. break;
  3065. case "netWorkPanel": //netWorkPanel
  3066. _formdiv = new U.UF.UI.form(
  3067. "netWorkPanel",
  3068. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3069. "id": "netWorkPanel",
  3070. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3071. "onresize": function () { }
  3072. }, {
  3073. closecallback: function () { }
  3074. }, { "style": { "height": "36px" } }).form; //创建窗体
  3075. _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); } }
  3076. break;
  3077. case "GeoGebra": //GeoGebra
  3078. _formdiv = new U.UF.UI.form(
  3079. "GeoGebra",
  3080. $$("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" }), {
  3081. "id": "GeoGebra",
  3082. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3083. "onresize": function () { }
  3084. }, {
  3085. closecallback: function () { }
  3086. }, { "style": { "height": "36px" } }).form; //创建窗体
  3087. _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); } }
  3088. break;
  3089. case "translation": //翻译
  3090. _formdiv = new U.UF.UI.form(
  3091. "翻译",
  3092. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3093. "id": "translation",
  3094. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3095. "onresize": function () { }
  3096. }, {
  3097. closecallback: function () { }
  3098. }, { "style": { "height": "36px" } }).form; //创建窗体
  3099. _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); } }
  3100. break;
  3101. case "mohe": //魔盒
  3102. _formdiv = new U.UF.UI.form(
  3103. "魔盒识字",
  3104. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3105. "id": "mohe",
  3106. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3107. "onresize": function () { }
  3108. }, {
  3109. closecallback: function () { }
  3110. }, { "style": { "height": "36px" } }).form; //创建窗体
  3111. _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); } }
  3112. break;
  3113. case "24game": //24点
  3114. _formdiv = new U.UF.UI.form(
  3115. "24点",
  3116. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3117. "id": "24game",
  3118. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3119. "onresize": function () { }
  3120. }, {
  3121. closecallback: function () { }
  3122. }, { "style": { "height": "36px" } }).form; //创建窗体
  3123. _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); } }
  3124. break;
  3125. case "case":
  3126. _formdiv = new U.UF.UI.form(
  3127. "课程进展",
  3128. $$("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 }), {
  3129. "id": "case",
  3130. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3131. "onresize": function () { }
  3132. }, {
  3133. closecallback: function () { }
  3134. }, { "style": { "height": "36px" } }).form; //创建窗体
  3135. _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); } }
  3136. break;
  3137. case "snf":
  3138. _formdiv = new U.UF.UI.form(
  3139. "赛诺梵",
  3140. $$("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" }), {
  3141. "id": "snf",
  3142. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3143. "onresize": function () { }
  3144. }, {
  3145. closecallback: function () { }
  3146. }, { "style": { "height": "36px" } }).form; //创建窗体
  3147. _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); } }
  3148. break;
  3149. case "hanFamily":
  3150. _formdiv = new U.UF.UI.form(
  3151. "汉字家族",
  3152. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3153. "id": "hanFamily",
  3154. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3155. "onresize": function () { }
  3156. }, {
  3157. closecallback: function () { }
  3158. }, { "style": { "height": "36px" } }).form; //创建窗体
  3159. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3160. break;
  3161. case "hanClassics":
  3162. _formdiv = new U.UF.UI.form(
  3163. "国学经典",
  3164. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3165. "id": "hanClassics",
  3166. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3167. "onresize": function () { }
  3168. }, {
  3169. closecallback: function () { }
  3170. }, { "style": { "height": "36px" } }).form; //创建窗体
  3171. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3172. break;
  3173. case "hanTraining":
  3174. _formdiv = new U.UF.UI.form(
  3175. "笔画训练",
  3176. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3177. "id": "hanTraining",
  3178. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3179. "onresize": function () { }
  3180. }, {
  3181. closecallback: function () { }
  3182. }, { "style": { "height": "36px" } }).form; //创建窗体
  3183. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3184. break;
  3185. case "hanClass":
  3186. _formdiv = new U.UF.UI.form(
  3187. "书法课堂",
  3188. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3189. "id": "hanClass",
  3190. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3191. "onresize": function () { }
  3192. }, {
  3193. closecallback: function () { }
  3194. }, { "style": { "height": "36px" } }).form; //创建窗体
  3195. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3196. break;
  3197. case "han":
  3198. _formdiv = new U.UF.UI.form(
  3199. "汉字宫",
  3200. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3201. "id": "han",
  3202. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3203. "onresize": function () { }
  3204. }, {
  3205. closecallback: function () { }
  3206. }, { "style": { "height": "36px" } }).form; //创建窗体
  3207. _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); } }
  3208. break;
  3209. case "projectGM": //课程管理
  3210. _formdiv = new U.UF.UI.form(
  3211. "课程管理",
  3212. $$("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 }), {
  3213. "id": "projectGM",
  3214. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3215. "onresize": function () { }
  3216. }, {
  3217. closecallback: function () { }
  3218. }, { "style": { "height": "36px" } }).form; //创建窗体
  3219. _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); } }
  3220. break;
  3221. case "studyGM"://课程中心
  3222. _formdiv = new U.UF.UI.form(
  3223. "课程中心",
  3224. $$("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
  3225. "id": "study",
  3226. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3227. "onresize": function () { }
  3228. }, {
  3229. closecallback: function () { }
  3230. }, { "style": { "height": "36px" } }).form; //创建窗体
  3231. _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); } }
  3232. break;
  3233. // studentGM
  3234. case "studentGM"://学生管理
  3235. _formdiv = new U.UF.UI.form(
  3236. "学生管理",
  3237. $$("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 }), {
  3238. "id": "studentGM",
  3239. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3240. "onresize": function () { }
  3241. }, {
  3242. closecallback: function () { }
  3243. }, { "style": { "height": "36px" } }).form; //创建窗体
  3244. _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); } }
  3245. break;
  3246. case "evaluateGM"://学生评价
  3247. _formdiv = new U.UF.UI.form(
  3248. "学生评价",
  3249. $$("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 }), {
  3250. "id": "evaluateGM",
  3251. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3252. "onresize": function () { }
  3253. }, {
  3254. closecallback: function () { }
  3255. }, { "style": { "height": "36px" } }).form; //创建窗体
  3256. _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); } }
  3257. break;
  3258. // classGM
  3259. case "classGM"://班级管理
  3260. _formdiv = new U.UF.UI.form(
  3261. "班级管理",
  3262. $$("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 }), {
  3263. "id": "classGM",
  3264. "style": { "width": "90%", "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/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3270. break;
  3271. // dataGM
  3272. case "dataGM":
  3273. _formdiv = new U.UF.UI.form(
  3274. "我的资料",
  3275. $$("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 }), {
  3276. "id": "dataGM",
  3277. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3278. "onresize": function () { }
  3279. }, {
  3280. closecallback: function () { }
  3281. }, { "style": { "height": "36px" } }).form; //创建窗体
  3282. _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); } }
  3283. break;
  3284. // caseGM
  3285. case "caseGM"://课程进展
  3286. _formdiv = new U.UF.UI.form(
  3287. "课程进展",
  3288. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3289. "id": "caseGM",
  3290. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3291. "onresize": function () { }
  3292. }, {
  3293. closecallback: function () { }
  3294. }, { "style": { "height": "36px" } }).form; //创建窗体
  3295. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3296. break;
  3297. // meterialGM
  3298. case "meterialGM"://素材库
  3299. _formdiv = new U.UF.UI.form(
  3300. "素材库",
  3301. $$("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 }), {
  3302. "id": "meterialGM",
  3303. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3304. "onresize": function () { }
  3305. }, {
  3306. closecallback: function () { }
  3307. }, { "style": { "height": "36px" } }).form; //创建窗体
  3308. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3309. break;
  3310. // evaluateSGM
  3311. case "evaluateSGM": //我的评价
  3312. _formdiv = new U.UF.UI.form(
  3313. "我的评价",
  3314. $$("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 }), {
  3315. "id": "evaluateSGM",
  3316. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3317. "onresize": function () { }
  3318. }, {
  3319. closecallback: function () { }
  3320. }, { "style": { "height": "36px" } }).form; //创建窗体
  3321. _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); } }
  3322. break;
  3323. case "jupyter": //jupyter
  3324. _formdiv = new U.UF.UI.form(
  3325. "jupyter",
  3326. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3327. "id": "jupyter",
  3328. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3329. "onresize": function () { }
  3330. }, {
  3331. closecallback: function () { }
  3332. }, { "style": { "height": "36px" } }).form; //创建窗体
  3333. _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); } }
  3334. break;
  3335. case "number": //数字实验室
  3336. _formdiv = new U.UF.UI.form(
  3337. "数字实验室",
  3338. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3339. "id": "number",
  3340. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3341. "onresize": function () { }
  3342. }, {
  3343. closecallback: function () { }
  3344. }, { "style": { "height": "36px" } }).form; //创建窗体
  3345. _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); } }
  3346. break;
  3347. case "studentCourse": //项目管理 学生
  3348. _formdiv = new U.UF.UI.form(
  3349. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3350. $$("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 }), {
  3351. "id": "studentCourse",
  3352. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3353. "onresize": function () { }
  3354. }, {
  3355. closecallback: function () { }
  3356. }, { "style": { "height": "36px" } }).form; //创建窗体
  3357. _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); } }
  3358. break;
  3359. case "studentCourseS": //项目管理 老师
  3360. _formdiv = new U.UF.UI.form(
  3361. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3362. $$("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 }), {
  3363. "id": "studentCourseS",
  3364. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3365. "onresize": function () { }
  3366. }, {
  3367. closecallback: function () { }
  3368. }, { "style": { "height": "36px" } }).form; //创建窗体
  3369. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/studentCourse.png)" }, "name": "项目管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3370. break;
  3371. case "studentIndex": //项目中心
  3372. _formdiv = new U.UF.UI.form(
  3373. "项目中心",
  3374. $$("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 }), {
  3375. "id": "studentIndex",
  3376. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3377. "onresize": function () { }
  3378. }, {
  3379. closecallback: function () { }
  3380. }, { "style": { "height": "36px" } }).form; //创建窗体
  3381. _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); } }
  3382. break;
  3383. case "CaseDesignS":
  3384. _formdiv = new U.UF.UI.form(
  3385. "项目进展",
  3386. $$("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 }), {
  3387. "id": "case",
  3388. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3389. "onresize": function () { }
  3390. }, {
  3391. closecallback: function () { }
  3392. }, { "style": { "height": "36px" } }).form; //创建窗体
  3393. _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); } }
  3394. break;
  3395. case "tcStudent": //腾讯学生管理
  3396. _formdiv = new U.UF.UI.form(
  3397. "学生管理",
  3398. $$("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 }), {
  3399. "id": "tcStudent",
  3400. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3401. "onresize": function () { }
  3402. }, {
  3403. closecallback: function () { }
  3404. }, { "style": { "height": "36px" } }).form; //创建窗体
  3405. _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); } }
  3406. break;
  3407. case "tcSchool": //腾讯学校管理
  3408. _formdiv = new U.UF.UI.form(
  3409. "学校管理",
  3410. $$("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 }), {
  3411. "id": "tcSchool",
  3412. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3413. "onresize": function () { }
  3414. }, {
  3415. closecallback: function () { }
  3416. }, { "style": { "height": "36px" } }).form; //创建窗体
  3417. _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); } }
  3418. break;
  3419. case "tcTeacher": //腾讯学校管理
  3420. _formdiv = new U.UF.UI.form(
  3421. "教师管理",
  3422. $$("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 }), {
  3423. "id": "tcTeacher",
  3424. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3425. "onresize": function () { }
  3426. }, {
  3427. closecallback: function () { }
  3428. }, { "style": { "height": "36px" } }).form; //创建窗体
  3429. _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); } }
  3430. break;
  3431. case "tcData": //腾讯我的资料
  3432. _formdiv = new U.UF.UI.form(
  3433. "我的资料",
  3434. $$("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 }), {
  3435. "id": "tcData",
  3436. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3437. "onresize": function () { }
  3438. }, {
  3439. closecallback: function () { }
  3440. }, { "style": { "height": "36px" } }).form; //创建窗体
  3441. _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); } }
  3442. break;
  3443. case "tcNotice": //腾讯消息通知
  3444. _formdiv = new U.UF.UI.form(
  3445. "消息通知",
  3446. $$("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 }), {
  3447. "id": "tcNotice",
  3448. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3449. "onresize": function () { }
  3450. }, {
  3451. closecallback: function () { }
  3452. }, { "style": { "height": "36px" } }).form; //创建窗体
  3453. _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); } }
  3454. break;
  3455. case "myReport": //好友打开
  3456. _formdiv = new U.UF.UI.form(
  3457. "我的评价",
  3458. $$("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 }), {
  3459. "id": "myReport",
  3460. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3461. "onresize": function () { }
  3462. }, {
  3463. closecallback: function () { }
  3464. }, { "style": { "height": "36px" } }).form; //创建窗体
  3465. _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); } }
  3466. break;
  3467. case "learnAna": //好友打开
  3468. _formdiv = new U.UF.UI.form(
  3469. "学习分析",
  3470. $$("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 }), {
  3471. "id": "learnAna",
  3472. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3473. "onresize": function () { }
  3474. }, {
  3475. closecallback: function () { }
  3476. }, { "style": { "height": "36px" } }).form; //创建窗体
  3477. _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); } }
  3478. break;
  3479. case "AIChat": //AI共创
  3480. _formdiv = new U.UF.UI.form(
  3481. "AI共创",
  3482. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3483. "id": "AIChat",
  3484. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3485. "onresize": function () { }
  3486. }, {
  3487. istop: true,
  3488. closecallback: function () { $("#aichat_icon").remove(); },
  3489. narrowcallback: function () {
  3490. if (!$("#aichat_icon")[0]) {
  3491. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3492. }
  3493. },
  3494. }, { "style": { "height": "36px" } }).form; //创建窗体
  3495. _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); } }
  3496. break;
  3497. case "AIAnalyse": //AI共创
  3498. _formdiv = new U.UF.UI.form(
  3499. "AI分析",
  3500. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3501. "id": "AIAnalyse",
  3502. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3503. "onresize": function () { }
  3504. }, {
  3505. closecallback: function () { }
  3506. }, { "style": { "height": "36px" } }).form; //创建窗体
  3507. _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); } }
  3508. break;
  3509. case "studioCourse": //AI共创
  3510. _formdiv = new U.UF.UI.form(
  3511. "工作管理",
  3512. $$("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 }), {
  3513. "id": "studioCourse",
  3514. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3515. "onresize": function () { }
  3516. }, {
  3517. closecallback: function () { }
  3518. }, { "style": { "height": "36px" } }).form; //创建窗体
  3519. _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); } }
  3520. break;
  3521. case "studioIndex": //AI共创
  3522. _formdiv = new U.UF.UI.form(
  3523. "工作中心",
  3524. $$("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 }), {
  3525. "id": "studioIndex",
  3526. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3527. "onresize": function () { }
  3528. }, {
  3529. closecallback: function () { }
  3530. }, { "style": { "height": "36px" } }).form; //创建窗体
  3531. _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); } }
  3532. break;
  3533. case "source":
  3534. _formdiv = new U.UF.UI.form(
  3535. "教学资源",
  3536. $$("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 }), {
  3537. "id": "source",
  3538. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3539. "onresize": function () { }
  3540. }, {
  3541. closecallback: function () { }
  3542. }, { "style": { "height": "36px" } }).form; //创建窗体
  3543. _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); } }
  3544. break;
  3545. }
  3546. //U.MD.D.I.openClick(str);
  3547. //如果有任务栏信息
  3548. if (_taskbar) {
  3549. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3550. }
  3551. }
  3552. // U.MD.D.I.openClick = function(str){
  3553. // var click = '';
  3554. // switch(str){
  3555. // case 'friend':
  3556. // click = '我的好友';
  3557. // break;
  3558. // case 'domain':
  3559. // click = '域名管理';
  3560. // break;
  3561. // case 'disk':
  3562. // click = '我的云盘';
  3563. // break;
  3564. // case 'word':
  3565. // click = 'Word';
  3566. // break;
  3567. // case 'excel':
  3568. // click = 'Execl';
  3569. // break;
  3570. // case 'txt':
  3571. // click = '文本文件';
  3572. // break;
  3573. // case 'lookupFriend':
  3574. // click = '查找好友';
  3575. // break;
  3576. // case 'ftp':
  3577. // click = 'FTP';
  3578. // break;
  3579. // case 'group':
  3580. // click = '群组';
  3581. // break;
  3582. // case 'set':
  3583. // click = '我的设置';
  3584. // break;
  3585. // case 'systemSet':
  3586. // click = '系统设置';
  3587. // break;
  3588. // case 'boomYun':
  3589. // click = '互联办公';
  3590. // break;
  3591. // case 'xz':
  3592. // click = '云端下载';
  3593. // break;
  3594. // case 'client':
  3595. // click = '有思浏览器';
  3596. // break;
  3597. // case 'backEndProgramming':
  3598. // click = '在线后台编程';
  3599. // break;
  3600. // case 'frontEndProgramming':
  3601. // click = '在线前端编程';
  3602. // break;
  3603. // default: break;
  3604. // }
  3605. // if(U.MD.D.I.Ip && click){
  3606. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3607. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3608. // })
  3609. // }
  3610. // }
  3611. /**
  3612. *函数作用:ajax简易函数,使用post格式
  3613. *@param url {data} 后台地址
  3614. *@param data {data} 参数json
  3615. *@param fn {data} 回调函数
  3616. *
  3617. */
  3618. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3619. // var xhr = new XMLHttpRequest();
  3620. // xhr.open("GET",url,true);
  3621. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3622. // xhr.onreadystatechange = function(){
  3623. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3624. // fn.call(this,xhr.responseText);
  3625. // }
  3626. // };
  3627. // xhr.send();
  3628. // }
  3629. /*判断是否是内网IP*/
  3630. // U.MD.D.I.isInnerIPFn = function(str){
  3631. // var curPageUrl = str;
  3632. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3633. // curPageUrl =curPageUrl.replace(reg1,'');
  3634. // // console.log('curPageUrl-1 '+curPageUrl);
  3635. // var reg2 = /\:+/g;//替换冒号为一点
  3636. // curPageUrl =curPageUrl.replace(reg2,'.');
  3637. // // console.log('curPageUrl-2 '+curPageUrl);
  3638. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3639. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3640. // if(curPageUrl[2] != '16'){
  3641. // return ipAddress;
  3642. // }else{
  3643. // return false;
  3644. // }
  3645. // }
  3646. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3647. // //compatibility for firefox and chrome
  3648. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3649. // var pc = new myPeerConnection({
  3650. // iceServers: []
  3651. // }),
  3652. // noop = function() {},
  3653. // localIPs = {},
  3654. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3655. // key;
  3656. // function iterateIP(ip) {
  3657. // if (!localIPs[ip]) onNewIP(ip);
  3658. // localIPs[ip] = true;
  3659. // }
  3660. // //create a bogus data channel
  3661. // pc.createDataChannel("");
  3662. // // create offer and set local description
  3663. // pc.createOffer().then(function(sdp) {
  3664. // sdp.sdp.split('\n').forEach(function(line) {
  3665. // if (line.indexOf('candidate') < 0) return;
  3666. // line.match(ipRegex).forEach(iterateIP);
  3667. // });
  3668. // pc.setLocalDescription(sdp, noop, noop);
  3669. // }).catch(function(reason) {
  3670. // // An error occurred, so handle the failure to connect
  3671. // });
  3672. // //sten for candidate events
  3673. // pc.onicecandidate = function(ice) {
  3674. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3675. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3676. // };
  3677. // }
  3678. // U.MD.D.I.getUserIpBool = function(callback){
  3679. // U.MD.D.I.getUserIP(function(ip){
  3680. // alert("Got IP! :" + ip);
  3681. // });
  3682. //}
  3683. //#endregion
  3684. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3685. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3686. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3687. _userinfo = US.userInfo, //登录用户信息
  3688. _userid = US.userInfo.userid //登录用户id
  3689. let _iframe;
  3690. let _cid = cid,
  3691. _stage = stage,
  3692. _task = task,
  3693. _tool = tool;
  3694. var _jie = $$("div", {
  3695. "style": {
  3696. "position": "absolute",
  3697. "bottom": "50px",
  3698. "right": "50px",
  3699. "zIndex": "9999",
  3700. "backgroundColor": "#2268bc",
  3701. "color": "#fff",
  3702. "padding": "12px 20px",
  3703. "cursor": "pointer",
  3704. "borderRadius": "4px",
  3705. },
  3706. "innerHTML": "提交作业"
  3707. })
  3708. let aTool = ''
  3709. let _loading = document.createElement('div')
  3710. _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;"
  3711. // _loading.id = "";
  3712. let _lchild = document.createElement('div')
  3713. let _limg = document.createElement('img')
  3714. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3715. _limg.style = "width: 26px;margin-right: 10px;"
  3716. _lchild.appendChild(_limg)
  3717. let _lspan = document.createElement('span')
  3718. _lspan.innerHTML = "上传中..."
  3719. _lchild.appendChild(_lspan)
  3720. _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%);"
  3721. _loading.appendChild(_lchild)
  3722. var _box = $$('div', {
  3723. "style": {
  3724. "position": "relative",
  3725. "width": "100%",
  3726. "height": "100%",
  3727. },
  3728. })
  3729. _box.appendChild(_loading)
  3730. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3731. switch (str) {
  3732. case "whiteboard":
  3733. aTool = 1;
  3734. _iframe = $$("iframe", {
  3735. "frameborder": "no",
  3736. "border": "0",
  3737. "scrolling ": "no",
  3738. "style": {
  3739. "cssText": "border:0;width:100%;height:100%"
  3740. },
  3741. "src": "https://iwb.cocorobo.cn/"
  3742. })
  3743. _box.appendChild(_iframe);
  3744. _box.appendChild(_jie);
  3745. _formdiv = new U.UF.UI.form(
  3746. "电子白板",
  3747. _box, {
  3748. "id": "whiteboard" + cid + stage + task + tool,
  3749. "style": {
  3750. "width": "90%",
  3751. "height": "90%",
  3752. "overflow": 'hidden'
  3753. },
  3754. "onresize": function () { }
  3755. }, {
  3756. closecallback: function () { }
  3757. }, {
  3758. "style": {
  3759. "height": "36px"
  3760. }
  3761. }).form; //创建窗体
  3762. _taskbar = {
  3763. "id": str + _formdiv.id,
  3764. "style": {
  3765. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3766. },
  3767. "name": "电子白板",
  3768. "forms": _formdiv,
  3769. "click": function () {
  3770. U.MD.D.I.openApplication(str, obj, info);
  3771. }
  3772. }
  3773. break;
  3774. case "mind":
  3775. aTool = 3;
  3776. _iframe = $$("iframe", {
  3777. "frameborder": "no",
  3778. "border": "0",
  3779. "scrolling ": "no",
  3780. "style": {
  3781. "cssText": "border:0;width:100%;height:100%"
  3782. },
  3783. "src": "/kityminder-editor/dist/index.html"
  3784. })
  3785. _box.appendChild(_iframe);
  3786. _box.appendChild(_jie);
  3787. _formdiv = new U.UF.UI.form(
  3788. "思维导图",
  3789. _box, { //"/jsmind/example/demo.html"
  3790. "id": "mind" + cid + stage + task + tool,
  3791. "style": {
  3792. "width": "90%",
  3793. "height": "90%",
  3794. "overflow": 'hidden'
  3795. },
  3796. "onresize": function () { }
  3797. }, {
  3798. closecallback: function () { }
  3799. }, {
  3800. "style": {
  3801. "height": "36px"
  3802. }
  3803. }).form; //创建窗体
  3804. _taskbar = {
  3805. "id": str + _formdiv.id,
  3806. "style": {
  3807. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3808. },
  3809. "name": "思维导图",
  3810. "forms": _formdiv,
  3811. "click": function () {
  3812. U.MD.D.I.openApplication(str, obj, info);
  3813. }
  3814. }
  3815. break;
  3816. case "MindMap":
  3817. aTool = 3;
  3818. _iframe = $$("iframe", {
  3819. "frameborder": "no",
  3820. "border": "0",
  3821. "scrolling ": "no",
  3822. "style": {
  3823. "cssText": "border:0;width:100%;height:100%"
  3824. },
  3825. "src": "//cloud.cocorobo.cn/mind/"
  3826. })
  3827. _box.appendChild(_iframe);
  3828. _box.appendChild(_jie);
  3829. _formdiv = new U.UF.UI.form(
  3830. "思维导图",
  3831. _box, { //"/jsmind/example/demo.html"
  3832. "id": "mind" + cid + stage + task + tool,
  3833. "style": {
  3834. "width": "90%",
  3835. "height": "90%",
  3836. "overflow": 'hidden'
  3837. },
  3838. "onresize": function () { }
  3839. }, {
  3840. closecallback: function () { }
  3841. }, {
  3842. "style": {
  3843. "height": "36px"
  3844. }
  3845. }).form; //创建窗体
  3846. _taskbar = {
  3847. "id": str + _formdiv.id,
  3848. "style": {
  3849. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3850. },
  3851. "name": "思维导图",
  3852. "forms": _formdiv,
  3853. "click": function () {
  3854. U.MD.D.I.openApplication(str, obj, info);
  3855. }
  3856. }
  3857. break;
  3858. case "doc":
  3859. aTool = 6;
  3860. _iframe = $$("iframe", {
  3861. "frameborder": "no",
  3862. "border": "0",
  3863. "scrolling ": "no",
  3864. "style": {
  3865. "cssText": "border:0;width:100%;height:100%"
  3866. },
  3867. "src": "/Office/Word/WordEditArea.htm"
  3868. })
  3869. _box.appendChild(_iframe);
  3870. _box.appendChild(_jie);
  3871. _formdiv = new U.UF.UI.form(
  3872. "协同文档",
  3873. _box, {
  3874. "id": "doc" + cid + stage + task + tool,
  3875. "style": {
  3876. "width": "90%",
  3877. "height": "90%",
  3878. "overflow": 'hidden'
  3879. },
  3880. "onresize": function () { }
  3881. }, {
  3882. closecallback: function () { }
  3883. }, {
  3884. "style": {
  3885. "height": "36px"
  3886. }
  3887. }).form; //创建窗体
  3888. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3889. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3890. })
  3891. _taskbar = {
  3892. "id": str + _formdiv.id,
  3893. "style": {
  3894. "backgroundImage": "url(/img/icon/doc.png)"
  3895. },
  3896. "name": "协同文档",
  3897. "forms": _formdiv,
  3898. "click": function () {
  3899. U.MD.D.I.openApplication(str, obj, info);
  3900. }
  3901. }
  3902. break;
  3903. case "mindNetwork": //好友打开
  3904. aTool = 7;
  3905. _iframe = $$("iframe", {
  3906. "webkitallowfullscreen": "",
  3907. "mozallowfullscreen": "",
  3908. "allowfullscreen": "",
  3909. "frameborder": "no",
  3910. "border": "0",
  3911. "scrolling ": "no",
  3912. "style": {
  3913. "cssText": "border:0; width:100%; height:100%;"
  3914. },
  3915. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3916. })
  3917. _box.appendChild(_iframe);
  3918. _box.appendChild(_jie);
  3919. _formdiv = new U.UF.UI.form(
  3920. "思维网格",
  3921. _box, {
  3922. "id": "mindNetwork" + cid + stage + task + tool,
  3923. "style": {
  3924. "width": "90%",
  3925. "height": "90%",
  3926. "overflow": 'hidden'
  3927. },
  3928. "onresize": function () { }
  3929. }, {
  3930. closecallback: function () { }
  3931. }, {
  3932. "style": {
  3933. "height": "36px"
  3934. }
  3935. }).form; //创建窗体
  3936. _taskbar = {
  3937. "id": str + _formdiv.id,
  3938. "style": {
  3939. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3940. },
  3941. "name": "思维网格",
  3942. "forms": _formdiv,
  3943. "click": function () {
  3944. U.MD.D.I.openApplication(str, obj, info);
  3945. }
  3946. }
  3947. break;
  3948. case "courseDesign":
  3949. _iframe = $$("iframe", {
  3950. "webkitallowfullscreen": "",
  3951. "mozallowfullscreen": "",
  3952. "allowfullscreen": "",
  3953. "frameborder": "no",
  3954. "border": "0",
  3955. "scrolling ": "no",
  3956. "style": {
  3957. "cssText": "border:0; width:100%; height:100%;"
  3958. },
  3959. "src": "/course-design-vue"
  3960. })
  3961. _box.appendChild(_iframe);
  3962. _box.appendChild(_jie);
  3963. _formdiv = new U.UF.UI.form(
  3964. "项目设计",
  3965. _box, {
  3966. "id": "courseDesign" + cid + stage + task + tool,
  3967. "style": {
  3968. "width": "90%",
  3969. "height": "90%",
  3970. "overflow": 'hidden'
  3971. },
  3972. "onresize": function () { }
  3973. }, {
  3974. closecallback: function () { }
  3975. }, {
  3976. "style": {
  3977. "height": "36px"
  3978. }
  3979. }).form; //创建窗体
  3980. _taskbar = {
  3981. "id": str + _formdiv.id,
  3982. "style": {
  3983. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3984. },
  3985. "name": "项目设计",
  3986. "forms": _formdiv,
  3987. "click": function () {
  3988. U.MD.D.I.openApplication(str, obj, info);
  3989. }
  3990. }
  3991. break;
  3992. }
  3993. const script1 = document.createElement("script");
  3994. script1.type = "text/javascript";
  3995. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3996. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3997. const script2 = document.createElement("script");
  3998. script2.type = "text/javascript";
  3999. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4000. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4001. const script3 = document.createElement("script");
  4002. script3.type = "text/javascript";
  4003. script3.charset = "UTF-8";
  4004. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4005. const script4 = document.createElement("script");
  4006. script4.type = "text/javascript";
  4007. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4008. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4009. if (_iframe) {
  4010. if (str == 'doc') {
  4011. _iframe = _formdiv.querySelector('iframe')
  4012. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4013. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4014. _iframe.contentWindow.document.body.appendChild(script1);
  4015. _iframe.contentWindow.document.body.appendChild(script2);
  4016. // _iframe.contentWindow.document.body.appendChild(script3);
  4017. _iframe.contentWindow.document.body.appendChild(script4);
  4018. })
  4019. if (onloadListener) {
  4020. _iframe.contentDocument.location.reload()
  4021. } else {
  4022. _iframe.contentDocument.location.reload()
  4023. }
  4024. } else if (str == 'courseDesign') {
  4025. U.UF.DL.iframeLoad(_iframe, function () {
  4026. // _iframe.contentWindow.U.MD.O.W.load();
  4027. // _iframe.contentWindow.document.body.appendChild(script1);
  4028. _iframe.contentWindow.document.body.appendChild(script2);
  4029. _iframe.contentWindow.document.body.appendChild(script4);
  4030. })
  4031. } else if (str == 'mind') {
  4032. _iframe = _formdiv.querySelector('iframe')
  4033. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4034. //
  4035. _iframe.contentWindow.document.body.appendChild(script1);
  4036. _iframe.contentWindow.document.body.appendChild(script2);
  4037. _iframe.contentWindow.document.body.appendChild(script4);
  4038. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4039. })
  4040. if (onloadListener) {
  4041. _iframe.contentDocument.location.reload()
  4042. } else {
  4043. _iframe.contentDocument.location.reload()
  4044. }
  4045. } else if (str == 'whiteboard') {
  4046. _iframe = _formdiv.querySelector('iframe')
  4047. let onloadListener = _iframe.onload = () => {
  4048. _iframe.contentWindow.document.body.appendChild(script1);
  4049. _iframe.contentWindow.document.body.appendChild(script2);
  4050. _iframe.contentWindow.document.body.appendChild(script4);
  4051. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4052. };
  4053. if (onloadListener) {
  4054. _iframe.contentDocument.location.reload()
  4055. } else {
  4056. _iframe.contentDocument.location.reload()
  4057. }
  4058. } else {
  4059. _iframe.onload = () => {
  4060. _iframe.contentWindow.document.body.appendChild(script1);
  4061. _iframe.contentWindow.document.body.appendChild(script2);
  4062. // _iframe.contentWindow.document.body.appendChild(script3);
  4063. _iframe.contentWindow.document.body.appendChild(script4);
  4064. };
  4065. }
  4066. _jie.onclick = async () => {
  4067. let text = ''
  4068. if (aTool == 1) {
  4069. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4070. } else if (aTool == 6) {
  4071. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4072. } else if (aTool == 3) {
  4073. text = await U.MD.D.I.getEditorContent(_iframe);
  4074. }
  4075. _loading.style.display = 'flex'
  4076. console.log(_loading);
  4077. var _ajs = _iframe.contentWindow.document.createElement("script");
  4078. _ajs.type = "text/javascript";
  4079. _ajs.innerHTML =
  4080. // 'console.log(' + _loading + ');\n' +
  4081. 'var _js = document.createElement("script");\n' +
  4082. '_js.type="text/javascript";\n' +
  4083. '_js.charset="UTF-8";\n' +
  4084. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4085. "_js.onload = function(){\n" +
  4086. ' var a = document.getElementsByTagName("img")\n' +
  4087. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4088. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4089. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4090. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4091. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4092. "beforeUpload_shishi(file," +
  4093. "'" +
  4094. _userid +
  4095. "'" +
  4096. ", " +
  4097. "'" +
  4098. _cid +
  4099. "'" +
  4100. ", " +
  4101. "'" +
  4102. _stage +
  4103. "'" +
  4104. ", " +
  4105. "'" +
  4106. _task +
  4107. "'" +
  4108. ", " +
  4109. "'" +
  4110. _tool +
  4111. "'" +
  4112. ", " +
  4113. "'" +
  4114. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4115. "'" +
  4116. ", " +
  4117. "'" +
  4118. aTool +
  4119. "'" +
  4120. ", " +
  4121. "`" +
  4122. text +
  4123. "`" +
  4124. ")\n" +
  4125. " });\n" +
  4126. "}\n" +
  4127. "document.head.appendChild(_js);\n";
  4128. _iframe.contentWindow.document.head.appendChild(_ajs);
  4129. }
  4130. }
  4131. //U.MD.D.I.openClick(str);
  4132. //如果有任务栏信息
  4133. // if (_taskbar) {
  4134. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4135. // }
  4136. }
  4137. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4138. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4139. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4140. _userinfo = US.userInfo, //登录用户信息
  4141. _userid = US.userInfo.userid //登录用户id
  4142. let _iframe;
  4143. let _cid = cid,
  4144. _stage = stage,
  4145. _task = task,
  4146. _tool = tool;
  4147. var _jie = $$("div", {
  4148. "style": {
  4149. "position": "absolute",
  4150. "bottom": "50px",
  4151. "right": "50px",
  4152. "zIndex": "9999",
  4153. "backgroundColor": "#2268bc",
  4154. "color": "#fff",
  4155. "padding": "12px 20px",
  4156. "cursor": "pointer",
  4157. "borderRadius": "4px",
  4158. },
  4159. "innerHTML": "提交作业"
  4160. })
  4161. let aTool = ''
  4162. let _loading = document.createElement('div')
  4163. _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;"
  4164. // _loading.id = "";
  4165. let _lchild = document.createElement('div')
  4166. let _limg = document.createElement('img')
  4167. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4168. _limg.style = "width: 26px;margin-right: 10px;"
  4169. _lchild.appendChild(_limg)
  4170. let _lspan = document.createElement('span')
  4171. _lspan.innerHTML = "上传中..."
  4172. _lchild.appendChild(_lspan)
  4173. _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%);"
  4174. _loading.appendChild(_lchild)
  4175. var _box = $$('div', {
  4176. "style": {
  4177. "position": "relative",
  4178. "width": "100%",
  4179. "height": "100%",
  4180. },
  4181. })
  4182. _box.appendChild(_loading)
  4183. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4184. switch (str) {
  4185. case "whiteboard":
  4186. aTool = 1;
  4187. _iframe = $$("iframe", {
  4188. "frameborder": "no",
  4189. "border": "0",
  4190. "scrolling ": "no",
  4191. "style": {
  4192. "cssText": "border:0;width:100%;height:100%"
  4193. },
  4194. "src": "https://iwb.cocorobo.cn/"
  4195. })
  4196. _box.appendChild(_iframe);
  4197. _box.appendChild(_jie);
  4198. _formdiv = new U.UF.UI.form(
  4199. "电子白板",
  4200. _box, {
  4201. "id": "whiteboard" + cid + stage + task + tool,
  4202. "style": {
  4203. "width": "90%",
  4204. "height": "90%",
  4205. "overflow": 'hidden'
  4206. },
  4207. "onresize": function () { }
  4208. }, {
  4209. closecallback: function () { }
  4210. }, {
  4211. "style": {
  4212. "height": "36px"
  4213. }
  4214. }).form; //创建窗体
  4215. _taskbar = {
  4216. "id": str + _formdiv.id,
  4217. "style": {
  4218. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4219. },
  4220. "name": "电子白板",
  4221. "forms": _formdiv,
  4222. "click": function () {
  4223. U.MD.D.I.openApplication(str, obj, info);
  4224. }
  4225. }
  4226. break;
  4227. case "mind":
  4228. aTool = 3;
  4229. _iframe = $$("iframe", {
  4230. "frameborder": "no",
  4231. "border": "0",
  4232. "scrolling ": "no",
  4233. "style": {
  4234. "cssText": "border:0;width:100%;height:100%"
  4235. },
  4236. "src": "/kityminder-editor/dist/index.html"
  4237. })
  4238. _box.appendChild(_iframe);
  4239. _box.appendChild(_jie);
  4240. _formdiv = new U.UF.UI.form(
  4241. "思维导图",
  4242. _box, { //"/jsmind/example/demo.html"
  4243. "id": "mind" + cid + stage + task + tool,
  4244. "style": {
  4245. "width": "90%",
  4246. "height": "90%",
  4247. "overflow": 'hidden'
  4248. },
  4249. "onresize": function () { }
  4250. }, {
  4251. closecallback: function () { }
  4252. }, {
  4253. "style": {
  4254. "height": "36px"
  4255. }
  4256. }).form; //创建窗体
  4257. _taskbar = {
  4258. "id": str + _formdiv.id,
  4259. "style": {
  4260. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4261. },
  4262. "name": "思维导图",
  4263. "forms": _formdiv,
  4264. "click": function () {
  4265. U.MD.D.I.openApplication(str, obj, info);
  4266. }
  4267. }
  4268. break;
  4269. case "MindMap":
  4270. aTool = 3;
  4271. _iframe = $$("iframe", {
  4272. "frameborder": "no",
  4273. "border": "0",
  4274. "scrolling ": "no",
  4275. "style": {
  4276. "cssText": "border:0;width:100%;height:100%"
  4277. },
  4278. "src": "//cloud.cocorobo.cn/mind/"
  4279. })
  4280. _box.appendChild(_iframe);
  4281. _box.appendChild(_jie);
  4282. _formdiv = new U.UF.UI.form(
  4283. "思维导图",
  4284. _box, { //"/jsmind/example/demo.html"
  4285. "id": "mind" + cid + stage + task + tool,
  4286. "style": {
  4287. "width": "90%",
  4288. "height": "90%",
  4289. "overflow": 'hidden'
  4290. },
  4291. "onresize": function () { }
  4292. }, {
  4293. closecallback: function () { }
  4294. }, {
  4295. "style": {
  4296. "height": "36px"
  4297. }
  4298. }).form; //创建窗体
  4299. _taskbar = {
  4300. "id": str + _formdiv.id,
  4301. "style": {
  4302. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4303. },
  4304. "name": "思维导图",
  4305. "forms": _formdiv,
  4306. "click": function () {
  4307. U.MD.D.I.openApplication(str, obj, info);
  4308. }
  4309. }
  4310. break;
  4311. case "doc":
  4312. aTool = 6;
  4313. _iframe = $$("iframe", {
  4314. "frameborder": "no",
  4315. "border": "0",
  4316. "scrolling ": "no",
  4317. "style": {
  4318. "cssText": "border:0;width:100%;height:100%"
  4319. },
  4320. "src": "/Office/Word/WordEditArea.htm"
  4321. })
  4322. _box.appendChild(_iframe);
  4323. _box.appendChild(_jie);
  4324. _formdiv = new U.UF.UI.form(
  4325. "协同文档",
  4326. _box, {
  4327. "id": "doc" + cid + stage + task + tool,
  4328. "style": {
  4329. "width": "90%",
  4330. "height": "90%",
  4331. "overflow": 'hidden'
  4332. },
  4333. "onresize": function () { }
  4334. }, {
  4335. closecallback: function () { }
  4336. }, {
  4337. "style": {
  4338. "height": "36px"
  4339. }
  4340. }).form; //创建窗体
  4341. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4342. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4343. })
  4344. _taskbar = {
  4345. "id": str + _formdiv.id,
  4346. "style": {
  4347. "backgroundImage": "url(/img/icon/doc.png)"
  4348. },
  4349. "name": "协同文档",
  4350. "forms": _formdiv,
  4351. "click": function () {
  4352. U.MD.D.I.openApplication(str, obj, info);
  4353. }
  4354. }
  4355. break;
  4356. case "mindNetwork": //好友打开
  4357. aTool = 7;
  4358. _iframe = $$("iframe", {
  4359. "webkitallowfullscreen": "",
  4360. "mozallowfullscreen": "",
  4361. "allowfullscreen": "",
  4362. "frameborder": "no",
  4363. "border": "0",
  4364. "scrolling ": "no",
  4365. "style": {
  4366. "cssText": "border:0; width:100%; height:100%;"
  4367. },
  4368. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4369. })
  4370. _box.appendChild(_iframe);
  4371. _box.appendChild(_jie);
  4372. _formdiv = new U.UF.UI.form(
  4373. "思维网格",
  4374. _box, {
  4375. "id": "mindNetwork" + cid + stage + task + tool,
  4376. "style": {
  4377. "width": "90%",
  4378. "height": "90%",
  4379. "overflow": 'hidden'
  4380. },
  4381. "onresize": function () { }
  4382. }, {
  4383. closecallback: function () { }
  4384. }, {
  4385. "style": {
  4386. "height": "36px"
  4387. }
  4388. }).form; //创建窗体
  4389. _taskbar = {
  4390. "id": str + _formdiv.id,
  4391. "style": {
  4392. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4393. },
  4394. "name": "思维网格",
  4395. "forms": _formdiv,
  4396. "click": function () {
  4397. U.MD.D.I.openApplication(str, obj, info);
  4398. }
  4399. }
  4400. break;
  4401. case "courseDesign":
  4402. _iframe = $$("iframe", {
  4403. "webkitallowfullscreen": "",
  4404. "mozallowfullscreen": "",
  4405. "allowfullscreen": "",
  4406. "frameborder": "no",
  4407. "border": "0",
  4408. "scrolling ": "no",
  4409. "style": {
  4410. "cssText": "border:0; width:100%; height:100%;"
  4411. },
  4412. "src": "/course-design-vue"
  4413. })
  4414. _box.appendChild(_iframe);
  4415. _box.appendChild(_jie);
  4416. _formdiv = new U.UF.UI.form(
  4417. "项目设计",
  4418. _box, {
  4419. "id": "courseDesign" + cid + stage + task + tool,
  4420. "style": {
  4421. "width": "90%",
  4422. "height": "90%",
  4423. "overflow": 'hidden'
  4424. },
  4425. "onresize": function () { }
  4426. }, {
  4427. closecallback: function () { }
  4428. }, {
  4429. "style": {
  4430. "height": "36px"
  4431. }
  4432. }).form; //创建窗体
  4433. _taskbar = {
  4434. "id": str + _formdiv.id,
  4435. "style": {
  4436. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4437. },
  4438. "name": "项目设计",
  4439. "forms": _formdiv,
  4440. "click": function () {
  4441. U.MD.D.I.openApplication(str, obj, info);
  4442. }
  4443. }
  4444. break;
  4445. }
  4446. const script1 = document.createElement("script");
  4447. script1.type = "text/javascript";
  4448. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4449. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4450. const script2 = document.createElement("script");
  4451. script2.type = "text/javascript";
  4452. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4453. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4454. const script3 = document.createElement("script");
  4455. script3.type = "text/javascript";
  4456. script3.charset = "UTF-8";
  4457. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4458. const script4 = document.createElement("script");
  4459. script4.type = "text/javascript";
  4460. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4461. script4.src = window.origin + "/js/Common/jietu2E.js";
  4462. if (_iframe) {
  4463. if (str == 'doc') {
  4464. _iframe = _formdiv.querySelector('iframe')
  4465. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4466. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4467. _iframe.contentWindow.document.body.appendChild(script1);
  4468. _iframe.contentWindow.document.body.appendChild(script2);
  4469. // _iframe.contentWindow.document.body.appendChild(script3);
  4470. _iframe.contentWindow.document.body.appendChild(script4);
  4471. })
  4472. if (onloadListener) {
  4473. _iframe.contentDocument.location.reload()
  4474. } else {
  4475. _iframe.contentDocument.location.reload()
  4476. }
  4477. } else if (str == 'courseDesign') {
  4478. U.UF.DL.iframeLoad(_iframe, function () {
  4479. // _iframe.contentWindow.U.MD.O.W.load();
  4480. // _iframe.contentWindow.document.body.appendChild(script1);
  4481. _iframe.contentWindow.document.body.appendChild(script2);
  4482. _iframe.contentWindow.document.body.appendChild(script4);
  4483. })
  4484. } else if (str == 'mind') {
  4485. _iframe = _formdiv.querySelector('iframe')
  4486. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4487. //
  4488. _iframe.contentWindow.document.body.appendChild(script1);
  4489. _iframe.contentWindow.document.body.appendChild(script2);
  4490. _iframe.contentWindow.document.body.appendChild(script4);
  4491. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4492. })
  4493. if (onloadListener) {
  4494. _iframe.contentDocument.location.reload()
  4495. } else {
  4496. _iframe.contentDocument.location.reload()
  4497. }
  4498. } else if (str == 'whiteboard') {
  4499. _iframe = _formdiv.querySelector('iframe')
  4500. let onloadListener = _iframe.onload = () => {
  4501. _iframe.contentWindow.document.body.appendChild(script1);
  4502. _iframe.contentWindow.document.body.appendChild(script2);
  4503. _iframe.contentWindow.document.body.appendChild(script4);
  4504. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4505. };
  4506. if (onloadListener) {
  4507. _iframe.contentDocument.location.reload()
  4508. } else {
  4509. _iframe.contentDocument.location.reload()
  4510. }
  4511. } else {
  4512. _iframe.onload = () => {
  4513. _iframe.contentWindow.document.body.appendChild(script1);
  4514. _iframe.contentWindow.document.body.appendChild(script2);
  4515. // _iframe.contentWindow.document.body.appendChild(script3);
  4516. _iframe.contentWindow.document.body.appendChild(script4);
  4517. };
  4518. }
  4519. _jie.onclick = async () => {
  4520. let text = ''
  4521. if (aTool == 1) {
  4522. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4523. } else if (aTool == 6) {
  4524. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4525. } else if (aTool == 3) {
  4526. text = await U.MD.D.I.getEditorContent(_iframe);
  4527. }
  4528. _loading.style.display = 'flex'
  4529. console.log(_loading);
  4530. var _ajs = _iframe.contentWindow.document.createElement("script");
  4531. _ajs.type = "text/javascript";
  4532. _ajs.innerHTML =
  4533. // 'console.log(' + _loading + ');\n' +
  4534. 'var _js = document.createElement("script");\n' +
  4535. '_js.type="text/javascript";\n' +
  4536. '_js.charset="UTF-8";\n' +
  4537. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4538. "_js.onload = function(){\n" +
  4539. ' var a = document.getElementsByTagName("img")\n' +
  4540. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4541. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4542. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4543. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4544. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4545. "beforeUpload_shishi(file," +
  4546. "'" +
  4547. _userid +
  4548. "'" +
  4549. ", " +
  4550. "'" +
  4551. _cid +
  4552. "'" +
  4553. ", " +
  4554. "'" +
  4555. _stage +
  4556. "'" +
  4557. ", " +
  4558. "'" +
  4559. _task +
  4560. "'" +
  4561. ", " +
  4562. "'" +
  4563. _tool +
  4564. "'" +
  4565. ", " +
  4566. "'" +
  4567. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4568. "'" +
  4569. ", " +
  4570. "'" +
  4571. aTool +
  4572. "'" +
  4573. ", " +
  4574. "`" +
  4575. text +
  4576. "`" +
  4577. ")\n" +
  4578. " });\n" +
  4579. "}\n" +
  4580. "document.head.appendChild(_js);\n";
  4581. _iframe.contentWindow.document.head.appendChild(_ajs);
  4582. }
  4583. }
  4584. //U.MD.D.I.openClick(str);
  4585. //如果有任务栏信息
  4586. // if (_taskbar) {
  4587. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4588. // }
  4589. }
  4590. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4591. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4592. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4593. _userid = student.userid, //登录用户id
  4594. _username = student.student //用户名字
  4595. let _iframe;
  4596. let _cid = cid,
  4597. _stage = stage,
  4598. _task = task,
  4599. _tool = tool;
  4600. var _jie = $$("div", {
  4601. "style": {
  4602. "position": "absolute",
  4603. "bottom": "50px",
  4604. "right": "50px",
  4605. "zIndex": "9999",
  4606. "backgroundColor": "#2268bc",
  4607. "color": "#fff",
  4608. "padding": "12px 20px",
  4609. "cursor": "pointer",
  4610. "borderRadius": "4px",
  4611. },
  4612. "innerHTML": "提交作业"
  4613. })
  4614. let aTool = ''
  4615. let _loading = document.createElement('div')
  4616. _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;"
  4617. // _loading.id = "";
  4618. let _lchild = document.createElement('div')
  4619. let _limg = document.createElement('img')
  4620. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4621. _limg.style = "width: 26px;margin-right: 10px;"
  4622. _lchild.appendChild(_limg)
  4623. let _lspan = document.createElement('span')
  4624. _lspan.innerHTML = "上传中..."
  4625. _lchild.appendChild(_lspan)
  4626. _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%);"
  4627. _loading.appendChild(_lchild)
  4628. var _box = $$('div', {
  4629. "style": {
  4630. "position": "relative",
  4631. "width": "100%",
  4632. "height": "100%",
  4633. },
  4634. })
  4635. _box.appendChild(_loading)
  4636. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4637. switch (str) {
  4638. case "whiteboard":
  4639. aTool = 1;
  4640. _iframe = $$("iframe", {
  4641. "frameborder": "no",
  4642. "border": "0",
  4643. "scrolling ": "no",
  4644. "style": {
  4645. "cssText": "border:0;width:100%;height:100%"
  4646. },
  4647. "src": "https://iwb.cocorobo.cn/"
  4648. })
  4649. _box.appendChild(_iframe);
  4650. _box.appendChild(_jie);
  4651. _formdiv = new U.UF.UI.form(
  4652. "电子白板-" + _username,
  4653. _box, {
  4654. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4655. "style": {
  4656. "width": "90%",
  4657. "height": "90%",
  4658. "overflow": 'hidden'
  4659. },
  4660. "onresize": function () { }
  4661. }, {
  4662. closecallback: function () { }
  4663. }, {
  4664. "style": {
  4665. "height": "36px"
  4666. }
  4667. }).form; //创建窗体
  4668. _taskbar = {
  4669. "id": str + _formdiv.id,
  4670. "style": {
  4671. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4672. },
  4673. "name": "电子白板",
  4674. "forms": _formdiv,
  4675. "click": function () {
  4676. U.MD.D.I.openApplication(str, obj, info);
  4677. }
  4678. }
  4679. break;
  4680. case "mind":
  4681. aTool = 3;
  4682. _iframe = $$("iframe", {
  4683. "frameborder": "no",
  4684. "border": "0",
  4685. "scrolling ": "no",
  4686. "style": {
  4687. "cssText": "border:0;width:100%;height:100%"
  4688. },
  4689. "src": "/kityminder-editor/dist/index.html"
  4690. })
  4691. _box.appendChild(_iframe);
  4692. _box.appendChild(_jie);
  4693. _formdiv = new U.UF.UI.form(
  4694. "思维导图-" + _username,
  4695. _box, { //"/jsmind/example/demo.html"
  4696. "id": "mind" + cid + stage + task + tool + _userid,
  4697. "style": {
  4698. "width": "90%",
  4699. "height": "90%",
  4700. "overflow": 'hidden'
  4701. },
  4702. "onresize": function () { }
  4703. }, {
  4704. closecallback: function () { }
  4705. }, {
  4706. "style": {
  4707. "height": "36px"
  4708. }
  4709. }).form; //创建窗体
  4710. _taskbar = {
  4711. "id": str + _formdiv.id,
  4712. "style": {
  4713. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4714. },
  4715. "name": "思维导图",
  4716. "forms": _formdiv,
  4717. "click": function () {
  4718. U.MD.D.I.openApplication(str, obj, info);
  4719. }
  4720. }
  4721. break;
  4722. case "MindMap":
  4723. aTool = 3;
  4724. _iframe = $$("iframe", {
  4725. "frameborder": "no",
  4726. "border": "0",
  4727. "scrolling ": "no",
  4728. "style": {
  4729. "cssText": "border:0;width:100%;height:100%"
  4730. },
  4731. "src": "//cloud.cocorobo.cn/mind/"
  4732. })
  4733. _box.appendChild(_iframe);
  4734. _box.appendChild(_jie);
  4735. _formdiv = new U.UF.UI.form(
  4736. "思维导图-" + _username,
  4737. _box, { //"/jsmind/example/demo.html"
  4738. "id": "mind" + cid + stage + task + tool + _userid,
  4739. "style": {
  4740. "width": "90%",
  4741. "height": "90%",
  4742. "overflow": 'hidden'
  4743. },
  4744. "onresize": function () { }
  4745. }, {
  4746. closecallback: function () { }
  4747. }, {
  4748. "style": {
  4749. "height": "36px"
  4750. }
  4751. }).form; //创建窗体
  4752. _taskbar = {
  4753. "id": str + _formdiv.id,
  4754. "style": {
  4755. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4756. },
  4757. "name": "思维导图",
  4758. "forms": _formdiv,
  4759. "click": function () {
  4760. U.MD.D.I.openApplication(str, obj, info);
  4761. }
  4762. }
  4763. break;
  4764. case "doc":
  4765. aTool = 6;
  4766. _iframe = $$("iframe", {
  4767. "frameborder": "no",
  4768. "border": "0",
  4769. "scrolling ": "no",
  4770. "style": {
  4771. "cssText": "border:0;width:100%;height:100%"
  4772. },
  4773. "src": "/Office/Word/WordEditArea.htm"
  4774. })
  4775. _box.appendChild(_iframe);
  4776. _box.appendChild(_jie);
  4777. _formdiv = new U.UF.UI.form(
  4778. "协同文档-" + _username,
  4779. _box, {
  4780. "id": "doc" + cid + stage + task + tool + _userid,
  4781. "style": {
  4782. "width": "90%",
  4783. "height": "90%",
  4784. "overflow": 'hidden'
  4785. },
  4786. "onresize": function () { }
  4787. }, {
  4788. closecallback: function () { }
  4789. }, {
  4790. "style": {
  4791. "height": "36px"
  4792. }
  4793. }).form; //创建窗体
  4794. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4795. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4796. })
  4797. _taskbar = {
  4798. "id": str + _formdiv.id,
  4799. "style": {
  4800. "backgroundImage": "url(/img/icon/doc.png)"
  4801. },
  4802. "name": "协同文档",
  4803. "forms": _formdiv,
  4804. "click": function () {
  4805. U.MD.D.I.openApplication(str, obj, info);
  4806. }
  4807. }
  4808. break;
  4809. case "mindNetwork": //好友打开
  4810. aTool = 7;
  4811. _iframe = $$("iframe", {
  4812. "webkitallowfullscreen": "",
  4813. "mozallowfullscreen": "",
  4814. "allowfullscreen": "",
  4815. "frameborder": "no",
  4816. "border": "0",
  4817. "scrolling ": "no",
  4818. "style": {
  4819. "cssText": "border:0; width:100%; height:100%;"
  4820. },
  4821. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4822. })
  4823. _box.appendChild(_iframe);
  4824. _box.appendChild(_jie);
  4825. _formdiv = new U.UF.UI.form(
  4826. "思维网格-" + _username,
  4827. _box, {
  4828. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4829. "style": {
  4830. "width": "90%",
  4831. "height": "90%",
  4832. "overflow": 'hidden'
  4833. },
  4834. "onresize": function () { }
  4835. }, {
  4836. closecallback: function () { }
  4837. }, {
  4838. "style": {
  4839. "height": "36px"
  4840. }
  4841. }).form; //创建窗体
  4842. _taskbar = {
  4843. "id": str + _formdiv.id,
  4844. "style": {
  4845. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4846. },
  4847. "name": "思维网格",
  4848. "forms": _formdiv,
  4849. "click": function () {
  4850. U.MD.D.I.openApplication(str, obj, info);
  4851. }
  4852. }
  4853. break;
  4854. case "courseDesign":
  4855. _iframe = $$("iframe", {
  4856. "webkitallowfullscreen": "",
  4857. "mozallowfullscreen": "",
  4858. "allowfullscreen": "",
  4859. "frameborder": "no",
  4860. "border": "0",
  4861. "scrolling ": "no",
  4862. "style": {
  4863. "cssText": "border:0; width:100%; height:100%;"
  4864. },
  4865. "src": "/course-design-vue"
  4866. })
  4867. _box.appendChild(_iframe);
  4868. _box.appendChild(_jie);
  4869. _formdiv = new U.UF.UI.form(
  4870. "项目设计-" + _username,
  4871. _box, {
  4872. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4873. "style": {
  4874. "width": "90%",
  4875. "height": "90%",
  4876. "overflow": 'hidden'
  4877. },
  4878. "onresize": function () { }
  4879. }, {
  4880. closecallback: function () { }
  4881. }, {
  4882. "style": {
  4883. "height": "36px"
  4884. }
  4885. }).form; //创建窗体
  4886. _taskbar = {
  4887. "id": str + _formdiv.id,
  4888. "style": {
  4889. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4890. },
  4891. "name": "项目设计",
  4892. "forms": _formdiv,
  4893. "click": function () {
  4894. U.MD.D.I.openApplication(str, obj, info);
  4895. }
  4896. }
  4897. break;
  4898. }
  4899. const script1 = document.createElement("script");
  4900. script1.type = "text/javascript";
  4901. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4902. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4903. const script2 = document.createElement("script");
  4904. script2.type = "text/javascript";
  4905. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4906. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4907. const script3 = document.createElement("script");
  4908. script3.type = "text/javascript";
  4909. script3.charset = "UTF-8";
  4910. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4911. const script4 = document.createElement("script");
  4912. script4.type = "text/javascript";
  4913. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4914. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4915. if (_iframe) {
  4916. if (str == 'doc') {
  4917. _iframe = _formdiv.querySelector('iframe')
  4918. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4919. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4920. _iframe.contentWindow.document.body.appendChild(script1);
  4921. _iframe.contentWindow.document.body.appendChild(script2);
  4922. // _iframe.contentWindow.document.body.appendChild(script3);
  4923. _iframe.contentWindow.document.body.appendChild(script4);
  4924. })
  4925. if (onloadListener) {
  4926. _iframe.contentDocument.location.reload()
  4927. } else {
  4928. _iframe.contentDocument.location.reload()
  4929. }
  4930. } else if (str == 'courseDesign') {
  4931. U.UF.DL.iframeLoad(_iframe, function () {
  4932. // _iframe.contentWindow.U.MD.O.W.load();
  4933. // _iframe.contentWindow.document.body.appendChild(script1);
  4934. _iframe.contentWindow.document.body.appendChild(script2);
  4935. _iframe.contentWindow.document.body.appendChild(script4);
  4936. })
  4937. } else if (str == 'mind') {
  4938. _iframe = _formdiv.querySelector('iframe')
  4939. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4940. //
  4941. _iframe.contentWindow.document.body.appendChild(script1);
  4942. _iframe.contentWindow.document.body.appendChild(script2);
  4943. _iframe.contentWindow.document.body.appendChild(script4);
  4944. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4945. })
  4946. if (onloadListener) {
  4947. _iframe.contentDocument.location.reload()
  4948. } else {
  4949. _iframe.contentDocument.location.reload()
  4950. }
  4951. } else if (str == 'whiteboard') {
  4952. _iframe = _formdiv.querySelector('iframe')
  4953. let onloadListener = _iframe.onload = () => {
  4954. _iframe.contentWindow.document.body.appendChild(script1);
  4955. _iframe.contentWindow.document.body.appendChild(script2);
  4956. _iframe.contentWindow.document.body.appendChild(script4);
  4957. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4958. };
  4959. if (onloadListener) {
  4960. _iframe.contentDocument.location.reload()
  4961. } else {
  4962. _iframe.contentDocument.location.reload()
  4963. }
  4964. } else {
  4965. _iframe.onload = () => {
  4966. _iframe.contentWindow.document.body.appendChild(script1);
  4967. _iframe.contentWindow.document.body.appendChild(script2);
  4968. // _iframe.contentWindow.document.body.appendChild(script3);
  4969. _iframe.contentWindow.document.body.appendChild(script4);
  4970. };
  4971. }
  4972. _jie.onclick = async () => {
  4973. let text = ''
  4974. if (aTool == 1) {
  4975. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4976. } else if (aTool == 6) {
  4977. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4978. } else if (aTool == 3) {
  4979. text = await U.MD.D.I.getEditorContent(_iframe);
  4980. }
  4981. _loading.style.display = 'flex'
  4982. console.log(_loading);
  4983. var _ajs = _iframe.contentWindow.document.createElement("script");
  4984. _ajs.type = "text/javascript";
  4985. _ajs.innerHTML =
  4986. // 'console.log(' + _loading + ');\n' +
  4987. 'var _js = document.createElement("script");\n' +
  4988. '_js.type="text/javascript";\n' +
  4989. '_js.charset="UTF-8";\n' +
  4990. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4991. "_js.onload = function(){\n" +
  4992. ' var a = document.getElementsByTagName("img")\n' +
  4993. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4994. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4995. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4996. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4997. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4998. "beforeUpload_shishi(file," +
  4999. "'" +
  5000. _userid +
  5001. "'" +
  5002. ", " +
  5003. "'" +
  5004. _cid +
  5005. "'" +
  5006. ", " +
  5007. "'" +
  5008. _stage +
  5009. "'" +
  5010. ", " +
  5011. "'" +
  5012. _task +
  5013. "'" +
  5014. ", " +
  5015. "'" +
  5016. _tool +
  5017. "'" +
  5018. ", " +
  5019. "'" +
  5020. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5021. "'" +
  5022. ", " +
  5023. "'" +
  5024. aTool +
  5025. "'" +
  5026. ", " +
  5027. "`" +
  5028. text +
  5029. "`" +
  5030. ")\n" +
  5031. " });\n" +
  5032. "}\n" +
  5033. "document.head.appendChild(_js);\n";
  5034. _iframe.contentWindow.document.head.appendChild(_ajs);
  5035. }
  5036. }
  5037. }
  5038. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5039. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5040. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5041. _userid = student.userid, //登录用户id
  5042. _username = student.student //用户名字
  5043. let _iframe;
  5044. let _cid = cid,
  5045. _stage = stage,
  5046. _task = task,
  5047. _tool = tool;
  5048. var _jie = $$("div", {
  5049. "style": {
  5050. "position": "absolute",
  5051. "bottom": "50px",
  5052. "right": "50px",
  5053. "zIndex": "9999",
  5054. "backgroundColor": "#2268bc",
  5055. "color": "#fff",
  5056. "padding": "12px 20px",
  5057. "cursor": "pointer",
  5058. "borderRadius": "4px",
  5059. },
  5060. "innerHTML": "提交作业"
  5061. })
  5062. let aTool = ''
  5063. let _loading = document.createElement('div')
  5064. _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;"
  5065. // _loading.id = "";
  5066. let _lchild = document.createElement('div')
  5067. let _limg = document.createElement('img')
  5068. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5069. _limg.style = "width: 26px;margin-right: 10px;"
  5070. _lchild.appendChild(_limg)
  5071. let _lspan = document.createElement('span')
  5072. _lspan.innerHTML = "上传中..."
  5073. _lchild.appendChild(_lspan)
  5074. _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%);"
  5075. _loading.appendChild(_lchild)
  5076. var _box = $$('div', {
  5077. "style": {
  5078. "position": "relative",
  5079. "width": "100%",
  5080. "height": "100%",
  5081. },
  5082. })
  5083. _box.appendChild(_loading)
  5084. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5085. switch (str) {
  5086. case "whiteboard":
  5087. aTool = 1;
  5088. _iframe = $$("iframe", {
  5089. "frameborder": "no",
  5090. "border": "0",
  5091. "scrolling ": "no",
  5092. "style": {
  5093. "cssText": "border:0;width:100%;height:100%"
  5094. },
  5095. "src": "https://iwb.cocorobo.cn/"
  5096. })
  5097. _box.appendChild(_iframe);
  5098. _box.appendChild(_jie);
  5099. _formdiv = new U.UF.UI.form(
  5100. "电子白板-" + _username,
  5101. _box, {
  5102. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5103. "style": {
  5104. "width": "90%",
  5105. "height": "90%",
  5106. "overflow": 'hidden'
  5107. },
  5108. "onresize": function () { }
  5109. }, {
  5110. closecallback: function () { }
  5111. }, {
  5112. "style": {
  5113. "height": "36px"
  5114. }
  5115. }).form; //创建窗体
  5116. _taskbar = {
  5117. "id": str + _formdiv.id,
  5118. "style": {
  5119. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5120. },
  5121. "name": "电子白板",
  5122. "forms": _formdiv,
  5123. "click": function () {
  5124. U.MD.D.I.openApplication(str, obj, info);
  5125. }
  5126. }
  5127. break;
  5128. case "mind":
  5129. aTool = 3;
  5130. _iframe = $$("iframe", {
  5131. "frameborder": "no",
  5132. "border": "0",
  5133. "scrolling ": "no",
  5134. "style": {
  5135. "cssText": "border:0;width:100%;height:100%"
  5136. },
  5137. "src": "/kityminder-editor/dist/index.html"
  5138. })
  5139. _box.appendChild(_iframe);
  5140. _box.appendChild(_jie);
  5141. _formdiv = new U.UF.UI.form(
  5142. "思维导图-" + _username,
  5143. _box, { //"/jsmind/example/demo.html"
  5144. "id": "mind" + cid + stage + task + tool + _userid,
  5145. "style": {
  5146. "width": "90%",
  5147. "height": "90%",
  5148. "overflow": 'hidden'
  5149. },
  5150. "onresize": function () { }
  5151. }, {
  5152. closecallback: function () { }
  5153. }, {
  5154. "style": {
  5155. "height": "36px"
  5156. }
  5157. }).form; //创建窗体
  5158. _taskbar = {
  5159. "id": str + _formdiv.id,
  5160. "style": {
  5161. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5162. },
  5163. "name": "思维导图",
  5164. "forms": _formdiv,
  5165. "click": function () {
  5166. U.MD.D.I.openApplication(str, obj, info);
  5167. }
  5168. }
  5169. break;
  5170. case "MindMap":
  5171. aTool = 3;
  5172. _iframe = $$("iframe", {
  5173. "frameborder": "no",
  5174. "border": "0",
  5175. "scrolling ": "no",
  5176. "style": {
  5177. "cssText": "border:0;width:100%;height:100%"
  5178. },
  5179. "src": "//cloud.cocorobo.cn/mind/"
  5180. })
  5181. _box.appendChild(_iframe);
  5182. _box.appendChild(_jie);
  5183. _formdiv = new U.UF.UI.form(
  5184. "思维导图-" + _username,
  5185. _box, { //"/jsmind/example/demo.html"
  5186. "id": "mind" + cid + stage + task + tool + _userid,
  5187. "style": {
  5188. "width": "90%",
  5189. "height": "90%",
  5190. "overflow": 'hidden'
  5191. },
  5192. "onresize": function () { }
  5193. }, {
  5194. closecallback: function () { }
  5195. }, {
  5196. "style": {
  5197. "height": "36px"
  5198. }
  5199. }).form; //创建窗体
  5200. _taskbar = {
  5201. "id": str + _formdiv.id,
  5202. "style": {
  5203. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5204. },
  5205. "name": "思维导图",
  5206. "forms": _formdiv,
  5207. "click": function () {
  5208. U.MD.D.I.openApplication(str, obj, info);
  5209. }
  5210. }
  5211. break;
  5212. case "doc":
  5213. aTool = 6;
  5214. _iframe = $$("iframe", {
  5215. "frameborder": "no",
  5216. "border": "0",
  5217. "scrolling ": "no",
  5218. "style": {
  5219. "cssText": "border:0;width:100%;height:100%"
  5220. },
  5221. "src": "/Office/Word/WordEditArea.htm"
  5222. })
  5223. _box.appendChild(_iframe);
  5224. _box.appendChild(_jie);
  5225. _formdiv = new U.UF.UI.form(
  5226. "协同文档-" + _username,
  5227. _box, {
  5228. "id": "doc" + cid + stage + task + tool + _userid,
  5229. "style": {
  5230. "width": "90%",
  5231. "height": "90%",
  5232. "overflow": 'hidden'
  5233. },
  5234. "onresize": function () { }
  5235. }, {
  5236. closecallback: function () { }
  5237. }, {
  5238. "style": {
  5239. "height": "36px"
  5240. }
  5241. }).form; //创建窗体
  5242. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5243. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5244. })
  5245. _taskbar = {
  5246. "id": str + _formdiv.id,
  5247. "style": {
  5248. "backgroundImage": "url(/img/icon/doc.png)"
  5249. },
  5250. "name": "协同文档",
  5251. "forms": _formdiv,
  5252. "click": function () {
  5253. U.MD.D.I.openApplication(str, obj, info);
  5254. }
  5255. }
  5256. break;
  5257. case "mindNetwork": //好友打开
  5258. aTool = 7;
  5259. _iframe = $$("iframe", {
  5260. "webkitallowfullscreen": "",
  5261. "mozallowfullscreen": "",
  5262. "allowfullscreen": "",
  5263. "frameborder": "no",
  5264. "border": "0",
  5265. "scrolling ": "no",
  5266. "style": {
  5267. "cssText": "border:0; width:100%; height:100%;"
  5268. },
  5269. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5270. })
  5271. _box.appendChild(_iframe);
  5272. _box.appendChild(_jie);
  5273. _formdiv = new U.UF.UI.form(
  5274. "思维网格-" + _username,
  5275. _box, {
  5276. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5277. "style": {
  5278. "width": "90%",
  5279. "height": "90%",
  5280. "overflow": 'hidden'
  5281. },
  5282. "onresize": function () { }
  5283. }, {
  5284. closecallback: function () { }
  5285. }, {
  5286. "style": {
  5287. "height": "36px"
  5288. }
  5289. }).form; //创建窗体
  5290. _taskbar = {
  5291. "id": str + _formdiv.id,
  5292. "style": {
  5293. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5294. },
  5295. "name": "思维网格",
  5296. "forms": _formdiv,
  5297. "click": function () {
  5298. U.MD.D.I.openApplication(str, obj, info);
  5299. }
  5300. }
  5301. break;
  5302. case "courseDesign":
  5303. _iframe = $$("iframe", {
  5304. "webkitallowfullscreen": "",
  5305. "mozallowfullscreen": "",
  5306. "allowfullscreen": "",
  5307. "frameborder": "no",
  5308. "border": "0",
  5309. "scrolling ": "no",
  5310. "style": {
  5311. "cssText": "border:0; width:100%; height:100%;"
  5312. },
  5313. "src": "/course-design-vue"
  5314. })
  5315. _box.appendChild(_iframe);
  5316. _box.appendChild(_jie);
  5317. _formdiv = new U.UF.UI.form(
  5318. "项目设计-" + _username,
  5319. _box, {
  5320. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5321. "style": {
  5322. "width": "90%",
  5323. "height": "90%",
  5324. "overflow": 'hidden'
  5325. },
  5326. "onresize": function () { }
  5327. }, {
  5328. closecallback: function () { }
  5329. }, {
  5330. "style": {
  5331. "height": "36px"
  5332. }
  5333. }).form; //创建窗体
  5334. _taskbar = {
  5335. "id": str + _formdiv.id,
  5336. "style": {
  5337. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5338. },
  5339. "name": "项目设计",
  5340. "forms": _formdiv,
  5341. "click": function () {
  5342. U.MD.D.I.openApplication(str, obj, info);
  5343. }
  5344. }
  5345. break;
  5346. }
  5347. const script1 = document.createElement("script");
  5348. script1.type = "text/javascript";
  5349. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5350. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5351. const script2 = document.createElement("script");
  5352. script2.type = "text/javascript";
  5353. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5354. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5355. const script3 = document.createElement("script");
  5356. script3.type = "text/javascript";
  5357. script3.charset = "UTF-8";
  5358. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5359. const script4 = document.createElement("script");
  5360. script4.type = "text/javascript";
  5361. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5362. script4.src = window.origin + "/js/Common/jietu2E.js";
  5363. if (_iframe) {
  5364. if (str == 'doc') {
  5365. _iframe = _formdiv.querySelector('iframe')
  5366. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5367. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5368. _iframe.contentWindow.document.body.appendChild(script1);
  5369. _iframe.contentWindow.document.body.appendChild(script2);
  5370. // _iframe.contentWindow.document.body.appendChild(script3);
  5371. _iframe.contentWindow.document.body.appendChild(script4);
  5372. })
  5373. if (onloadListener) {
  5374. _iframe.contentDocument.location.reload()
  5375. } else {
  5376. _iframe.contentDocument.location.reload()
  5377. }
  5378. } else if (str == 'courseDesign') {
  5379. U.UF.DL.iframeLoad(_iframe, function () {
  5380. // _iframe.contentWindow.U.MD.O.W.load();
  5381. // _iframe.contentWindow.document.body.appendChild(script1);
  5382. _iframe.contentWindow.document.body.appendChild(script2);
  5383. _iframe.contentWindow.document.body.appendChild(script4);
  5384. })
  5385. } else if (str == 'mind') {
  5386. _iframe = _formdiv.querySelector('iframe')
  5387. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5388. //
  5389. _iframe.contentWindow.document.body.appendChild(script1);
  5390. _iframe.contentWindow.document.body.appendChild(script2);
  5391. _iframe.contentWindow.document.body.appendChild(script4);
  5392. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5393. })
  5394. if (onloadListener) {
  5395. _iframe.contentDocument.location.reload()
  5396. } else {
  5397. _iframe.contentDocument.location.reload()
  5398. }
  5399. } else if (str == 'whiteboard') {
  5400. _iframe = _formdiv.querySelector('iframe')
  5401. let onloadListener = _iframe.onload = () => {
  5402. _iframe.contentWindow.document.body.appendChild(script1);
  5403. _iframe.contentWindow.document.body.appendChild(script2);
  5404. _iframe.contentWindow.document.body.appendChild(script4);
  5405. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5406. };
  5407. if (onloadListener) {
  5408. _iframe.contentDocument.location.reload()
  5409. } else {
  5410. _iframe.contentDocument.location.reload()
  5411. }
  5412. } else {
  5413. _iframe.onload = () => {
  5414. _iframe.contentWindow.document.body.appendChild(script1);
  5415. _iframe.contentWindow.document.body.appendChild(script2);
  5416. // _iframe.contentWindow.document.body.appendChild(script3);
  5417. _iframe.contentWindow.document.body.appendChild(script4);
  5418. };
  5419. }
  5420. _jie.onclick = async () => {
  5421. let text = ''
  5422. if (aTool == 1) {
  5423. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5424. } else if (aTool == 6) {
  5425. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5426. } else if (aTool == 3) {
  5427. text = await U.MD.D.I.getEditorContent(_iframe);
  5428. }
  5429. _loading.style.display = 'flex'
  5430. console.log(_loading);
  5431. var _ajs = _iframe.contentWindow.document.createElement("script");
  5432. _ajs.type = "text/javascript";
  5433. _ajs.innerHTML =
  5434. // 'console.log(' + _loading + ');\n' +
  5435. 'var _js = document.createElement("script");\n' +
  5436. '_js.type="text/javascript";\n' +
  5437. '_js.charset="UTF-8";\n' +
  5438. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5439. "_js.onload = function(){\n" +
  5440. ' var a = document.getElementsByTagName("img")\n' +
  5441. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5442. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5443. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5444. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5445. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5446. "beforeUpload_shishi(file," +
  5447. "'" +
  5448. _userid +
  5449. "'" +
  5450. ", " +
  5451. "'" +
  5452. _cid +
  5453. "'" +
  5454. ", " +
  5455. "'" +
  5456. _stage +
  5457. "'" +
  5458. ", " +
  5459. "'" +
  5460. _task +
  5461. "'" +
  5462. ", " +
  5463. "'" +
  5464. _tool +
  5465. "'" +
  5466. ", " +
  5467. "'" +
  5468. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5469. "'" +
  5470. ", " +
  5471. "'" +
  5472. aTool +
  5473. "'" +
  5474. ", " +
  5475. "`" +
  5476. text +
  5477. "`" +
  5478. ")\n" +
  5479. " });\n" +
  5480. "}\n" +
  5481. "document.head.appendChild(_js);\n";
  5482. _iframe.contentWindow.document.head.appendChild(_ajs);
  5483. }
  5484. }
  5485. }
  5486. U.MD.D.I.getEditorContent = function (iframe) {
  5487. return new Promise((resolve, reject) => {
  5488. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5489. console.log(content);
  5490. resolve(content)
  5491. });
  5492. });
  5493. }
  5494. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5495. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5496. // if (res.value[0].length > 0) {
  5497. // // resolve(res.value[0][0].text);
  5498. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5499. // $(fileInput).val('');
  5500. // });
  5501. // }
  5502. // }, [], { "type": "GET", "withCredentials": true });
  5503. var xmlhttp;
  5504. var Mac, Sn, DeviceId
  5505. if (window.XMLHttpRequest) {
  5506. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5507. xmlhttp = new XMLHttpRequest();
  5508. }
  5509. else {
  5510. // IE6, IE5 浏览器执行代码
  5511. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5512. }
  5513. xmlhttp.onreadystatechange = function () {
  5514. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5515. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5516. // resolve(res.value[0][0].text);
  5517. if (type == '2') {
  5518. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5519. } else if (type == '3') {
  5520. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5521. }
  5522. } else {
  5523. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5524. }
  5525. }
  5526. }
  5527. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5528. xmlhttp.send();
  5529. }
  5530. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5531. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5532. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5533. _userinfo = US.userInfo, //登录用户信息
  5534. _userid = US.userInfo.userid //登录用户id
  5535. let _iframe;
  5536. let _cid = cid,
  5537. _stage = stage,
  5538. _task = task,
  5539. _tool = tool;
  5540. var _jie = $$("div", {
  5541. "style": {
  5542. "position": "absolute",
  5543. "bottom": "50px",
  5544. "right": "50px",
  5545. "zIndex": "9999",
  5546. "backgroundColor": "#2268bc",
  5547. "color": "#fff",
  5548. "padding": "12px 20px",
  5549. "cursor": "pointer",
  5550. "borderRadius": "4px",
  5551. },
  5552. "innerHTML": "确认并提交"
  5553. })
  5554. let aTool = ''
  5555. let _loading = document.createElement('div')
  5556. _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;"
  5557. // _loading.id = "";
  5558. let _lchild = document.createElement('div')
  5559. let _limg = document.createElement('img')
  5560. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5561. _limg.style = "width: 26px;margin-right: 10px;"
  5562. _lchild.appendChild(_limg)
  5563. let _lspan = document.createElement('span')
  5564. _lspan.innerHTML = "上传中..."
  5565. _lchild.appendChild(_lspan)
  5566. _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%);"
  5567. _loading.appendChild(_lchild)
  5568. var _box = $$('div', {
  5569. "style": {
  5570. "position": "relative",
  5571. "width": "100%",
  5572. "height": "100%",
  5573. },
  5574. })
  5575. _box.appendChild(_loading)
  5576. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5577. switch (str) {
  5578. case "whiteboard":
  5579. aTool = 1;
  5580. _iframe = $$("iframe", {
  5581. "frameborder": "no",
  5582. "border": "0",
  5583. "scrolling ": "no",
  5584. "style": {
  5585. "cssText": "border:0;width:100%;height:100%"
  5586. },
  5587. "src": "https://iwb.cocorobo.cn/"
  5588. })
  5589. _box.appendChild(_iframe);
  5590. _box.appendChild(_jie);
  5591. _formdiv = new U.UF.UI.form(
  5592. "电子白板",
  5593. _box, {
  5594. "id": "whiteboards" + cid + stage + task + tool,
  5595. "style": {
  5596. "width": "90%",
  5597. "height": "90%",
  5598. "overflow": 'hidden'
  5599. },
  5600. "onresize": function () { }
  5601. }, {
  5602. closecallback: function () { }
  5603. }, {
  5604. "style": {
  5605. "height": "36px"
  5606. }
  5607. }).form; //创建窗体
  5608. _taskbar = {
  5609. "id": str + _formdiv.id,
  5610. "style": {
  5611. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5612. },
  5613. "name": "电子白板",
  5614. "forms": _formdiv,
  5615. "click": function () {
  5616. U.MD.D.I.openApplication(str, obj, info);
  5617. }
  5618. }
  5619. break;
  5620. case "mind":
  5621. aTool = 3;
  5622. _iframe = $$("iframe", {
  5623. "frameborder": "no",
  5624. "border": "0",
  5625. "scrolling ": "no",
  5626. "style": {
  5627. "cssText": "border:0;width:100%;height:100%"
  5628. },
  5629. "src": "/kityminder-editor/dist/index.html"
  5630. });
  5631. _box.appendChild(_iframe);
  5632. _box.appendChild(_jie);
  5633. _formdiv = new U.UF.UI.form(
  5634. "思维导图",
  5635. _box, { //"/jsmind/example/demo.html"
  5636. "id": "minds" + cid + stage + task + tool,
  5637. "style": {
  5638. "width": "90%",
  5639. "height": "90%",
  5640. "overflow": 'hidden'
  5641. },
  5642. "onresize": function () { }
  5643. }, {
  5644. closecallback: function () { }
  5645. }, {
  5646. "style": {
  5647. "height": "36px"
  5648. }
  5649. }).form; //创建窗体
  5650. _taskbar = {
  5651. "id": str + _formdiv.id,
  5652. "style": {
  5653. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5654. },
  5655. "name": "思维导图",
  5656. "forms": _formdiv,
  5657. "click": function () {
  5658. U.MD.D.I.openApplication(str, obj, info);
  5659. }
  5660. }
  5661. break;
  5662. case "doc":
  5663. aTool = 6;
  5664. _iframe = $$("iframe", {
  5665. "frameborder": "no",
  5666. "border": "0",
  5667. "scrolling ": "no",
  5668. "style": {
  5669. "cssText": "border:0;width:100%;height:100%"
  5670. },
  5671. "src": "/Office/Word/WordEditArea.htm"
  5672. })
  5673. _box.appendChild(_iframe);
  5674. _box.appendChild(_jie);
  5675. _formdiv = new U.UF.UI.form(
  5676. "协同文档",
  5677. _box, {
  5678. "id": "docs" + cid + stage + task + tool,
  5679. "style": {
  5680. "width": "90%",
  5681. "height": "90%",
  5682. "overflow": 'hidden'
  5683. },
  5684. "onresize": function () { }
  5685. }, {
  5686. closecallback: function () { }
  5687. }, {
  5688. "style": {
  5689. "height": "36px"
  5690. }
  5691. }).form; //创建窗体
  5692. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5693. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5694. })
  5695. _taskbar = {
  5696. "id": str + _formdiv.id,
  5697. "style": {
  5698. "backgroundImage": "url(/img/icon/doc.png)"
  5699. },
  5700. "name": "协同文档",
  5701. "forms": _formdiv,
  5702. "click": function () {
  5703. U.MD.D.I.openApplication(str, obj, info);
  5704. }
  5705. }
  5706. break;
  5707. }
  5708. const script1 = document.createElement("script");
  5709. script1.type = "text/javascript";
  5710. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5711. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5712. const script2 = document.createElement("script");
  5713. script2.type = "text/javascript";
  5714. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5715. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5716. const script3 = document.createElement("script");
  5717. script3.type = "text/javascript";
  5718. script3.charset = "UTF-8";
  5719. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5720. const script4 = document.createElement("script");
  5721. script4.type = "text/javascript";
  5722. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5723. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5724. if (_iframe) {
  5725. if (str == 'doc') {
  5726. _iframe = _formdiv.querySelector('iframe')
  5727. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5728. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5729. _iframe.contentWindow.document.body.appendChild(script1);
  5730. _iframe.contentWindow.document.body.appendChild(script2);
  5731. // _iframe.contentWindow.document.body.appendChild(script3);
  5732. _iframe.contentWindow.document.body.appendChild(script4);
  5733. })
  5734. if (onloadListener) {
  5735. _iframe.contentDocument.location.reload()
  5736. } else {
  5737. _iframe.contentDocument.location.reload()
  5738. }
  5739. } else if (str == 'mind') {
  5740. _iframe = _formdiv.querySelector('iframe')
  5741. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5742. _iframe.contentWindow.document.body.appendChild(script1);
  5743. _iframe.contentWindow.document.body.appendChild(script2);
  5744. _iframe.contentWindow.document.body.appendChild(script4);
  5745. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5746. })
  5747. if (onloadListener) {
  5748. _iframe.contentDocument.location.reload()
  5749. } else {
  5750. _iframe.contentDocument.location.reload()
  5751. }
  5752. } else {
  5753. _iframe.onload = () => {
  5754. _iframe.contentWindow.document.body.appendChild(script1);
  5755. _iframe.contentWindow.document.body.appendChild(script2);
  5756. // _iframe.contentWindow.document.body.appendChild(script3);
  5757. _iframe.contentWindow.document.body.appendChild(script4);
  5758. };
  5759. }
  5760. _jie.onclick = async () => {
  5761. let text = ''
  5762. if (aTool == 6) {
  5763. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5764. } else if (aTool == 3) {
  5765. text = await U.MD.D.I.getEditorContent(_iframe);
  5766. }
  5767. _loading.style.display = 'flex'
  5768. console.log(_loading);
  5769. var _ajs = _iframe.contentWindow.document.createElement("script");
  5770. _ajs.type = "text/javascript";
  5771. _ajs.innerHTML =
  5772. // 'console.log(' + _loading + ');\n' +
  5773. 'var _js = document.createElement("script");\n' +
  5774. '_js.type="text/javascript";\n' +
  5775. '_js.charset="UTF-8";\n' +
  5776. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5777. "_js.onload = function(){\n" +
  5778. ' var a = document.getElementsByTagName("img")\n' +
  5779. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5780. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5781. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5782. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5783. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5784. "beforeUpload_shishi(file," +
  5785. "'" +
  5786. _userid +
  5787. "'" +
  5788. ", " +
  5789. "'" +
  5790. _cid +
  5791. "'" +
  5792. ", " +
  5793. "'" +
  5794. _stage +
  5795. "'" +
  5796. ", " +
  5797. "'" +
  5798. _task +
  5799. "'" +
  5800. ", " +
  5801. "'" +
  5802. _tool +
  5803. "'" +
  5804. ", " +
  5805. "'" +
  5806. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5807. "'" +
  5808. ", " +
  5809. "'" +
  5810. aTool +
  5811. "'" +
  5812. ", " +
  5813. "`" +
  5814. text +
  5815. "`" +
  5816. ")\n" +
  5817. " });\n" +
  5818. "}\n" +
  5819. "document.head.appendChild(_js);\n";
  5820. _iframe.contentWindow.document.head.appendChild(_ajs);
  5821. }
  5822. }
  5823. //U.MD.D.I.openClick(str);
  5824. //如果有任务栏信息
  5825. // if (_taskbar) {
  5826. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5827. // }
  5828. }
  5829. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5830. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5831. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5832. _userinfo = US.userInfo, //登录用户信息
  5833. _userid = US.userInfo.userid //登录用户id
  5834. let _iframe;
  5835. let _cid = cid,
  5836. _stage = stage,
  5837. _task = task,
  5838. _tool = tool;
  5839. var _jie = $$("div", {
  5840. "style": {
  5841. "position": "absolute",
  5842. "bottom": "50px",
  5843. "right": "50px",
  5844. "zIndex": "9999",
  5845. "backgroundColor": "#2268bc",
  5846. "color": "#fff",
  5847. "padding": "12px 20px",
  5848. "cursor": "pointer",
  5849. "borderRadius": "4px",
  5850. },
  5851. "innerHTML": "确认并提交"
  5852. })
  5853. let aTool = ''
  5854. let _loading = document.createElement('div')
  5855. _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;"
  5856. // _loading.id = "";
  5857. let _lchild = document.createElement('div')
  5858. let _limg = document.createElement('img')
  5859. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5860. _limg.style = "width: 26px;margin-right: 10px;"
  5861. _lchild.appendChild(_limg)
  5862. let _lspan = document.createElement('span')
  5863. _lspan.innerHTML = "上传中..."
  5864. _lchild.appendChild(_lspan)
  5865. _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%);"
  5866. _loading.appendChild(_lchild)
  5867. var _box = $$('div', {
  5868. "style": {
  5869. "position": "relative",
  5870. "width": "100%",
  5871. "height": "100%",
  5872. },
  5873. })
  5874. _box.appendChild(_loading)
  5875. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5876. switch (str) {
  5877. case "whiteboard":
  5878. aTool = 1;
  5879. _iframe = $$("iframe", {
  5880. "frameborder": "no",
  5881. "border": "0",
  5882. "scrolling ": "no",
  5883. "style": {
  5884. "cssText": "border:0;width:100%;height:100%"
  5885. },
  5886. "src": "https://iwb.cocorobo.cn/"
  5887. })
  5888. _box.appendChild(_iframe);
  5889. _box.appendChild(_jie);
  5890. _formdiv = new U.UF.UI.form(
  5891. "电子白板",
  5892. _box, {
  5893. "id": "whiteboards" + cid + stage + task + tool,
  5894. "style": {
  5895. "width": "90%",
  5896. "height": "90%",
  5897. "overflow": 'hidden'
  5898. },
  5899. "onresize": function () { }
  5900. }, {
  5901. closecallback: function () { }
  5902. }, {
  5903. "style": {
  5904. "height": "36px"
  5905. }
  5906. }).form; //创建窗体
  5907. _taskbar = {
  5908. "id": str + _formdiv.id,
  5909. "style": {
  5910. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5911. },
  5912. "name": "电子白板",
  5913. "forms": _formdiv,
  5914. "click": function () {
  5915. U.MD.D.I.openApplication(str, obj, info);
  5916. }
  5917. }
  5918. break;
  5919. case "mind":
  5920. aTool = 3;
  5921. _iframe = $$("iframe", {
  5922. "frameborder": "no",
  5923. "border": "0",
  5924. "scrolling ": "no",
  5925. "style": {
  5926. "cssText": "border:0;width:100%;height:100%"
  5927. },
  5928. "src": "/kityminder-editor/dist/index.html"
  5929. });
  5930. _box.appendChild(_iframe);
  5931. _box.appendChild(_jie);
  5932. _formdiv = new U.UF.UI.form(
  5933. "思维导图",
  5934. _box, { //"/jsmind/example/demo.html"
  5935. "id": "minds" + cid + stage + task + tool,
  5936. "style": {
  5937. "width": "90%",
  5938. "height": "90%",
  5939. "overflow": 'hidden'
  5940. },
  5941. "onresize": function () { }
  5942. }, {
  5943. closecallback: function () { }
  5944. }, {
  5945. "style": {
  5946. "height": "36px"
  5947. }
  5948. }).form; //创建窗体
  5949. _taskbar = {
  5950. "id": str + _formdiv.id,
  5951. "style": {
  5952. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5953. },
  5954. "name": "思维导图",
  5955. "forms": _formdiv,
  5956. "click": function () {
  5957. U.MD.D.I.openApplication(str, obj, info);
  5958. }
  5959. }
  5960. break;
  5961. case "doc":
  5962. aTool = 6;
  5963. _iframe = $$("iframe", {
  5964. "frameborder": "no",
  5965. "border": "0",
  5966. "scrolling ": "no",
  5967. "style": {
  5968. "cssText": "border:0;width:100%;height:100%"
  5969. },
  5970. "src": "/Office/Word/WordEditArea.htm"
  5971. })
  5972. _box.appendChild(_iframe);
  5973. _box.appendChild(_jie);
  5974. _formdiv = new U.UF.UI.form(
  5975. "协同文档",
  5976. _box, {
  5977. "id": "docs" + cid + stage + task + tool,
  5978. "style": {
  5979. "width": "90%",
  5980. "height": "90%",
  5981. "overflow": 'hidden'
  5982. },
  5983. "onresize": function () { }
  5984. }, {
  5985. closecallback: function () { }
  5986. }, {
  5987. "style": {
  5988. "height": "36px"
  5989. }
  5990. }).form; //创建窗体
  5991. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5992. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5993. })
  5994. _taskbar = {
  5995. "id": str + _formdiv.id,
  5996. "style": {
  5997. "backgroundImage": "url(/img/icon/doc.png)"
  5998. },
  5999. "name": "协同文档",
  6000. "forms": _formdiv,
  6001. "click": function () {
  6002. U.MD.D.I.openApplication(str, obj, info);
  6003. }
  6004. }
  6005. break;
  6006. }
  6007. const script1 = document.createElement("script");
  6008. script1.type = "text/javascript";
  6009. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6010. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6011. const script2 = document.createElement("script");
  6012. script2.type = "text/javascript";
  6013. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6014. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6015. const script3 = document.createElement("script");
  6016. script3.type = "text/javascript";
  6017. script3.charset = "UTF-8";
  6018. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6019. const script4 = document.createElement("script");
  6020. script4.type = "text/javascript";
  6021. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6022. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6023. if (_iframe) {
  6024. if (str == 'doc') {
  6025. _iframe = _formdiv.querySelector('iframe')
  6026. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6027. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6028. _iframe.contentWindow.document.body.appendChild(script1);
  6029. _iframe.contentWindow.document.body.appendChild(script2);
  6030. // _iframe.contentWindow.document.body.appendChild(script3);
  6031. _iframe.contentWindow.document.body.appendChild(script4);
  6032. })
  6033. if (onloadListener) {
  6034. _iframe.contentDocument.location.reload()
  6035. } else {
  6036. _iframe.contentDocument.location.reload()
  6037. }
  6038. } else if (str == 'mind') {
  6039. _iframe = _formdiv.querySelector('iframe')
  6040. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6041. _iframe.contentWindow.document.body.appendChild(script1);
  6042. _iframe.contentWindow.document.body.appendChild(script2);
  6043. _iframe.contentWindow.document.body.appendChild(script4);
  6044. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6045. })
  6046. if (onloadListener) {
  6047. _iframe.contentDocument.location.reload()
  6048. } else {
  6049. _iframe.contentDocument.location.reload()
  6050. }
  6051. } else {
  6052. _iframe.onload = () => {
  6053. _iframe.contentWindow.document.body.appendChild(script1);
  6054. _iframe.contentWindow.document.body.appendChild(script2);
  6055. // _iframe.contentWindow.document.body.appendChild(script3);
  6056. _iframe.contentWindow.document.body.appendChild(script4);
  6057. };
  6058. }
  6059. _jie.onclick = async () => {
  6060. let text = ''
  6061. if (aTool == 6) {
  6062. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6063. } else if (aTool == 3) {
  6064. text = await U.MD.D.I.getEditorContent(_iframe);
  6065. }
  6066. _loading.style.display = 'flex'
  6067. console.log(_loading);
  6068. var _ajs = _iframe.contentWindow.document.createElement("script");
  6069. _ajs.type = "text/javascript";
  6070. _ajs.innerHTML =
  6071. // 'console.log(' + _loading + ');\n' +
  6072. 'var _js = document.createElement("script");\n' +
  6073. '_js.type="text/javascript";\n' +
  6074. '_js.charset="UTF-8";\n' +
  6075. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6076. "_js.onload = function(){\n" +
  6077. ' var a = document.getElementsByTagName("img")\n' +
  6078. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6079. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6080. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6081. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6082. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6083. "beforeUpload_shishi(file," +
  6084. "'" +
  6085. _userid +
  6086. "'" +
  6087. ", " +
  6088. "'" +
  6089. _cid +
  6090. "'" +
  6091. ", " +
  6092. "'" +
  6093. _stage +
  6094. "'" +
  6095. ", " +
  6096. "'" +
  6097. _task +
  6098. "'" +
  6099. ", " +
  6100. "'" +
  6101. _tool +
  6102. "'" +
  6103. ", " +
  6104. "'" +
  6105. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6106. "'" +
  6107. ", " +
  6108. "'" +
  6109. aTool +
  6110. "'" +
  6111. ", " +
  6112. "`" +
  6113. text +
  6114. "`" +
  6115. ")\n" +
  6116. " });\n" +
  6117. "}\n" +
  6118. "document.head.appendChild(_js);\n";
  6119. _iframe.contentWindow.document.head.appendChild(_ajs);
  6120. }
  6121. }
  6122. //U.MD.D.I.openClick(str);
  6123. //如果有任务栏信息
  6124. // if (_taskbar) {
  6125. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6126. // }
  6127. }
  6128. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6129. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6130. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6131. _userinfo = US.userInfo, //登录用户信息
  6132. _userid = US.userInfo.userid //登录用户id
  6133. let _iframe;
  6134. let _cid = cid,
  6135. _stage = stage,
  6136. _task = task,
  6137. _tool = tool;
  6138. var _jie = $$("div", {
  6139. "style": {
  6140. "position": "absolute",
  6141. "bottom": "50px",
  6142. "right": "50px",
  6143. "zIndex": "9999",
  6144. "backgroundColor": "#2268bc",
  6145. "color": "#fff",
  6146. "padding": "12px 20px",
  6147. "cursor": "pointer",
  6148. "borderRadius": "4px",
  6149. },
  6150. "innerHTML": "上传模板"
  6151. })
  6152. let aTool = ''
  6153. let _loading = document.createElement('div')
  6154. _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;"
  6155. // _loading.id = "";
  6156. let _lchild = document.createElement('div')
  6157. let _limg = document.createElement('img')
  6158. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6159. _limg.style = "width: 26px;margin-right: 10px;"
  6160. _lchild.appendChild(_limg)
  6161. let _lspan = document.createElement('span')
  6162. _lspan.innerHTML = "上传中..."
  6163. _lchild.appendChild(_lspan)
  6164. _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%);"
  6165. _loading.appendChild(_lchild)
  6166. var _box = $$('div', {
  6167. "style": {
  6168. "position": "relative",
  6169. "width": "100%",
  6170. "height": "100%",
  6171. },
  6172. })
  6173. _box.appendChild(_loading)
  6174. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6175. switch (str) {
  6176. case "whiteboard":
  6177. aTool = 1;
  6178. _iframe = $$("iframe", {
  6179. "frameborder": "no",
  6180. "border": "0",
  6181. "scrolling ": "no",
  6182. "style": {
  6183. "cssText": "border:0;width:100%;height:100%"
  6184. },
  6185. "src": "https://iwb.cocorobo.cn/"
  6186. })
  6187. _box.appendChild(_iframe);
  6188. _box.appendChild(_jie);
  6189. _formdiv = new U.UF.UI.form(
  6190. "电子白板",
  6191. _box, {
  6192. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6193. "style": {
  6194. "width": "90%",
  6195. "height": "90%",
  6196. "overflow": 'hidden'
  6197. },
  6198. "onresize": function () { }
  6199. }, {
  6200. closecallback: function () { }
  6201. }, {
  6202. "style": {
  6203. "height": "36px"
  6204. }
  6205. }).form; //创建窗体
  6206. _taskbar = {
  6207. "id": str + _formdiv.id,
  6208. "style": {
  6209. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6210. },
  6211. "name": "电子白板",
  6212. "forms": _formdiv,
  6213. "click": function () {
  6214. U.MD.D.I.openApplication(str, obj, info);
  6215. }
  6216. }
  6217. break;
  6218. case "mind":
  6219. aTool = 3;
  6220. _iframe = $$("iframe", {
  6221. "frameborder": "no",
  6222. "border": "0",
  6223. "scrolling ": "no",
  6224. "style": {
  6225. "cssText": "border:0;width:100%;height:100%"
  6226. },
  6227. "src": "/kityminder-editor/dist/index.html"
  6228. });
  6229. _box.appendChild(_iframe);
  6230. _box.appendChild(_jie);
  6231. _formdiv = new U.UF.UI.form(
  6232. "思维导图",
  6233. _box, { //"/jsmind/example/demo.html"
  6234. "id": "minds_Yu" + cid + stage + task + tool,
  6235. "style": {
  6236. "width": "90%",
  6237. "height": "90%",
  6238. "overflow": 'hidden'
  6239. },
  6240. "onresize": function () { }
  6241. }, {
  6242. closecallback: function () { }
  6243. }, {
  6244. "style": {
  6245. "height": "36px"
  6246. }
  6247. }).form; //创建窗体
  6248. _taskbar = {
  6249. "id": str + _formdiv.id,
  6250. "style": {
  6251. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6252. },
  6253. "name": "思维导图",
  6254. "forms": _formdiv,
  6255. "click": function () {
  6256. U.MD.D.I.openApplication(str, obj, info);
  6257. }
  6258. }
  6259. break;
  6260. case "doc":
  6261. aTool = 6;
  6262. _iframe = $$("iframe", {
  6263. "frameborder": "no",
  6264. "border": "0",
  6265. "scrolling ": "no",
  6266. "style": {
  6267. "cssText": "border:0;width:100%;height:100%"
  6268. },
  6269. "src": "/Office/Word/WordEditArea.htm"
  6270. })
  6271. _box.appendChild(_iframe);
  6272. _box.appendChild(_jie);
  6273. _formdiv = new U.UF.UI.form(
  6274. "协同文档",
  6275. _box, {
  6276. "id": "docs_Yu" + cid + stage + task + tool,
  6277. "style": {
  6278. "width": "90%",
  6279. "height": "90%",
  6280. "overflow": 'hidden'
  6281. },
  6282. "onresize": function () { }
  6283. }, {
  6284. closecallback: function () { }
  6285. }, {
  6286. "style": {
  6287. "height": "36px"
  6288. }
  6289. }).form; //创建窗体
  6290. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6291. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6292. })
  6293. _taskbar = {
  6294. "id": str + _formdiv.id,
  6295. "style": {
  6296. "backgroundImage": "url(/img/icon/doc.png)"
  6297. },
  6298. "name": "协同文档",
  6299. "forms": _formdiv,
  6300. "click": function () {
  6301. U.MD.D.I.openApplication(str, obj, info);
  6302. }
  6303. }
  6304. break;
  6305. case "CocoPi":
  6306. aTool = 57;
  6307. _iframe = $$("iframe", {
  6308. "allowpaymentrequest":"allowpaymentrequest",
  6309. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6310. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6311. "frameborder": "no",
  6312. "border": "0",
  6313. "scrolling ": "no",
  6314. "style": {
  6315. "cssText": "border:0;width:100%;height:100%"
  6316. },
  6317. "src": "https://beta.v.cocorobo.cn/"
  6318. })
  6319. _box.appendChild(_iframe);
  6320. _box.appendChild(_jie);
  6321. _formdiv = new U.UF.UI.form(
  6322. "CocoPi",
  6323. _box, {
  6324. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6325. "style": {
  6326. "width": "90%",
  6327. "height": "90%",
  6328. "overflow": 'hidden'
  6329. },
  6330. "onresize": function () { }
  6331. }, {
  6332. closecallback: function () { }
  6333. }, {
  6334. "style": {
  6335. "height": "36px"
  6336. }
  6337. }).form; //创建窗体
  6338. _taskbar = {
  6339. "id": str + _formdiv.id,
  6340. "style": {
  6341. "backgroundImage": "url(/img/icon/cocopi.png)"
  6342. },
  6343. "name": "CocoPi",
  6344. "forms": _formdiv,
  6345. "click": function () {
  6346. U.MD.D.I.openApplication(str, obj, info);
  6347. }
  6348. }
  6349. break;
  6350. }
  6351. if (_iframe) {
  6352. if (str == 'doc') {
  6353. _iframe = _formdiv.querySelector('iframe')
  6354. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6355. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6356. })
  6357. if (onloadListener) {
  6358. _iframe.contentDocument.location.reload()
  6359. } else {
  6360. _iframe.contentDocument.location.reload()
  6361. }
  6362. } else if (str == 'mind') {
  6363. _iframe = _formdiv.querySelector('iframe')
  6364. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6365. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6366. })
  6367. if (onloadListener) {
  6368. _iframe.contentDocument.location.reload()
  6369. } else {
  6370. _iframe.contentDocument.location.reload()
  6371. }
  6372. } else if (str == 'whiteboard') {
  6373. _iframe = _formdiv.querySelector('iframe')
  6374. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6375. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6376. })
  6377. if (onloadListener) {
  6378. _iframe.contentDocument.location.reload()
  6379. } else {
  6380. _iframe.contentDocument.location.reload()
  6381. }
  6382. } else if (str == 'CocoPi') {
  6383. _iframe = _formdiv.querySelector('iframe')
  6384. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6385. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6386. })
  6387. if (onloadListener) {
  6388. _iframe.contentDocument.location.reload()
  6389. } else {
  6390. _iframe.contentDocument.location.reload()
  6391. }
  6392. } else {
  6393. _iframe.onload = () => {
  6394. };
  6395. }
  6396. _jie.onclick = async () => {
  6397. let text = ''
  6398. let type = '2'
  6399. if (aTool == 1) {
  6400. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6401. type = '3'
  6402. } else if (aTool == 6) {
  6403. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6404. type = '1'
  6405. } else if (aTool == 3) {
  6406. text = await U.MD.D.I.getEditorContent(_iframe);
  6407. type = '2'
  6408. } else if (aTool == 57) {
  6409. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6410. type = '4'
  6411. }
  6412. _loading.style.display = 'flex'
  6413. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6414. }
  6415. }
  6416. //U.MD.D.I.openClick(str);
  6417. //如果有任务栏信息
  6418. // if (_taskbar) {
  6419. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6420. // }
  6421. }
  6422. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6423. var xmlhttp;
  6424. var Mac, Sn, DeviceId
  6425. if (window.XMLHttpRequest) {
  6426. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6427. xmlhttp = new XMLHttpRequest();
  6428. }
  6429. else {
  6430. // IE6, IE5 浏览器执行代码
  6431. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6432. }
  6433. xmlhttp.onreadystatechange = function () {
  6434. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6435. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6436. // resolve(res.value[0][0].text);
  6437. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6438. }
  6439. }
  6440. }
  6441. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6442. xmlhttp.send();
  6443. }
  6444. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6445. var xmlhttp;
  6446. var Mac, Sn, DeviceId
  6447. if (window.XMLHttpRequest) {
  6448. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6449. xmlhttp = new XMLHttpRequest();
  6450. }
  6451. else {
  6452. // IE6, IE5 浏览器执行代码
  6453. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6454. }
  6455. xmlhttp.onreadystatechange = function () {
  6456. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6457. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6458. // resolve(res.value[0][0].text);
  6459. if (type == '2') {
  6460. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6461. } else if (type == '3') {
  6462. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6463. } else if (type == '4') {
  6464. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6465. }
  6466. } else {
  6467. if (type == '2') {
  6468. iframe.contentWindow.editor.minder.importData('json', '')
  6469. } else if (type == '3') {
  6470. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6471. } else if (type == '4') {
  6472. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6473. }
  6474. }
  6475. }
  6476. }
  6477. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6478. xmlhttp.send();
  6479. }
  6480. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6481. var xmlhttp;
  6482. var Mac, Sn, DeviceId
  6483. if (window.XMLHttpRequest) {
  6484. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6485. xmlhttp = new XMLHttpRequest();
  6486. }
  6487. else {
  6488. // IE6, IE5 浏览器执行代码
  6489. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6490. }
  6491. xmlhttp.onreadystatechange = function () {
  6492. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6493. if (xmlhttp.response) {
  6494. // resolve(res.value[0][0].text);
  6495. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6496. // $(fileInput).val('');
  6497. // });
  6498. span.innerHTML = '上传成功'
  6499. setTimeout(() => {
  6500. loading.style.display = 'none'
  6501. }, 1000);
  6502. }
  6503. }
  6504. }
  6505. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6506. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6507. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6508. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6509. // 设置请求头,表示请求体的编码格式
  6510. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6511. // 设置请求体,使用url-encoded格式的数据
  6512. }
  6513. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6514. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6515. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6516. _userinfo = US.userInfo, //登录用户信息
  6517. _userid = US.userInfo.userid //登录用户id
  6518. let _iframe;
  6519. let _cid = cid,
  6520. _stage = stage,
  6521. _task = task,
  6522. _tool = tool;
  6523. var _jie = $$("div", {
  6524. "style": {
  6525. "position": "absolute",
  6526. "bottom": "50px",
  6527. "right": "50px",
  6528. "zIndex": "9999",
  6529. "backgroundColor": "#2268bc",
  6530. "color": "#fff",
  6531. "padding": "12px 20px",
  6532. "cursor": "pointer",
  6533. "borderRadius": "4px",
  6534. },
  6535. "innerHTML": "提交作业"
  6536. })
  6537. let aTool = ''
  6538. let _loading = document.createElement('div')
  6539. _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;"
  6540. // _loading.id = "";
  6541. let _lchild = document.createElement('div')
  6542. let _limg = document.createElement('img')
  6543. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6544. _limg.style = "width: 26px;margin-right: 10px;"
  6545. _lchild.appendChild(_limg)
  6546. let _lspan = document.createElement('span')
  6547. _lspan.innerHTML = "上传中..."
  6548. _lchild.appendChild(_lspan)
  6549. _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%);"
  6550. _loading.appendChild(_lchild)
  6551. var _box = $$('div', {
  6552. "style": {
  6553. "position": "relative",
  6554. "width": "100%",
  6555. "height": "100%",
  6556. },
  6557. })
  6558. _box.appendChild(_loading)
  6559. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6560. switch (str) {
  6561. case "CocoPi":
  6562. aTool = 57;
  6563. _iframe = $$("iframe", {
  6564. "allowpaymentrequest":"allowpaymentrequest",
  6565. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6566. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6567. "frameborder": "no",
  6568. "border": "0",
  6569. "scrolling ": "no",
  6570. "style": {
  6571. "cssText": "border:0;width:100%;height:100%"
  6572. },
  6573. "src": "https://beta.v.cocorobo.cn/"
  6574. })
  6575. _box.appendChild(_iframe);
  6576. _box.appendChild(_jie);
  6577. _formdiv = new U.UF.UI.form(
  6578. "CocoPi",
  6579. _box, {
  6580. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6581. "style": {
  6582. "width": "90%",
  6583. "height": "90%",
  6584. "overflow": 'hidden'
  6585. },
  6586. "onresize": function () { }
  6587. }, {
  6588. closecallback: function () { }
  6589. }, {
  6590. "style": {
  6591. "height": "36px"
  6592. }
  6593. }).form; //创建窗体
  6594. _taskbar = {
  6595. "id": str + _formdiv.id,
  6596. "style": {
  6597. "backgroundImage": "url(/img/icon/cocopi.png)"
  6598. },
  6599. "name": "CocoPi",
  6600. "forms": _formdiv,
  6601. "click": function () {
  6602. U.MD.D.I.openApplication(str, obj, info);
  6603. }
  6604. }
  6605. break;
  6606. }
  6607. if (_iframe) {
  6608. if (str == 'CocoPi') {
  6609. _iframe = _formdiv.querySelector('iframe')
  6610. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6611. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6612. })
  6613. if (onloadListener) {
  6614. _iframe.contentDocument.location.reload()
  6615. } else {
  6616. _iframe.contentDocument.location.reload()
  6617. }
  6618. }
  6619. _jie.onclick = async () => {
  6620. let text = ''
  6621. if (aTool == 57) {
  6622. text = _iframe.contentWindow.getLoadXmlStr()
  6623. }
  6624. _loading.style.display = 'flex'
  6625. console.log(_loading);
  6626. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6627. _loading.style.display = 'none'
  6628. let _div = document.createElement('div')
  6629. _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;"
  6630. let _inner = document.createElement('div')
  6631. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6632. _inner.innerHTML = "上传成功"
  6633. _div.appendChild(_inner)
  6634. _iframe.contentWindow.window.document.body.appendChild(_div)
  6635. _div.onclick = () => {
  6636. _iframe.contentWindow.window.document.body.removeChild(_div)
  6637. }
  6638. setTimeout(() => {
  6639. _iframe.contentWindow.window.document.body.removeChild(_div)
  6640. }, 1000);
  6641. }, [], { "type": "POST", "withCredentials": true });
  6642. }
  6643. }
  6644. }
  6645. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6646. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6647. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6648. _userid = student.userid, //登录用户id
  6649. _username = student.student //用户名字
  6650. let _iframe;
  6651. let _cid = cid,
  6652. _stage = stage,
  6653. _task = task,
  6654. _tool = tool;
  6655. var _jie = $$("div", {
  6656. "style": {
  6657. "position": "absolute",
  6658. "bottom": "50px",
  6659. "right": "50px",
  6660. "zIndex": "9999",
  6661. "backgroundColor": "#2268bc",
  6662. "color": "#fff",
  6663. "padding": "12px 20px",
  6664. "cursor": "pointer",
  6665. "borderRadius": "4px",
  6666. },
  6667. "innerHTML": "提交作业"
  6668. })
  6669. let aTool = ''
  6670. let _loading = document.createElement('div')
  6671. _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;"
  6672. // _loading.id = "";
  6673. let _lchild = document.createElement('div')
  6674. let _limg = document.createElement('img')
  6675. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6676. _limg.style = "width: 26px;margin-right: 10px;"
  6677. _lchild.appendChild(_limg)
  6678. let _lspan = document.createElement('span')
  6679. _lspan.innerHTML = "上传中..."
  6680. _lchild.appendChild(_lspan)
  6681. _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%);"
  6682. _loading.appendChild(_lchild)
  6683. var _box = $$('div', {
  6684. "style": {
  6685. "position": "relative",
  6686. "width": "100%",
  6687. "height": "100%",
  6688. },
  6689. })
  6690. _box.appendChild(_loading)
  6691. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6692. switch (str) {
  6693. case "CocoPi":
  6694. aTool = 57;
  6695. _iframe = $$("iframe", {
  6696. "allowpaymentrequest":"allowpaymentrequest",
  6697. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6698. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6699. "frameborder": "no",
  6700. "border": "0",
  6701. "scrolling ": "no",
  6702. "style": {
  6703. "cssText": "border:0;width:100%;height:100%"
  6704. },
  6705. "src": "https://beta.v.cocorobo.cn/"
  6706. })
  6707. _box.appendChild(_iframe);
  6708. _box.appendChild(_jie);
  6709. _formdiv = new U.UF.UI.form(
  6710. "CocoPi-" + _username,
  6711. _box, {
  6712. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6713. "style": {
  6714. "width": "90%",
  6715. "height": "90%",
  6716. "overflow": 'hidden'
  6717. },
  6718. "onresize": function () { }
  6719. }, {
  6720. closecallback: function () { }
  6721. }, {
  6722. "style": {
  6723. "height": "36px"
  6724. }
  6725. }).form; //创建窗体
  6726. _taskbar = {
  6727. "id": str + _formdiv.id,
  6728. "style": {
  6729. "backgroundImage": "url(/img/icon/cocopi.png)"
  6730. },
  6731. "name": "CocoPi",
  6732. "forms": _formdiv,
  6733. "click": function () {
  6734. U.MD.D.I.openApplication(str, obj, info);
  6735. }
  6736. }
  6737. break;
  6738. }
  6739. if (_iframe) {
  6740. if (str == 'CocoPi') {
  6741. _iframe = _formdiv.querySelector('iframe')
  6742. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6743. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6744. })
  6745. if (onloadListener) {
  6746. _iframe.contentDocument.location.reload()
  6747. } else {
  6748. _iframe.contentDocument.location.reload()
  6749. }
  6750. }
  6751. _jie.onclick = async () => {
  6752. let text = ''
  6753. if (aTool == 57) {
  6754. text = _iframe.contentWindow.getLoadXmlStr()
  6755. }
  6756. _loading.style.display = 'flex'
  6757. console.log(_loading);
  6758. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6759. _loading.style.display = 'none'
  6760. let _div = document.createElement('div')
  6761. _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;"
  6762. let _inner = document.createElement('div')
  6763. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6764. _inner.innerHTML = "上传成功"
  6765. _div.appendChild(_inner)
  6766. _iframe.contentWindow.window.document.body.appendChild(_div)
  6767. _div.onclick = () => {
  6768. _iframe.contentWindow.window.document.body.removeChild(_div)
  6769. }
  6770. setTimeout(() => {
  6771. _iframe.contentWindow.window.document.body.removeChild(_div)
  6772. }, 1000);
  6773. }, [], { "type": "POST", "withCredentials": true });
  6774. }
  6775. }
  6776. }
  6777. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6778. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6779. if (res.value[0].length > 0) {
  6780. if (atool == 57) {
  6781. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6782. }
  6783. } else {
  6784. if (atool == 57) {
  6785. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6786. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6787. }
  6788. }
  6789. }, [], { "type": "POST", "withCredentials": true });
  6790. }