DeskTop.js 406 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //极简模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教师桌面图标的全局变量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.orgStemDeskIcon = [
  177. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  178. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  179. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  180. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  181. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  182. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  183. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  184. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  185. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  186. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  187. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  188. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  189. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  190. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.szulsDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  197. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  198. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  199. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  200. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  201. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  202. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.hanDeskIcon = [
  206. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  207. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  208. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  209. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  210. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  211. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  212. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  213. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  214. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  215. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  216. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  217. ];
  218. U.MD.D.I.GMteacherDeskIcon = [
  219. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  220. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  221. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  222. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  223. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  224. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  225. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  226. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  227. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  230. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  231. ];
  232. U.MD.D.I.GMstudentDeskIcon = [
  233. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  234. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  235. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  236. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  237. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  238. ];
  239. //北师大
  240. U.MD.D.I.BSDNSteacherDeskIcon = [
  241. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  242. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  243. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  244. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  245. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  246. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  247. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  248. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  249. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  250. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  251. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  252. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  253. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  254. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  255. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  256. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  257. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  258. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  259. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  260. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  261. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  262. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  263. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  264. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  265. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  266. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  267. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  268. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  269. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  270. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  271. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  272. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  273. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  274. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  275. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  276. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  277. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  278. ];
  279. //松山湖
  280. U.MD.D.I.SONGteacherDeskIcon = [
  281. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  282. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  283. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  284. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  285. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  286. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  287. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  288. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  289. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  290. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  291. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  292. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  293. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  294. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  295. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  296. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  297. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  298. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  299. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  300. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  301. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  302. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  303. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  304. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  305. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  306. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  307. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  308. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  309. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  310. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  311. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  312. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  313. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  314. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  315. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  316. ];
  317. U.MD.D.I.tcStudentDeskIcon = [
  318. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  319. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.tcTeacherDeskIcon = [
  323. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  324. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  325. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  326. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  327. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  328. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  329. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  330. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.tcOrganizerDeskIcon = [
  334. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  337. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  338. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  339. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  340. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  341. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  342. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscStudentDeskIcon = [
  346. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  347. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  348. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. ];
  351. U.MD.D.I.szscTeacherDeskIcon = [
  352. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  353. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  354. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  357. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  358. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  359. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  360. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  361. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  362. ];
  363. U.MD.D.I.szscOrganizerDeskIcon = [
  364. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  365. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  366. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  367. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  368. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  369. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  370. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  373. ];
  374. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  382. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  383. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  384. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  385. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  386. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  387. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  388. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  389. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  390. ];
  391. U.MD.D.I.wankeAdminDeskIcon = [
  392. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  393. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  394. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  395. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  396. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  397. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  398. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  399. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  400. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  401. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  402. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  403. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  404. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  405. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  406. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  407. ];
  408. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  409. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  410. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  411. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  412. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  413. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  414. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  415. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  416. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  417. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  418. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  419. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  420. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  421. ];
  422. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  423. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  424. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  425. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  426. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  427. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  428. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  429. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  430. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  431. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  432. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  433. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  434. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  435. ];
  436. //明德教师桌面图标的全局变量
  437. U.MD.D.I.MingdeTeacherDeskIcon = [
  438. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  439. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  440. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  441. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  445. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  446. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  447. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  448. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  449. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  450. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  451. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  452. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  453. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  454. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  455. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  456. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  457. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  458. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  459. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  460. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  461. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  462. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  463. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  464. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  465. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //97c4ee8b-d010-4042-986d-e9d3c217264f
  470. //教师桌面图标的全局变量
  471. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  472. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  475. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  476. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  477. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  478. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  479. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  480. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  482. ];
  483. //福田
  484. U.MD.D.I.futianTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  493. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //福田
  497. U.MD.D.I.futianAdminDeskIcon = [
  498. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  506. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  507. ];
  508. //lotech
  509. U.MD.D.I.lotechTeacherDeskIcon = [
  510. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  511. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  515. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  518. ];
  519. //龙华中心小学教师桌面图标的全局变量
  520. U.MD.D.I.longhuateacherDeskIcon = [
  521. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  522. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  523. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  524. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. ];
  534. //教科院实小教师桌面图标的全局变量
  535. U.MD.D.I.siesteacherDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  539. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  540. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  543. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  544. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  545. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  546. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  547. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  548. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  549. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  550. ];
  551. //福田
  552. U.MD.D.I.gdjgTeacherDeskIcon = [
  553. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  554. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  555. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  556. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  557. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  558. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  559. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  560. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  561. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  562. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  563. ];
  564. //gdjg
  565. U.MD.D.I.gdjgAdminDeskIcon = [
  566. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  567. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  568. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  569. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  570. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  571. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  572. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  573. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  574. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  575. ];
  576. //hk
  577. U.MD.D.I.hkteacherDeskIcon = [
  578. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  579. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  581. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  582. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  583. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  584. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  585. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  586. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  587. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  588. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  589. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  590. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  591. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  592. ];
  593. //hk
  594. U.MD.D.I.hkStudentDeskIcon = [
  595. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  596. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  597. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  598. ];
  599. //香海正覺蓮社佛教正覺中學
  600. U.MD.D.I.hkZJLSteacherDeskIcon = [
  601. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  602. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  604. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  605. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  606. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  607. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  608. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  609. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  610. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  611. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  612. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  613. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  614. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  615. ];
  616. //香海正覺蓮社佛教正覺中學
  617. U.MD.D.I.hkZJLSStudentDeskIcon = [
  618. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  619. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  620. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  621. ];
  622. //云海
  623. U.MD.D.I.yunhaiTeacherDeskIcon = [
  624. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  625. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  626. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  627. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  628. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  629. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  630. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  631. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  632. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  633. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  634. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  635. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  636. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  637. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  638. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  639. ];
  640. //福田
  641. U.MD.D.I.heyuanTeacherDeskIcon = [
  642. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  643. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  644. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  645. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  646. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  647. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  648. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  649. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  650. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  651. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  652. ];
  653. //福田
  654. U.MD.D.I.heyuanAdminDeskIcon = [
  655. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  656. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  657. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  658. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  659. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  660. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  661. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  662. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  663. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  664. ];
  665. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  666. U.MD.D.I.szherTeacherDeskIcon = [
  667. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  668. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  669. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  670. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  671. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  672. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  673. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  674. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  675. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  676. ];
  677. //dsei
  678. U.MD.D.I.dseiTeacherDeskIcon = [
  679. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  680. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  681. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  682. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  683. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  684. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  685. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  686. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  687. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  688. ];
  689. //dsei
  690. U.MD.D.I.dseiAdminDeskIcon = [
  691. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  692. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  693. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  694. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  695. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  696. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  697. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  698. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  699. ];
  700. //#region 桌面初始化a
  701. /**
  702. * 初始化桌面的起始函数
  703. *
  704. */
  705. U.MD.D.I.init = function () {
  706. if ($("#U_MD_D_K")[0]) {
  707. //初始化桌面图标
  708. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  709. // var clickUrl = ':12588/requestIp.php';
  710. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  711. // U.MD.D.I.Ip = data;
  712. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  713. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  714. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  715. // })
  716. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  717. // })
  718. }
  719. }
  720. /**
  721. * 模式切换
  722. *
  723. */
  724. U.MD.D.I.ModeCheck = function (type) {
  725. if (US.Config.type == type) {
  726. return
  727. }
  728. US.Config.type = type
  729. $('.U_PBL_Check .active')[0].className = ''
  730. if (type == 1) {
  731. $('.U_PBL_Check div')[0].className = 'active'
  732. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  733. } else {
  734. $('.U_PBL_Check div')[1].className = 'active'
  735. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  736. }
  737. //初始化桌面图标
  738. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  739. if(type == 2){
  740. U.MD.D.I.openApplication("project")
  741. }
  742. }
  743. /**
  744. * 隐藏任务栏
  745. *
  746. * @param {element} 桌面元素
  747. */
  748. U.MD.D.I.hiddenTaskbar = function (el) {
  749. //任务栏位置变小
  750. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  751. //桌面的位置变大
  752. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  753. }
  754. /**
  755. * 隐藏任务栏
  756. *
  757. * @param {element} 桌面元素
  758. */
  759. U.MD.D.I.hiddenTaskbarout = function (el) {
  760. //任务栏位置变小
  761. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  762. //任务栏位置变化
  763. U.selectEl(el).css({ "bottom": "-60px" });
  764. //桌面的位置变大
  765. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  766. }
  767. }
  768. /**
  769. * 初始化打印桌面图标
  770. *
  771. * @param {element} 桌面元素
  772. */
  773. U.MD.D.I.initDesktopIcons = function (el, type) {
  774. var i, //用于循环
  775. _content, //桌面图标元素
  776. _iconcontent, //桌面图标元素
  777. _frag = $$("frag"), //定义一个碎片元素
  778. _type = US.userInfo.type,
  779. _org = US.userInfo.org,
  780. _oid = US.userInfo.organizeid,
  781. _role = US.userInfo.role,
  782. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  783. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  784. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  785. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  786. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  787. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  788. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  789. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  790. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  791. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  792. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  793. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  794. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  795. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  796. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  797. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  798. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  799. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  800. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  801. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  802. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  803. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  804. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  805. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  806. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  807. _desiTeacherDeskIconInfo = U.MD.D.I.desiTeacherDeskIcon,//福田
  808. _desiAdminDeskIconInfo = U.MD.D.I.desiAdminDeskIcon,//福田
  809. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  810. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  811. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  812. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  813. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  814. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  815. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  816. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  817. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  818. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  819. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  820. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon,//hk
  821. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon,//hk
  822. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  823. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  824. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  825. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  826. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4','ea2a8c65-f38c-11ed-91d8-005056b86db5','4c686762-1d0a-11ed-8c78-005056b86db5','b1095a3c-1d06-4ac8-854f-7c0d97f4ab41','206c38d2-0cbe-11ee-91d8-005056b86db5'];
  827. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f','ec0af97a-7c10-4259-a7eb-db9cc8174cdc','4df1b570-f6ac-48fc-8d50-d0b157dae776','e632b86c-f89d-11ed-91d8-005056b86db5','b50cf65a-001c-11ee-91d8-005056b86db5','578de748-05d2-11ee-91d8-005056b86db5','54f09f1e-09f0-11ee-91d8-005056b86db5','7b016f69-0f4f-11ee-91d8-005056b86db5'];
  828. //清楚桌面图标
  829. el.innerHTML = "";
  830. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  831. _teacherDesktopIconInfo.push(
  832. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  833. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  834. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  835. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  836. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  837. )
  838. _easyDesktopIconInfo.push(
  839. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  840. )
  841. }
  842. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  843. _teacherDesktopIconInfo.push(
  844. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  845. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  846. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  847. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  848. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  849. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  850. )
  851. }
  852. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  853. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  854. if(el.Name == '项目管理'){
  855. el.Name = 'PBL项目'
  856. }
  857. return el
  858. })
  859. }
  860. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  861. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  862. return el.Name != '魔盒识字' && el.Name != '24点'
  863. })
  864. }
  865. 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) {
  866. _studentDesktopIconInfo.push(
  867. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  868. )
  869. }
  870. //循环创建桌面图标
  871. if (type == 1) {
  872. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  873. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  874. _content = $$("div", {
  875. className: "U_MD_D_KO",
  876. "onmousedown": U.UF.C.closure(function (obj) {
  877. //防止拖动图标即打开了桌面应用
  878. U.MD.D.click(this, obj);
  879. }, [_studentDesktopIconInfo[i]]),
  880. "onclick": U.UF.C.closure(function (obj) {
  881. //防止拖动图标即打开了桌面应用
  882. U.MD.D.click(this, obj);
  883. }, [_studentDesktopIconInfo[i]])
  884. }, _frag); //
  885. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  886. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  887. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  888. }
  889. }else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  890. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  891. _content = $$("div", {
  892. className: "U_MD_D_KO",
  893. "onmousedown": U.UF.C.closure(function (obj) {
  894. //防止拖动图标即打开了桌面应用
  895. U.MD.D.click(this, obj);
  896. }, [_hkZJLSStudentDeskIconInfo[i]]),
  897. "onclick": U.UF.C.closure(function (obj) {
  898. //防止拖动图标即打开了桌面应用
  899. U.MD.D.click(this, obj);
  900. }, [_hkZJLSStudentDeskIconInfo[i]])
  901. }, _frag); //
  902. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  903. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  904. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  905. }
  906. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  907. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  908. _content = $$("div", {
  909. className: "U_MD_D_KO",
  910. "onmousedown": U.UF.C.closure(function (obj) {
  911. //防止拖动图标即打开了桌面应用
  912. U.MD.D.click(this, obj);
  913. }, [_hkStudentDeskIconInfo[i]]),
  914. "onclick": U.UF.C.closure(function (obj) {
  915. //防止拖动图标即打开了桌面应用
  916. U.MD.D.click(this, obj);
  917. }, [_hkStudentDeskIconInfo[i]])
  918. }, _frag); //
  919. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  920. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  921. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  922. }
  923. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  924. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  925. _content = $$("div", {
  926. className: "U_MD_D_KO",
  927. "onmousedown": U.UF.C.closure(function (obj) {
  928. //防止拖动图标即打开了桌面应用
  929. U.MD.D.click(this, obj);
  930. }, [_studentDesktopIconInfo[i]]),
  931. "onclick": U.UF.C.closure(function (obj) {
  932. //防止拖动图标即打开了桌面应用
  933. U.MD.D.click(this, obj);
  934. }, [_studentDesktopIconInfo[i]])
  935. }, _frag); //
  936. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  937. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  938. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  939. }
  940. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  941. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  942. _content = $$("div", {
  943. className: "U_MD_D_KO",
  944. "onmousedown": U.UF.C.closure(function (obj) {
  945. //防止拖动图标即打开了桌面应用
  946. U.MD.D.click(this, obj);
  947. }, [_tcStudentDeskIconInfo[i]]),
  948. "onclick": U.UF.C.closure(function (obj) {
  949. //防止拖动图标即打开了桌面应用
  950. U.MD.D.click(this, obj);
  951. }, [_tcStudentDeskIconInfo[i]])
  952. }, _frag); //
  953. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  954. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  955. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  956. }
  957. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  958. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  959. _content = $$("div", {
  960. className: "U_MD_D_KO",
  961. "onmousedown": U.UF.C.closure(function (obj) {
  962. //防止拖动图标即打开了桌面应用
  963. U.MD.D.click(this, obj);
  964. }, [_szscStudentDeskIconInfo[i]]),
  965. "onclick": U.UF.C.closure(function (obj) {
  966. //防止拖动图标即打开了桌面应用
  967. U.MD.D.click(this, obj);
  968. }, [_szscStudentDeskIconInfo[i]])
  969. }, _frag); //
  970. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  971. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  972. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  973. }
  974. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  975. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  976. _content = $$("div", {
  977. className: "U_MD_D_KO",
  978. "onmousedown": U.UF.C.closure(function (obj) {
  979. //防止拖动图标即打开了桌面应用
  980. U.MD.D.click(this, obj);
  981. }, [_studentDesktopIconInfo3[i]]),
  982. "onclick": U.UF.C.closure(function (obj) {
  983. //防止拖动图标即打开了桌面应用
  984. U.MD.D.click(this, obj);
  985. }, [_studentDesktopIconInfo3[i]])
  986. }, _frag); //
  987. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  988. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  989. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  990. }
  991. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  992. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  993. _content = $$("div", {
  994. className: "U_MD_D_KO",
  995. "onmousedown": U.UF.C.closure(function (obj) {
  996. //防止拖动图标即打开了桌面应用
  997. U.MD.D.click(this, obj);
  998. }, [_studentDesktopIconInfo2[i]]),
  999. "onclick": U.UF.C.closure(function (obj) {
  1000. //防止拖动图标即打开了桌面应用
  1001. U.MD.D.click(this, obj);
  1002. }, [_studentDesktopIconInfo2[i]])
  1003. }, _frag); //
  1004. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1005. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1006. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1007. }
  1008. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1009. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1010. _content = $$("div", {
  1011. className: "U_MD_D_KO",
  1012. "onmousedown": U.UF.C.closure(function (obj) {
  1013. //防止拖动图标即打开了桌面应用
  1014. U.MD.D.click(this, obj);
  1015. }, [_wanketeacherDesktopIconInfo[i]]),
  1016. "onclick": U.UF.C.closure(function (obj) {
  1017. //防止拖动图标即打开了桌面应用
  1018. U.MD.D.click(this, obj);
  1019. }, [_wanketeacherDesktopIconInfo[i]])
  1020. }, _frag); //
  1021. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1022. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1023. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1024. }
  1025. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1026. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1027. _content = $$("div", {
  1028. className: "U_MD_D_KO",
  1029. "onmousedown": U.UF.C.closure(function (obj) {
  1030. //防止拖动图标即打开了桌面应用
  1031. U.MD.D.click(this, obj);
  1032. }, [_wankeAdminDesktopIconInfo[i]]),
  1033. "onclick": U.UF.C.closure(function (obj) {
  1034. //防止拖动图标即打开了桌面应用
  1035. U.MD.D.click(this, obj);
  1036. }, [_wankeAdminDesktopIconInfo[i]])
  1037. }, _frag); //
  1038. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1039. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1040. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1041. }
  1042. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1043. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1044. _content = $$("div", {
  1045. className: "U_MD_D_KO",
  1046. "onmousedown": U.UF.C.closure(function (obj) {
  1047. //防止拖动图标即打开了桌面应用
  1048. U.MD.D.click(this, obj);
  1049. }, [_teacherDesktopIconInfo2[i]]),
  1050. "onclick": U.UF.C.closure(function (obj) {
  1051. //防止拖动图标即打开了桌面应用
  1052. U.MD.D.click(this, obj);
  1053. }, [_teacherDesktopIconInfo2[i]])
  1054. }, _frag); //
  1055. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1056. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1057. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1058. }
  1059. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1060. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1061. _content = $$("div", {
  1062. className: "U_MD_D_KO",
  1063. "onmousedown": U.UF.C.closure(function (obj) {
  1064. //防止拖动图标即打开了桌面应用
  1065. U.MD.D.click(this, obj);
  1066. }, [_lotechTeacherDeskIconInfo[i]]),
  1067. "onclick": U.UF.C.closure(function (obj) {
  1068. //防止拖动图标即打开了桌面应用
  1069. U.MD.D.click(this, obj);
  1070. }, [_lotechTeacherDeskIconInfo[i]])
  1071. }, _frag); //
  1072. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1073. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1074. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1075. }
  1076. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1077. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1078. _content = $$("div", {
  1079. className: "U_MD_D_KO",
  1080. "onmousedown": U.UF.C.closure(function (obj) {
  1081. //防止拖动图标即打开了桌面应用
  1082. U.MD.D.click(this, obj);
  1083. }, [_siesTeacherDeskIconInfo[i]]),
  1084. "onclick": U.UF.C.closure(function (obj) {
  1085. //防止拖动图标即打开了桌面应用
  1086. U.MD.D.click(this, obj);
  1087. }, [_siesTeacherDeskIconInfo[i]])
  1088. }, _frag); //
  1089. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1090. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1091. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1092. }
  1093. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1094. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1095. _content = $$("div", {
  1096. className: "U_MD_D_KO",
  1097. "onmousedown": U.UF.C.closure(function (obj) {
  1098. //防止拖动图标即打开了桌面应用
  1099. U.MD.D.click(this, obj);
  1100. }, [_longhuaTeacherDeskIconInfo[i]]),
  1101. "onclick": U.UF.C.closure(function (obj) {
  1102. //防止拖动图标即打开了桌面应用
  1103. U.MD.D.click(this, obj);
  1104. }, [_longhuaTeacherDeskIconInfo[i]])
  1105. }, _frag); //
  1106. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1107. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1108. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1109. }
  1110. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1111. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1112. _content = $$("div", {
  1113. className: "U_MD_D_KO",
  1114. "onmousedown": U.UF.C.closure(function (obj) {
  1115. //防止拖动图标即打开了桌面应用
  1116. U.MD.D.click(this, obj);
  1117. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1118. "onclick": U.UF.C.closure(function (obj) {
  1119. //防止拖动图标即打开了桌面应用
  1120. U.MD.D.click(this, obj);
  1121. }, [_yunhaiTeacherDeskIconInfo[i]])
  1122. }, _frag); //
  1123. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1124. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1125. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1126. }//_hkStudentDeskIconInfo
  1127. }else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1128. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1129. _content = $$("div", {
  1130. className: "U_MD_D_KO",
  1131. "onmousedown": U.UF.C.closure(function (obj) {
  1132. //防止拖动图标即打开了桌面应用
  1133. U.MD.D.click(this, obj);
  1134. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1135. "onclick": U.UF.C.closure(function (obj) {
  1136. //防止拖动图标即打开了桌面应用
  1137. U.MD.D.click(this, obj);
  1138. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1139. }, _frag); //
  1140. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1141. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1142. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1143. }
  1144. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1145. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1146. _content = $$("div", {
  1147. className: "U_MD_D_KO",
  1148. "onmousedown": U.UF.C.closure(function (obj) {
  1149. //防止拖动图标即打开了桌面应用
  1150. U.MD.D.click(this, obj);
  1151. }, [_hkTeacherDeskIconInfo[i]]),
  1152. "onclick": U.UF.C.closure(function (obj) {
  1153. //防止拖动图标即打开了桌面应用
  1154. U.MD.D.click(this, obj);
  1155. }, [_hkTeacherDeskIconInfo[i]])
  1156. }, _frag); //
  1157. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1158. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1159. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1160. }
  1161. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1162. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1163. _content = $$("div", {
  1164. className: "U_MD_D_KO",
  1165. "onmousedown": U.UF.C.closure(function (obj) {
  1166. //防止拖动图标即打开了桌面应用
  1167. U.MD.D.click(this, obj);
  1168. }, [_gdjgAdminDeskIconInfo[i]]),
  1169. "onclick": U.UF.C.closure(function (obj) {
  1170. //防止拖动图标即打开了桌面应用
  1171. U.MD.D.click(this, obj);
  1172. }, [_gdjgAdminDeskIconInfo[i]])
  1173. }, _frag); //
  1174. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1175. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1176. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1177. }
  1178. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1179. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1180. _content = $$("div", {
  1181. className: "U_MD_D_KO",
  1182. "onmousedown": U.UF.C.closure(function (obj) {
  1183. //防止拖动图标即打开了桌面应用
  1184. U.MD.D.click(this, obj);
  1185. }, [_gdjgTeacherDeskIconInfo[i]]),
  1186. "onclick": U.UF.C.closure(function (obj) {
  1187. //防止拖动图标即打开了桌面应用
  1188. U.MD.D.click(this, obj);
  1189. }, [_gdjgTeacherDeskIconInfo[i]])
  1190. }, _frag); //
  1191. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1192. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1193. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1194. }
  1195. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1196. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1197. _content = $$("div", {
  1198. className: "U_MD_D_KO",
  1199. "onmousedown": U.UF.C.closure(function (obj) {
  1200. //防止拖动图标即打开了桌面应用
  1201. U.MD.D.click(this, obj);
  1202. }, [_szherTeacherDeskIconInfo[i]]),
  1203. "onclick": U.UF.C.closure(function (obj) {
  1204. //防止拖动图标即打开了桌面应用
  1205. U.MD.D.click(this, obj);
  1206. }, [_szherTeacherDeskIconInfo[i]])
  1207. }, _frag); //
  1208. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1209. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1210. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1211. }
  1212. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1213. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1214. _content = $$("div", {
  1215. className: "U_MD_D_KO",
  1216. "onmousedown": U.UF.C.closure(function (obj) {
  1217. //防止拖动图标即打开了桌面应用
  1218. U.MD.D.click(this, obj);
  1219. }, [_heyuannAdminDeskIconInfo[i]]),
  1220. "onclick": U.UF.C.closure(function (obj) {
  1221. //防止拖动图标即打开了桌面应用
  1222. U.MD.D.click(this, obj);
  1223. }, [_heyuannAdminDeskIconInfo[i]])
  1224. }, _frag); //
  1225. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1226. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1227. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1228. }
  1229. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1230. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1231. _content = $$("div", {
  1232. className: "U_MD_D_KO",
  1233. "onmousedown": U.UF.C.closure(function (obj) {
  1234. //防止拖动图标即打开了桌面应用
  1235. U.MD.D.click(this, obj);
  1236. }, [_heyuanTeacherDeskIconInfo[i]]),
  1237. "onclick": U.UF.C.closure(function (obj) {
  1238. //防止拖动图标即打开了桌面应用
  1239. U.MD.D.click(this, obj);
  1240. }, [_heyuanTeacherDeskIconInfo[i]])
  1241. }, _frag); //
  1242. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1243. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1244. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1245. }//
  1246. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1247. for (i = 0; i < _desiAdminDeskIconInfo.length; i++) {
  1248. _content = $$("div", {
  1249. className: "U_MD_D_KO",
  1250. "onmousedown": U.UF.C.closure(function (obj) {
  1251. //防止拖动图标即打开了桌面应用
  1252. U.MD.D.click(this, obj);
  1253. }, [_desiAdminDeskIconInfo[i]]),
  1254. "onclick": U.UF.C.closure(function (obj) {
  1255. //防止拖动图标即打开了桌面应用
  1256. U.MD.D.click(this, obj);
  1257. }, [_desiAdminDeskIconInfo[i]])
  1258. }, _frag); //
  1259. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1260. $$("div", { className: "U_MD_D_KOS U_Img", "style": _desiAdminDeskIconInfo[i].style }, _iconcontent);
  1261. $$("div", { className: "U_MD_D_KOX", "innerHTML": _desiAdminDeskIconInfo[i].Name }, _iconcontent);
  1262. }
  1263. }else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1264. for (i = 0; i < _desiTeacherDeskIconInfo.length; i++) {
  1265. _content = $$("div", {
  1266. className: "U_MD_D_KO",
  1267. "onmousedown": U.UF.C.closure(function (obj) {
  1268. //防止拖动图标即打开了桌面应用
  1269. U.MD.D.click(this, obj);
  1270. }, [_desiTeacherDeskIconInfo[i]]),
  1271. "onclick": U.UF.C.closure(function (obj) {
  1272. //防止拖动图标即打开了桌面应用
  1273. U.MD.D.click(this, obj);
  1274. }, [_desiTeacherDeskIconInfo[i]])
  1275. }, _frag); //
  1276. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1277. $$("div", { className: "U_MD_D_KOS U_Img", "style": _desiTeacherDeskIconInfo[i].style }, _iconcontent);
  1278. $$("div", { className: "U_MD_D_KOX", "innerHTML": _desiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1279. }
  1280. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1281. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1282. _content = $$("div", {
  1283. className: "U_MD_D_KO",
  1284. "onmousedown": U.UF.C.closure(function (obj) {
  1285. //防止拖动图标即打开了桌面应用
  1286. U.MD.D.click(this, obj);
  1287. }, [_futianAdminDeskIconInfo[i]]),
  1288. "onclick": U.UF.C.closure(function (obj) {
  1289. //防止拖动图标即打开了桌面应用
  1290. U.MD.D.click(this, obj);
  1291. }, [_futianAdminDeskIconInfo[i]])
  1292. }, _frag); //
  1293. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1294. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1295. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1296. }
  1297. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1298. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1299. _content = $$("div", {
  1300. className: "U_MD_D_KO",
  1301. "onmousedown": U.UF.C.closure(function (obj) {
  1302. //防止拖动图标即打开了桌面应用
  1303. U.MD.D.click(this, obj);
  1304. }, [_futianTeacherDeskIconInfo[i]]),
  1305. "onclick": U.UF.C.closure(function (obj) {
  1306. //防止拖动图标即打开了桌面应用
  1307. U.MD.D.click(this, obj);
  1308. }, [_futianTeacherDeskIconInfo[i]])
  1309. }, _frag); //
  1310. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1311. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1312. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1313. }
  1314. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1315. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1316. _content = $$("div", {
  1317. className: "U_MD_D_KO",
  1318. "onmousedown": U.UF.C.closure(function (obj) {
  1319. //防止拖动图标即打开了桌面应用
  1320. U.MD.D.click(this, obj);
  1321. }, [_MingdeTeacherDeskIcon[i]]),
  1322. "onclick": U.UF.C.closure(function (obj) {
  1323. //防止拖动图标即打开了桌面应用
  1324. U.MD.D.click(this, obj);
  1325. }, [_MingdeTeacherDeskIcon[i]])
  1326. }, _frag); //
  1327. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1328. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1329. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1330. }
  1331. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1332. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1333. _content = $$("div", {
  1334. className: "U_MD_D_KO",
  1335. "onmousedown": U.UF.C.closure(function (obj) {
  1336. //防止拖动图标即打开了桌面应用
  1337. U.MD.D.click(this, obj);
  1338. }, [_lhsAdminDesktopIconInfo[i]]),
  1339. "onclick": U.UF.C.closure(function (obj) {
  1340. //防止拖动图标即打开了桌面应用
  1341. U.MD.D.click(this, obj);
  1342. }, [_lhsAdminDesktopIconInfo[i]])
  1343. }, _frag); //
  1344. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1345. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1346. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1347. }
  1348. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1349. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1350. _content = $$("div", {
  1351. className: "U_MD_D_KO",
  1352. "onmousedown": U.UF.C.closure(function (obj) {
  1353. //防止拖动图标即打开了桌面应用
  1354. U.MD.D.click(this, obj);
  1355. }, [_lhsteacherDesktopIconInfo[i]]),
  1356. "onclick": U.UF.C.closure(function (obj) {
  1357. //防止拖动图标即打开了桌面应用
  1358. U.MD.D.click(this, obj);
  1359. }, [_lhsteacherDesktopIconInfo[i]])
  1360. }, _frag); //
  1361. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1362. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1363. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1364. }
  1365. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1366. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1367. _content = $$("div", {
  1368. className: "U_MD_D_KO",
  1369. "onmousedown": U.UF.C.closure(function (obj) {
  1370. //防止拖动图标即打开了桌面应用
  1371. U.MD.D.click(this, obj);
  1372. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1373. "onclick": U.UF.C.closure(function (obj) {
  1374. //防止拖动图标即打开了桌面应用
  1375. U.MD.D.click(this, obj);
  1376. }, [_zhoujiateacherDesktopIconInfo[i]])
  1377. }, _frag); //
  1378. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1379. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1380. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1381. }
  1382. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1383. for (i = 0; i < _hanDeskIcon.length; i++) {
  1384. _content = $$("div", {
  1385. className: "U_MD_D_KO",
  1386. "onmousedown": U.UF.C.closure(function (obj) {
  1387. //防止拖动图标即打开了桌面应用
  1388. U.MD.D.click(this, obj);
  1389. }, [_hanDeskIcon[i]]),
  1390. "onclick": U.UF.C.closure(function (obj) {
  1391. //防止拖动图标即打开了桌面应用
  1392. U.MD.D.click(this, obj);
  1393. }, [_hanDeskIcon[i]])
  1394. }, _frag); //
  1395. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1396. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1397. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1398. }
  1399. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1400. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1401. _content = $$("div", {
  1402. className: "U_MD_D_KO",
  1403. "onmousedown": U.UF.C.closure(function (obj) {
  1404. //防止拖动图标即打开了桌面应用
  1405. U.MD.D.click(this, obj);
  1406. }, [_orgStemDeskIcon[i]]),
  1407. "onclick": U.UF.C.closure(function (obj) {
  1408. //防止拖动图标即打开了桌面应用
  1409. U.MD.D.click(this, obj);
  1410. }, [_orgStemDeskIcon[i]])
  1411. }, _frag); //
  1412. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1413. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1414. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1415. }
  1416. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1417. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1418. _content = $$("div", {
  1419. className: "U_MD_D_KO",
  1420. "onmousedown": U.UF.C.closure(function (obj) {
  1421. //防止拖动图标即打开了桌面应用
  1422. U.MD.D.click(this, obj);
  1423. }, [_szulsDeskIcon[i]]),
  1424. "onclick": U.UF.C.closure(function (obj) {
  1425. //防止拖动图标即打开了桌面应用
  1426. U.MD.D.click(this, obj);
  1427. }, [_szulsDeskIcon[i]])
  1428. }, _frag); //
  1429. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1430. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1431. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1432. }
  1433. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1434. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1435. _content = $$("div", {
  1436. className: "U_MD_D_KO",
  1437. "onmousedown": U.UF.C.closure(function (obj) {
  1438. //防止拖动图标即打开了桌面应用
  1439. U.MD.D.click(this, obj);
  1440. }, [_orgDesktopIconInfo[i]]),
  1441. "onclick": U.UF.C.closure(function (obj) {
  1442. //防止拖动图标即打开了桌面应用
  1443. U.MD.D.click(this, obj);
  1444. }, [_orgDesktopIconInfo[i]])
  1445. }, _frag); //
  1446. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1447. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1448. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1449. }
  1450. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1451. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1452. _content = $$("div", {
  1453. className: "U_MD_D_KO",
  1454. "onmousedown": U.UF.C.closure(function (obj) {
  1455. //防止拖动图标即打开了桌面应用
  1456. U.MD.D.click(this, obj);
  1457. }, [_schoolDesktopIconInfo[i]]),
  1458. "onclick": U.UF.C.closure(function (obj) {
  1459. //防止拖动图标即打开了桌面应用
  1460. U.MD.D.click(this, obj);
  1461. }, [_schoolDesktopIconInfo[i]])
  1462. }, _frag); //
  1463. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1464. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1465. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1466. }
  1467. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1468. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1469. _content = $$("div", {
  1470. className: "U_MD_D_KO",
  1471. "onmousedown": U.UF.C.closure(function (obj) {
  1472. //防止拖动图标即打开了桌面应用
  1473. U.MD.D.click(this, obj);
  1474. }, [_GMteacherDesktopIconInfo[i]]),
  1475. "onclick": U.UF.C.closure(function (obj) {
  1476. //防止拖动图标即打开了桌面应用
  1477. U.MD.D.click(this, obj);
  1478. }, [_GMteacherDesktopIconInfo[i]])
  1479. }, _frag); //
  1480. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1481. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1482. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1483. }
  1484. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1485. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1486. _content = $$("div", {
  1487. className: "U_MD_D_KO",
  1488. "onmousedown": U.UF.C.closure(function (obj) {
  1489. //防止拖动图标即打开了桌面应用
  1490. U.MD.D.click(this, obj);
  1491. }, [_SONGteacherDesktopIconInfo[i]]),
  1492. "onclick": U.UF.C.closure(function (obj) {
  1493. //防止拖动图标即打开了桌面应用
  1494. U.MD.D.click(this, obj);
  1495. }, [_SONGteacherDesktopIconInfo[i]])
  1496. }, _frag); //
  1497. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1498. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1499. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1500. }
  1501. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1502. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1503. _content = $$("div", {
  1504. className: "U_MD_D_KO",
  1505. "onmousedown": U.UF.C.closure(function (obj) {
  1506. //防止拖动图标即打开了桌面应用
  1507. U.MD.D.click(this, obj);
  1508. }, [_GMstudentDesktopIconInfo[i]]),
  1509. "onclick": U.UF.C.closure(function (obj) {
  1510. //防止拖动图标即打开了桌面应用
  1511. U.MD.D.click(this, obj);
  1512. }, [_GMstudentDesktopIconInfo[i]])
  1513. }, _frag); //
  1514. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1515. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1516. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1517. }
  1518. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1519. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1520. _content = $$("div", {
  1521. className: "U_MD_D_KO",
  1522. "onmousedown": U.UF.C.closure(function (obj) {
  1523. //防止拖动图标即打开了桌面应用
  1524. U.MD.D.click(this, obj);
  1525. }, [_tcTeacherDeskIconInfo[i]]),
  1526. "onclick": U.UF.C.closure(function (obj) {
  1527. //防止拖动图标即打开了桌面应用
  1528. U.MD.D.click(this, obj);
  1529. }, [_tcTeacherDeskIconInfo[i]])
  1530. }, _frag); //
  1531. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1532. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1533. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1534. }
  1535. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1536. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1537. _content = $$("div", {
  1538. className: "U_MD_D_KO",
  1539. "onmousedown": U.UF.C.closure(function (obj) {
  1540. //防止拖动图标即打开了桌面应用
  1541. U.MD.D.click(this, obj);
  1542. }, [_tcOrganizerDeskIconInfo[i]]),
  1543. "onclick": U.UF.C.closure(function (obj) {
  1544. //防止拖动图标即打开了桌面应用
  1545. U.MD.D.click(this, obj);
  1546. }, [_tcOrganizerDeskIconInfo[i]])
  1547. }, _frag); //
  1548. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1549. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1550. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1551. }
  1552. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1553. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1554. _content = $$("div", {
  1555. className: "U_MD_D_KO",
  1556. "onmousedown": U.UF.C.closure(function (obj) {
  1557. //防止拖动图标即打开了桌面应用
  1558. U.MD.D.click(this, obj);
  1559. }, [_szscTeacherDeskIconInfo[i]]),
  1560. "onclick": U.UF.C.closure(function (obj) {
  1561. //防止拖动图标即打开了桌面应用
  1562. U.MD.D.click(this, obj);
  1563. }, [_szscTeacherDeskIconInfo[i]])
  1564. }, _frag); //
  1565. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1566. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1567. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1568. }
  1569. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1570. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1571. _content = $$("div", {
  1572. className: "U_MD_D_KO",
  1573. "onmousedown": U.UF.C.closure(function (obj) {
  1574. //防止拖动图标即打开了桌面应用
  1575. U.MD.D.click(this, obj);
  1576. }, [_szscOrganizerDeskIconInfo[i]]),
  1577. "onclick": U.UF.C.closure(function (obj) {
  1578. //防止拖动图标即打开了桌面应用
  1579. U.MD.D.click(this, obj);
  1580. }, [_szscOrganizerDeskIconInfo[i]])
  1581. }, _frag); //
  1582. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1583. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1584. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1585. }
  1586. } else {
  1587. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1588. _content = $$("div", {
  1589. className: "U_MD_D_KO",
  1590. "onmousedown": U.UF.C.closure(function (obj) {
  1591. //防止拖动图标即打开了桌面应用
  1592. U.MD.D.click(this, obj);
  1593. }, [_teacherDesktopIconInfo[i]]),
  1594. "onclick": U.UF.C.closure(function (obj) {
  1595. //防止拖动图标即打开了桌面应用
  1596. U.MD.D.click(this, obj);
  1597. }, [_teacherDesktopIconInfo[i]])
  1598. }, _frag); //
  1599. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1600. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1601. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1602. }
  1603. }
  1604. } else {
  1605. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1606. _content = $$("div", {
  1607. className: "U_MD_D_KO",
  1608. style: { 'width': '124px', 'height': '145px' },
  1609. "onmousedown": U.UF.C.closure(function (obj) {
  1610. //防止拖动图标即打开了桌面应用
  1611. U.MD.D.click(this, obj);
  1612. }, [_easyDesktopIconInfo[i]]),
  1613. "onclick": U.UF.C.closure(function (obj) {
  1614. //防止拖动图标即打开了桌面应用
  1615. U.MD.D.click(this, obj);
  1616. }, [_easyDesktopIconInfo[i]])
  1617. }, _frag); //
  1618. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1619. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1620. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1621. }
  1622. }
  1623. if (type == 1) {
  1624. //加载好后给图标定位
  1625. U.MD.D.iconPostion($(_frag).Child());
  1626. } else {
  1627. //加载好后给图标定位
  1628. U.MD.D.iconPostion2($(_frag).Child());
  1629. }
  1630. //把图标加载到页面
  1631. el.appendChild(_frag);
  1632. }
  1633. /**
  1634. * 显示任务栏
  1635. *
  1636. * @param {element} 桌面元素
  1637. */
  1638. U.MD.D.I.displayTaskbar = function (el) {
  1639. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1640. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1641. //任务栏位置变化
  1642. U.selectEl(el).css({ "bottom": "0px" });
  1643. //桌面位置变话
  1644. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1645. }
  1646. }
  1647. //#region 桌面图标拖动逻辑
  1648. /**
  1649. * 桌面排列图标
  1650. *
  1651. * @param {element} 桌面元素
  1652. * @param {object} 上下相距的距离
  1653. * @param {object} 左右相距的距离
  1654. * @return {object} 命名空间
  1655. */
  1656. U.MD.D.iconPostion = function (childs, top, left) {
  1657. var i; //用于循环处理
  1658. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1659. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1660. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1661. for (i = 0; i < childs.length; i++) {
  1662. //如果竖排top超过了范围处理
  1663. if (top + 95 > US.height - 10) {
  1664. //left超过了页面范围处理,则向上重叠打印处理
  1665. if ((left + 180) > US.width) {
  1666. top -= 110;
  1667. left -= 90;
  1668. }
  1669. //没有超过范围,那么left+90添加到下一个竖排打印
  1670. else {
  1671. left += 90;
  1672. top = 15;
  1673. };
  1674. }
  1675. //给图标的位置赋值
  1676. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1677. if (i < childs.length - 1) {
  1678. //页面图标每次向下加95
  1679. top += 95;
  1680. }
  1681. }
  1682. //返回最后调用的图标的位置
  1683. return [top, left];
  1684. }
  1685. /**
  1686. * 桌面排列图标
  1687. *
  1688. * @param {element} 桌面元素
  1689. * @param {object} 上下相距的距离
  1690. * @param {object} 左右相距的距离
  1691. * @return {object} 命名空间
  1692. */
  1693. U.MD.D.iconPostion2 = function (childs, top, left) {
  1694. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1695. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1696. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1697. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1698. for (i = 0; i < childs.length; i++) {
  1699. //如果竖排top超过了范围处理
  1700. if (left + 150 > US.width - 10) {
  1701. //left超过了页面范围处理,则向上重叠打印处理
  1702. if ((top + 180) > US.Height) {
  1703. top -= 150;
  1704. left -= 150;
  1705. }
  1706. //没有超过范围,那么left+90添加到下一个竖排打印
  1707. else {
  1708. top += 150;
  1709. left = ol;
  1710. };
  1711. }
  1712. //给图标的位置赋值
  1713. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1714. if (i < childs.length - 1) {
  1715. //页面图标每次向下加95
  1716. left += 150;
  1717. }
  1718. }
  1719. //返回最后调用的图标的位置
  1720. return [top, left];
  1721. }
  1722. /**
  1723. * 桌面点击事件逻辑
  1724. *
  1725. * @param {element} 桌面元素
  1726. * @param {object} 上下相距的距离
  1727. * @param {object} 左右相距的距离
  1728. * @return {object} 命名空间
  1729. */
  1730. U.MD.D.click = function (el, obj) {
  1731. var _buttonnumber = event.button; //点击的按钮的事件值
  1732. var _userinfo = US.userInfo;
  1733. U.UF.EV.stopBubble(); //阻止向上冒泡
  1734. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1735. if (_buttonnumber < 2) {
  1736. //如果是click事件的处理
  1737. if (event.type == "click") {
  1738. //如果元素在mousemove事件中没有移动则出发click事件
  1739. if (!U.MD.D.I.IsDrag) {
  1740. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1741. U.alert("请先登录您的账号!");
  1742. setTimeout(() => {
  1743. U.MD.U.L.login();
  1744. }, 2000);
  1745. } else {
  1746. //打开应用处理
  1747. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1748. }
  1749. }
  1750. }
  1751. //如果是mouse事件的处理
  1752. else {
  1753. if (US.Config.type == '1') {
  1754. //拖动处理,添加拖动和拖动结束事件
  1755. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1756. }
  1757. }
  1758. U.MD.D.I.IsDrag = false;
  1759. }
  1760. }
  1761. /**
  1762. * 拖动的处理
  1763. *
  1764. */
  1765. U.MD.D.iconMove = function () {
  1766. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1767. U.MD.D.I.IsDrag = true;
  1768. }
  1769. /**
  1770. * 拖动结束后,这里是定位处理,以网状的形式定位
  1771. *
  1772. * @param {element} 拖动的元素
  1773. * @return {object} 命名空间
  1774. */
  1775. U.MD.D.iconUp = function (el) {
  1776. var _top = 15,
  1777. _left = 20,
  1778. _margin,
  1779. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1780. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1781. if (_positioninfo["OT"] > 15) {
  1782. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1783. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1784. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1785. }
  1786. if (_positioninfo["OL"] > 20) {
  1787. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1788. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1789. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1790. }
  1791. //while循环判断么一个重叠的元素
  1792. do {
  1793. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1794. _top = _positioninfo[0] + 95; //得到定位后的top
  1795. _left = _positioninfo[1]; //得到定位后的left
  1796. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1797. }
  1798. /**
  1799. * 判断拖动后图标是否重叠
  1800. *
  1801. * @param {element} 拖动的元素
  1802. * @param {element} 桌面所有的元素
  1803. * @param {array} 拖动元素的位置
  1804. ----------[0] 上 top
  1805. ----------[1] 左 left
  1806. * @return {object} 命名空间
  1807. */
  1808. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1809. //循环所有的图标
  1810. for (var i = 0; i < childs.length; i++) {
  1811. //判断有没有和该图标诶子重叠的元素
  1812. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1813. return childs[i]; //如果有返回
  1814. }
  1815. }
  1816. }
  1817. //#endregion
  1818. //#endregion
  1819. //#region 桌面应用
  1820. /**
  1821. * 打开应用
  1822. *
  1823. * @param {string} 类型
  1824. -----------------Disk 网盘系统
  1825. -----------------PDisk 学习系统网盘
  1826. -----------------Poto 图片
  1827. -----------------Video 视频
  1828. -----------------Music 音乐
  1829. -----------------Word word
  1830. -----------------Excel excel
  1831. -----------------Txt 记事本
  1832. -----------------PB 学习系统
  1833. -----------------Blog 朋友圈系统
  1834. -----------------FTP ftp系统
  1835. -----------------Group 好友群
  1836. -----------------SY 首页系统
  1837. -----------------Set 个人设置
  1838. -----------------XSet 系统设置
  1839. -----------------App 我们所有的app
  1840. -----------------BC c.1473.cn 平台
  1841. -----------------CWeb d.1473.cn 变成平台
  1842. -----------------其他的外联系统 我们统一用iframe打开
  1843. * @param {array} 类型
  1844. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1845. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1846. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1847. 如果第一个参数为其他,则无第二个参数
  1848. * @returns {array}
  1849. */
  1850. window.addEventListener('message', function (e) { // 监听 message 事件
  1851. // alert(e.data.type);
  1852. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1853. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1854. //3是展示全部阶段 2学生 1老师 4专家
  1855. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1856. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1857. //3是展示全部阶段 2学生 1老师 4专家
  1858. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1859. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1860. //3是展示全部阶段 2学生 1老师 4专家
  1861. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1862. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1863. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1864. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1865. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1866. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1867. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1868. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1869. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1870. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1871. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1872. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1873. //3是展示全部阶段 2学生 1老师 4专家
  1874. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1875. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1876. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1877. U.MD.D.I.selectUser();
  1878. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1879. var _formel = document.getElementById("study");
  1880. U.UF.F.windowZooming(_formel);
  1881. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1882. var _formel = document.getElementById("studyDetail");
  1883. U.UF.F.windowZooming(_formel);
  1884. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1885. var _formel = document.getElementById("studyDetail");
  1886. U.UF.F.windowZooming(_formel);
  1887. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1888. var _formel = document.getElementById("studentStudy");
  1889. U.UF.F.windowZooming(_formel);
  1890. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1891. // var _formel = document.getElementById("study");
  1892. //如果最大化了,那么就把他缩小
  1893. // if (_formel.ismaximize) {
  1894. // return;
  1895. // }
  1896. // U.UF.F.windowZooming(_formel);
  1897. // U.UF.F.topWindow(_formel);
  1898. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1899. // var _formel = document.getElementById("studyDetail");
  1900. //如果最大化了,那么就把他缩小
  1901. // if (_formel.ismaximize) {
  1902. // return;
  1903. // }
  1904. // U.UF.F.windowZooming(_formel);
  1905. // U.UF.F.topWindow(_formel);
  1906. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1907. // var _formel = document.getElementById("studentStudy");
  1908. // if (_formel.ismaximize) {
  1909. // return;
  1910. // }
  1911. // U.UF.F.windowZooming(_formel);
  1912. // U.UF.F.topWindow(_formel);
  1913. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1914. var _formel = document.getElementById("study");
  1915. // if (_formel.ismaximize) {
  1916. // return;
  1917. // }
  1918. // U.UF.F.windowZooming(_formel);
  1919. U.UF.F.topWindow(_formel);
  1920. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1921. var _formel = document.getElementById("studentIndex");
  1922. U.UF.F.windowZooming(_formel);
  1923. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1924. var _formel = document.getElementById("studyDetailS");
  1925. U.UF.F.windowZooming(_formel);
  1926. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1927. var _formel = document.getElementById("studioIndex");
  1928. U.UF.F.windowZooming(_formel);
  1929. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1930. var _formel = document.getElementById("studyDetailStudio");
  1931. U.UF.F.windowZooming(_formel);
  1932. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1933. var _formel = document.getElementById("studyDetailStudio");
  1934. U.UF.F.windowZooming(_formel);
  1935. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1936. var _formel = document.getElementById("studyDetailNT");
  1937. U.UF.F.windowZooming(_formel);
  1938. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1939. var _formel = document.getElementById("studyDetailS");
  1940. U.UF.F.windowZooming(_formel);
  1941. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1942. var _formel = document.getElementById("studyDetailS");
  1943. U.UF.F.topWindow(_formel);
  1944. } else if (e.data.tools && e.data.tools == "1") {
  1945. // U.MD.D.I.openApplication("whiteboard")
  1946. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1947. } else if (e.data.tools && e.data.tools == "2") {
  1948. U.MD.D.I.openApplication("note")
  1949. } else if (e.data.tools && e.data.tools == "3") {
  1950. // U.MD.D.I.openApplication("mind")
  1951. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1952. } else if (e.data.tools && e.data.tools == "4") {
  1953. U.MD.D.I.openApplication("investigation")
  1954. } else if (e.data.tools && e.data.tools == "6") {
  1955. // U.MD.D.I.openApplication("doc")
  1956. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1957. } else if (e.data.tools && e.data.tools == "7") {
  1958. // U.MD.D.I.openApplication("mindNetwork")
  1959. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1960. } else if (e.data.tools && e.data.tools == "8") {
  1961. U.MD.D.I.openApplication("library")
  1962. } else if (e.data.tools && e.data.tools == "17") {
  1963. U.MD.D.I.openApplication("stuLibrary")
  1964. } else if (e.data.tools && e.data.tools == "18") {
  1965. U.MD.D.I.openApplication("train")
  1966. } else if (e.data.tools && e.data.tools == "21") {
  1967. U.MD.D.I.openApplication("program")
  1968. } else if (e.data.tools && e.data.tools == "22") {
  1969. U.MD.D.I.openApplication("AIprogram2")
  1970. } else if (e.data.tools && e.data.tools == "23") {
  1971. U.MD.D.I.openApplication("Pythonprogram")
  1972. } else if (e.data.tools && e.data.tools == "24") {
  1973. U.MD.D.I.openApplication("AIprogram")
  1974. } else if (e.data.tools && e.data.tools == "25") {
  1975. U.MD.D.I.openApplication("sys")
  1976. } else if (e.data.tools && e.data.tools == "26") {
  1977. // U.MD.D.I.openApplication("courseDesign")
  1978. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1979. } else if (e.data.tools && e.data.tools == "31") {
  1980. U.MD.D.I.openApplication("netWorkPanel")
  1981. } else if (e.data.tools && e.data.tools == "32") {
  1982. U.MD.D.I.openApplication("codeEdit")
  1983. } else if (e.data.tools && e.data.tools == "57") {
  1984. U.MD.D.I.openApplication("CocoPi")
  1985. } else if (e.data.tools && e.data.tools == "63") {
  1986. U.MD.D.I.openApplication("Wood")
  1987. } else if (e.data.tools && e.data.tools == "58") {
  1988. U.MD.D.I.openApplication("car")
  1989. } else if (e.data.tools && e.data.tools == "59") {
  1990. U.MD.D.I.openApplication("lineSearch")
  1991. } else if (e.data.tools && e.data.tools == "60") {
  1992. U.MD.D.I.openApplication("deepLearning")
  1993. } else if (e.data.tools && e.data.tools == "61") {
  1994. U.MD.D.I.openApplication("allHistory")
  1995. } else if (e.data.tools && e.data.tools == "28") {
  1996. U.MD.D.I.openApplication("translation")
  1997. } else if (e.data.tools && e.data.tools == "37") {
  1998. U.MD.D.I.openApplication("mohe")
  1999. } else if (e.data.tools && e.data.tools == "38") {
  2000. U.MD.D.I.openApplication("24game")
  2001. } else if (e.data.tools && e.data.tools == "39") {
  2002. U.MD.D.I.openApplication("GeoGebra")
  2003. } else if (e.data.tools && e.data.tools == "43") {
  2004. U.MD.D.I.openApplication("studentEvaluate")
  2005. } else if (e.data.tools && e.data.tools == "44") {
  2006. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2007. } else if (e.data.tools && e.data.tools == "46") {
  2008. U.MD.D.I.openApplication("project")
  2009. } else if (e.data.tools && e.data.tools == "1s") {
  2010. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2011. } else if (e.data.tools && e.data.tools == "3s") {
  2012. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2013. } else if (e.data.tools && e.data.tools == "6s") {
  2014. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2015. } else if (e.data.tools && e.data.tools == "1studio") {
  2016. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2017. } else if (e.data.tools && e.data.tools == "3studio") {
  2018. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2019. } else if (e.data.tools && e.data.tools == "6studio") {
  2020. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2021. } else if (e.data.tools && e.data.tools == "3y") {
  2022. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2023. } else if (e.data.tools && e.data.tools == "1y") {
  2024. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2025. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2026. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2027. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2028. U.MD.D.I.openApplication("AIAnalyse")
  2029. } else if (e.data.tools && e.data.tools == "1teacher") {
  2030. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2031. } else if (e.data.tools && e.data.tools == "3teacher") {
  2032. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2033. } else if (e.data.tools && e.data.tools == "7teacher") {
  2034. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2035. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2036. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2037. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2038. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2039. } else if (e.data.tools && e.data.tools == "1E") {
  2040. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2041. } else if (e.data.tools && e.data.tools == "3E") {
  2042. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2043. } else if (e.data.tools && e.data.tools == "57y") {
  2044. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2045. } else if (e.data.tools && e.data.tools == "57u") {
  2046. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2047. } else if (e.data.tools && e.data.tools == "57teacher") {
  2048. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2049. } else if (e.data.tools && e.data.tools == "64") {
  2050. U.MD.D.I.openApplication("AIChat")
  2051. }
  2052. });
  2053. U.MD.D.I.selectUser = function () {
  2054. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  2055. if (res.value[0].length > 0) {
  2056. US.userInfo = res.value[0][0];
  2057. $(".userName")[0].innerHTML = US.userInfo.username;
  2058. }
  2059. }, [], { "type": "GET", "withCredentials": true });
  2060. }
  2061. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  2062. var _userinfo = US.userInfo, //登录用户信息
  2063. _userid = US.userInfo.userid, //登录用户id
  2064. _oid = _userinfo.organizeid,
  2065. _type = US.userInfo.type,
  2066. _org = US.userInfo.org,
  2067. _role = US.userInfo.role,
  2068. _classId = US.userInfo.classid;
  2069. if (_type == 4) {
  2070. tType = 4
  2071. }
  2072. switch (str) {
  2073. case "studyDetailNT"://无终端模式
  2074. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2075. setTimeout(() => {
  2076. U.MD.U.L.login();
  2077. }, 2000);
  2078. } else {
  2079. _formdiv = new U.UF.UI.form(
  2080. "课程详情",
  2081. $$("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 }), {
  2082. "id": "studyDetailNT",
  2083. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2084. "onresize": function () { }
  2085. }, {
  2086. closecallback: function () { }
  2087. }, { "style": { "height": "36px" } }).form; //创建窗体
  2088. _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); } }
  2089. break;
  2090. }
  2091. case "studyDetail":
  2092. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2093. setTimeout(() => {
  2094. U.MD.U.L.login();
  2095. }, 2000);
  2096. } else {
  2097. _formdiv = new U.UF.UI.form(
  2098. "课程详情",
  2099. $$("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 }), {
  2100. "id": "studyDetail",
  2101. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2102. "onresize": function () { }
  2103. }, {
  2104. closecallback: function () { }
  2105. }, { "style": { "height": "36px" } }).form; //创建窗体
  2106. _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); } }
  2107. break;
  2108. }
  2109. case "studyDetailS":
  2110. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2111. setTimeout(() => {
  2112. U.MD.U.L.login();
  2113. }, 2000);
  2114. } else {
  2115. _formdiv = new U.UF.UI.form(
  2116. "项目详情",
  2117. $$("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 }), {
  2118. "id": "studyDetailS",
  2119. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2120. "onresize": function () { }
  2121. }, {
  2122. closecallback: function () { }
  2123. }, { "style": { "height": "36px" } }).form; //创建窗体
  2124. _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); } }
  2125. break;
  2126. }
  2127. case "studyDetailStudio":
  2128. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2129. setTimeout(() => {
  2130. U.MD.U.L.login();
  2131. }, 2000);
  2132. } else {
  2133. _formdiv = new U.UF.UI.form(
  2134. "工作详情",
  2135. $$("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 }), {
  2136. "id": "studyDetailStudio",
  2137. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2138. "onresize": function () { }
  2139. }, {
  2140. closecallback: function () { }
  2141. }, { "style": { "height": "36px" } }).form; //创建窗体
  2142. _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); } }
  2143. break;
  2144. }
  2145. case "studyDetailS5":
  2146. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2147. setTimeout(() => {
  2148. U.MD.U.L.login();
  2149. }, 2000);
  2150. } else {
  2151. _formdiv = new U.UF.UI.form(
  2152. "项目详情",
  2153. $$("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 }), {
  2154. "id": "studyDetailS",
  2155. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2156. "onresize": function () { }
  2157. }, {
  2158. closecallback: function () { }
  2159. }, { "style": { "height": "36px" } }).form; //创建窗体
  2160. _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); } }
  2161. break;
  2162. }
  2163. case "studyDetailGM":
  2164. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2165. setTimeout(() => {
  2166. U.MD.U.L.login();
  2167. }, 2000);
  2168. } else {
  2169. _formdiv = new U.UF.UI.form(
  2170. "课程详情",
  2171. $$("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 }), {
  2172. "id": "studyDetail",
  2173. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2174. "onresize": function () { }
  2175. }, {
  2176. closecallback: function () { }
  2177. }, { "style": { "height": "36px" } }).form; //创建窗体
  2178. _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); } }
  2179. break;
  2180. }
  2181. case "hanUrl":
  2182. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2183. setTimeout(() => {
  2184. U.MD.U.L.login();
  2185. }, 2000);
  2186. } else {
  2187. _formdiv = new U.UF.UI.form(
  2188. "汉字宫",
  2189. $$("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" }), {
  2190. "id": "hanUrl",
  2191. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2192. "onresize": function () { }
  2193. }, {
  2194. closecallback: function () { }
  2195. }, { "style": { "height": "36px" } }).form; //创建窗体
  2196. _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); } }
  2197. break;
  2198. }
  2199. }
  2200. }
  2201. U.MD.D.I.openApplication = function (str, obj, info) {
  2202. obj = obj || {};
  2203. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2204. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2205. _userinfo = US.userInfo, //登录用户信息
  2206. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2207. _oid = obj.organizeid || _userinfo.organizeid,
  2208. _type = US.userInfo.type,
  2209. _org = US.userInfo.org,
  2210. _role = US.userInfo.role,
  2211. _classId = US.userInfo.classid,
  2212. _TscreenType = 1
  2213. _screenType = 2,
  2214. _SscreenType = 3;
  2215. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2216. return;
  2217. }
  2218. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2219. switch (str) {
  2220. case "studnetProject": //好友打开
  2221. _formdiv = new U.UF.UI.form(
  2222. "我的项目",
  2223. $$("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 }), {
  2224. "id": "studnetProject",
  2225. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2226. "onresize": function () { }
  2227. }, {
  2228. closecallback: function () { }
  2229. }, { "style": { "height": "36px" } }).form; //创建窗体
  2230. _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); } }
  2231. break;
  2232. case "studentEvaluate": //好友打开
  2233. _formdiv = new U.UF.UI.form(
  2234. "我的评价",
  2235. $$("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 }), {
  2236. "id": "studentEvaluate",
  2237. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2238. "onresize": function () { }
  2239. }, {
  2240. closecallback: function () { }
  2241. }, { "style": { "height": "36px" } }).form; //创建窗体
  2242. _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); } }
  2243. break;
  2244. case "my":
  2245. _formdiv = new U.UF.UI.form(
  2246. "我的资料",
  2247. $$("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 }), {
  2248. "id": "my",
  2249. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2250. "onresize": function () { }
  2251. }, {
  2252. closecallback: function () { }
  2253. }, { "style": { "height": "36px" } }).form; //创建窗体
  2254. _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); } }
  2255. break;
  2256. case "program":
  2257. _formdiv = new U.UF.UI.form(
  2258. "编程平台",
  2259. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2260. "id": "program",
  2261. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2262. "onresize": function () { }
  2263. }, {
  2264. closecallback: function () { }
  2265. }, { "style": { "height": "36px" } }).form; //创建窗体
  2266. _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); } }
  2267. break;
  2268. case "library":
  2269. _formdiv = new U.UF.UI.form(
  2270. "素材库",
  2271. $$("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 }), {
  2272. "id": "library",
  2273. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2274. "onresize": function () { }
  2275. }, {
  2276. closecallback: function () { }
  2277. }, { "style": { "height": "36px" } }).form; //创建窗体
  2278. _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); } }
  2279. break;
  2280. case "whiteboard":
  2281. _formdiv = new U.UF.UI.form(
  2282. "电子白板",
  2283. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2284. "id": "whiteboard",
  2285. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2286. "onresize": function () { }
  2287. }, {
  2288. closecallback: function () { }
  2289. }, { "style": { "height": "36px" } }).form; //创建窗体
  2290. _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); } }
  2291. break;
  2292. case "investigation":
  2293. _formdiv = new U.UF.UI.form(
  2294. "问卷调查",
  2295. $$("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 }), {
  2296. "id": "investigation",
  2297. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2298. "onresize": function () { }
  2299. }, {
  2300. closecallback: function () { }
  2301. }, { "style": { "height": "36px" } }).form; //创建窗体
  2302. _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); } }
  2303. break;
  2304. case "note":
  2305. _formdiv = new U.UF.UI.form(
  2306. "便签分类",
  2307. $$("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 }), {
  2308. "id": "note",
  2309. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2310. "onresize": function () { }
  2311. }, {
  2312. closecallback: function () { }
  2313. }, { "style": { "height": "36px" } }).form; //创建窗体
  2314. _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); } }
  2315. break;
  2316. // case "score":
  2317. // _formdiv = new U.UF.UI.form(
  2318. // "量规评分",
  2319. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2320. // "id": "score",
  2321. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2322. // "onresize": function() {}
  2323. // }, {
  2324. // closecallback: function() {}
  2325. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2326. // _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); } }
  2327. // break;
  2328. case "mind":
  2329. _formdiv = new U.UF.UI.form(
  2330. "思维导图",
  2331. $$("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"
  2332. "id": "mind",
  2333. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2334. "onresize": function () { }
  2335. }, {
  2336. closecallback: function () { }
  2337. }, { "style": { "height": "36px" } }).form; //创建窗体
  2338. _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); } }
  2339. break;
  2340. case "doc":
  2341. // U.MD.D.I.isRoom();
  2342. _formdiv = new U.UF.UI.form(
  2343. "协同文档",
  2344. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2345. "id": "doc",
  2346. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2347. "onresize": function () { }
  2348. }, {
  2349. closecallback: function () { }
  2350. }, { "style": { "height": "36px" } }).form; //创建窗体
  2351. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2352. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2353. // })
  2354. _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); } }
  2355. break;
  2356. case "studentStudy":
  2357. _formdiv = new U.UF.UI.form(
  2358. "课程中心",
  2359. $$("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
  2360. "id": "studentStudy",
  2361. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2362. "onresize": function () { }
  2363. }, {
  2364. closecallback: function () { }
  2365. }, { "style": { "height": "36px" } }).form; //创建窗体
  2366. _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); } }
  2367. break;
  2368. case "train": //好友打开
  2369. _formdiv = new U.UF.UI.form(
  2370. "训练平台",
  2371. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2372. "id": "train",
  2373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2374. "onresize": function () { }
  2375. }, {
  2376. closecallback: function () { }
  2377. }, { "style": { "height": "36px" } }).form; //创建窗体
  2378. _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); } }
  2379. break;
  2380. case "mindNetwork": //好友打开
  2381. _formdiv = new U.UF.UI.form(
  2382. "思维网格",
  2383. $$("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 }), {
  2384. "id": "mindNetwork",
  2385. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2386. "onresize": function () { }
  2387. }, {
  2388. closecallback: function () { }
  2389. }, { "style": { "height": "36px" } }).form; //创建窗体
  2390. _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); } }
  2391. break;
  2392. case "studentClassRoom": //好友打开
  2393. _formdiv = new U.UF.UI.form(
  2394. "实时课堂",
  2395. $$("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 }), {
  2396. "id": "studentClassRoom",
  2397. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2398. "onresize": function () { }
  2399. }, {
  2400. closecallback: function () { }
  2401. }, { "style": { "height": "36px" } }).form; //创建窗体
  2402. _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); } }
  2403. setTimeout(() => {
  2404. U.UF.F.windowZooming(_formdiv)
  2405. }, 0);
  2406. break;
  2407. }
  2408. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2409. switch (str) {
  2410. case "studnetProject": //好友打开
  2411. _formdiv = new U.UF.UI.form(
  2412. "我的项目",
  2413. $$("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 }), {
  2414. "id": "studnetProject",
  2415. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2416. "onresize": function () { }
  2417. }, {
  2418. closecallback: function () { }
  2419. }, { "style": { "height": "36px" } }).form; //创建窗体
  2420. _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); } }
  2421. break;
  2422. case "studentEvaluate": //好友打开
  2423. _formdiv = new U.UF.UI.form(
  2424. "我的评价",
  2425. $$("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 }), {
  2426. "id": "studentEvaluate",
  2427. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2428. "onresize": function () { }
  2429. }, {
  2430. closecallback: function () { }
  2431. }, { "style": { "height": "36px" } }).form; //创建窗体
  2432. _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); } }
  2433. break;
  2434. case "my":
  2435. _formdiv = new U.UF.UI.form(
  2436. "我的资料",
  2437. $$("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 }), {
  2438. "id": "my",
  2439. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. _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); } }
  2445. break;
  2446. case "program":
  2447. _formdiv = new U.UF.UI.form(
  2448. "编程平台",
  2449. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2450. "id": "program",
  2451. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2452. "onresize": function () { }
  2453. }, {
  2454. closecallback: function () { }
  2455. }, { "style": { "height": "36px" } }).form; //创建窗体
  2456. _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); } }
  2457. break;
  2458. case "library":
  2459. _formdiv = new U.UF.UI.form(
  2460. "素材库",
  2461. $$("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 }), {
  2462. "id": "library",
  2463. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2464. "onresize": function () { }
  2465. }, {
  2466. closecallback: function () { }
  2467. }, { "style": { "height": "36px" } }).form; //创建窗体
  2468. _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); } }
  2469. break;
  2470. case "whiteboard":
  2471. _formdiv = new U.UF.UI.form(
  2472. "电子白板",
  2473. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2474. "id": "whiteboard",
  2475. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2476. "onresize": function () { }
  2477. }, {
  2478. closecallback: function () { }
  2479. }, { "style": { "height": "36px" } }).form; //创建窗体
  2480. _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); } }
  2481. break;
  2482. case "investigation":
  2483. _formdiv = new U.UF.UI.form(
  2484. "问卷调查",
  2485. $$("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 }), {
  2486. "id": "investigation",
  2487. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2488. "onresize": function () { }
  2489. }, {
  2490. closecallback: function () { }
  2491. }, { "style": { "height": "36px" } }).form; //创建窗体
  2492. _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); } }
  2493. break;
  2494. case "note":
  2495. _formdiv = new U.UF.UI.form(
  2496. "便签分类",
  2497. $$("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 }), {
  2498. "id": "note",
  2499. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2500. "onresize": function () { }
  2501. }, {
  2502. closecallback: function () { }
  2503. }, { "style": { "height": "36px" } }).form; //创建窗体
  2504. _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); } }
  2505. break;
  2506. // case "score":
  2507. // _formdiv = new U.UF.UI.form(
  2508. // "量规评分",
  2509. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2510. // "id": "score",
  2511. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2512. // "onresize": function() {}
  2513. // }, {
  2514. // closecallback: function() {}
  2515. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2516. // _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); } }
  2517. // break;
  2518. case "mind":
  2519. _formdiv = new U.UF.UI.form(
  2520. "思维导图",
  2521. $$("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"
  2522. "id": "mind",
  2523. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2524. "onresize": function () { }
  2525. }, {
  2526. closecallback: function () { }
  2527. }, { "style": { "height": "36px" } }).form; //创建窗体
  2528. _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); } }
  2529. break;
  2530. case "doc":
  2531. // U.MD.D.I.isRoom();
  2532. _formdiv = new U.UF.UI.form(
  2533. "协同文档",
  2534. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2535. "id": "doc",
  2536. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2537. "onresize": function () { }
  2538. }, {
  2539. closecallback: function () { }
  2540. }, { "style": { "height": "36px" } }).form; //创建窗体
  2541. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2542. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2543. })
  2544. _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); } }
  2545. break;
  2546. case "train": //好友打开
  2547. _formdiv = new U.UF.UI.form(
  2548. "训练平台",
  2549. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2550. "id": "train",
  2551. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2552. "onresize": function () { }
  2553. }, {
  2554. closecallback: function () { }
  2555. }, { "style": { "height": "36px" } }).form; //创建窗体
  2556. _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); } }
  2557. break;
  2558. case "studentStudy":
  2559. _formdiv = new U.UF.UI.form(
  2560. "课程中心",
  2561. $$("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
  2562. "id": "studentStudy",
  2563. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2564. "onresize": function () { }
  2565. }, {
  2566. closecallback: function () { }
  2567. }, { "style": { "height": "36px" } }).form; //创建窗体
  2568. _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); } }
  2569. break;
  2570. case "mindNetwork": //好友打开
  2571. _formdiv = new U.UF.UI.form(
  2572. "思维网格",
  2573. $$("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 }), {
  2574. "id": "mindNetwork",
  2575. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2576. "onresize": function () { }
  2577. }, {
  2578. closecallback: function () { }
  2579. }, { "style": { "height": "36px" } }).form; //创建窗体
  2580. _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); } }
  2581. break;
  2582. case "studentClassRoom": //好友打开
  2583. _formdiv = new U.UF.UI.form(
  2584. "实时课堂",
  2585. $$("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 }), {
  2586. "id": "studentClassRoom",
  2587. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2588. "onresize": function () { }
  2589. }, {
  2590. closecallback: function () { }
  2591. }, { "style": { "height": "36px" } }).form; //创建窗体
  2592. _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); } }
  2593. setTimeout(() => {
  2594. U.UF.F.windowZooming(_formdiv)
  2595. }, 0);
  2596. break;
  2597. }
  2598. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2599. //选择应用处理
  2600. switch (str) {
  2601. case "project": //好友打开
  2602. _formdiv = new U.UF.UI.form(
  2603. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2604. $$("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 }), {
  2605. "id": "project",
  2606. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2607. "onresize": function () { }
  2608. }, {
  2609. closecallback: function () { }
  2610. }, { "style": { "height": "36px" } }).form; //创建窗体
  2611. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2612. break;
  2613. case "student":
  2614. _formdiv = new U.UF.UI.form(
  2615. "学生管理",
  2616. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/student?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  2617. "id": "student",
  2618. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2619. "onresize": function () { }
  2620. }, {
  2621. closecallback: function () { }
  2622. }, { "style": { "height": "36px" } }).form; //创建窗体
  2623. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2624. break;
  2625. case "evaluate":
  2626. _formdiv = new U.UF.UI.form(
  2627. "学生评价",
  2628. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/works?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2629. "id": "evaluate",
  2630. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2631. "onresize": function () { }
  2632. }, {
  2633. closecallback: function () { }
  2634. }, { "style": { "height": "36px" } }).form; //创建窗体
  2635. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evaluation.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2636. break;
  2637. case "sys":
  2638. _formdiv = new U.UF.UI.form(
  2639. "目标管理",
  2640. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2641. "id": "sys",
  2642. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2643. "onresize": function () { }
  2644. }, {
  2645. closecallback: function () { }
  2646. }, { "style": { "height": "36px" } }).form; //创建窗体
  2647. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/evalua.png)" }, "name": "目标管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2648. break;
  2649. case "courseDesign":
  2650. _formdiv = new U.UF.UI.form(
  2651. "项目设计",
  2652. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2653. "id": "courseDesign",
  2654. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2655. "onresize": function () { }
  2656. }, {
  2657. closecallback: function () { }
  2658. }, { "style": { "height": "36px" } }).form; //创建窗体
  2659. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2660. break;
  2661. case "program":
  2662. _formdiv = new U.UF.UI.form(
  2663. "编程平台",
  2664. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2665. "id": "program",
  2666. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2667. "onresize": function () { }
  2668. }, {
  2669. closecallback: function () { }
  2670. }, { "style": { "height": "36px" } }).form; //创建窗体
  2671. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2672. break;
  2673. case "class":
  2674. _formdiv = new U.UF.UI.form(
  2675. "班级管理",
  2676. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/class?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2677. "id": "class",
  2678. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2679. "onresize": function () { }
  2680. }, {
  2681. closecallback: function () { }
  2682. }, { "style": { "height": "36px" } }).form; //创建窗体
  2683. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2684. break;
  2685. case "Grade":
  2686. _formdiv = new U.UF.UI.form(
  2687. "年级管理",
  2688. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/grade?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2689. "id": "Grade",
  2690. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2691. "onresize": function () { }
  2692. }, {
  2693. closecallback: function () { }
  2694. }, { "style": { "height": "36px" } }).form; //创建窗体
  2695. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Grade.png)" }, "name": "年级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2696. break;
  2697. case "teacherOffice":
  2698. _formdiv = new U.UF.UI.form(
  2699. "教研室",
  2700. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherOffice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2701. "id": "teacherOffice",
  2702. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2703. "onresize": function () { }
  2704. }, {
  2705. closecallback: function () { }
  2706. }, { "style": { "height": "36px" } }).form; //创建窗体
  2707. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacherOffice.png)" }, "name": "教研室", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2708. break;
  2709. case "my":
  2710. _formdiv = new U.UF.UI.form(
  2711. "我的资料",
  2712. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2713. "id": "my",
  2714. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2715. "onresize": function () { }
  2716. }, {
  2717. closecallback: function () { }
  2718. }, { "style": { "height": "36px" } }).form; //创建窗体
  2719. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2720. break;
  2721. case "notice":
  2722. _formdiv = new U.UF.UI.form(
  2723. "通知公告",
  2724. $$("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 }), {
  2725. "id": "notice",
  2726. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2727. "onresize": function () { }
  2728. }, {
  2729. closecallback: function () { }
  2730. }, { "style": { "height": "36px" } }).form; //创建窗体
  2731. _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); } }
  2732. break;
  2733. case "library":
  2734. _formdiv = new U.UF.UI.form(
  2735. "素材库",
  2736. $$("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 }), {
  2737. "id": "library",
  2738. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2739. "onresize": function () { }
  2740. }, {
  2741. closecallback: function () { }
  2742. }, { "style": { "height": "36px" } }).form; //创建窗体
  2743. _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); } }
  2744. break;
  2745. case "whiteboard":
  2746. _formdiv = new U.UF.UI.form(
  2747. "电子白板",
  2748. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2749. "id": "whiteboard",
  2750. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2751. "onresize": function () { }
  2752. }, {
  2753. closecallback: function () { }
  2754. }, { "style": { "height": "36px" } }).form; //创建窗体
  2755. _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); } }
  2756. break;
  2757. case "investigation":
  2758. _formdiv = new U.UF.UI.form(
  2759. "问卷调查",
  2760. $$("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 }), {
  2761. "id": "investigation",
  2762. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2763. "onresize": function () { }
  2764. }, {
  2765. closecallback: function () { }
  2766. }, { "style": { "height": "36px" } }).form; //创建窗体
  2767. _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); } }
  2768. break;
  2769. case "note":
  2770. _formdiv = new U.UF.UI.form(
  2771. "便签分类",
  2772. $$("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 }), {
  2773. "id": "note",
  2774. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2775. "onresize": function () { }
  2776. }, {
  2777. closecallback: function () { }
  2778. }, { "style": { "height": "36px" } }).form; //创建窗体
  2779. _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); } }
  2780. break;
  2781. // case "score":
  2782. // _formdiv = new U.UF.UI.form(
  2783. // "量规评分",
  2784. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2785. // "id": "score",
  2786. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2787. // "onresize": function() {}
  2788. // }, {
  2789. // closecallback: function() {}
  2790. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2791. // _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); } }
  2792. // break;
  2793. case "mind":
  2794. _formdiv = new U.UF.UI.form(
  2795. "思维导图",
  2796. $$("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"
  2797. "id": "mind",
  2798. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2799. "onresize": function () { }
  2800. }, {
  2801. closecallback: function () { }
  2802. }, { "style": { "height": "36px" } }).form; //创建窗体
  2803. _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); } }
  2804. break;
  2805. case "doc":
  2806. // U.MD.D.I.isRoom();
  2807. _formdiv = new U.UF.UI.form(
  2808. "协同文档",
  2809. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2810. "id": "doc",
  2811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2812. "onresize": function () { }
  2813. }, {
  2814. closecallback: function () { }
  2815. }, { "style": { "height": "36px" } }).form; //创建窗体
  2816. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2817. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2818. })
  2819. _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); } }
  2820. break;
  2821. case "study":
  2822. _formdiv = new U.UF.UI.form(
  2823. "课程中心",
  2824. $$("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
  2825. "id": "study",
  2826. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2827. "onresize": function () { }
  2828. }, {
  2829. closecallback: function () { }
  2830. }, { "style": { "height": "36px" } }).form; //创建窗体
  2831. _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); } }
  2832. break;
  2833. case "mindNetwork": //好友打开
  2834. _formdiv = new U.UF.UI.form(
  2835. "思维网格",
  2836. $$("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 }), {
  2837. "id": "mindNetwork",
  2838. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2839. "onresize": function () { }
  2840. }, {
  2841. closecallback: function () { }
  2842. }, { "style": { "height": "36px" } }).form; //创建窗体
  2843. _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); } }
  2844. break;
  2845. case "train": //好友打开
  2846. _formdiv = new U.UF.UI.form(
  2847. "训练平台",
  2848. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2849. "id": "mindNetwork",
  2850. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2851. "onresize": function () { }
  2852. }, {
  2853. closecallback: function () { }
  2854. }, { "style": { "height": "36px" } }).form; //创建窗体
  2855. _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); } }
  2856. break;
  2857. case "teacherClassRoom": //好友打开
  2858. _formdiv = new U.UF.UI.form(
  2859. "实时课堂",
  2860. $$("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 }), {
  2861. "id": "teacherClassRoom",
  2862. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2863. "onresize": function () { }
  2864. }, {
  2865. closecallback: function () { }
  2866. }, { "style": { "height": "36px" } }).form; //创建窗体
  2867. _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); } }
  2868. setTimeout(() => {
  2869. U.UF.F.windowZooming(_formdiv)
  2870. }, 0);
  2871. break;
  2872. }
  2873. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2874. switch (str) {
  2875. case "project": //好友打开
  2876. _formdiv = new U.UF.UI.form(
  2877. "课程管理",
  2878. $$("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 }), {
  2879. "id": "project",
  2880. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _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); } }
  2886. break;
  2887. case "evaluate":
  2888. _formdiv = new U.UF.UI.form(
  2889. "学生评价",
  2890. $$("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 }), {
  2891. "id": "evaluate",
  2892. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2893. "onresize": function () { }
  2894. }, {
  2895. closecallback: function () { }
  2896. }, { "style": { "height": "36px" } }).form; //创建窗体
  2897. _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); } }
  2898. break;
  2899. case "notice":
  2900. _formdiv = new U.UF.UI.form(
  2901. "通知公告",
  2902. $$("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 }), {
  2903. "id": "notice",
  2904. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2905. "onresize": function () { }
  2906. }, {
  2907. closecallback: function () { }
  2908. }, { "style": { "height": "36px" } }).form; //创建窗体
  2909. _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); } }
  2910. break;
  2911. case "stuLibrary":
  2912. _formdiv = new U.UF.UI.form(
  2913. "学习资料",
  2914. $$("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 }), {
  2915. "id": "stuLibrary",
  2916. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2917. "onresize": function () { }
  2918. }, {
  2919. closecallback: function () { }
  2920. }, { "style": { "height": "36px" } }).form; //创建窗体
  2921. _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); } }
  2922. break;
  2923. case "program":
  2924. _formdiv = new U.UF.UI.form(
  2925. "编程平台",
  2926. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2927. "id": "program",
  2928. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2929. "onresize": function () { }
  2930. }, {
  2931. closecallback: function () { }
  2932. }, { "style": { "height": "36px" } }).form; //创建窗体
  2933. _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); } }
  2934. break;
  2935. case "whiteboard":
  2936. _formdiv = new U.UF.UI.form(
  2937. "电子白板",
  2938. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2939. "id": "whiteboard",
  2940. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2941. "onresize": function () { }
  2942. }, {
  2943. closecallback: function () { }
  2944. }, { "style": { "height": "36px" } }).form; //创建窗体
  2945. _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); } }
  2946. break;
  2947. case "investigation":
  2948. _formdiv = new U.UF.UI.form(
  2949. "问卷调查",
  2950. $$("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 }), {
  2951. "id": "investigation",
  2952. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2953. "onresize": function () { }
  2954. }, {
  2955. closecallback: function () { }
  2956. }, { "style": { "height": "36px" } }).form; //创建窗体
  2957. _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); } }
  2958. break;
  2959. case "mind":
  2960. _formdiv = new U.UF.UI.form(
  2961. "思维导图",
  2962. $$("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"
  2963. "id": "mind",
  2964. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2965. "onresize": function () { }
  2966. }, {
  2967. closecallback: function () { }
  2968. }, { "style": { "height": "36px" } }).form; //创建窗体
  2969. _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); } }
  2970. break;
  2971. case "doc":
  2972. // U.MD.D.I.isRoom();
  2973. _formdiv = new U.UF.UI.form(
  2974. "协同文档",
  2975. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2976. "id": "doc",
  2977. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2978. "onresize": function () { }
  2979. }, {
  2980. closecallback: function () { }
  2981. }, { "style": { "height": "36px" } }).form; //创建窗体
  2982. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2983. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2984. })
  2985. _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); } }
  2986. break;
  2987. case "study":
  2988. _formdiv = new U.UF.UI.form(
  2989. "课程中心",
  2990. $$("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
  2991. "id": "study",
  2992. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2993. "onresize": function () { }
  2994. }, {
  2995. closecallback: function () { }
  2996. }, { "style": { "height": "36px" } }).form; //创建窗体
  2997. _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); } }
  2998. break;
  2999. case "mindNetwork": //好友打开
  3000. _formdiv = new U.UF.UI.form(
  3001. "思维网格",
  3002. $$("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 }), {
  3003. "id": "mindNetwork",
  3004. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3005. "onresize": function () { }
  3006. }, {
  3007. closecallback: function () { }
  3008. }, { "style": { "height": "36px" } }).form; //创建窗体
  3009. _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); } }
  3010. break;
  3011. case "train": //好友打开
  3012. _formdiv = new U.UF.UI.form(
  3013. "训练平台",
  3014. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3015. "id": "train",
  3016. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3017. "onresize": function () { }
  3018. }, {
  3019. closecallback: function () { }
  3020. }, { "style": { "height": "36px" } }).form; //创建窗体
  3021. _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); } }
  3022. break;
  3023. case "sys":
  3024. _formdiv = new U.UF.UI.form(
  3025. "目标管理",
  3026. $$("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 }), {
  3027. "id": "sys",
  3028. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3029. "onresize": function () { }
  3030. }, {
  3031. closecallback: function () { }
  3032. }, { "style": { "height": "36px" } }).form; //创建窗体
  3033. _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); } }
  3034. break;
  3035. case "courseDesign":
  3036. _formdiv = new U.UF.UI.form(
  3037. "项目设计",
  3038. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3039. "id": "courseDesign",
  3040. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3041. "onresize": function () { }
  3042. }, {
  3043. closecallback: function () { }
  3044. }, { "style": { "height": "36px" } }).form; //创建窗体
  3045. _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); } }
  3046. break;
  3047. }
  3048. } else if (!_type) {
  3049. switch (str) {
  3050. case "my":
  3051. _formdiv = new U.UF.UI.form(
  3052. "我的资料",
  3053. $$("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 }), {
  3054. "id": "my",
  3055. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3056. "onresize": function () { }
  3057. }, {
  3058. closecallback: function () { }
  3059. }, { "style": { "height": "36px" } }).form; //创建窗体
  3060. _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); } }
  3061. break;
  3062. }
  3063. }
  3064. switch (str) {
  3065. // AIprogram2 AI体验 aihub.cocorobo.cn
  3066. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  3067. // AIprogram AI编程 ai-blockly.cocorobo.cn
  3068. case "AIprogram2": //AI体验
  3069. _formdiv = new U.UF.UI.form(
  3070. "AI体验",
  3071. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3072. "id": "AIprogram2",
  3073. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3074. "onresize": function () { }
  3075. }, {
  3076. closecallback: function () { }
  3077. }, { "style": { "height": "36px" } }).form; //创建窗体
  3078. _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); } }
  3079. break;
  3080. case "Pythonprogram": //python编程
  3081. _formdiv = new U.UF.UI.form(
  3082. "Python编程",
  3083. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3084. "id": "Pythonprogram",
  3085. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3086. "onresize": function () { }
  3087. }, {
  3088. closecallback: function () { }
  3089. }, { "style": { "height": "36px" } }).form; //创建窗体
  3090. _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); } }
  3091. break;
  3092. case "AIprogram": //ai编程
  3093. _formdiv = new U.UF.UI.form(
  3094. "AI编程平台",
  3095. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3096. "id": "AIprogram",
  3097. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3098. "onresize": function () { }
  3099. }, {
  3100. closecallback: function () { }
  3101. }, { "style": { "height": "36px" } }).form; //创建窗体
  3102. _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); } }
  3103. break;
  3104. case "CocoPi": //CocoPi
  3105. _formdiv = new U.UF.UI.form(
  3106. "CocoPi",
  3107. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pi.cocorobo.cn" }), {
  3108. "id": "CocoPi",
  3109. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3110. "onresize": function () { }
  3111. }, {
  3112. closecallback: function () { }
  3113. }, { "style": { "height": "36px" } }).form; //创建窗体
  3114. _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); } }
  3115. break;
  3116. case "Wood": //Wood
  3117. _formdiv = new U.UF.UI.form(
  3118. "海龟编程",
  3119. $$("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/" }), {
  3120. "id": "Wood",
  3121. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3122. "onresize": function () { }
  3123. }, {
  3124. closecallback: function () { }
  3125. }, { "style": { "height": "36px" } }).form; //创建窗体
  3126. _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); } }
  3127. break;
  3128. case "car": //模拟驾驶
  3129. _formdiv = new U.UF.UI.form(
  3130. "模拟驾驶",
  3131. $$("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/" }), {
  3132. "id": "car",
  3133. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3134. "onresize": function () { }
  3135. }, {
  3136. closecallback: function () { }
  3137. }, { "style": { "height": "36px" } }).form; //创建窗体
  3138. _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); } }
  3139. break;
  3140. case "lineSearch": //路径搜索
  3141. _formdiv = new U.UF.UI.form(
  3142. "路径搜索",
  3143. $$("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/" }), {
  3144. "id": "lineSearch",
  3145. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3146. "onresize": function () { }
  3147. }, {
  3148. closecallback: function () { }
  3149. }, { "style": { "height": "36px" } }).form; //创建窗体
  3150. _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); } }
  3151. break;
  3152. case "deepLearning": //深度学习
  3153. _formdiv = new U.UF.UI.form(
  3154. "深度学习",
  3155. $$("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/#" }), {
  3156. "id": "deepLearning",
  3157. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3158. "onresize": function () { }
  3159. }, {
  3160. closecallback: function () { }
  3161. }, { "style": { "height": "36px" } }).form; //创建窗体
  3162. _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); } }
  3163. break;
  3164. case "allHistory": //深度学习
  3165. _formdiv = new U.UF.UI.form(
  3166. "全历史",
  3167. $$("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/" }), {
  3168. "id": "allHistory",
  3169. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3170. "onresize": function () { }
  3171. }, {
  3172. closecallback: function () { }
  3173. }, { "style": { "height": "36px" } }).form; //创建窗体
  3174. _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); } }
  3175. break;
  3176. case "chatPDF": //ai编程
  3177. _formdiv = new U.UF.UI.form(
  3178. "chatPDF",
  3179. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3180. "id": "chatPDF",
  3181. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3182. "onresize": function () { }
  3183. }, {
  3184. closecallback: function () { }
  3185. }, { "style": { "height": "36px" } }).form; //创建窗体
  3186. _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); } }
  3187. break;
  3188. case "resources": //国家教育
  3189. _formdiv = new U.UF.UI.form(
  3190. "国家教育",
  3191. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3192. "id": "resources",
  3193. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3194. "onresize": function () { }
  3195. }, {
  3196. closecallback: function () { }
  3197. }, { "style": { "height": "36px" } }).form; //创建窗体
  3198. _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); } }
  3199. break;
  3200. case "codeEdit": //源码编辑
  3201. _formdiv = new U.UF.UI.form(
  3202. "源码编辑",
  3203. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3204. "id": "codeEdit",
  3205. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3206. "onresize": function () { }
  3207. }, {
  3208. closecallback: function () { }
  3209. }, { "style": { "height": "36px" } }).form; //创建窗体
  3210. _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); } }
  3211. break; //
  3212. case "MindMap": //MindMap
  3213. _formdiv = new U.UF.UI.form(
  3214. "MindMap",
  3215. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3216. "id": "MindMap",
  3217. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3218. "onresize": function () { }
  3219. }, {
  3220. closecallback: function () { }
  3221. }, { "style": { "height": "36px" } }).form; //创建窗体
  3222. _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); } }
  3223. break;
  3224. case "netWorkPanel": //netWorkPanel
  3225. _formdiv = new U.UF.UI.form(
  3226. "netWorkPanel",
  3227. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3228. "id": "netWorkPanel",
  3229. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3230. "onresize": function () { }
  3231. }, {
  3232. closecallback: function () { }
  3233. }, { "style": { "height": "36px" } }).form; //创建窗体
  3234. _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); } }
  3235. break;
  3236. case "GeoGebra": //GeoGebra
  3237. _formdiv = new U.UF.UI.form(
  3238. "GeoGebra",
  3239. $$("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" }), {
  3240. "id": "GeoGebra",
  3241. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3242. "onresize": function () { }
  3243. }, {
  3244. closecallback: function () { }
  3245. }, { "style": { "height": "36px" } }).form; //创建窗体
  3246. _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); } }
  3247. break;
  3248. case "translation": //翻译
  3249. _formdiv = new U.UF.UI.form(
  3250. "翻译",
  3251. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3252. "id": "translation",
  3253. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3254. "onresize": function () { }
  3255. }, {
  3256. closecallback: function () { }
  3257. }, { "style": { "height": "36px" } }).form; //创建窗体
  3258. _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); } }
  3259. break;
  3260. case "mohe": //魔盒
  3261. _formdiv = new U.UF.UI.form(
  3262. "魔盒识字",
  3263. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3264. "id": "mohe",
  3265. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3266. "onresize": function () { }
  3267. }, {
  3268. closecallback: function () { }
  3269. }, { "style": { "height": "36px" } }).form; //创建窗体
  3270. _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); } }
  3271. break;
  3272. case "24game": //24点
  3273. _formdiv = new U.UF.UI.form(
  3274. "24点",
  3275. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3276. "id": "24game",
  3277. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3278. "onresize": function () { }
  3279. }, {
  3280. closecallback: function () { }
  3281. }, { "style": { "height": "36px" } }).form; //创建窗体
  3282. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/24game.png)" }, "name": "24点", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3283. break;
  3284. case "case":
  3285. _formdiv = new U.UF.UI.form(
  3286. "课程进展",
  3287. $$("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 }), {
  3288. "id": "case",
  3289. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3290. "onresize": function () { }
  3291. }, {
  3292. closecallback: function () { }
  3293. }, { "style": { "height": "36px" } }).form; //创建窗体
  3294. _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); } }
  3295. break;
  3296. case "snf":
  3297. _formdiv = new U.UF.UI.form(
  3298. "赛诺梵",
  3299. $$("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" }), {
  3300. "id": "snf",
  3301. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3302. "onresize": function () { }
  3303. }, {
  3304. closecallback: function () { }
  3305. }, { "style": { "height": "36px" } }).form; //创建窗体
  3306. _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); } }
  3307. break;
  3308. case "hanFamily":
  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": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3312. "id": "hanFamily",
  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/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3319. break;
  3320. case "hanClassics":
  3321. _formdiv = new U.UF.UI.form(
  3322. "国学经典",
  3323. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3324. "id": "hanClassics",
  3325. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3326. "onresize": function () { }
  3327. }, {
  3328. closecallback: function () { }
  3329. }, { "style": { "height": "36px" } }).form; //创建窗体
  3330. _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); } }
  3331. break;
  3332. case "hanTraining":
  3333. _formdiv = new U.UF.UI.form(
  3334. "笔画训练",
  3335. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3336. "id": "hanTraining",
  3337. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3338. "onresize": function () { }
  3339. }, {
  3340. closecallback: function () { }
  3341. }, { "style": { "height": "36px" } }).form; //创建窗体
  3342. _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); } }
  3343. break;
  3344. case "hanClass":
  3345. _formdiv = new U.UF.UI.form(
  3346. "书法课堂",
  3347. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3348. "id": "hanClass",
  3349. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3350. "onresize": function () { }
  3351. }, {
  3352. closecallback: function () { }
  3353. }, { "style": { "height": "36px" } }).form; //创建窗体
  3354. _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); } }
  3355. break;
  3356. case "han":
  3357. _formdiv = new U.UF.UI.form(
  3358. "汉字宫",
  3359. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3360. "id": "han",
  3361. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3362. "onresize": function () { }
  3363. }, {
  3364. closecallback: function () { }
  3365. }, { "style": { "height": "36px" } }).form; //创建窗体
  3366. _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); } }
  3367. break;
  3368. case "projectGM": //课程管理
  3369. _formdiv = new U.UF.UI.form(
  3370. "课程管理",
  3371. $$("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 }), {
  3372. "id": "projectGM",
  3373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3374. "onresize": function () { }
  3375. }, {
  3376. closecallback: function () { }
  3377. }, { "style": { "height": "36px" } }).form; //创建窗体
  3378. _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); } }
  3379. break;
  3380. case "studyGM"://课程中心
  3381. _formdiv = new U.UF.UI.form(
  3382. "课程中心",
  3383. $$("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
  3384. "id": "study",
  3385. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3386. "onresize": function () { }
  3387. }, {
  3388. closecallback: function () { }
  3389. }, { "style": { "height": "36px" } }).form; //创建窗体
  3390. _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); } }
  3391. break;
  3392. // studentGM
  3393. case "studentGM"://学生管理
  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/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org }), {
  3397. "id": "studentGM",
  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/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3404. break;
  3405. case "evaluateGM"://学生评价
  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/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3409. "id": "evaluateGM",
  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/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3416. break;
  3417. // classGM
  3418. case "classGM"://班级管理
  3419. _formdiv = new U.UF.UI.form(
  3420. "班级管理",
  3421. $$("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 }), {
  3422. "id": "classGM",
  3423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3424. "onresize": function () { }
  3425. }, {
  3426. closecallback: function () { }
  3427. }, { "style": { "height": "36px" } }).form; //创建窗体
  3428. _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); } }
  3429. break;
  3430. // dataGM
  3431. case "dataGM":
  3432. _formdiv = new U.UF.UI.form(
  3433. "我的资料",
  3434. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org }), {
  3435. "id": "dataGM",
  3436. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3437. "onresize": function () { }
  3438. }, {
  3439. closecallback: function () { }
  3440. }, { "style": { "height": "36px" } }).form; //创建窗体
  3441. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3442. break;
  3443. // caseGM
  3444. case "caseGM"://课程进展
  3445. _formdiv = new U.UF.UI.form(
  3446. "课程进展",
  3447. $$("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 }), {
  3448. "id": "caseGM",
  3449. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3450. "onresize": function () { }
  3451. }, {
  3452. closecallback: function () { }
  3453. }, { "style": { "height": "36px" } }).form; //创建窗体
  3454. _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); } }
  3455. break;
  3456. // meterialGM
  3457. case "meterialGM"://素材库
  3458. _formdiv = new U.UF.UI.form(
  3459. "素材库",
  3460. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  3461. "id": "meterialGM",
  3462. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3463. "onresize": function () { }
  3464. }, {
  3465. closecallback: function () { }
  3466. }, { "style": { "height": "36px" } }).form; //创建窗体
  3467. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3468. break;
  3469. // evaluateSGM
  3470. case "evaluateSGM": //我的评价
  3471. _formdiv = new U.UF.UI.form(
  3472. "我的评价",
  3473. $$("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 }), {
  3474. "id": "evaluateSGM",
  3475. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3476. "onresize": function () { }
  3477. }, {
  3478. closecallback: function () { }
  3479. }, { "style": { "height": "36px" } }).form; //创建窗体
  3480. _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); } }
  3481. break;
  3482. case "jupyter": //jupyter
  3483. _formdiv = new U.UF.UI.form(
  3484. "jupyter",
  3485. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3486. "id": "jupyter",
  3487. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3488. "onresize": function () { }
  3489. }, {
  3490. closecallback: function () { }
  3491. }, { "style": { "height": "36px" } }).form; //创建窗体
  3492. _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); } }
  3493. break;
  3494. case "number": //数字实验室
  3495. _formdiv = new U.UF.UI.form(
  3496. "数字实验室",
  3497. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3498. "id": "number",
  3499. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3500. "onresize": function () { }
  3501. }, {
  3502. closecallback: function () { }
  3503. }, { "style": { "height": "36px" } }).form; //创建窗体
  3504. _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); } }
  3505. break;
  3506. case "studentCourse": //项目管理 学生
  3507. _formdiv = new U.UF.UI.form(
  3508. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3509. $$("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 }), {
  3510. "id": "studentCourse",
  3511. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3512. "onresize": function () { }
  3513. }, {
  3514. closecallback: function () { }
  3515. }, { "style": { "height": "36px" } }).form; //创建窗体
  3516. _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); } }
  3517. break;
  3518. case "studentCourseS": //项目管理 老师
  3519. _formdiv = new U.UF.UI.form(
  3520. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3521. $$("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 }), {
  3522. "id": "studentCourseS",
  3523. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3524. "onresize": function () { }
  3525. }, {
  3526. closecallback: function () { }
  3527. }, { "style": { "height": "36px" } }).form; //创建窗体
  3528. _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); } }
  3529. break;
  3530. case "studentIndex": //项目中心
  3531. _formdiv = new U.UF.UI.form(
  3532. "项目中心",
  3533. $$("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 }), {
  3534. "id": "studentIndex",
  3535. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3536. "onresize": function () { }
  3537. }, {
  3538. closecallback: function () { }
  3539. }, { "style": { "height": "36px" } }).form; //创建窗体
  3540. _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); } }
  3541. break;
  3542. case "CaseDesignS":
  3543. _formdiv = new U.UF.UI.form(
  3544. "项目进展",
  3545. $$("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 }), {
  3546. "id": "case",
  3547. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3548. "onresize": function () { }
  3549. }, {
  3550. closecallback: function () { }
  3551. }, { "style": { "height": "36px" } }).form; //创建窗体
  3552. _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); } }
  3553. break;
  3554. case "tcStudent": //腾讯学生管理
  3555. _formdiv = new U.UF.UI.form(
  3556. "学生管理",
  3557. $$("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 }), {
  3558. "id": "tcStudent",
  3559. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3560. "onresize": function () { }
  3561. }, {
  3562. closecallback: function () { }
  3563. }, { "style": { "height": "36px" } }).form; //创建窗体
  3564. _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); } }
  3565. break;
  3566. case "tcSchool": //腾讯学校管理
  3567. _formdiv = new U.UF.UI.form(
  3568. "学校管理",
  3569. $$("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 }), {
  3570. "id": "tcSchool",
  3571. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3572. "onresize": function () { }
  3573. }, {
  3574. closecallback: function () { }
  3575. }, { "style": { "height": "36px" } }).form; //创建窗体
  3576. _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); } }
  3577. break;
  3578. case "tcTeacher": //腾讯学校管理
  3579. _formdiv = new U.UF.UI.form(
  3580. "教师管理",
  3581. $$("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 }), {
  3582. "id": "tcTeacher",
  3583. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3584. "onresize": function () { }
  3585. }, {
  3586. closecallback: function () { }
  3587. }, { "style": { "height": "36px" } }).form; //创建窗体
  3588. _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); } }
  3589. break;
  3590. case "tcData": //腾讯我的资料
  3591. _formdiv = new U.UF.UI.form(
  3592. "我的资料",
  3593. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcData?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3594. "id": "tcData",
  3595. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3596. "onresize": function () { }
  3597. }, {
  3598. closecallback: function () { }
  3599. }, { "style": { "height": "36px" } }).form; //创建窗体
  3600. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3601. break;
  3602. case "tcNotice": //腾讯消息通知
  3603. _formdiv = new U.UF.UI.form(
  3604. "消息通知",
  3605. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcNotice?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3606. "id": "tcNotice",
  3607. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3608. "onresize": function () { }
  3609. }, {
  3610. closecallback: function () { }
  3611. }, { "style": { "height": "36px" } }).form; //创建窗体
  3612. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/news.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3613. break;
  3614. case "myReport": //好友打开
  3615. _formdiv = new U.UF.UI.form(
  3616. "我的评价",
  3617. $$("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 }), {
  3618. "id": "myReport",
  3619. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3620. "onresize": function () { }
  3621. }, {
  3622. closecallback: function () { }
  3623. }, { "style": { "height": "36px" } }).form; //创建窗体
  3624. _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); } }
  3625. break;
  3626. case "learnAna": //好友打开
  3627. _formdiv = new U.UF.UI.form(
  3628. "学习分析",
  3629. $$("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 }), {
  3630. "id": "learnAna",
  3631. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3632. "onresize": function () { }
  3633. }, {
  3634. closecallback: function () { }
  3635. }, { "style": { "height": "36px" } }).form; //创建窗体
  3636. _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); } }
  3637. break;
  3638. case "AIChat": //AI共创
  3639. _formdiv = new U.UF.UI.form(
  3640. "AI共创",
  3641. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3642. "id": "AIChat",
  3643. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3644. "onresize": function () { }
  3645. }, {
  3646. istop: true,
  3647. closecallback: function () { $("#aichat_icon").remove(); },
  3648. narrowcallback: function () {
  3649. if (!$("#aichat_icon")[0]) {
  3650. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3651. }
  3652. },
  3653. }, { "style": { "height": "36px" } }).form; //创建窗体
  3654. _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); } }
  3655. break;
  3656. case "ainew": //AI共创
  3657. _formdiv = new U.UF.UI.form(
  3658. "AI协同",
  3659. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3660. "id": "ainew",
  3661. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3662. "onresize": function () { }
  3663. }, {
  3664. closecallback: function () { }
  3665. }, { "style": { "height": "36px" } }).form; //创建窗体
  3666. _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); } }
  3667. break;
  3668. case "AIAnalyse": //AI共创
  3669. _formdiv = new U.UF.UI.form(
  3670. "AI分析",
  3671. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3672. "id": "AIAnalyse",
  3673. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3674. "onresize": function () { }
  3675. }, {
  3676. closecallback: function () { }
  3677. }, { "style": { "height": "36px" } }).form; //创建窗体
  3678. _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); } }
  3679. break;
  3680. case "studioCourse": //AI共创
  3681. _formdiv = new U.UF.UI.form(
  3682. "工作管理",
  3683. $$("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 }), {
  3684. "id": "studioCourse",
  3685. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3686. "onresize": function () { }
  3687. }, {
  3688. closecallback: function () { }
  3689. }, { "style": { "height": "36px" } }).form; //创建窗体
  3690. _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); } }
  3691. break;
  3692. case "studioIndex": //AI共创
  3693. _formdiv = new U.UF.UI.form(
  3694. "工作中心",
  3695. $$("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 }), {
  3696. "id": "studioIndex",
  3697. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3698. "onresize": function () { }
  3699. }, {
  3700. closecallback: function () { }
  3701. }, { "style": { "height": "36px" } }).form; //创建窗体
  3702. _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); } }
  3703. break;
  3704. case "source":
  3705. _formdiv = new U.UF.UI.form(
  3706. "教学资源",
  3707. $$("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 }), {
  3708. "id": "source",
  3709. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3710. "onresize": function () { }
  3711. }, {
  3712. closecallback: function () { }
  3713. }, { "style": { "height": "36px" } }).form; //创建窗体
  3714. _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); } }
  3715. break;
  3716. }
  3717. //U.MD.D.I.openClick(str);
  3718. //如果有任务栏信息
  3719. if (_taskbar) {
  3720. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3721. }
  3722. }
  3723. // U.MD.D.I.openClick = function(str){
  3724. // var click = '';
  3725. // switch(str){
  3726. // case 'friend':
  3727. // click = '我的好友';
  3728. // break;
  3729. // case 'domain':
  3730. // click = '域名管理';
  3731. // break;
  3732. // case 'disk':
  3733. // click = '我的云盘';
  3734. // break;
  3735. // case 'word':
  3736. // click = 'Word';
  3737. // break;
  3738. // case 'excel':
  3739. // click = 'Execl';
  3740. // break;
  3741. // case 'txt':
  3742. // click = '文本文件';
  3743. // break;
  3744. // case 'lookupFriend':
  3745. // click = '查找好友';
  3746. // break;
  3747. // case 'ftp':
  3748. // click = 'FTP';
  3749. // break;
  3750. // case 'group':
  3751. // click = '群组';
  3752. // break;
  3753. // case 'set':
  3754. // click = '我的设置';
  3755. // break;
  3756. // case 'systemSet':
  3757. // click = '系统设置';
  3758. // break;
  3759. // case 'boomYun':
  3760. // click = '互联办公';
  3761. // break;
  3762. // case 'xz':
  3763. // click = '云端下载';
  3764. // break;
  3765. // case 'client':
  3766. // click = '有思浏览器';
  3767. // break;
  3768. // case 'backEndProgramming':
  3769. // click = '在线后台编程';
  3770. // break;
  3771. // case 'frontEndProgramming':
  3772. // click = '在线前端编程';
  3773. // break;
  3774. // default: break;
  3775. // }
  3776. // if(U.MD.D.I.Ip && click){
  3777. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3778. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3779. // })
  3780. // }
  3781. // }
  3782. /**
  3783. *函数作用:ajax简易函数,使用post格式
  3784. *@param url {data} 后台地址
  3785. *@param data {data} 参数json
  3786. *@param fn {data} 回调函数
  3787. *
  3788. */
  3789. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3790. // var xhr = new XMLHttpRequest();
  3791. // xhr.open("GET",url,true);
  3792. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3793. // xhr.onreadystatechange = function(){
  3794. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3795. // fn.call(this,xhr.responseText);
  3796. // }
  3797. // };
  3798. // xhr.send();
  3799. // }
  3800. /*判断是否是内网IP*/
  3801. // U.MD.D.I.isInnerIPFn = function(str){
  3802. // var curPageUrl = str;
  3803. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3804. // curPageUrl =curPageUrl.replace(reg1,'');
  3805. // // console.log('curPageUrl-1 '+curPageUrl);
  3806. // var reg2 = /\:+/g;//替换冒号为一点
  3807. // curPageUrl =curPageUrl.replace(reg2,'.');
  3808. // // console.log('curPageUrl-2 '+curPageUrl);
  3809. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3810. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3811. // if(curPageUrl[2] != '16'){
  3812. // return ipAddress;
  3813. // }else{
  3814. // return false;
  3815. // }
  3816. // }
  3817. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3818. // //compatibility for firefox and chrome
  3819. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3820. // var pc = new myPeerConnection({
  3821. // iceServers: []
  3822. // }),
  3823. // noop = function() {},
  3824. // localIPs = {},
  3825. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3826. // key;
  3827. // function iterateIP(ip) {
  3828. // if (!localIPs[ip]) onNewIP(ip);
  3829. // localIPs[ip] = true;
  3830. // }
  3831. // //create a bogus data channel
  3832. // pc.createDataChannel("");
  3833. // // create offer and set local description
  3834. // pc.createOffer().then(function(sdp) {
  3835. // sdp.sdp.split('\n').forEach(function(line) {
  3836. // if (line.indexOf('candidate') < 0) return;
  3837. // line.match(ipRegex).forEach(iterateIP);
  3838. // });
  3839. // pc.setLocalDescription(sdp, noop, noop);
  3840. // }).catch(function(reason) {
  3841. // // An error occurred, so handle the failure to connect
  3842. // });
  3843. // //sten for candidate events
  3844. // pc.onicecandidate = function(ice) {
  3845. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3846. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3847. // };
  3848. // }
  3849. // U.MD.D.I.getUserIpBool = function(callback){
  3850. // U.MD.D.I.getUserIP(function(ip){
  3851. // alert("Got IP! :" + ip);
  3852. // });
  3853. //}
  3854. //#endregion
  3855. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3856. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3857. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3858. _userinfo = US.userInfo, //登录用户信息
  3859. _userid = US.userInfo.userid //登录用户id
  3860. let _iframe;
  3861. let _cid = cid,
  3862. _stage = stage,
  3863. _task = task,
  3864. _tool = tool;
  3865. var _jie = $$("div", {
  3866. "style": {
  3867. "position": "absolute",
  3868. "bottom": "50px",
  3869. "right": "50px",
  3870. "zIndex": "9999",
  3871. "backgroundColor": "#2268bc",
  3872. "color": "#fff",
  3873. "padding": "12px 20px",
  3874. "cursor": "pointer",
  3875. "borderRadius": "4px",
  3876. },
  3877. "innerHTML": "提交作业"
  3878. })
  3879. let aTool = ''
  3880. let _loading = document.createElement('div')
  3881. _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;"
  3882. // _loading.id = "";
  3883. let _lchild = document.createElement('div')
  3884. let _limg = document.createElement('img')
  3885. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3886. _limg.style = "width: 26px;margin-right: 10px;"
  3887. _lchild.appendChild(_limg)
  3888. let _lspan = document.createElement('span')
  3889. _lspan.innerHTML = "上传中..."
  3890. _lchild.appendChild(_lspan)
  3891. _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%);"
  3892. _loading.appendChild(_lchild)
  3893. var _box = $$('div', {
  3894. "style": {
  3895. "position": "relative",
  3896. "width": "100%",
  3897. "height": "100%",
  3898. },
  3899. })
  3900. _box.appendChild(_loading)
  3901. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3902. switch (str) {
  3903. case "whiteboard":
  3904. aTool = 1;
  3905. _iframe = $$("iframe", {
  3906. "frameborder": "no",
  3907. "border": "0",
  3908. "scrolling ": "no",
  3909. "style": {
  3910. "cssText": "border:0;width:100%;height:100%"
  3911. },
  3912. "src": "https://iwb.cocorobo.cn/"
  3913. })
  3914. _box.appendChild(_iframe);
  3915. _box.appendChild(_jie);
  3916. _formdiv = new U.UF.UI.form(
  3917. "电子白板",
  3918. _box, {
  3919. "id": "whiteboard" + cid + stage + task + tool,
  3920. "style": {
  3921. "width": "90%",
  3922. "height": "90%",
  3923. "overflow": 'hidden'
  3924. },
  3925. "onresize": function () { }
  3926. }, {
  3927. closecallback: function () { }
  3928. }, {
  3929. "style": {
  3930. "height": "36px"
  3931. }
  3932. }).form; //创建窗体
  3933. _taskbar = {
  3934. "id": str + _formdiv.id,
  3935. "style": {
  3936. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3937. },
  3938. "name": "电子白板",
  3939. "forms": _formdiv,
  3940. "click": function () {
  3941. U.MD.D.I.openApplication(str, obj, info);
  3942. }
  3943. }
  3944. break;
  3945. case "mind":
  3946. aTool = 3;
  3947. _iframe = $$("iframe", {
  3948. "frameborder": "no",
  3949. "border": "0",
  3950. "scrolling ": "no",
  3951. "style": {
  3952. "cssText": "border:0;width:100%;height:100%"
  3953. },
  3954. "src": "/kityminder-editor/dist/index.html"
  3955. })
  3956. _box.appendChild(_iframe);
  3957. _box.appendChild(_jie);
  3958. _formdiv = new U.UF.UI.form(
  3959. "思维导图",
  3960. _box, { //"/jsmind/example/demo.html"
  3961. "id": "mind" + cid + stage + task + tool,
  3962. "style": {
  3963. "width": "90%",
  3964. "height": "90%",
  3965. "overflow": 'hidden'
  3966. },
  3967. "onresize": function () { }
  3968. }, {
  3969. closecallback: function () { }
  3970. }, {
  3971. "style": {
  3972. "height": "36px"
  3973. }
  3974. }).form; //创建窗体
  3975. _taskbar = {
  3976. "id": str + _formdiv.id,
  3977. "style": {
  3978. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3979. },
  3980. "name": "思维导图",
  3981. "forms": _formdiv,
  3982. "click": function () {
  3983. U.MD.D.I.openApplication(str, obj, info);
  3984. }
  3985. }
  3986. break;
  3987. case "MindMap":
  3988. aTool = 3;
  3989. _iframe = $$("iframe", {
  3990. "frameborder": "no",
  3991. "border": "0",
  3992. "scrolling ": "no",
  3993. "style": {
  3994. "cssText": "border:0;width:100%;height:100%"
  3995. },
  3996. "src": "//cloud.cocorobo.cn/mind/"
  3997. })
  3998. _box.appendChild(_iframe);
  3999. _box.appendChild(_jie);
  4000. _formdiv = new U.UF.UI.form(
  4001. "思维导图",
  4002. _box, { //"/jsmind/example/demo.html"
  4003. "id": "mind" + cid + stage + task + tool,
  4004. "style": {
  4005. "width": "90%",
  4006. "height": "90%",
  4007. "overflow": 'hidden'
  4008. },
  4009. "onresize": function () { }
  4010. }, {
  4011. closecallback: function () { }
  4012. }, {
  4013. "style": {
  4014. "height": "36px"
  4015. }
  4016. }).form; //创建窗体
  4017. _taskbar = {
  4018. "id": str + _formdiv.id,
  4019. "style": {
  4020. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4021. },
  4022. "name": "思维导图",
  4023. "forms": _formdiv,
  4024. "click": function () {
  4025. U.MD.D.I.openApplication(str, obj, info);
  4026. }
  4027. }
  4028. break;
  4029. case "doc":
  4030. aTool = 6;
  4031. _iframe = $$("iframe", {
  4032. "frameborder": "no",
  4033. "border": "0",
  4034. "scrolling ": "no",
  4035. "style": {
  4036. "cssText": "border:0;width:100%;height:100%"
  4037. },
  4038. "src": "/Office/Word/WordEditArea.htm"
  4039. })
  4040. _box.appendChild(_iframe);
  4041. _box.appendChild(_jie);
  4042. _formdiv = new U.UF.UI.form(
  4043. "协同文档",
  4044. _box, {
  4045. "id": "doc" + cid + stage + task + tool,
  4046. "style": {
  4047. "width": "90%",
  4048. "height": "90%",
  4049. "overflow": 'hidden'
  4050. },
  4051. "onresize": function () { }
  4052. }, {
  4053. closecallback: function () { }
  4054. }, {
  4055. "style": {
  4056. "height": "36px"
  4057. }
  4058. }).form; //创建窗体
  4059. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4060. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4061. })
  4062. _taskbar = {
  4063. "id": str + _formdiv.id,
  4064. "style": {
  4065. "backgroundImage": "url(/img/icon/doc.png)"
  4066. },
  4067. "name": "协同文档",
  4068. "forms": _formdiv,
  4069. "click": function () {
  4070. U.MD.D.I.openApplication(str, obj, info);
  4071. }
  4072. }
  4073. break;
  4074. case "mindNetwork": //好友打开
  4075. aTool = 7;
  4076. _iframe = $$("iframe", {
  4077. "webkitallowfullscreen": "",
  4078. "mozallowfullscreen": "",
  4079. "allowfullscreen": "",
  4080. "frameborder": "no",
  4081. "border": "0",
  4082. "scrolling ": "no",
  4083. "style": {
  4084. "cssText": "border:0; width:100%; height:100%;"
  4085. },
  4086. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4087. })
  4088. _box.appendChild(_iframe);
  4089. _box.appendChild(_jie);
  4090. _formdiv = new U.UF.UI.form(
  4091. "思维网格",
  4092. _box, {
  4093. "id": "mindNetwork" + cid + stage + task + tool,
  4094. "style": {
  4095. "width": "90%",
  4096. "height": "90%",
  4097. "overflow": 'hidden'
  4098. },
  4099. "onresize": function () { }
  4100. }, {
  4101. closecallback: function () { }
  4102. }, {
  4103. "style": {
  4104. "height": "36px"
  4105. }
  4106. }).form; //创建窗体
  4107. _taskbar = {
  4108. "id": str + _formdiv.id,
  4109. "style": {
  4110. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4111. },
  4112. "name": "思维网格",
  4113. "forms": _formdiv,
  4114. "click": function () {
  4115. U.MD.D.I.openApplication(str, obj, info);
  4116. }
  4117. }
  4118. break;
  4119. case "courseDesign":
  4120. _iframe = $$("iframe", {
  4121. "webkitallowfullscreen": "",
  4122. "mozallowfullscreen": "",
  4123. "allowfullscreen": "",
  4124. "frameborder": "no",
  4125. "border": "0",
  4126. "scrolling ": "no",
  4127. "style": {
  4128. "cssText": "border:0; width:100%; height:100%;"
  4129. },
  4130. "src": "/course-design-vue"
  4131. })
  4132. _box.appendChild(_iframe);
  4133. _box.appendChild(_jie);
  4134. _formdiv = new U.UF.UI.form(
  4135. "项目设计",
  4136. _box, {
  4137. "id": "courseDesign" + cid + stage + task + tool,
  4138. "style": {
  4139. "width": "90%",
  4140. "height": "90%",
  4141. "overflow": 'hidden'
  4142. },
  4143. "onresize": function () { }
  4144. }, {
  4145. closecallback: function () { }
  4146. }, {
  4147. "style": {
  4148. "height": "36px"
  4149. }
  4150. }).form; //创建窗体
  4151. _taskbar = {
  4152. "id": str + _formdiv.id,
  4153. "style": {
  4154. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4155. },
  4156. "name": "项目设计",
  4157. "forms": _formdiv,
  4158. "click": function () {
  4159. U.MD.D.I.openApplication(str, obj, info);
  4160. }
  4161. }
  4162. break;
  4163. }
  4164. const script1 = document.createElement("script");
  4165. script1.type = "text/javascript";
  4166. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4167. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4168. const script2 = document.createElement("script");
  4169. script2.type = "text/javascript";
  4170. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4171. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4172. const script3 = document.createElement("script");
  4173. script3.type = "text/javascript";
  4174. script3.charset = "UTF-8";
  4175. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4176. const script4 = document.createElement("script");
  4177. script4.type = "text/javascript";
  4178. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4179. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4180. if (_iframe) {
  4181. if (str == 'doc') {
  4182. _iframe = _formdiv.querySelector('iframe')
  4183. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4184. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4185. _iframe.contentWindow.document.body.appendChild(script1);
  4186. _iframe.contentWindow.document.body.appendChild(script2);
  4187. // _iframe.contentWindow.document.body.appendChild(script3);
  4188. _iframe.contentWindow.document.body.appendChild(script4);
  4189. })
  4190. if (onloadListener) {
  4191. _iframe.contentDocument.location.reload()
  4192. } else {
  4193. _iframe.contentDocument.location.reload()
  4194. }
  4195. } else if (str == 'courseDesign') {
  4196. U.UF.DL.iframeLoad(_iframe, function () {
  4197. // _iframe.contentWindow.U.MD.O.W.load();
  4198. // _iframe.contentWindow.document.body.appendChild(script1);
  4199. _iframe.contentWindow.document.body.appendChild(script2);
  4200. _iframe.contentWindow.document.body.appendChild(script4);
  4201. })
  4202. } else if (str == 'mind') {
  4203. _iframe = _formdiv.querySelector('iframe')
  4204. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4205. //
  4206. _iframe.contentWindow.document.body.appendChild(script1);
  4207. _iframe.contentWindow.document.body.appendChild(script2);
  4208. _iframe.contentWindow.document.body.appendChild(script4);
  4209. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4210. })
  4211. if (onloadListener) {
  4212. _iframe.contentDocument.location.reload()
  4213. } else {
  4214. _iframe.contentDocument.location.reload()
  4215. }
  4216. } else if (str == 'whiteboard') {
  4217. _iframe = _formdiv.querySelector('iframe')
  4218. let onloadListener = _iframe.onload = () => {
  4219. _iframe.contentWindow.document.body.appendChild(script1);
  4220. _iframe.contentWindow.document.body.appendChild(script2);
  4221. _iframe.contentWindow.document.body.appendChild(script4);
  4222. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4223. };
  4224. if (onloadListener) {
  4225. _iframe.contentDocument.location.reload()
  4226. } else {
  4227. _iframe.contentDocument.location.reload()
  4228. }
  4229. } else {
  4230. _iframe.onload = () => {
  4231. _iframe.contentWindow.document.body.appendChild(script1);
  4232. _iframe.contentWindow.document.body.appendChild(script2);
  4233. // _iframe.contentWindow.document.body.appendChild(script3);
  4234. _iframe.contentWindow.document.body.appendChild(script4);
  4235. };
  4236. }
  4237. _jie.onclick = async () => {
  4238. let text = ''
  4239. if (aTool == 1) {
  4240. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4241. } else if (aTool == 6) {
  4242. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4243. } else if (aTool == 3) {
  4244. text = await U.MD.D.I.getEditorContent(_iframe);
  4245. }
  4246. _loading.style.display = 'flex'
  4247. console.log(_loading);
  4248. var _ajs = _iframe.contentWindow.document.createElement("script");
  4249. _ajs.type = "text/javascript";
  4250. _ajs.innerHTML =
  4251. // 'console.log(' + _loading + ');\n' +
  4252. 'var _js = document.createElement("script");\n' +
  4253. '_js.type="text/javascript";\n' +
  4254. '_js.charset="UTF-8";\n' +
  4255. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4256. "_js.onload = function(){\n" +
  4257. ' var a = document.getElementsByTagName("img")\n' +
  4258. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4259. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4260. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4261. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4262. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4263. "beforeUpload_shishi(file," +
  4264. "'" +
  4265. _userid +
  4266. "'" +
  4267. ", " +
  4268. "'" +
  4269. _cid +
  4270. "'" +
  4271. ", " +
  4272. "'" +
  4273. _stage +
  4274. "'" +
  4275. ", " +
  4276. "'" +
  4277. _task +
  4278. "'" +
  4279. ", " +
  4280. "'" +
  4281. _tool +
  4282. "'" +
  4283. ", " +
  4284. "'" +
  4285. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4286. "'" +
  4287. ", " +
  4288. "'" +
  4289. aTool +
  4290. "'" +
  4291. ", " +
  4292. "`" +
  4293. text +
  4294. "`" +
  4295. ")\n" +
  4296. " });\n" +
  4297. "}\n" +
  4298. "document.head.appendChild(_js);\n";
  4299. _iframe.contentWindow.document.head.appendChild(_ajs);
  4300. }
  4301. }
  4302. //U.MD.D.I.openClick(str);
  4303. //如果有任务栏信息
  4304. // if (_taskbar) {
  4305. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4306. // }
  4307. }
  4308. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4309. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4310. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4311. _userinfo = US.userInfo, //登录用户信息
  4312. _userid = US.userInfo.userid //登录用户id
  4313. let _iframe;
  4314. let _cid = cid,
  4315. _stage = stage,
  4316. _task = task,
  4317. _tool = tool;
  4318. var _jie = $$("div", {
  4319. "style": {
  4320. "position": "absolute",
  4321. "bottom": "50px",
  4322. "right": "50px",
  4323. "zIndex": "9999",
  4324. "backgroundColor": "#2268bc",
  4325. "color": "#fff",
  4326. "padding": "12px 20px",
  4327. "cursor": "pointer",
  4328. "borderRadius": "4px",
  4329. },
  4330. "innerHTML": "提交作业"
  4331. })
  4332. let aTool = ''
  4333. let _loading = document.createElement('div')
  4334. _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;"
  4335. // _loading.id = "";
  4336. let _lchild = document.createElement('div')
  4337. let _limg = document.createElement('img')
  4338. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4339. _limg.style = "width: 26px;margin-right: 10px;"
  4340. _lchild.appendChild(_limg)
  4341. let _lspan = document.createElement('span')
  4342. _lspan.innerHTML = "上传中..."
  4343. _lchild.appendChild(_lspan)
  4344. _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%);"
  4345. _loading.appendChild(_lchild)
  4346. var _box = $$('div', {
  4347. "style": {
  4348. "position": "relative",
  4349. "width": "100%",
  4350. "height": "100%",
  4351. },
  4352. })
  4353. _box.appendChild(_loading)
  4354. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4355. switch (str) {
  4356. case "whiteboard":
  4357. aTool = 1;
  4358. _iframe = $$("iframe", {
  4359. "frameborder": "no",
  4360. "border": "0",
  4361. "scrolling ": "no",
  4362. "style": {
  4363. "cssText": "border:0;width:100%;height:100%"
  4364. },
  4365. "src": "https://iwb.cocorobo.cn/"
  4366. })
  4367. _box.appendChild(_iframe);
  4368. _box.appendChild(_jie);
  4369. _formdiv = new U.UF.UI.form(
  4370. "电子白板",
  4371. _box, {
  4372. "id": "whiteboard" + cid + stage + task + tool,
  4373. "style": {
  4374. "width": "90%",
  4375. "height": "90%",
  4376. "overflow": 'hidden'
  4377. },
  4378. "onresize": function () { }
  4379. }, {
  4380. closecallback: function () { }
  4381. }, {
  4382. "style": {
  4383. "height": "36px"
  4384. }
  4385. }).form; //创建窗体
  4386. _taskbar = {
  4387. "id": str + _formdiv.id,
  4388. "style": {
  4389. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4390. },
  4391. "name": "电子白板",
  4392. "forms": _formdiv,
  4393. "click": function () {
  4394. U.MD.D.I.openApplication(str, obj, info);
  4395. }
  4396. }
  4397. break;
  4398. case "mind":
  4399. aTool = 3;
  4400. _iframe = $$("iframe", {
  4401. "frameborder": "no",
  4402. "border": "0",
  4403. "scrolling ": "no",
  4404. "style": {
  4405. "cssText": "border:0;width:100%;height:100%"
  4406. },
  4407. "src": "/kityminder-editor/dist/index.html"
  4408. })
  4409. _box.appendChild(_iframe);
  4410. _box.appendChild(_jie);
  4411. _formdiv = new U.UF.UI.form(
  4412. "思维导图",
  4413. _box, { //"/jsmind/example/demo.html"
  4414. "id": "mind" + cid + stage + task + tool,
  4415. "style": {
  4416. "width": "90%",
  4417. "height": "90%",
  4418. "overflow": 'hidden'
  4419. },
  4420. "onresize": function () { }
  4421. }, {
  4422. closecallback: function () { }
  4423. }, {
  4424. "style": {
  4425. "height": "36px"
  4426. }
  4427. }).form; //创建窗体
  4428. _taskbar = {
  4429. "id": str + _formdiv.id,
  4430. "style": {
  4431. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4432. },
  4433. "name": "思维导图",
  4434. "forms": _formdiv,
  4435. "click": function () {
  4436. U.MD.D.I.openApplication(str, obj, info);
  4437. }
  4438. }
  4439. break;
  4440. case "MindMap":
  4441. aTool = 3;
  4442. _iframe = $$("iframe", {
  4443. "frameborder": "no",
  4444. "border": "0",
  4445. "scrolling ": "no",
  4446. "style": {
  4447. "cssText": "border:0;width:100%;height:100%"
  4448. },
  4449. "src": "//cloud.cocorobo.cn/mind/"
  4450. })
  4451. _box.appendChild(_iframe);
  4452. _box.appendChild(_jie);
  4453. _formdiv = new U.UF.UI.form(
  4454. "思维导图",
  4455. _box, { //"/jsmind/example/demo.html"
  4456. "id": "mind" + cid + stage + task + tool,
  4457. "style": {
  4458. "width": "90%",
  4459. "height": "90%",
  4460. "overflow": 'hidden'
  4461. },
  4462. "onresize": function () { }
  4463. }, {
  4464. closecallback: function () { }
  4465. }, {
  4466. "style": {
  4467. "height": "36px"
  4468. }
  4469. }).form; //创建窗体
  4470. _taskbar = {
  4471. "id": str + _formdiv.id,
  4472. "style": {
  4473. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4474. },
  4475. "name": "思维导图",
  4476. "forms": _formdiv,
  4477. "click": function () {
  4478. U.MD.D.I.openApplication(str, obj, info);
  4479. }
  4480. }
  4481. break;
  4482. case "doc":
  4483. aTool = 6;
  4484. _iframe = $$("iframe", {
  4485. "frameborder": "no",
  4486. "border": "0",
  4487. "scrolling ": "no",
  4488. "style": {
  4489. "cssText": "border:0;width:100%;height:100%"
  4490. },
  4491. "src": "/Office/Word/WordEditArea.htm"
  4492. })
  4493. _box.appendChild(_iframe);
  4494. _box.appendChild(_jie);
  4495. _formdiv = new U.UF.UI.form(
  4496. "协同文档",
  4497. _box, {
  4498. "id": "doc" + cid + stage + task + tool,
  4499. "style": {
  4500. "width": "90%",
  4501. "height": "90%",
  4502. "overflow": 'hidden'
  4503. },
  4504. "onresize": function () { }
  4505. }, {
  4506. closecallback: function () { }
  4507. }, {
  4508. "style": {
  4509. "height": "36px"
  4510. }
  4511. }).form; //创建窗体
  4512. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4513. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4514. })
  4515. _taskbar = {
  4516. "id": str + _formdiv.id,
  4517. "style": {
  4518. "backgroundImage": "url(/img/icon/doc.png)"
  4519. },
  4520. "name": "协同文档",
  4521. "forms": _formdiv,
  4522. "click": function () {
  4523. U.MD.D.I.openApplication(str, obj, info);
  4524. }
  4525. }
  4526. break;
  4527. case "mindNetwork": //好友打开
  4528. aTool = 7;
  4529. _iframe = $$("iframe", {
  4530. "webkitallowfullscreen": "",
  4531. "mozallowfullscreen": "",
  4532. "allowfullscreen": "",
  4533. "frameborder": "no",
  4534. "border": "0",
  4535. "scrolling ": "no",
  4536. "style": {
  4537. "cssText": "border:0; width:100%; height:100%;"
  4538. },
  4539. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4540. })
  4541. _box.appendChild(_iframe);
  4542. _box.appendChild(_jie);
  4543. _formdiv = new U.UF.UI.form(
  4544. "思维网格",
  4545. _box, {
  4546. "id": "mindNetwork" + cid + stage + task + tool,
  4547. "style": {
  4548. "width": "90%",
  4549. "height": "90%",
  4550. "overflow": 'hidden'
  4551. },
  4552. "onresize": function () { }
  4553. }, {
  4554. closecallback: function () { }
  4555. }, {
  4556. "style": {
  4557. "height": "36px"
  4558. }
  4559. }).form; //创建窗体
  4560. _taskbar = {
  4561. "id": str + _formdiv.id,
  4562. "style": {
  4563. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4564. },
  4565. "name": "思维网格",
  4566. "forms": _formdiv,
  4567. "click": function () {
  4568. U.MD.D.I.openApplication(str, obj, info);
  4569. }
  4570. }
  4571. break;
  4572. case "courseDesign":
  4573. _iframe = $$("iframe", {
  4574. "webkitallowfullscreen": "",
  4575. "mozallowfullscreen": "",
  4576. "allowfullscreen": "",
  4577. "frameborder": "no",
  4578. "border": "0",
  4579. "scrolling ": "no",
  4580. "style": {
  4581. "cssText": "border:0; width:100%; height:100%;"
  4582. },
  4583. "src": "/course-design-vue"
  4584. })
  4585. _box.appendChild(_iframe);
  4586. _box.appendChild(_jie);
  4587. _formdiv = new U.UF.UI.form(
  4588. "项目设计",
  4589. _box, {
  4590. "id": "courseDesign" + cid + stage + task + tool,
  4591. "style": {
  4592. "width": "90%",
  4593. "height": "90%",
  4594. "overflow": 'hidden'
  4595. },
  4596. "onresize": function () { }
  4597. }, {
  4598. closecallback: function () { }
  4599. }, {
  4600. "style": {
  4601. "height": "36px"
  4602. }
  4603. }).form; //创建窗体
  4604. _taskbar = {
  4605. "id": str + _formdiv.id,
  4606. "style": {
  4607. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4608. },
  4609. "name": "项目设计",
  4610. "forms": _formdiv,
  4611. "click": function () {
  4612. U.MD.D.I.openApplication(str, obj, info);
  4613. }
  4614. }
  4615. break;
  4616. }
  4617. const script1 = document.createElement("script");
  4618. script1.type = "text/javascript";
  4619. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4620. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4621. const script2 = document.createElement("script");
  4622. script2.type = "text/javascript";
  4623. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4624. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4625. const script3 = document.createElement("script");
  4626. script3.type = "text/javascript";
  4627. script3.charset = "UTF-8";
  4628. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4629. const script4 = document.createElement("script");
  4630. script4.type = "text/javascript";
  4631. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4632. script4.src = window.origin + "/js/Common/jietu2E.js";
  4633. if (_iframe) {
  4634. if (str == 'doc') {
  4635. _iframe = _formdiv.querySelector('iframe')
  4636. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4637. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4638. _iframe.contentWindow.document.body.appendChild(script1);
  4639. _iframe.contentWindow.document.body.appendChild(script2);
  4640. // _iframe.contentWindow.document.body.appendChild(script3);
  4641. _iframe.contentWindow.document.body.appendChild(script4);
  4642. })
  4643. if (onloadListener) {
  4644. _iframe.contentDocument.location.reload()
  4645. } else {
  4646. _iframe.contentDocument.location.reload()
  4647. }
  4648. } else if (str == 'courseDesign') {
  4649. U.UF.DL.iframeLoad(_iframe, function () {
  4650. // _iframe.contentWindow.U.MD.O.W.load();
  4651. // _iframe.contentWindow.document.body.appendChild(script1);
  4652. _iframe.contentWindow.document.body.appendChild(script2);
  4653. _iframe.contentWindow.document.body.appendChild(script4);
  4654. })
  4655. } else if (str == 'mind') {
  4656. _iframe = _formdiv.querySelector('iframe')
  4657. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4658. //
  4659. _iframe.contentWindow.document.body.appendChild(script1);
  4660. _iframe.contentWindow.document.body.appendChild(script2);
  4661. _iframe.contentWindow.document.body.appendChild(script4);
  4662. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4663. })
  4664. if (onloadListener) {
  4665. _iframe.contentDocument.location.reload()
  4666. } else {
  4667. _iframe.contentDocument.location.reload()
  4668. }
  4669. } else if (str == 'whiteboard') {
  4670. _iframe = _formdiv.querySelector('iframe')
  4671. let onloadListener = _iframe.onload = () => {
  4672. _iframe.contentWindow.document.body.appendChild(script1);
  4673. _iframe.contentWindow.document.body.appendChild(script2);
  4674. _iframe.contentWindow.document.body.appendChild(script4);
  4675. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4676. };
  4677. if (onloadListener) {
  4678. _iframe.contentDocument.location.reload()
  4679. } else {
  4680. _iframe.contentDocument.location.reload()
  4681. }
  4682. } else {
  4683. _iframe.onload = () => {
  4684. _iframe.contentWindow.document.body.appendChild(script1);
  4685. _iframe.contentWindow.document.body.appendChild(script2);
  4686. // _iframe.contentWindow.document.body.appendChild(script3);
  4687. _iframe.contentWindow.document.body.appendChild(script4);
  4688. };
  4689. }
  4690. _jie.onclick = async () => {
  4691. let text = ''
  4692. if (aTool == 1) {
  4693. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4694. } else if (aTool == 6) {
  4695. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4696. } else if (aTool == 3) {
  4697. text = await U.MD.D.I.getEditorContent(_iframe);
  4698. }
  4699. _loading.style.display = 'flex'
  4700. console.log(_loading);
  4701. var _ajs = _iframe.contentWindow.document.createElement("script");
  4702. _ajs.type = "text/javascript";
  4703. _ajs.innerHTML =
  4704. // 'console.log(' + _loading + ');\n' +
  4705. 'var _js = document.createElement("script");\n' +
  4706. '_js.type="text/javascript";\n' +
  4707. '_js.charset="UTF-8";\n' +
  4708. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4709. "_js.onload = function(){\n" +
  4710. ' var a = document.getElementsByTagName("img")\n' +
  4711. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4712. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4713. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4714. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4715. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4716. "beforeUpload_shishi(file," +
  4717. "'" +
  4718. _userid +
  4719. "'" +
  4720. ", " +
  4721. "'" +
  4722. _cid +
  4723. "'" +
  4724. ", " +
  4725. "'" +
  4726. _stage +
  4727. "'" +
  4728. ", " +
  4729. "'" +
  4730. _task +
  4731. "'" +
  4732. ", " +
  4733. "'" +
  4734. _tool +
  4735. "'" +
  4736. ", " +
  4737. "'" +
  4738. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4739. "'" +
  4740. ", " +
  4741. "'" +
  4742. aTool +
  4743. "'" +
  4744. ", " +
  4745. "`" +
  4746. text +
  4747. "`" +
  4748. ")\n" +
  4749. " });\n" +
  4750. "}\n" +
  4751. "document.head.appendChild(_js);\n";
  4752. _iframe.contentWindow.document.head.appendChild(_ajs);
  4753. }
  4754. }
  4755. //U.MD.D.I.openClick(str);
  4756. //如果有任务栏信息
  4757. // if (_taskbar) {
  4758. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4759. // }
  4760. }
  4761. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4762. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4763. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4764. _userid = student.userid, //登录用户id
  4765. _username = student.student //用户名字
  4766. let _iframe;
  4767. let _cid = cid,
  4768. _stage = stage,
  4769. _task = task,
  4770. _tool = tool;
  4771. var _jie = $$("div", {
  4772. "style": {
  4773. "position": "absolute",
  4774. "bottom": "50px",
  4775. "right": "50px",
  4776. "zIndex": "9999",
  4777. "backgroundColor": "#2268bc",
  4778. "color": "#fff",
  4779. "padding": "12px 20px",
  4780. "cursor": "pointer",
  4781. "borderRadius": "4px",
  4782. },
  4783. "innerHTML": "提交作业"
  4784. })
  4785. let aTool = ''
  4786. let _loading = document.createElement('div')
  4787. _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;"
  4788. // _loading.id = "";
  4789. let _lchild = document.createElement('div')
  4790. let _limg = document.createElement('img')
  4791. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4792. _limg.style = "width: 26px;margin-right: 10px;"
  4793. _lchild.appendChild(_limg)
  4794. let _lspan = document.createElement('span')
  4795. _lspan.innerHTML = "上传中..."
  4796. _lchild.appendChild(_lspan)
  4797. _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%);"
  4798. _loading.appendChild(_lchild)
  4799. var _box = $$('div', {
  4800. "style": {
  4801. "position": "relative",
  4802. "width": "100%",
  4803. "height": "100%",
  4804. },
  4805. })
  4806. _box.appendChild(_loading)
  4807. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4808. switch (str) {
  4809. case "whiteboard":
  4810. aTool = 1;
  4811. _iframe = $$("iframe", {
  4812. "frameborder": "no",
  4813. "border": "0",
  4814. "scrolling ": "no",
  4815. "style": {
  4816. "cssText": "border:0;width:100%;height:100%"
  4817. },
  4818. "src": "https://iwb.cocorobo.cn/"
  4819. })
  4820. _box.appendChild(_iframe);
  4821. _box.appendChild(_jie);
  4822. _formdiv = new U.UF.UI.form(
  4823. "电子白板-" + _username,
  4824. _box, {
  4825. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4826. "style": {
  4827. "width": "90%",
  4828. "height": "90%",
  4829. "overflow": 'hidden'
  4830. },
  4831. "onresize": function () { }
  4832. }, {
  4833. closecallback: function () { }
  4834. }, {
  4835. "style": {
  4836. "height": "36px"
  4837. }
  4838. }).form; //创建窗体
  4839. _taskbar = {
  4840. "id": str + _formdiv.id,
  4841. "style": {
  4842. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4843. },
  4844. "name": "电子白板",
  4845. "forms": _formdiv,
  4846. "click": function () {
  4847. U.MD.D.I.openApplication(str, obj, info);
  4848. }
  4849. }
  4850. break;
  4851. case "mind":
  4852. aTool = 3;
  4853. _iframe = $$("iframe", {
  4854. "frameborder": "no",
  4855. "border": "0",
  4856. "scrolling ": "no",
  4857. "style": {
  4858. "cssText": "border:0;width:100%;height:100%"
  4859. },
  4860. "src": "/kityminder-editor/dist/index.html"
  4861. })
  4862. _box.appendChild(_iframe);
  4863. _box.appendChild(_jie);
  4864. _formdiv = new U.UF.UI.form(
  4865. "思维导图-" + _username,
  4866. _box, { //"/jsmind/example/demo.html"
  4867. "id": "mind" + cid + stage + task + tool + _userid,
  4868. "style": {
  4869. "width": "90%",
  4870. "height": "90%",
  4871. "overflow": 'hidden'
  4872. },
  4873. "onresize": function () { }
  4874. }, {
  4875. closecallback: function () { }
  4876. }, {
  4877. "style": {
  4878. "height": "36px"
  4879. }
  4880. }).form; //创建窗体
  4881. _taskbar = {
  4882. "id": str + _formdiv.id,
  4883. "style": {
  4884. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4885. },
  4886. "name": "思维导图",
  4887. "forms": _formdiv,
  4888. "click": function () {
  4889. U.MD.D.I.openApplication(str, obj, info);
  4890. }
  4891. }
  4892. break;
  4893. case "MindMap":
  4894. aTool = 3;
  4895. _iframe = $$("iframe", {
  4896. "frameborder": "no",
  4897. "border": "0",
  4898. "scrolling ": "no",
  4899. "style": {
  4900. "cssText": "border:0;width:100%;height:100%"
  4901. },
  4902. "src": "//cloud.cocorobo.cn/mind/"
  4903. })
  4904. _box.appendChild(_iframe);
  4905. _box.appendChild(_jie);
  4906. _formdiv = new U.UF.UI.form(
  4907. "思维导图-" + _username,
  4908. _box, { //"/jsmind/example/demo.html"
  4909. "id": "mind" + cid + stage + task + tool + _userid,
  4910. "style": {
  4911. "width": "90%",
  4912. "height": "90%",
  4913. "overflow": 'hidden'
  4914. },
  4915. "onresize": function () { }
  4916. }, {
  4917. closecallback: function () { }
  4918. }, {
  4919. "style": {
  4920. "height": "36px"
  4921. }
  4922. }).form; //创建窗体
  4923. _taskbar = {
  4924. "id": str + _formdiv.id,
  4925. "style": {
  4926. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4927. },
  4928. "name": "思维导图",
  4929. "forms": _formdiv,
  4930. "click": function () {
  4931. U.MD.D.I.openApplication(str, obj, info);
  4932. }
  4933. }
  4934. break;
  4935. case "doc":
  4936. aTool = 6;
  4937. _iframe = $$("iframe", {
  4938. "frameborder": "no",
  4939. "border": "0",
  4940. "scrolling ": "no",
  4941. "style": {
  4942. "cssText": "border:0;width:100%;height:100%"
  4943. },
  4944. "src": "/Office/Word/WordEditArea.htm"
  4945. })
  4946. _box.appendChild(_iframe);
  4947. _box.appendChild(_jie);
  4948. _formdiv = new U.UF.UI.form(
  4949. "协同文档-" + _username,
  4950. _box, {
  4951. "id": "doc" + cid + stage + task + tool + _userid,
  4952. "style": {
  4953. "width": "90%",
  4954. "height": "90%",
  4955. "overflow": 'hidden'
  4956. },
  4957. "onresize": function () { }
  4958. }, {
  4959. closecallback: function () { }
  4960. }, {
  4961. "style": {
  4962. "height": "36px"
  4963. }
  4964. }).form; //创建窗体
  4965. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4966. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4967. })
  4968. _taskbar = {
  4969. "id": str + _formdiv.id,
  4970. "style": {
  4971. "backgroundImage": "url(/img/icon/doc.png)"
  4972. },
  4973. "name": "协同文档",
  4974. "forms": _formdiv,
  4975. "click": function () {
  4976. U.MD.D.I.openApplication(str, obj, info);
  4977. }
  4978. }
  4979. break;
  4980. case "mindNetwork": //好友打开
  4981. aTool = 7;
  4982. _iframe = $$("iframe", {
  4983. "webkitallowfullscreen": "",
  4984. "mozallowfullscreen": "",
  4985. "allowfullscreen": "",
  4986. "frameborder": "no",
  4987. "border": "0",
  4988. "scrolling ": "no",
  4989. "style": {
  4990. "cssText": "border:0; width:100%; height:100%;"
  4991. },
  4992. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4993. })
  4994. _box.appendChild(_iframe);
  4995. _box.appendChild(_jie);
  4996. _formdiv = new U.UF.UI.form(
  4997. "思维网格-" + _username,
  4998. _box, {
  4999. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5000. "style": {
  5001. "width": "90%",
  5002. "height": "90%",
  5003. "overflow": 'hidden'
  5004. },
  5005. "onresize": function () { }
  5006. }, {
  5007. closecallback: function () { }
  5008. }, {
  5009. "style": {
  5010. "height": "36px"
  5011. }
  5012. }).form; //创建窗体
  5013. _taskbar = {
  5014. "id": str + _formdiv.id,
  5015. "style": {
  5016. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5017. },
  5018. "name": "思维网格",
  5019. "forms": _formdiv,
  5020. "click": function () {
  5021. U.MD.D.I.openApplication(str, obj, info);
  5022. }
  5023. }
  5024. break;
  5025. case "courseDesign":
  5026. _iframe = $$("iframe", {
  5027. "webkitallowfullscreen": "",
  5028. "mozallowfullscreen": "",
  5029. "allowfullscreen": "",
  5030. "frameborder": "no",
  5031. "border": "0",
  5032. "scrolling ": "no",
  5033. "style": {
  5034. "cssText": "border:0; width:100%; height:100%;"
  5035. },
  5036. "src": "/course-design-vue"
  5037. })
  5038. _box.appendChild(_iframe);
  5039. _box.appendChild(_jie);
  5040. _formdiv = new U.UF.UI.form(
  5041. "项目设计-" + _username,
  5042. _box, {
  5043. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5044. "style": {
  5045. "width": "90%",
  5046. "height": "90%",
  5047. "overflow": 'hidden'
  5048. },
  5049. "onresize": function () { }
  5050. }, {
  5051. closecallback: function () { }
  5052. }, {
  5053. "style": {
  5054. "height": "36px"
  5055. }
  5056. }).form; //创建窗体
  5057. _taskbar = {
  5058. "id": str + _formdiv.id,
  5059. "style": {
  5060. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5061. },
  5062. "name": "项目设计",
  5063. "forms": _formdiv,
  5064. "click": function () {
  5065. U.MD.D.I.openApplication(str, obj, info);
  5066. }
  5067. }
  5068. break;
  5069. }
  5070. const script1 = document.createElement("script");
  5071. script1.type = "text/javascript";
  5072. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5073. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5074. const script2 = document.createElement("script");
  5075. script2.type = "text/javascript";
  5076. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5077. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5078. const script3 = document.createElement("script");
  5079. script3.type = "text/javascript";
  5080. script3.charset = "UTF-8";
  5081. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5082. const script4 = document.createElement("script");
  5083. script4.type = "text/javascript";
  5084. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5085. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  5086. if (_iframe) {
  5087. if (str == 'doc') {
  5088. _iframe = _formdiv.querySelector('iframe')
  5089. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5090. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5091. _iframe.contentWindow.document.body.appendChild(script1);
  5092. _iframe.contentWindow.document.body.appendChild(script2);
  5093. // _iframe.contentWindow.document.body.appendChild(script3);
  5094. _iframe.contentWindow.document.body.appendChild(script4);
  5095. })
  5096. if (onloadListener) {
  5097. _iframe.contentDocument.location.reload()
  5098. } else {
  5099. _iframe.contentDocument.location.reload()
  5100. }
  5101. } else if (str == 'courseDesign') {
  5102. U.UF.DL.iframeLoad(_iframe, function () {
  5103. // _iframe.contentWindow.U.MD.O.W.load();
  5104. // _iframe.contentWindow.document.body.appendChild(script1);
  5105. _iframe.contentWindow.document.body.appendChild(script2);
  5106. _iframe.contentWindow.document.body.appendChild(script4);
  5107. })
  5108. } else if (str == 'mind') {
  5109. _iframe = _formdiv.querySelector('iframe')
  5110. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5111. //
  5112. _iframe.contentWindow.document.body.appendChild(script1);
  5113. _iframe.contentWindow.document.body.appendChild(script2);
  5114. _iframe.contentWindow.document.body.appendChild(script4);
  5115. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5116. })
  5117. if (onloadListener) {
  5118. _iframe.contentDocument.location.reload()
  5119. } else {
  5120. _iframe.contentDocument.location.reload()
  5121. }
  5122. } else if (str == 'whiteboard') {
  5123. _iframe = _formdiv.querySelector('iframe')
  5124. let onloadListener = _iframe.onload = () => {
  5125. _iframe.contentWindow.document.body.appendChild(script1);
  5126. _iframe.contentWindow.document.body.appendChild(script2);
  5127. _iframe.contentWindow.document.body.appendChild(script4);
  5128. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5129. };
  5130. if (onloadListener) {
  5131. _iframe.contentDocument.location.reload()
  5132. } else {
  5133. _iframe.contentDocument.location.reload()
  5134. }
  5135. } else {
  5136. _iframe.onload = () => {
  5137. _iframe.contentWindow.document.body.appendChild(script1);
  5138. _iframe.contentWindow.document.body.appendChild(script2);
  5139. // _iframe.contentWindow.document.body.appendChild(script3);
  5140. _iframe.contentWindow.document.body.appendChild(script4);
  5141. };
  5142. }
  5143. _jie.onclick = async () => {
  5144. let text = ''
  5145. if (aTool == 1) {
  5146. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5147. } else if (aTool == 6) {
  5148. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5149. } else if (aTool == 3) {
  5150. text = await U.MD.D.I.getEditorContent(_iframe);
  5151. }
  5152. _loading.style.display = 'flex'
  5153. console.log(_loading);
  5154. var _ajs = _iframe.contentWindow.document.createElement("script");
  5155. _ajs.type = "text/javascript";
  5156. _ajs.innerHTML =
  5157. // 'console.log(' + _loading + ');\n' +
  5158. 'var _js = document.createElement("script");\n' +
  5159. '_js.type="text/javascript";\n' +
  5160. '_js.charset="UTF-8";\n' +
  5161. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5162. "_js.onload = function(){\n" +
  5163. ' var a = document.getElementsByTagName("img")\n' +
  5164. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5165. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5166. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5167. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5168. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5169. "beforeUpload_shishi(file," +
  5170. "'" +
  5171. _userid +
  5172. "'" +
  5173. ", " +
  5174. "'" +
  5175. _cid +
  5176. "'" +
  5177. ", " +
  5178. "'" +
  5179. _stage +
  5180. "'" +
  5181. ", " +
  5182. "'" +
  5183. _task +
  5184. "'" +
  5185. ", " +
  5186. "'" +
  5187. _tool +
  5188. "'" +
  5189. ", " +
  5190. "'" +
  5191. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5192. "'" +
  5193. ", " +
  5194. "'" +
  5195. aTool +
  5196. "'" +
  5197. ", " +
  5198. "`" +
  5199. text +
  5200. "`" +
  5201. ")\n" +
  5202. " });\n" +
  5203. "}\n" +
  5204. "document.head.appendChild(_js);\n";
  5205. _iframe.contentWindow.document.head.appendChild(_ajs);
  5206. }
  5207. }
  5208. }
  5209. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5210. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5211. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5212. _userid = student.userid, //登录用户id
  5213. _username = student.student //用户名字
  5214. let _iframe;
  5215. let _cid = cid,
  5216. _stage = stage,
  5217. _task = task,
  5218. _tool = tool;
  5219. var _jie = $$("div", {
  5220. "style": {
  5221. "position": "absolute",
  5222. "bottom": "50px",
  5223. "right": "50px",
  5224. "zIndex": "9999",
  5225. "backgroundColor": "#2268bc",
  5226. "color": "#fff",
  5227. "padding": "12px 20px",
  5228. "cursor": "pointer",
  5229. "borderRadius": "4px",
  5230. },
  5231. "innerHTML": "提交作业"
  5232. })
  5233. let aTool = ''
  5234. let _loading = document.createElement('div')
  5235. _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;"
  5236. // _loading.id = "";
  5237. let _lchild = document.createElement('div')
  5238. let _limg = document.createElement('img')
  5239. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5240. _limg.style = "width: 26px;margin-right: 10px;"
  5241. _lchild.appendChild(_limg)
  5242. let _lspan = document.createElement('span')
  5243. _lspan.innerHTML = "上传中..."
  5244. _lchild.appendChild(_lspan)
  5245. _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%);"
  5246. _loading.appendChild(_lchild)
  5247. var _box = $$('div', {
  5248. "style": {
  5249. "position": "relative",
  5250. "width": "100%",
  5251. "height": "100%",
  5252. },
  5253. })
  5254. _box.appendChild(_loading)
  5255. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5256. switch (str) {
  5257. case "whiteboard":
  5258. aTool = 1;
  5259. _iframe = $$("iframe", {
  5260. "frameborder": "no",
  5261. "border": "0",
  5262. "scrolling ": "no",
  5263. "style": {
  5264. "cssText": "border:0;width:100%;height:100%"
  5265. },
  5266. "src": "https://iwb.cocorobo.cn/"
  5267. })
  5268. _box.appendChild(_iframe);
  5269. _box.appendChild(_jie);
  5270. _formdiv = new U.UF.UI.form(
  5271. "电子白板-" + _username,
  5272. _box, {
  5273. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5274. "style": {
  5275. "width": "90%",
  5276. "height": "90%",
  5277. "overflow": 'hidden'
  5278. },
  5279. "onresize": function () { }
  5280. }, {
  5281. closecallback: function () { }
  5282. }, {
  5283. "style": {
  5284. "height": "36px"
  5285. }
  5286. }).form; //创建窗体
  5287. _taskbar = {
  5288. "id": str + _formdiv.id,
  5289. "style": {
  5290. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5291. },
  5292. "name": "电子白板",
  5293. "forms": _formdiv,
  5294. "click": function () {
  5295. U.MD.D.I.openApplication(str, obj, info);
  5296. }
  5297. }
  5298. break;
  5299. case "mind":
  5300. aTool = 3;
  5301. _iframe = $$("iframe", {
  5302. "frameborder": "no",
  5303. "border": "0",
  5304. "scrolling ": "no",
  5305. "style": {
  5306. "cssText": "border:0;width:100%;height:100%"
  5307. },
  5308. "src": "/kityminder-editor/dist/index.html"
  5309. })
  5310. _box.appendChild(_iframe);
  5311. _box.appendChild(_jie);
  5312. _formdiv = new U.UF.UI.form(
  5313. "思维导图-" + _username,
  5314. _box, { //"/jsmind/example/demo.html"
  5315. "id": "mind" + cid + stage + task + tool + _userid,
  5316. "style": {
  5317. "width": "90%",
  5318. "height": "90%",
  5319. "overflow": 'hidden'
  5320. },
  5321. "onresize": function () { }
  5322. }, {
  5323. closecallback: function () { }
  5324. }, {
  5325. "style": {
  5326. "height": "36px"
  5327. }
  5328. }).form; //创建窗体
  5329. _taskbar = {
  5330. "id": str + _formdiv.id,
  5331. "style": {
  5332. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5333. },
  5334. "name": "思维导图",
  5335. "forms": _formdiv,
  5336. "click": function () {
  5337. U.MD.D.I.openApplication(str, obj, info);
  5338. }
  5339. }
  5340. break;
  5341. case "MindMap":
  5342. aTool = 3;
  5343. _iframe = $$("iframe", {
  5344. "frameborder": "no",
  5345. "border": "0",
  5346. "scrolling ": "no",
  5347. "style": {
  5348. "cssText": "border:0;width:100%;height:100%"
  5349. },
  5350. "src": "//cloud.cocorobo.cn/mind/"
  5351. })
  5352. _box.appendChild(_iframe);
  5353. _box.appendChild(_jie);
  5354. _formdiv = new U.UF.UI.form(
  5355. "思维导图-" + _username,
  5356. _box, { //"/jsmind/example/demo.html"
  5357. "id": "mind" + cid + stage + task + tool + _userid,
  5358. "style": {
  5359. "width": "90%",
  5360. "height": "90%",
  5361. "overflow": 'hidden'
  5362. },
  5363. "onresize": function () { }
  5364. }, {
  5365. closecallback: function () { }
  5366. }, {
  5367. "style": {
  5368. "height": "36px"
  5369. }
  5370. }).form; //创建窗体
  5371. _taskbar = {
  5372. "id": str + _formdiv.id,
  5373. "style": {
  5374. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5375. },
  5376. "name": "思维导图",
  5377. "forms": _formdiv,
  5378. "click": function () {
  5379. U.MD.D.I.openApplication(str, obj, info);
  5380. }
  5381. }
  5382. break;
  5383. case "doc":
  5384. aTool = 6;
  5385. _iframe = $$("iframe", {
  5386. "frameborder": "no",
  5387. "border": "0",
  5388. "scrolling ": "no",
  5389. "style": {
  5390. "cssText": "border:0;width:100%;height:100%"
  5391. },
  5392. "src": "/Office/Word/WordEditArea.htm"
  5393. })
  5394. _box.appendChild(_iframe);
  5395. _box.appendChild(_jie);
  5396. _formdiv = new U.UF.UI.form(
  5397. "协同文档-" + _username,
  5398. _box, {
  5399. "id": "doc" + cid + stage + task + tool + _userid,
  5400. "style": {
  5401. "width": "90%",
  5402. "height": "90%",
  5403. "overflow": 'hidden'
  5404. },
  5405. "onresize": function () { }
  5406. }, {
  5407. closecallback: function () { }
  5408. }, {
  5409. "style": {
  5410. "height": "36px"
  5411. }
  5412. }).form; //创建窗体
  5413. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5414. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5415. })
  5416. _taskbar = {
  5417. "id": str + _formdiv.id,
  5418. "style": {
  5419. "backgroundImage": "url(/img/icon/doc.png)"
  5420. },
  5421. "name": "协同文档",
  5422. "forms": _formdiv,
  5423. "click": function () {
  5424. U.MD.D.I.openApplication(str, obj, info);
  5425. }
  5426. }
  5427. break;
  5428. case "mindNetwork": //好友打开
  5429. aTool = 7;
  5430. _iframe = $$("iframe", {
  5431. "webkitallowfullscreen": "",
  5432. "mozallowfullscreen": "",
  5433. "allowfullscreen": "",
  5434. "frameborder": "no",
  5435. "border": "0",
  5436. "scrolling ": "no",
  5437. "style": {
  5438. "cssText": "border:0; width:100%; height:100%;"
  5439. },
  5440. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5441. })
  5442. _box.appendChild(_iframe);
  5443. _box.appendChild(_jie);
  5444. _formdiv = new U.UF.UI.form(
  5445. "思维网格-" + _username,
  5446. _box, {
  5447. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5448. "style": {
  5449. "width": "90%",
  5450. "height": "90%",
  5451. "overflow": 'hidden'
  5452. },
  5453. "onresize": function () { }
  5454. }, {
  5455. closecallback: function () { }
  5456. }, {
  5457. "style": {
  5458. "height": "36px"
  5459. }
  5460. }).form; //创建窗体
  5461. _taskbar = {
  5462. "id": str + _formdiv.id,
  5463. "style": {
  5464. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5465. },
  5466. "name": "思维网格",
  5467. "forms": _formdiv,
  5468. "click": function () {
  5469. U.MD.D.I.openApplication(str, obj, info);
  5470. }
  5471. }
  5472. break;
  5473. case "courseDesign":
  5474. _iframe = $$("iframe", {
  5475. "webkitallowfullscreen": "",
  5476. "mozallowfullscreen": "",
  5477. "allowfullscreen": "",
  5478. "frameborder": "no",
  5479. "border": "0",
  5480. "scrolling ": "no",
  5481. "style": {
  5482. "cssText": "border:0; width:100%; height:100%;"
  5483. },
  5484. "src": "/course-design-vue"
  5485. })
  5486. _box.appendChild(_iframe);
  5487. _box.appendChild(_jie);
  5488. _formdiv = new U.UF.UI.form(
  5489. "项目设计-" + _username,
  5490. _box, {
  5491. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5492. "style": {
  5493. "width": "90%",
  5494. "height": "90%",
  5495. "overflow": 'hidden'
  5496. },
  5497. "onresize": function () { }
  5498. }, {
  5499. closecallback: function () { }
  5500. }, {
  5501. "style": {
  5502. "height": "36px"
  5503. }
  5504. }).form; //创建窗体
  5505. _taskbar = {
  5506. "id": str + _formdiv.id,
  5507. "style": {
  5508. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5509. },
  5510. "name": "项目设计",
  5511. "forms": _formdiv,
  5512. "click": function () {
  5513. U.MD.D.I.openApplication(str, obj, info);
  5514. }
  5515. }
  5516. break;
  5517. }
  5518. const script1 = document.createElement("script");
  5519. script1.type = "text/javascript";
  5520. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5521. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5522. const script2 = document.createElement("script");
  5523. script2.type = "text/javascript";
  5524. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5525. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5526. const script3 = document.createElement("script");
  5527. script3.type = "text/javascript";
  5528. script3.charset = "UTF-8";
  5529. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5530. const script4 = document.createElement("script");
  5531. script4.type = "text/javascript";
  5532. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5533. script4.src = window.origin + "/js/Common/jietu2E.js";
  5534. if (_iframe) {
  5535. if (str == 'doc') {
  5536. _iframe = _formdiv.querySelector('iframe')
  5537. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5538. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5539. _iframe.contentWindow.document.body.appendChild(script1);
  5540. _iframe.contentWindow.document.body.appendChild(script2);
  5541. // _iframe.contentWindow.document.body.appendChild(script3);
  5542. _iframe.contentWindow.document.body.appendChild(script4);
  5543. })
  5544. if (onloadListener) {
  5545. _iframe.contentDocument.location.reload()
  5546. } else {
  5547. _iframe.contentDocument.location.reload()
  5548. }
  5549. } else if (str == 'courseDesign') {
  5550. U.UF.DL.iframeLoad(_iframe, function () {
  5551. // _iframe.contentWindow.U.MD.O.W.load();
  5552. // _iframe.contentWindow.document.body.appendChild(script1);
  5553. _iframe.contentWindow.document.body.appendChild(script2);
  5554. _iframe.contentWindow.document.body.appendChild(script4);
  5555. })
  5556. } else if (str == 'mind') {
  5557. _iframe = _formdiv.querySelector('iframe')
  5558. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5559. //
  5560. _iframe.contentWindow.document.body.appendChild(script1);
  5561. _iframe.contentWindow.document.body.appendChild(script2);
  5562. _iframe.contentWindow.document.body.appendChild(script4);
  5563. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5564. })
  5565. if (onloadListener) {
  5566. _iframe.contentDocument.location.reload()
  5567. } else {
  5568. _iframe.contentDocument.location.reload()
  5569. }
  5570. } else if (str == 'whiteboard') {
  5571. _iframe = _formdiv.querySelector('iframe')
  5572. let onloadListener = _iframe.onload = () => {
  5573. _iframe.contentWindow.document.body.appendChild(script1);
  5574. _iframe.contentWindow.document.body.appendChild(script2);
  5575. _iframe.contentWindow.document.body.appendChild(script4);
  5576. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5577. };
  5578. if (onloadListener) {
  5579. _iframe.contentDocument.location.reload()
  5580. } else {
  5581. _iframe.contentDocument.location.reload()
  5582. }
  5583. } else {
  5584. _iframe.onload = () => {
  5585. _iframe.contentWindow.document.body.appendChild(script1);
  5586. _iframe.contentWindow.document.body.appendChild(script2);
  5587. // _iframe.contentWindow.document.body.appendChild(script3);
  5588. _iframe.contentWindow.document.body.appendChild(script4);
  5589. };
  5590. }
  5591. _jie.onclick = async () => {
  5592. let text = ''
  5593. if (aTool == 1) {
  5594. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5595. } else if (aTool == 6) {
  5596. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5597. } else if (aTool == 3) {
  5598. text = await U.MD.D.I.getEditorContent(_iframe);
  5599. }
  5600. _loading.style.display = 'flex'
  5601. console.log(_loading);
  5602. var _ajs = _iframe.contentWindow.document.createElement("script");
  5603. _ajs.type = "text/javascript";
  5604. _ajs.innerHTML =
  5605. // 'console.log(' + _loading + ');\n' +
  5606. 'var _js = document.createElement("script");\n' +
  5607. '_js.type="text/javascript";\n' +
  5608. '_js.charset="UTF-8";\n' +
  5609. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5610. "_js.onload = function(){\n" +
  5611. ' var a = document.getElementsByTagName("img")\n' +
  5612. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5613. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5614. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5615. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5616. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5617. "beforeUpload_shishi(file," +
  5618. "'" +
  5619. _userid +
  5620. "'" +
  5621. ", " +
  5622. "'" +
  5623. _cid +
  5624. "'" +
  5625. ", " +
  5626. "'" +
  5627. _stage +
  5628. "'" +
  5629. ", " +
  5630. "'" +
  5631. _task +
  5632. "'" +
  5633. ", " +
  5634. "'" +
  5635. _tool +
  5636. "'" +
  5637. ", " +
  5638. "'" +
  5639. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5640. "'" +
  5641. ", " +
  5642. "'" +
  5643. aTool +
  5644. "'" +
  5645. ", " +
  5646. "`" +
  5647. text +
  5648. "`" +
  5649. ")\n" +
  5650. " });\n" +
  5651. "}\n" +
  5652. "document.head.appendChild(_js);\n";
  5653. _iframe.contentWindow.document.head.appendChild(_ajs);
  5654. }
  5655. }
  5656. }
  5657. U.MD.D.I.getEditorContent = function (iframe) {
  5658. return new Promise((resolve, reject) => {
  5659. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5660. console.log(content);
  5661. resolve(content)
  5662. });
  5663. });
  5664. }
  5665. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5666. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5667. // if (res.value[0].length > 0) {
  5668. // // resolve(res.value[0][0].text);
  5669. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5670. // $(fileInput).val('');
  5671. // });
  5672. // }
  5673. // }, [], { "type": "GET", "withCredentials": true });
  5674. var xmlhttp;
  5675. var Mac, Sn, DeviceId
  5676. if (window.XMLHttpRequest) {
  5677. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5678. xmlhttp = new XMLHttpRequest();
  5679. }
  5680. else {
  5681. // IE6, IE5 浏览器执行代码
  5682. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5683. }
  5684. xmlhttp.onreadystatechange = function () {
  5685. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5686. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5687. // resolve(res.value[0][0].text);
  5688. if (type == '2') {
  5689. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5690. } else if (type == '3') {
  5691. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5692. }
  5693. } else {
  5694. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5695. }
  5696. }
  5697. }
  5698. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5699. xmlhttp.send();
  5700. }
  5701. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5702. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5703. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5704. _userinfo = US.userInfo, //登录用户信息
  5705. _userid = US.userInfo.userid //登录用户id
  5706. let _iframe;
  5707. let _cid = cid,
  5708. _stage = stage,
  5709. _task = task,
  5710. _tool = tool;
  5711. var _jie = $$("div", {
  5712. "style": {
  5713. "position": "absolute",
  5714. "bottom": "50px",
  5715. "right": "50px",
  5716. "zIndex": "9999",
  5717. "backgroundColor": "#2268bc",
  5718. "color": "#fff",
  5719. "padding": "12px 20px",
  5720. "cursor": "pointer",
  5721. "borderRadius": "4px",
  5722. },
  5723. "innerHTML": "确认并提交"
  5724. })
  5725. let aTool = ''
  5726. let _loading = document.createElement('div')
  5727. _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;"
  5728. // _loading.id = "";
  5729. let _lchild = document.createElement('div')
  5730. let _limg = document.createElement('img')
  5731. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5732. _limg.style = "width: 26px;margin-right: 10px;"
  5733. _lchild.appendChild(_limg)
  5734. let _lspan = document.createElement('span')
  5735. _lspan.innerHTML = "上传中..."
  5736. _lchild.appendChild(_lspan)
  5737. _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%);"
  5738. _loading.appendChild(_lchild)
  5739. var _box = $$('div', {
  5740. "style": {
  5741. "position": "relative",
  5742. "width": "100%",
  5743. "height": "100%",
  5744. },
  5745. })
  5746. _box.appendChild(_loading)
  5747. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5748. switch (str) {
  5749. case "whiteboard":
  5750. aTool = 1;
  5751. _iframe = $$("iframe", {
  5752. "frameborder": "no",
  5753. "border": "0",
  5754. "scrolling ": "no",
  5755. "style": {
  5756. "cssText": "border:0;width:100%;height:100%"
  5757. },
  5758. "src": "https://iwb.cocorobo.cn/"
  5759. })
  5760. _box.appendChild(_iframe);
  5761. _box.appendChild(_jie);
  5762. _formdiv = new U.UF.UI.form(
  5763. "电子白板",
  5764. _box, {
  5765. "id": "whiteboards" + cid + stage + task + tool,
  5766. "style": {
  5767. "width": "90%",
  5768. "height": "90%",
  5769. "overflow": 'hidden'
  5770. },
  5771. "onresize": function () { }
  5772. }, {
  5773. closecallback: function () { }
  5774. }, {
  5775. "style": {
  5776. "height": "36px"
  5777. }
  5778. }).form; //创建窗体
  5779. _taskbar = {
  5780. "id": str + _formdiv.id,
  5781. "style": {
  5782. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5783. },
  5784. "name": "电子白板",
  5785. "forms": _formdiv,
  5786. "click": function () {
  5787. U.MD.D.I.openApplication(str, obj, info);
  5788. }
  5789. }
  5790. break;
  5791. case "mind":
  5792. aTool = 3;
  5793. _iframe = $$("iframe", {
  5794. "frameborder": "no",
  5795. "border": "0",
  5796. "scrolling ": "no",
  5797. "style": {
  5798. "cssText": "border:0;width:100%;height:100%"
  5799. },
  5800. "src": "/kityminder-editor/dist/index.html"
  5801. });
  5802. _box.appendChild(_iframe);
  5803. _box.appendChild(_jie);
  5804. _formdiv = new U.UF.UI.form(
  5805. "思维导图",
  5806. _box, { //"/jsmind/example/demo.html"
  5807. "id": "minds" + cid + stage + task + tool,
  5808. "style": {
  5809. "width": "90%",
  5810. "height": "90%",
  5811. "overflow": 'hidden'
  5812. },
  5813. "onresize": function () { }
  5814. }, {
  5815. closecallback: function () { }
  5816. }, {
  5817. "style": {
  5818. "height": "36px"
  5819. }
  5820. }).form; //创建窗体
  5821. _taskbar = {
  5822. "id": str + _formdiv.id,
  5823. "style": {
  5824. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5825. },
  5826. "name": "思维导图",
  5827. "forms": _formdiv,
  5828. "click": function () {
  5829. U.MD.D.I.openApplication(str, obj, info);
  5830. }
  5831. }
  5832. break;
  5833. case "doc":
  5834. aTool = 6;
  5835. _iframe = $$("iframe", {
  5836. "frameborder": "no",
  5837. "border": "0",
  5838. "scrolling ": "no",
  5839. "style": {
  5840. "cssText": "border:0;width:100%;height:100%"
  5841. },
  5842. "src": "/Office/Word/WordEditArea.htm"
  5843. })
  5844. _box.appendChild(_iframe);
  5845. _box.appendChild(_jie);
  5846. _formdiv = new U.UF.UI.form(
  5847. "协同文档",
  5848. _box, {
  5849. "id": "docs" + cid + stage + task + tool,
  5850. "style": {
  5851. "width": "90%",
  5852. "height": "90%",
  5853. "overflow": 'hidden'
  5854. },
  5855. "onresize": function () { }
  5856. }, {
  5857. closecallback: function () { }
  5858. }, {
  5859. "style": {
  5860. "height": "36px"
  5861. }
  5862. }).form; //创建窗体
  5863. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5864. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5865. })
  5866. _taskbar = {
  5867. "id": str + _formdiv.id,
  5868. "style": {
  5869. "backgroundImage": "url(/img/icon/doc.png)"
  5870. },
  5871. "name": "协同文档",
  5872. "forms": _formdiv,
  5873. "click": function () {
  5874. U.MD.D.I.openApplication(str, obj, info);
  5875. }
  5876. }
  5877. break;
  5878. }
  5879. const script1 = document.createElement("script");
  5880. script1.type = "text/javascript";
  5881. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5882. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5883. const script2 = document.createElement("script");
  5884. script2.type = "text/javascript";
  5885. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5886. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5887. const script3 = document.createElement("script");
  5888. script3.type = "text/javascript";
  5889. script3.charset = "UTF-8";
  5890. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5891. const script4 = document.createElement("script");
  5892. script4.type = "text/javascript";
  5893. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5894. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5895. if (_iframe) {
  5896. if (str == 'doc') {
  5897. _iframe = _formdiv.querySelector('iframe')
  5898. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5899. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5900. _iframe.contentWindow.document.body.appendChild(script1);
  5901. _iframe.contentWindow.document.body.appendChild(script2);
  5902. // _iframe.contentWindow.document.body.appendChild(script3);
  5903. _iframe.contentWindow.document.body.appendChild(script4);
  5904. })
  5905. if (onloadListener) {
  5906. _iframe.contentDocument.location.reload()
  5907. } else {
  5908. _iframe.contentDocument.location.reload()
  5909. }
  5910. } else if (str == 'mind') {
  5911. _iframe = _formdiv.querySelector('iframe')
  5912. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5913. _iframe.contentWindow.document.body.appendChild(script1);
  5914. _iframe.contentWindow.document.body.appendChild(script2);
  5915. _iframe.contentWindow.document.body.appendChild(script4);
  5916. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5917. })
  5918. if (onloadListener) {
  5919. _iframe.contentDocument.location.reload()
  5920. } else {
  5921. _iframe.contentDocument.location.reload()
  5922. }
  5923. } else {
  5924. _iframe.onload = () => {
  5925. _iframe.contentWindow.document.body.appendChild(script1);
  5926. _iframe.contentWindow.document.body.appendChild(script2);
  5927. // _iframe.contentWindow.document.body.appendChild(script3);
  5928. _iframe.contentWindow.document.body.appendChild(script4);
  5929. };
  5930. }
  5931. _jie.onclick = async () => {
  5932. let text = ''
  5933. if (aTool == 6) {
  5934. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5935. } else if (aTool == 3) {
  5936. text = await U.MD.D.I.getEditorContent(_iframe);
  5937. }
  5938. _loading.style.display = 'flex'
  5939. console.log(_loading);
  5940. var _ajs = _iframe.contentWindow.document.createElement("script");
  5941. _ajs.type = "text/javascript";
  5942. _ajs.innerHTML =
  5943. // 'console.log(' + _loading + ');\n' +
  5944. 'var _js = document.createElement("script");\n' +
  5945. '_js.type="text/javascript";\n' +
  5946. '_js.charset="UTF-8";\n' +
  5947. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5948. "_js.onload = function(){\n" +
  5949. ' var a = document.getElementsByTagName("img")\n' +
  5950. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5951. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5952. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5953. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5954. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5955. "beforeUpload_shishi(file," +
  5956. "'" +
  5957. _userid +
  5958. "'" +
  5959. ", " +
  5960. "'" +
  5961. _cid +
  5962. "'" +
  5963. ", " +
  5964. "'" +
  5965. _stage +
  5966. "'" +
  5967. ", " +
  5968. "'" +
  5969. _task +
  5970. "'" +
  5971. ", " +
  5972. "'" +
  5973. _tool +
  5974. "'" +
  5975. ", " +
  5976. "'" +
  5977. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5978. "'" +
  5979. ", " +
  5980. "'" +
  5981. aTool +
  5982. "'" +
  5983. ", " +
  5984. "`" +
  5985. text +
  5986. "`" +
  5987. ")\n" +
  5988. " });\n" +
  5989. "}\n" +
  5990. "document.head.appendChild(_js);\n";
  5991. _iframe.contentWindow.document.head.appendChild(_ajs);
  5992. }
  5993. }
  5994. //U.MD.D.I.openClick(str);
  5995. //如果有任务栏信息
  5996. // if (_taskbar) {
  5997. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5998. // }
  5999. }
  6000. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  6001. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6002. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6003. _userinfo = US.userInfo, //登录用户信息
  6004. _userid = US.userInfo.userid //登录用户id
  6005. let _iframe;
  6006. let _cid = cid,
  6007. _stage = stage,
  6008. _task = task,
  6009. _tool = tool;
  6010. var _jie = $$("div", {
  6011. "style": {
  6012. "position": "absolute",
  6013. "bottom": "50px",
  6014. "right": "50px",
  6015. "zIndex": "9999",
  6016. "backgroundColor": "#2268bc",
  6017. "color": "#fff",
  6018. "padding": "12px 20px",
  6019. "cursor": "pointer",
  6020. "borderRadius": "4px",
  6021. },
  6022. "innerHTML": "确认并提交"
  6023. })
  6024. let aTool = ''
  6025. let _loading = document.createElement('div')
  6026. _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;"
  6027. // _loading.id = "";
  6028. let _lchild = document.createElement('div')
  6029. let _limg = document.createElement('img')
  6030. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6031. _limg.style = "width: 26px;margin-right: 10px;"
  6032. _lchild.appendChild(_limg)
  6033. let _lspan = document.createElement('span')
  6034. _lspan.innerHTML = "上传中..."
  6035. _lchild.appendChild(_lspan)
  6036. _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%);"
  6037. _loading.appendChild(_lchild)
  6038. var _box = $$('div', {
  6039. "style": {
  6040. "position": "relative",
  6041. "width": "100%",
  6042. "height": "100%",
  6043. },
  6044. })
  6045. _box.appendChild(_loading)
  6046. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  6047. switch (str) {
  6048. case "whiteboard":
  6049. aTool = 1;
  6050. _iframe = $$("iframe", {
  6051. "frameborder": "no",
  6052. "border": "0",
  6053. "scrolling ": "no",
  6054. "style": {
  6055. "cssText": "border:0;width:100%;height:100%"
  6056. },
  6057. "src": "https://iwb.cocorobo.cn/"
  6058. })
  6059. _box.appendChild(_iframe);
  6060. _box.appendChild(_jie);
  6061. _formdiv = new U.UF.UI.form(
  6062. "电子白板",
  6063. _box, {
  6064. "id": "whiteboards" + cid + stage + task + tool,
  6065. "style": {
  6066. "width": "90%",
  6067. "height": "90%",
  6068. "overflow": 'hidden'
  6069. },
  6070. "onresize": function () { }
  6071. }, {
  6072. closecallback: function () { }
  6073. }, {
  6074. "style": {
  6075. "height": "36px"
  6076. }
  6077. }).form; //创建窗体
  6078. _taskbar = {
  6079. "id": str + _formdiv.id,
  6080. "style": {
  6081. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6082. },
  6083. "name": "电子白板",
  6084. "forms": _formdiv,
  6085. "click": function () {
  6086. U.MD.D.I.openApplication(str, obj, info);
  6087. }
  6088. }
  6089. break;
  6090. case "mind":
  6091. aTool = 3;
  6092. _iframe = $$("iframe", {
  6093. "frameborder": "no",
  6094. "border": "0",
  6095. "scrolling ": "no",
  6096. "style": {
  6097. "cssText": "border:0;width:100%;height:100%"
  6098. },
  6099. "src": "/kityminder-editor/dist/index.html"
  6100. });
  6101. _box.appendChild(_iframe);
  6102. _box.appendChild(_jie);
  6103. _formdiv = new U.UF.UI.form(
  6104. "思维导图",
  6105. _box, { //"/jsmind/example/demo.html"
  6106. "id": "minds" + cid + stage + task + tool,
  6107. "style": {
  6108. "width": "90%",
  6109. "height": "90%",
  6110. "overflow": 'hidden'
  6111. },
  6112. "onresize": function () { }
  6113. }, {
  6114. closecallback: function () { }
  6115. }, {
  6116. "style": {
  6117. "height": "36px"
  6118. }
  6119. }).form; //创建窗体
  6120. _taskbar = {
  6121. "id": str + _formdiv.id,
  6122. "style": {
  6123. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6124. },
  6125. "name": "思维导图",
  6126. "forms": _formdiv,
  6127. "click": function () {
  6128. U.MD.D.I.openApplication(str, obj, info);
  6129. }
  6130. }
  6131. break;
  6132. case "doc":
  6133. aTool = 6;
  6134. _iframe = $$("iframe", {
  6135. "frameborder": "no",
  6136. "border": "0",
  6137. "scrolling ": "no",
  6138. "style": {
  6139. "cssText": "border:0;width:100%;height:100%"
  6140. },
  6141. "src": "/Office/Word/WordEditArea.htm"
  6142. })
  6143. _box.appendChild(_iframe);
  6144. _box.appendChild(_jie);
  6145. _formdiv = new U.UF.UI.form(
  6146. "协同文档",
  6147. _box, {
  6148. "id": "docs" + cid + stage + task + tool,
  6149. "style": {
  6150. "width": "90%",
  6151. "height": "90%",
  6152. "overflow": 'hidden'
  6153. },
  6154. "onresize": function () { }
  6155. }, {
  6156. closecallback: function () { }
  6157. }, {
  6158. "style": {
  6159. "height": "36px"
  6160. }
  6161. }).form; //创建窗体
  6162. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6163. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6164. })
  6165. _taskbar = {
  6166. "id": str + _formdiv.id,
  6167. "style": {
  6168. "backgroundImage": "url(/img/icon/doc.png)"
  6169. },
  6170. "name": "协同文档",
  6171. "forms": _formdiv,
  6172. "click": function () {
  6173. U.MD.D.I.openApplication(str, obj, info);
  6174. }
  6175. }
  6176. break;
  6177. }
  6178. const script1 = document.createElement("script");
  6179. script1.type = "text/javascript";
  6180. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6181. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6182. const script2 = document.createElement("script");
  6183. script2.type = "text/javascript";
  6184. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6185. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6186. const script3 = document.createElement("script");
  6187. script3.type = "text/javascript";
  6188. script3.charset = "UTF-8";
  6189. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6190. const script4 = document.createElement("script");
  6191. script4.type = "text/javascript";
  6192. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6193. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6194. if (_iframe) {
  6195. if (str == 'doc') {
  6196. _iframe = _formdiv.querySelector('iframe')
  6197. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6198. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6199. _iframe.contentWindow.document.body.appendChild(script1);
  6200. _iframe.contentWindow.document.body.appendChild(script2);
  6201. // _iframe.contentWindow.document.body.appendChild(script3);
  6202. _iframe.contentWindow.document.body.appendChild(script4);
  6203. })
  6204. if (onloadListener) {
  6205. _iframe.contentDocument.location.reload()
  6206. } else {
  6207. _iframe.contentDocument.location.reload()
  6208. }
  6209. } else if (str == 'mind') {
  6210. _iframe = _formdiv.querySelector('iframe')
  6211. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6212. _iframe.contentWindow.document.body.appendChild(script1);
  6213. _iframe.contentWindow.document.body.appendChild(script2);
  6214. _iframe.contentWindow.document.body.appendChild(script4);
  6215. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6216. })
  6217. if (onloadListener) {
  6218. _iframe.contentDocument.location.reload()
  6219. } else {
  6220. _iframe.contentDocument.location.reload()
  6221. }
  6222. } else {
  6223. _iframe.onload = () => {
  6224. _iframe.contentWindow.document.body.appendChild(script1);
  6225. _iframe.contentWindow.document.body.appendChild(script2);
  6226. // _iframe.contentWindow.document.body.appendChild(script3);
  6227. _iframe.contentWindow.document.body.appendChild(script4);
  6228. };
  6229. }
  6230. _jie.onclick = async () => {
  6231. let text = ''
  6232. if (aTool == 6) {
  6233. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6234. } else if (aTool == 3) {
  6235. text = await U.MD.D.I.getEditorContent(_iframe);
  6236. }
  6237. _loading.style.display = 'flex'
  6238. console.log(_loading);
  6239. var _ajs = _iframe.contentWindow.document.createElement("script");
  6240. _ajs.type = "text/javascript";
  6241. _ajs.innerHTML =
  6242. // 'console.log(' + _loading + ');\n' +
  6243. 'var _js = document.createElement("script");\n' +
  6244. '_js.type="text/javascript";\n' +
  6245. '_js.charset="UTF-8";\n' +
  6246. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6247. "_js.onload = function(){\n" +
  6248. ' var a = document.getElementsByTagName("img")\n' +
  6249. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6250. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6251. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6252. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6253. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6254. "beforeUpload_shishi(file," +
  6255. "'" +
  6256. _userid +
  6257. "'" +
  6258. ", " +
  6259. "'" +
  6260. _cid +
  6261. "'" +
  6262. ", " +
  6263. "'" +
  6264. _stage +
  6265. "'" +
  6266. ", " +
  6267. "'" +
  6268. _task +
  6269. "'" +
  6270. ", " +
  6271. "'" +
  6272. _tool +
  6273. "'" +
  6274. ", " +
  6275. "'" +
  6276. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6277. "'" +
  6278. ", " +
  6279. "'" +
  6280. aTool +
  6281. "'" +
  6282. ", " +
  6283. "`" +
  6284. text +
  6285. "`" +
  6286. ")\n" +
  6287. " });\n" +
  6288. "}\n" +
  6289. "document.head.appendChild(_js);\n";
  6290. _iframe.contentWindow.document.head.appendChild(_ajs);
  6291. }
  6292. }
  6293. //U.MD.D.I.openClick(str);
  6294. //如果有任务栏信息
  6295. // if (_taskbar) {
  6296. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6297. // }
  6298. }
  6299. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6300. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6301. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6302. _userinfo = US.userInfo, //登录用户信息
  6303. _userid = US.userInfo.userid //登录用户id
  6304. let _iframe;
  6305. let _cid = cid,
  6306. _stage = stage,
  6307. _task = task,
  6308. _tool = tool;
  6309. var _jie = $$("div", {
  6310. "style": {
  6311. "position": "absolute",
  6312. "bottom": "50px",
  6313. "right": "50px",
  6314. "zIndex": "9999",
  6315. "backgroundColor": "#2268bc",
  6316. "color": "#fff",
  6317. "padding": "12px 20px",
  6318. "cursor": "pointer",
  6319. "borderRadius": "4px",
  6320. },
  6321. "innerHTML": "上传模板"
  6322. })
  6323. let aTool = ''
  6324. let _loading = document.createElement('div')
  6325. _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;"
  6326. // _loading.id = "";
  6327. let _lchild = document.createElement('div')
  6328. let _limg = document.createElement('img')
  6329. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6330. _limg.style = "width: 26px;margin-right: 10px;"
  6331. _lchild.appendChild(_limg)
  6332. let _lspan = document.createElement('span')
  6333. _lspan.innerHTML = "上传中..."
  6334. _lchild.appendChild(_lspan)
  6335. _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%);"
  6336. _loading.appendChild(_lchild)
  6337. var _box = $$('div', {
  6338. "style": {
  6339. "position": "relative",
  6340. "width": "100%",
  6341. "height": "100%",
  6342. },
  6343. })
  6344. _box.appendChild(_loading)
  6345. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6346. switch (str) {
  6347. case "whiteboard":
  6348. aTool = 1;
  6349. _iframe = $$("iframe", {
  6350. "frameborder": "no",
  6351. "border": "0",
  6352. "scrolling ": "no",
  6353. "style": {
  6354. "cssText": "border:0;width:100%;height:100%"
  6355. },
  6356. "src": "https://iwb.cocorobo.cn/"
  6357. })
  6358. _box.appendChild(_iframe);
  6359. _box.appendChild(_jie);
  6360. _formdiv = new U.UF.UI.form(
  6361. "电子白板",
  6362. _box, {
  6363. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6364. "style": {
  6365. "width": "90%",
  6366. "height": "90%",
  6367. "overflow": 'hidden'
  6368. },
  6369. "onresize": function () { }
  6370. }, {
  6371. closecallback: function () { }
  6372. }, {
  6373. "style": {
  6374. "height": "36px"
  6375. }
  6376. }).form; //创建窗体
  6377. _taskbar = {
  6378. "id": str + _formdiv.id,
  6379. "style": {
  6380. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6381. },
  6382. "name": "电子白板",
  6383. "forms": _formdiv,
  6384. "click": function () {
  6385. U.MD.D.I.openApplication(str, obj, info);
  6386. }
  6387. }
  6388. break;
  6389. case "mind":
  6390. aTool = 3;
  6391. _iframe = $$("iframe", {
  6392. "frameborder": "no",
  6393. "border": "0",
  6394. "scrolling ": "no",
  6395. "style": {
  6396. "cssText": "border:0;width:100%;height:100%"
  6397. },
  6398. "src": "/kityminder-editor/dist/index.html"
  6399. });
  6400. _box.appendChild(_iframe);
  6401. _box.appendChild(_jie);
  6402. _formdiv = new U.UF.UI.form(
  6403. "思维导图",
  6404. _box, { //"/jsmind/example/demo.html"
  6405. "id": "minds_Yu" + cid + stage + task + tool,
  6406. "style": {
  6407. "width": "90%",
  6408. "height": "90%",
  6409. "overflow": 'hidden'
  6410. },
  6411. "onresize": function () { }
  6412. }, {
  6413. closecallback: function () { }
  6414. }, {
  6415. "style": {
  6416. "height": "36px"
  6417. }
  6418. }).form; //创建窗体
  6419. _taskbar = {
  6420. "id": str + _formdiv.id,
  6421. "style": {
  6422. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6423. },
  6424. "name": "思维导图",
  6425. "forms": _formdiv,
  6426. "click": function () {
  6427. U.MD.D.I.openApplication(str, obj, info);
  6428. }
  6429. }
  6430. break;
  6431. case "doc":
  6432. aTool = 6;
  6433. _iframe = $$("iframe", {
  6434. "frameborder": "no",
  6435. "border": "0",
  6436. "scrolling ": "no",
  6437. "style": {
  6438. "cssText": "border:0;width:100%;height:100%"
  6439. },
  6440. "src": "/Office/Word/WordEditArea.htm"
  6441. })
  6442. _box.appendChild(_iframe);
  6443. _box.appendChild(_jie);
  6444. _formdiv = new U.UF.UI.form(
  6445. "协同文档",
  6446. _box, {
  6447. "id": "docs_Yu" + cid + stage + task + tool,
  6448. "style": {
  6449. "width": "90%",
  6450. "height": "90%",
  6451. "overflow": 'hidden'
  6452. },
  6453. "onresize": function () { }
  6454. }, {
  6455. closecallback: function () { }
  6456. }, {
  6457. "style": {
  6458. "height": "36px"
  6459. }
  6460. }).form; //创建窗体
  6461. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6462. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6463. })
  6464. _taskbar = {
  6465. "id": str + _formdiv.id,
  6466. "style": {
  6467. "backgroundImage": "url(/img/icon/doc.png)"
  6468. },
  6469. "name": "协同文档",
  6470. "forms": _formdiv,
  6471. "click": function () {
  6472. U.MD.D.I.openApplication(str, obj, info);
  6473. }
  6474. }
  6475. break;
  6476. case "CocoPi":
  6477. aTool = 57;
  6478. _iframe = $$("iframe", {
  6479. "allowpaymentrequest":"allowpaymentrequest",
  6480. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6481. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6482. "frameborder": "no",
  6483. "border": "0",
  6484. "scrolling ": "no",
  6485. "style": {
  6486. "cssText": "border:0;width:100%;height:100%"
  6487. },
  6488. "src": "https://pi.cocorobo.cn/"
  6489. })
  6490. _box.appendChild(_iframe);
  6491. _box.appendChild(_jie);
  6492. _formdiv = new U.UF.UI.form(
  6493. "CocoPi",
  6494. _box, {
  6495. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6496. "style": {
  6497. "width": "90%",
  6498. "height": "90%",
  6499. "overflow": 'hidden'
  6500. },
  6501. "onresize": function () { }
  6502. }, {
  6503. closecallback: function () { }
  6504. }, {
  6505. "style": {
  6506. "height": "36px"
  6507. }
  6508. }).form; //创建窗体
  6509. _taskbar = {
  6510. "id": str + _formdiv.id,
  6511. "style": {
  6512. "backgroundImage": "url(/img/icon/cocopi.png)"
  6513. },
  6514. "name": "CocoPi",
  6515. "forms": _formdiv,
  6516. "click": function () {
  6517. U.MD.D.I.openApplication(str, obj, info);
  6518. }
  6519. }
  6520. break;
  6521. }
  6522. if (_iframe) {
  6523. if (str == 'doc') {
  6524. _iframe = _formdiv.querySelector('iframe')
  6525. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6526. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6527. })
  6528. if (onloadListener) {
  6529. _iframe.contentDocument.location.reload()
  6530. } else {
  6531. _iframe.contentDocument.location.reload()
  6532. }
  6533. } else if (str == 'mind') {
  6534. _iframe = _formdiv.querySelector('iframe')
  6535. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6536. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6537. })
  6538. if (onloadListener) {
  6539. _iframe.contentDocument.location.reload()
  6540. } else {
  6541. _iframe.contentDocument.location.reload()
  6542. }
  6543. } else if (str == 'whiteboard') {
  6544. _iframe = _formdiv.querySelector('iframe')
  6545. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6546. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6547. })
  6548. if (onloadListener) {
  6549. _iframe.contentDocument.location.reload()
  6550. } else {
  6551. _iframe.contentDocument.location.reload()
  6552. }
  6553. } else if (str == 'CocoPi') {
  6554. _iframe = _formdiv.querySelector('iframe')
  6555. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6556. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6557. })
  6558. if (onloadListener) {
  6559. _iframe.contentDocument.location.reload()
  6560. } else {
  6561. _iframe.contentDocument.location.reload()
  6562. }
  6563. } else {
  6564. _iframe.onload = () => {
  6565. };
  6566. }
  6567. _jie.onclick = async () => {
  6568. let text = ''
  6569. let type = '2'
  6570. if (aTool == 1) {
  6571. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6572. type = '3'
  6573. } else if (aTool == 6) {
  6574. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6575. type = '1'
  6576. } else if (aTool == 3) {
  6577. text = await U.MD.D.I.getEditorContent(_iframe);
  6578. type = '2'
  6579. } else if (aTool == 57) {
  6580. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6581. type = '4'
  6582. }
  6583. _loading.style.display = 'flex'
  6584. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6585. }
  6586. }
  6587. //U.MD.D.I.openClick(str);
  6588. //如果有任务栏信息
  6589. // if (_taskbar) {
  6590. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6591. // }
  6592. }
  6593. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6594. var xmlhttp;
  6595. var Mac, Sn, DeviceId
  6596. if (window.XMLHttpRequest) {
  6597. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6598. xmlhttp = new XMLHttpRequest();
  6599. }
  6600. else {
  6601. // IE6, IE5 浏览器执行代码
  6602. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6603. }
  6604. xmlhttp.onreadystatechange = function () {
  6605. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6606. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6607. // resolve(res.value[0][0].text);
  6608. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6609. }
  6610. }
  6611. }
  6612. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6613. xmlhttp.send();
  6614. }
  6615. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6616. var xmlhttp;
  6617. var Mac, Sn, DeviceId
  6618. if (window.XMLHttpRequest) {
  6619. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6620. xmlhttp = new XMLHttpRequest();
  6621. }
  6622. else {
  6623. // IE6, IE5 浏览器执行代码
  6624. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6625. }
  6626. xmlhttp.onreadystatechange = function () {
  6627. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6628. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6629. // resolve(res.value[0][0].text);
  6630. if (type == '2') {
  6631. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6632. } else if (type == '3') {
  6633. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6634. } else if (type == '4') {
  6635. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6636. }
  6637. } else {
  6638. if (type == '2') {
  6639. iframe.contentWindow.editor.minder.importData('json', '')
  6640. } else if (type == '3') {
  6641. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6642. } else if (type == '4') {
  6643. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6644. }
  6645. }
  6646. }
  6647. }
  6648. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6649. xmlhttp.send();
  6650. }
  6651. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6652. var xmlhttp;
  6653. var Mac, Sn, DeviceId
  6654. if (window.XMLHttpRequest) {
  6655. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6656. xmlhttp = new XMLHttpRequest();
  6657. }
  6658. else {
  6659. // IE6, IE5 浏览器执行代码
  6660. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6661. }
  6662. xmlhttp.onreadystatechange = function () {
  6663. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6664. if (xmlhttp.response) {
  6665. // resolve(res.value[0][0].text);
  6666. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6667. // $(fileInput).val('');
  6668. // });
  6669. span.innerHTML = '上传成功'
  6670. setTimeout(() => {
  6671. loading.style.display = 'none'
  6672. }, 1000);
  6673. }
  6674. }
  6675. }
  6676. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6677. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6678. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6679. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6680. // 设置请求头,表示请求体的编码格式
  6681. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6682. // 设置请求体,使用url-encoded格式的数据
  6683. }
  6684. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6685. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6686. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6687. _userinfo = US.userInfo, //登录用户信息
  6688. _userid = US.userInfo.userid //登录用户id
  6689. let _iframe;
  6690. let _cid = cid,
  6691. _stage = stage,
  6692. _task = task,
  6693. _tool = tool;
  6694. var _jie = $$("div", {
  6695. "style": {
  6696. "position": "absolute",
  6697. "bottom": "50px",
  6698. "right": "50px",
  6699. "zIndex": "9999",
  6700. "backgroundColor": "#2268bc",
  6701. "color": "#fff",
  6702. "padding": "12px 20px",
  6703. "cursor": "pointer",
  6704. "borderRadius": "4px",
  6705. },
  6706. "innerHTML": "提交作业"
  6707. })
  6708. let aTool = ''
  6709. let _loading = document.createElement('div')
  6710. _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;"
  6711. // _loading.id = "";
  6712. let _lchild = document.createElement('div')
  6713. let _limg = document.createElement('img')
  6714. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6715. _limg.style = "width: 26px;margin-right: 10px;"
  6716. _lchild.appendChild(_limg)
  6717. let _lspan = document.createElement('span')
  6718. _lspan.innerHTML = "上传中..."
  6719. _lchild.appendChild(_lspan)
  6720. _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%);"
  6721. _loading.appendChild(_lchild)
  6722. var _box = $$('div', {
  6723. "style": {
  6724. "position": "relative",
  6725. "width": "100%",
  6726. "height": "100%",
  6727. },
  6728. })
  6729. _box.appendChild(_loading)
  6730. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6731. switch (str) {
  6732. case "CocoPi":
  6733. aTool = 57;
  6734. _iframe = $$("iframe", {
  6735. "allowpaymentrequest":"allowpaymentrequest",
  6736. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6737. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6738. "frameborder": "no",
  6739. "border": "0",
  6740. "scrolling ": "no",
  6741. "style": {
  6742. "cssText": "border:0;width:100%;height:100%"
  6743. },
  6744. "src": "https://pi.cocorobo.cn/"
  6745. })
  6746. _box.appendChild(_iframe);
  6747. _box.appendChild(_jie);
  6748. _formdiv = new U.UF.UI.form(
  6749. "CocoPi",
  6750. _box, {
  6751. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6752. "style": {
  6753. "width": "90%",
  6754. "height": "90%",
  6755. "overflow": 'hidden'
  6756. },
  6757. "onresize": function () { }
  6758. }, {
  6759. closecallback: function () { }
  6760. }, {
  6761. "style": {
  6762. "height": "36px"
  6763. }
  6764. }).form; //创建窗体
  6765. _taskbar = {
  6766. "id": str + _formdiv.id,
  6767. "style": {
  6768. "backgroundImage": "url(/img/icon/cocopi.png)"
  6769. },
  6770. "name": "CocoPi",
  6771. "forms": _formdiv,
  6772. "click": function () {
  6773. U.MD.D.I.openApplication(str, obj, info);
  6774. }
  6775. }
  6776. break;
  6777. }
  6778. if (_iframe) {
  6779. if (str == 'CocoPi') {
  6780. _iframe = _formdiv.querySelector('iframe')
  6781. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6782. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6783. })
  6784. if (onloadListener) {
  6785. _iframe.contentDocument.location.reload()
  6786. } else {
  6787. _iframe.contentDocument.location.reload()
  6788. }
  6789. }
  6790. _jie.onclick = async () => {
  6791. let text = ''
  6792. if (aTool == 57) {
  6793. text = _iframe.contentWindow.getLoadXmlStr()
  6794. }
  6795. _loading.style.display = 'flex'
  6796. console.log(_loading);
  6797. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6798. _loading.style.display = 'none'
  6799. let _div = document.createElement('div')
  6800. _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;"
  6801. let _inner = document.createElement('div')
  6802. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6803. _inner.innerHTML = "上传成功"
  6804. _div.appendChild(_inner)
  6805. _iframe.contentWindow.window.document.body.appendChild(_div)
  6806. _div.onclick = () => {
  6807. _iframe.contentWindow.window.document.body.removeChild(_div)
  6808. }
  6809. setTimeout(() => {
  6810. _iframe.contentWindow.window.document.body.removeChild(_div)
  6811. }, 1000);
  6812. }, [], { "type": "POST", "withCredentials": true });
  6813. }
  6814. }
  6815. }
  6816. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6817. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6818. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6819. _userid = student.userid, //登录用户id
  6820. _username = student.student //用户名字
  6821. let _iframe;
  6822. let _cid = cid,
  6823. _stage = stage,
  6824. _task = task,
  6825. _tool = tool;
  6826. var _jie = $$("div", {
  6827. "style": {
  6828. "position": "absolute",
  6829. "bottom": "50px",
  6830. "right": "50px",
  6831. "zIndex": "9999",
  6832. "backgroundColor": "#2268bc",
  6833. "color": "#fff",
  6834. "padding": "12px 20px",
  6835. "cursor": "pointer",
  6836. "borderRadius": "4px",
  6837. },
  6838. "innerHTML": "提交作业"
  6839. })
  6840. let aTool = ''
  6841. let _loading = document.createElement('div')
  6842. _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;"
  6843. // _loading.id = "";
  6844. let _lchild = document.createElement('div')
  6845. let _limg = document.createElement('img')
  6846. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6847. _limg.style = "width: 26px;margin-right: 10px;"
  6848. _lchild.appendChild(_limg)
  6849. let _lspan = document.createElement('span')
  6850. _lspan.innerHTML = "上传中..."
  6851. _lchild.appendChild(_lspan)
  6852. _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%);"
  6853. _loading.appendChild(_lchild)
  6854. var _box = $$('div', {
  6855. "style": {
  6856. "position": "relative",
  6857. "width": "100%",
  6858. "height": "100%",
  6859. },
  6860. })
  6861. _box.appendChild(_loading)
  6862. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6863. switch (str) {
  6864. case "CocoPi":
  6865. aTool = 57;
  6866. _iframe = $$("iframe", {
  6867. "allowpaymentrequest":"allowpaymentrequest",
  6868. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6869. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6870. "frameborder": "no",
  6871. "border": "0",
  6872. "scrolling ": "no",
  6873. "style": {
  6874. "cssText": "border:0;width:100%;height:100%"
  6875. },
  6876. "src": "https://pi.cocorobo.cn/"
  6877. })
  6878. _box.appendChild(_iframe);
  6879. _box.appendChild(_jie);
  6880. _formdiv = new U.UF.UI.form(
  6881. "CocoPi-" + _username,
  6882. _box, {
  6883. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6884. "style": {
  6885. "width": "90%",
  6886. "height": "90%",
  6887. "overflow": 'hidden'
  6888. },
  6889. "onresize": function () { }
  6890. }, {
  6891. closecallback: function () { }
  6892. }, {
  6893. "style": {
  6894. "height": "36px"
  6895. }
  6896. }).form; //创建窗体
  6897. _taskbar = {
  6898. "id": str + _formdiv.id,
  6899. "style": {
  6900. "backgroundImage": "url(/img/icon/cocopi.png)"
  6901. },
  6902. "name": "CocoPi",
  6903. "forms": _formdiv,
  6904. "click": function () {
  6905. U.MD.D.I.openApplication(str, obj, info);
  6906. }
  6907. }
  6908. break;
  6909. }
  6910. if (_iframe) {
  6911. if (str == 'CocoPi') {
  6912. _iframe = _formdiv.querySelector('iframe')
  6913. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6914. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6915. })
  6916. if (onloadListener) {
  6917. _iframe.contentDocument.location.reload()
  6918. } else {
  6919. _iframe.contentDocument.location.reload()
  6920. }
  6921. }
  6922. _jie.onclick = async () => {
  6923. let text = ''
  6924. if (aTool == 57) {
  6925. text = _iframe.contentWindow.getLoadXmlStr()
  6926. }
  6927. _loading.style.display = 'flex'
  6928. console.log(_loading);
  6929. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6930. _loading.style.display = 'none'
  6931. let _div = document.createElement('div')
  6932. _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;"
  6933. let _inner = document.createElement('div')
  6934. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6935. _inner.innerHTML = "上传成功"
  6936. _div.appendChild(_inner)
  6937. _iframe.contentWindow.window.document.body.appendChild(_div)
  6938. _div.onclick = () => {
  6939. _iframe.contentWindow.window.document.body.removeChild(_div)
  6940. }
  6941. setTimeout(() => {
  6942. _iframe.contentWindow.window.document.body.removeChild(_div)
  6943. }, 1000);
  6944. }, [], { "type": "POST", "withCredentials": true });
  6945. }
  6946. }
  6947. }
  6948. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6949. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6950. if (res.value[0].length > 0) {
  6951. if (atool == 57) {
  6952. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6953. }
  6954. } else {
  6955. if (atool == 57) {
  6956. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6957. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6958. }
  6959. }
  6960. }, [], { "type": "POST", "withCredentials": true });
  6961. }