DeskTop.js 393 KB

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