DeskTop.js 430 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  17. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  18. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  19. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  20. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  21. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  22. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  23. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  24. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  25. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  26. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  27. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  28. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  29. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  30. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  31. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  32. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  33. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  34. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  35. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  36. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  37. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  38. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  39. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  40. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  41. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  42. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  43. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  44. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  45. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  46. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  47. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  48. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  49. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  50. ];
  51. //极简模式
  52. U.MD.D.I.easyDeskIcon = [
  53. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  56. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  57. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  58. ];
  59. //教师桌面图标的全局变量
  60. U.MD.D.I.teacherDeskIcon2 = [
  61. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  62. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  63. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  64. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  65. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  66. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  67. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  68. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  69. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  70. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  71. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  72. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  73. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  74. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  75. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  76. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  77. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  78. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  79. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  80. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  81. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  82. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  83. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  84. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  85. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  86. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  87. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  88. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  89. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  90. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  91. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  92. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  93. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  94. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  95. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  96. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  97. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  98. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  99. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  100. ];
  101. U.MD.D.I.studentDeskIcon = [
  102. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  103. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  104. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  105. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  106. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  107. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  108. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  109. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  110. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  111. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  112. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  113. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  114. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  115. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  116. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  117. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  118. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  119. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  120. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  121. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  122. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  123. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  124. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  125. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  126. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  127. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  128. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  129. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  130. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  131. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  132. ];
  133. U.MD.D.I.studentDeskIcon2 = [
  134. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  135. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  136. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  137. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  138. ]
  139. U.MD.D.I.studentDeskIcon3 = [
  140. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  141. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  142. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. ]
  144. U.MD.D.I.schoolDeskIcon = [
  145. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  146. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  147. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  148. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  149. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  150. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  151. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  152. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  153. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  154. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  155. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  156. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  157. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  158. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  159. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  160. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  161. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  162. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  163. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  164. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  165. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  166. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  167. ];
  168. U.MD.D.I.orgDeskIcon = [
  169. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  170. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  171. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  172. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  173. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  174. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  175. ];
  176. U.MD.D.I.orgStemDeskIcon = [
  177. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  178. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  179. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  180. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  181. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  182. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  183. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  184. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  185. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  186. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  187. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  188. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  189. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  190. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  191. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  192. ];
  193. U.MD.D.I.szulsDeskIcon = [
  194. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  195. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  196. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  197. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  198. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  199. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  200. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  201. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  202. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  203. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  204. ];
  205. U.MD.D.I.hanDeskIcon = [
  206. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  207. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  208. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  209. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  210. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  211. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  212. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  213. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  214. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  215. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  216. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  217. ];
  218. U.MD.D.I.GMteacherDeskIcon = [
  219. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  220. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  221. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  222. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  223. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  224. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  225. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  226. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  227. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  230. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  231. ];
  232. U.MD.D.I.GMstudentDeskIcon = [
  233. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  234. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  235. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  236. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  237. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  238. ];
  239. //北师大
  240. U.MD.D.I.BSDNSteacherDeskIcon = [
  241. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  242. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  243. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  244. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  245. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  246. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  247. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  248. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  249. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  250. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  251. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  252. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  253. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  254. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  255. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  256. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  257. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  258. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  259. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  260. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  261. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  262. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  263. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  264. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  265. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  266. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  267. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  268. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  269. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  270. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  271. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  272. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  273. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  274. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  275. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  276. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  277. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  278. ];
  279. //松山湖
  280. U.MD.D.I.SONGteacherDeskIcon = [
  281. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  282. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  283. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  284. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  285. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  286. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  287. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  288. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  289. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  290. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  291. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  292. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  293. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  294. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  295. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  296. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  297. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  298. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  299. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  300. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  301. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  302. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  303. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  304. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  305. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  306. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  307. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  308. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  309. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  310. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  311. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  312. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  313. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  314. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  315. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  316. ];
  317. U.MD.D.I.tcStudentDeskIcon = [
  318. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  319. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  320. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  321. ];
  322. U.MD.D.I.tcTeacherDeskIcon = [
  323. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  324. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  325. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  326. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  327. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  328. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  329. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  330. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  331. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  332. ];
  333. U.MD.D.I.tcOrganizerDeskIcon = [
  334. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  335. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  336. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  337. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  338. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  339. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  340. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  341. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  342. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscStudentDeskIcon = [
  346. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  347. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  348. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  349. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  350. ];
  351. U.MD.D.I.szscTeacherDeskIcon = [
  352. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  353. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  354. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  355. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  356. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  357. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  358. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  359. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  360. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  361. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  362. ];
  363. U.MD.D.I.szscOrganizerDeskIcon = [
  364. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  365. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  366. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  367. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  368. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  369. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  370. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  371. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  372. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  373. ];
  374. U.MD.D.I.wankeTeacherDeskIcon = [ //1c3b9def-8fbe-11ed-b13d-005056b86db5
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  382. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  383. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  384. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  385. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  386. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  387. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  388. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  389. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  390. ];
  391. U.MD.D.I.wankeAdminDeskIcon = [
  392. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  393. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  394. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  395. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  396. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  397. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  398. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  399. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  400. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  401. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  402. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  403. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  404. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  405. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  406. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  407. ];
  408. U.MD.D.I.lhsTeacherDeskIcon = [ //未来小学
  409. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  410. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  411. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  412. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  413. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  414. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  415. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  416. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  417. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  418. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  419. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  420. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  421. ];
  422. U.MD.D.I.lhsAdminDeskIcon = [ //未来小学admin
  423. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  424. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  425. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  426. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  427. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  428. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  429. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  430. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  431. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  432. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  433. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  434. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  435. ];
  436. //明德教师桌面图标的全局变量
  437. U.MD.D.I.MingdeTeacherDeskIcon = [
  438. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  439. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  440. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  441. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  442. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  443. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  444. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  445. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  446. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  447. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  448. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  449. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  450. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  451. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  452. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  453. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  454. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  455. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  456. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  457. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  458. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  459. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  460. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  461. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  462. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  463. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  464. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  465. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  466. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //97c4ee8b-d010-4042-986d-e9d3c217264f
  470. //教师桌面图标的全局变量
  471. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  472. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  473. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  474. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  475. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  476. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  477. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  478. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  479. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  480. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  481. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  482. ];
  483. //福田
  484. U.MD.D.I.futianTeacherDeskIcon = [
  485. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  486. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  487. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  488. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  489. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  490. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  491. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  492. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  493. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //福田
  497. U.MD.D.I.futianAdminDeskIcon = [
  498. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  506. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  507. ];
  508. //lotech
  509. U.MD.D.I.lotechTeacherDeskIcon = [
  510. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  511. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  512. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  513. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  514. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  515. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  518. ];
  519. //龙华中心小学教师桌面图标的全局变量
  520. U.MD.D.I.longhuateacherDeskIcon = [
  521. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  522. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  523. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  524. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  525. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  526. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  527. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  528. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  529. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. ];
  534. //教科院实小教师桌面图标的全局变量
  535. U.MD.D.I.siesteacherDeskIcon = [
  536. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  537. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  538. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  539. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  540. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  543. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  544. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  545. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  546. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  547. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  548. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  549. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  550. ];
  551. //教科院实小教师桌面图标的全局变量
  552. U.MD.D.I.siesStudentDeskIcon = [
  553. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  554. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  555. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  556. ];
  557. //福田
  558. U.MD.D.I.gdjgTeacherDeskIcon = [
  559. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  560. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  561. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  562. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  563. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  564. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  565. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  566. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  567. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  568. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  569. ];
  570. //gdjg
  571. U.MD.D.I.gdjgAdminDeskIcon = [
  572. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  573. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  574. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  575. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  576. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  577. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  578. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  579. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  580. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  581. ];
  582. //hk
  583. U.MD.D.I.hkteacherDeskIcon = [
  584. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  585. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  586. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  587. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  588. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  589. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  590. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  591. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  592. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  593. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  594. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  595. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  596. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  597. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  598. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  599. ];
  600. //hk
  601. U.MD.D.I.hkStudentDeskIcon = [
  602. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  603. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  604. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  605. ];
  606. //香海正覺蓮社佛教正覺中學
  607. U.MD.D.I.hkZJLSteacherDeskIcon = [
  608. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  609. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  610. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  611. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  612. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  613. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  614. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  615. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  616. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  617. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  618. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  619. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  620. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  621. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  622. ];
  623. //香海正覺蓮社佛教正覺中學
  624. U.MD.D.I.hkZJLSStudentDeskIcon = [
  625. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  626. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  627. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  628. ];
  629. //云海
  630. U.MD.D.I.yunhaiTeacherDeskIcon = [
  631. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  632. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  633. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  634. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  635. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  636. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  637. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  638. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  639. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  640. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  641. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  642. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  643. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  644. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  645. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  646. ];
  647. //福田
  648. U.MD.D.I.heyuanTeacherDeskIcon = [
  649. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  650. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  651. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  652. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  653. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  654. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  655. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  656. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  657. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  658. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  659. ];
  660. //福田
  661. U.MD.D.I.heyuanAdminDeskIcon = [
  662. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  663. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  664. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  665. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  666. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  667. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  668. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  669. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  670. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  671. ];
  672. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  673. U.MD.D.I.szherTeacherDeskIcon = [
  674. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  675. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  676. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  677. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  678. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  679. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  680. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  681. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  682. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  683. ];
  684. //dsei
  685. U.MD.D.I.dseiTeacherDeskIcon = [
  686. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  687. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  688. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  689. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  690. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  691. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  692. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  693. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  694. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  695. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  696. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  697. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  698. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  699. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  700. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  701. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  702. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  703. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  704. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  705. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  706. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  707. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  708. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  709. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  710. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  711. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  712. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  713. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  714. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  715. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  716. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  717. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  718. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  719. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  720. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  721. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  722. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  723. ];
  724. //dsei
  725. U.MD.D.I.dseiAdminDeskIcon = [
  726. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  727. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  728. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  729. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  730. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  731. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  732. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  733. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  734. { "Name": "教研室", "Url": "teacherOffice", "style": { "cssText": "background-image:url(/img/icon/teacherOffice.png)" } },
  735. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  736. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  737. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  738. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  739. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  740. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  741. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  742. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  743. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  744. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  745. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  746. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  747. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  748. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  749. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  750. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  751. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  752. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  753. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  754. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  755. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  756. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  757. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  758. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  759. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  760. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  761. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  762. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  763. ];
  764. //dsei
  765. U.MD.D.I.dseiStudentDeskIcon = [
  766. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  767. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  768. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  769. ];
  770. //未来教育基地
  771. U.MD.D.I.szjkyTeacherDeskIcon = [
  772. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  773. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  774. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  775. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  776. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  777. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  778. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  779. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  780. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  781. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  782. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  783. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  784. ];
  785. //未来教育基地
  786. U.MD.D.I.szjkyAdminDeskIcon = [
  787. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  788. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  789. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  790. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  791. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  792. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  793. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  794. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  795. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  796. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  797. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  798. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  799. { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  800. ];
  801. //未来教育基地
  802. U.MD.D.I.szjkyStudentDeskIcon = [
  803. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  804. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  805. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  806. ];
  807. //#region 桌面初始化a
  808. /**
  809. * 初始化桌面的起始函数
  810. *
  811. */
  812. U.MD.D.I.init = function() {
  813. if ($("#U_MD_D_K")[0]) {
  814. //初始化桌面图标
  815. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  816. // var clickUrl = ':12588/requestIp.php';
  817. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  818. // U.MD.D.I.Ip = data;
  819. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  820. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  821. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  822. // })
  823. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  824. // })
  825. }
  826. }
  827. /**
  828. * 模式切换
  829. *
  830. */
  831. U.MD.D.I.ModeCheck = function(type) {
  832. if (US.Config.type == type) {
  833. return
  834. }
  835. US.Config.type = type
  836. $('.U_PBL_Check .active')[0].className = ''
  837. if (type == 1) {
  838. $('.U_PBL_Check div')[0].className = 'active'
  839. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  840. } else {
  841. $('.U_PBL_Check div')[1].className = 'active'
  842. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  843. }
  844. //初始化桌面图标
  845. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  846. if (type == 2) {
  847. U.MD.D.I.openApplication("project")
  848. }
  849. }
  850. /**
  851. * 隐藏任务栏
  852. *
  853. * @param {element} 桌面元素
  854. */
  855. U.MD.D.I.hiddenTaskbar = function(el) {
  856. //任务栏位置变小
  857. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  858. //桌面的位置变大
  859. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  860. }
  861. /**
  862. * 隐藏任务栏
  863. *
  864. * @param {element} 桌面元素
  865. */
  866. U.MD.D.I.hiddenTaskbarout = function(el) {
  867. //任务栏位置变小
  868. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  869. //任务栏位置变化
  870. U.selectEl(el).css({ "bottom": "-60px" });
  871. //桌面的位置变大
  872. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  873. }
  874. }
  875. /**
  876. * 初始化打印桌面图标
  877. *
  878. * @param {element} 桌面元素
  879. */
  880. U.MD.D.I.initDesktopIcons = function(el, type) {
  881. var i, //用于循环
  882. _content, //桌面图标元素
  883. _iconcontent, //桌面图标元素
  884. _frag = $$("frag"), //定义一个碎片元素
  885. _type = US.userInfo.type,
  886. _org = US.userInfo.org,
  887. _oid = US.userInfo.organizeid,
  888. _role = US.userInfo.role,
  889. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  890. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  891. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  892. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  893. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  894. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  895. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  896. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  897. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  898. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  899. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  900. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon, //获取北师大
  901. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon, //获取周佳名工作室
  902. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon, //获取松山湖
  903. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon, //获取万科双语
  904. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon, //获取万科双语
  905. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon, //获取万科双语
  906. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon, //获取未来小学
  907. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon, //获取未来小学
  908. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  909. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  910. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon, //腾讯学生
  911. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon, //腾讯学生
  912. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon, //福田
  913. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon, //福田
  914. _szjkyTeacherDeskIconInfo = U.MD.D.I.szjkyTeacherDeskIcon, //未来教育基地
  915. _szjkyAdminDeskIconInfo = U.MD.D.I.szjkyAdminDeskIcon, //未来教育基地
  916. _szjkyStudentDeskIconInfo = U.MD.D.I.szjkyStudentDeskIcon, //未来教育基地
  917. _dseiTeacherDeskIconInfo = U.MD.D.I.dseiTeacherDeskIcon, //dsei
  918. _dseiAdminDeskIconInfo = U.MD.D.I.dseiAdminDeskIcon, //dsei
  919. _dseiStudentDeskIconInfo = U.MD.D.I.dseiStudentDeskIcon, //dsei
  920. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon, //福田
  921. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon, //福田
  922. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon, //szher
  923. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon, //
  924. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon, //
  925. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon, //lotech
  926. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon, //龙华中心
  927. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon, //sies
  928. _siesStudentDeskIconInfo = U.MD.D.I.siesStudentDeskIcon, //sies
  929. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon, //腾讯学生
  930. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon, //hk
  931. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon, //hk
  932. _hkZJLSTeacherDeskIconInfo = U.MD.D.I.hkZJLSteacherDeskIcon, //hk
  933. _hkZJLSStudentDeskIconInfo = U.MD.D.I.hkZJLSStudentDeskIcon, //hk
  934. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon, //云海
  935. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon, //网络夏令营
  936. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon, //网络夏令营
  937. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon; //网络夏令营
  938. var _oidA = ['69893dca-1d47-11ed-8c78-005056b86db5', "91305d49-01ba-11ed-8c78-005056b86db5", "d9db3320-503a-11ed-8c78-005056b86db5", "05b62310-8cda-11ed-b13d-005056b86db5", '1c3b9def-8fbe-11ed-b13d-005056b86db5', '91305d49-01ba-11ed-8c78-005056b86db4', 'ea2a8c65-f38c-11ed-91d8-005056b86db5', '4c686762-1d0a-11ed-8c78-005056b86db5', 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41', '206c38d2-0cbe-11ee-91d8-005056b86db5'];
  939. var _orgA = ["7ada499f-4ec7-11ed-8c78-005056b86db5", "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d", "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b", "150e3120-9195-11ed-b13d-005056b86db5", "ee40e8e3-e36c-4872-8105-cf395481012s", '97c4ee8b-d010-4042-986d-e9d3c217264f', 'ec0af97a-7c10-4259-a7eb-db9cc8174cdc', '4df1b570-f6ac-48fc-8d50-d0b157dae776', 'e632b86c-f89d-11ed-91d8-005056b86db5', 'b50cf65a-001c-11ee-91d8-005056b86db5', '578de748-05d2-11ee-91d8-005056b86db5', '54f09f1e-09f0-11ee-91d8-005056b86db5', '7b016f69-0f4f-11ee-91d8-005056b86db5', '1973f6c7-1561-11ee-91d8-005056b86db5'];
  940. //清楚桌面图标
  941. el.innerHTML = "";
  942. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  943. _teacherDesktopIconInfo.push(
  944. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  945. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  946. )
  947. _easyDesktopIconInfo.push({ "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } })
  948. }
  949. if (_oid == '45facc0a-1211-11ec-80ad-005056b86db5') {
  950. _teacherDesktopIconInfo.push(
  951. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  952. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } }, { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "AI协同", "Url": "ainew", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } }, { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } }, { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  953. )
  954. }
  955. if (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
  956. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  957. if (el.Name == '项目管理') {
  958. el.Name = 'PBL项目'
  959. }
  960. return el
  961. })
  962. }
  963. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  964. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  965. return el.Name != '魔盒识字' && el.Name != '24点'
  966. })
  967. }
  968. 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) {
  969. _studentDesktopIconInfo.push({ "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } }, )
  970. }
  971. //循环创建桌面图标
  972. if (type == 1) {
  973. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  974. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  975. _content = $$("div", {
  976. className: "U_MD_D_KO",
  977. "onmousedown": U.UF.C.closure(function(obj) {
  978. //防止拖动图标即打开了桌面应用
  979. U.MD.D.click(this, obj);
  980. }, [_studentDesktopIconInfo[i]]),
  981. "onclick": U.UF.C.closure(function(obj) {
  982. //防止拖动图标即打开了桌面应用
  983. U.MD.D.click(this, obj);
  984. }, [_studentDesktopIconInfo[i]])
  985. }, _frag); //
  986. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  987. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  988. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  989. }
  990. } else if (_type == 2 && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  991. for (i = 0; i < _hkZJLSStudentDeskIconInfo.length; i++) {
  992. _content = $$("div", {
  993. className: "U_MD_D_KO",
  994. "onmousedown": U.UF.C.closure(function(obj) {
  995. //防止拖动图标即打开了桌面应用
  996. U.MD.D.click(this, obj);
  997. }, [_hkZJLSStudentDeskIconInfo[i]]),
  998. "onclick": U.UF.C.closure(function(obj) {
  999. //防止拖动图标即打开了桌面应用
  1000. U.MD.D.click(this, obj);
  1001. }, [_hkZJLSStudentDeskIconInfo[i]])
  1002. }, _frag); //
  1003. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1004. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSStudentDeskIconInfo[i].style }, _iconcontent);
  1005. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSStudentDeskIconInfo[i].Name }, _iconcontent);
  1006. } //
  1007. } else if (_type == 2 && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5")) {
  1008. for (i = 0; i < _szjkyStudentDeskIconInfo.length; i++) {
  1009. _content = $$("div", {
  1010. className: "U_MD_D_KO",
  1011. "onmousedown": U.UF.C.closure(function(obj) {
  1012. //防止拖动图标即打开了桌面应用
  1013. U.MD.D.click(this, obj);
  1014. }, [_szjkyStudentDeskIconInfo[i]]),
  1015. "onclick": U.UF.C.closure(function(obj) {
  1016. //防止拖动图标即打开了桌面应用
  1017. U.MD.D.click(this, obj);
  1018. }, [_szjkyStudentDeskIconInfo[i]])
  1019. }, _frag); //
  1020. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1021. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyStudentDeskIconInfo[i].style }, _iconcontent);
  1022. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyStudentDeskIconInfo[i].Name }, _iconcontent);
  1023. }
  1024. } else if (_type == 2 && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5")) {
  1025. for (i = 0; i < _dseiStudentDeskIconInfo.length; i++) {
  1026. _content = $$("div", {
  1027. className: "U_MD_D_KO",
  1028. "onmousedown": U.UF.C.closure(function(obj) {
  1029. //防止拖动图标即打开了桌面应用
  1030. U.MD.D.click(this, obj);
  1031. }, [_dseiStudentDeskIconInfo[i]]),
  1032. "onclick": U.UF.C.closure(function(obj) {
  1033. //防止拖动图标即打开了桌面应用
  1034. U.MD.D.click(this, obj);
  1035. }, [_dseiStudentDeskIconInfo[i]])
  1036. }, _frag); //
  1037. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1038. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiStudentDeskIconInfo[i].style }, _iconcontent);
  1039. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiStudentDeskIconInfo[i].Name }, _iconcontent);
  1040. }
  1041. } else if (_type == 2 && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1042. for (i = 0; i < _siesStudentDeskIconInfo.length; i++) {
  1043. _content = $$("div", {
  1044. className: "U_MD_D_KO",
  1045. "onmousedown": U.UF.C.closure(function(obj) {
  1046. //防止拖动图标即打开了桌面应用
  1047. U.MD.D.click(this, obj);
  1048. }, [_siesStudentDeskIconInfo[i]]),
  1049. "onclick": U.UF.C.closure(function(obj) {
  1050. //防止拖动图标即打开了桌面应用
  1051. U.MD.D.click(this, obj);
  1052. }, [_siesStudentDeskIconInfo[i]])
  1053. }, _frag); //
  1054. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1055. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesStudentDeskIconInfo[i].style }, _iconcontent);
  1056. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesStudentDeskIconInfo[i].Name }, _iconcontent);
  1057. }
  1058. } else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1059. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  1060. _content = $$("div", {
  1061. className: "U_MD_D_KO",
  1062. "onmousedown": U.UF.C.closure(function(obj) {
  1063. //防止拖动图标即打开了桌面应用
  1064. U.MD.D.click(this, obj);
  1065. }, [_hkStudentDeskIconInfo[i]]),
  1066. "onclick": U.UF.C.closure(function(obj) {
  1067. //防止拖动图标即打开了桌面应用
  1068. U.MD.D.click(this, obj);
  1069. }, [_hkStudentDeskIconInfo[i]])
  1070. }, _frag); //
  1071. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1072. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  1073. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  1074. }
  1075. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  1076. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  1077. _content = $$("div", {
  1078. className: "U_MD_D_KO",
  1079. "onmousedown": U.UF.C.closure(function(obj) {
  1080. //防止拖动图标即打开了桌面应用
  1081. U.MD.D.click(this, obj);
  1082. }, [_studentDesktopIconInfo[i]]),
  1083. "onclick": U.UF.C.closure(function(obj) {
  1084. //防止拖动图标即打开了桌面应用
  1085. U.MD.D.click(this, obj);
  1086. }, [_studentDesktopIconInfo[i]])
  1087. }, _frag); //
  1088. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1089. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  1090. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  1091. }
  1092. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  1093. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  1094. _content = $$("div", {
  1095. className: "U_MD_D_KO",
  1096. "onmousedown": U.UF.C.closure(function(obj) {
  1097. //防止拖动图标即打开了桌面应用
  1098. U.MD.D.click(this, obj);
  1099. }, [_tcStudentDeskIconInfo[i]]),
  1100. "onclick": U.UF.C.closure(function(obj) {
  1101. //防止拖动图标即打开了桌面应用
  1102. U.MD.D.click(this, obj);
  1103. }, [_tcStudentDeskIconInfo[i]])
  1104. }, _frag); //
  1105. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1106. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  1107. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  1108. }
  1109. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  1110. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  1111. _content = $$("div", {
  1112. className: "U_MD_D_KO",
  1113. "onmousedown": U.UF.C.closure(function(obj) {
  1114. //防止拖动图标即打开了桌面应用
  1115. U.MD.D.click(this, obj);
  1116. }, [_szscStudentDeskIconInfo[i]]),
  1117. "onclick": U.UF.C.closure(function(obj) {
  1118. //防止拖动图标即打开了桌面应用
  1119. U.MD.D.click(this, obj);
  1120. }, [_szscStudentDeskIconInfo[i]])
  1121. }, _frag); //
  1122. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1123. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  1124. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  1125. }
  1126. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  1127. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  1128. _content = $$("div", {
  1129. className: "U_MD_D_KO",
  1130. "onmousedown": U.UF.C.closure(function(obj) {
  1131. //防止拖动图标即打开了桌面应用
  1132. U.MD.D.click(this, obj);
  1133. }, [_studentDesktopIconInfo3[i]]),
  1134. "onclick": U.UF.C.closure(function(obj) {
  1135. //防止拖动图标即打开了桌面应用
  1136. U.MD.D.click(this, obj);
  1137. }, [_studentDesktopIconInfo3[i]])
  1138. }, _frag); //
  1139. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1140. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  1141. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  1142. }
  1143. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  1144. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  1145. _content = $$("div", {
  1146. className: "U_MD_D_KO",
  1147. "onmousedown": U.UF.C.closure(function(obj) {
  1148. //防止拖动图标即打开了桌面应用
  1149. U.MD.D.click(this, obj);
  1150. }, [_studentDesktopIconInfo2[i]]),
  1151. "onclick": U.UF.C.closure(function(obj) {
  1152. //防止拖动图标即打开了桌面应用
  1153. U.MD.D.click(this, obj);
  1154. }, [_studentDesktopIconInfo2[i]])
  1155. }, _frag); //
  1156. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1157. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  1158. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  1159. }
  1160. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  1161. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  1162. _content = $$("div", {
  1163. className: "U_MD_D_KO",
  1164. "onmousedown": U.UF.C.closure(function(obj) {
  1165. //防止拖动图标即打开了桌面应用
  1166. U.MD.D.click(this, obj);
  1167. }, [_wanketeacherDesktopIconInfo[i]]),
  1168. "onclick": U.UF.C.closure(function(obj) {
  1169. //防止拖动图标即打开了桌面应用
  1170. U.MD.D.click(this, obj);
  1171. }, [_wanketeacherDesktopIconInfo[i]])
  1172. }, _frag); //
  1173. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1174. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  1175. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  1176. }
  1177. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  1178. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  1179. _content = $$("div", {
  1180. className: "U_MD_D_KO",
  1181. "onmousedown": U.UF.C.closure(function(obj) {
  1182. //防止拖动图标即打开了桌面应用
  1183. U.MD.D.click(this, obj);
  1184. }, [_wankeAdminDesktopIconInfo[i]]),
  1185. "onclick": U.UF.C.closure(function(obj) {
  1186. //防止拖动图标即打开了桌面应用
  1187. U.MD.D.click(this, obj);
  1188. }, [_wankeAdminDesktopIconInfo[i]])
  1189. }, _frag); //
  1190. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1191. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  1192. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  1193. }
  1194. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1195. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  1196. _content = $$("div", {
  1197. className: "U_MD_D_KO",
  1198. "onmousedown": U.UF.C.closure(function(obj) {
  1199. //防止拖动图标即打开了桌面应用
  1200. U.MD.D.click(this, obj);
  1201. }, [_teacherDesktopIconInfo2[i]]),
  1202. "onclick": U.UF.C.closure(function(obj) {
  1203. //防止拖动图标即打开了桌面应用
  1204. U.MD.D.click(this, obj);
  1205. }, [_teacherDesktopIconInfo2[i]])
  1206. }, _frag); //
  1207. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1208. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  1209. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  1210. }
  1211. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  1212. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  1213. _content = $$("div", {
  1214. className: "U_MD_D_KO",
  1215. "onmousedown": U.UF.C.closure(function(obj) {
  1216. //防止拖动图标即打开了桌面应用
  1217. U.MD.D.click(this, obj);
  1218. }, [_lotechTeacherDeskIconInfo[i]]),
  1219. "onclick": U.UF.C.closure(function(obj) {
  1220. //防止拖动图标即打开了桌面应用
  1221. U.MD.D.click(this, obj);
  1222. }, [_lotechTeacherDeskIconInfo[i]])
  1223. }, _frag); //
  1224. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1225. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  1226. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  1227. }
  1228. } else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  1229. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  1230. _content = $$("div", {
  1231. className: "U_MD_D_KO",
  1232. "onmousedown": U.UF.C.closure(function(obj) {
  1233. //防止拖动图标即打开了桌面应用
  1234. U.MD.D.click(this, obj);
  1235. }, [_siesTeacherDeskIconInfo[i]]),
  1236. "onclick": U.UF.C.closure(function(obj) {
  1237. //防止拖动图标即打开了桌面应用
  1238. U.MD.D.click(this, obj);
  1239. }, [_siesTeacherDeskIconInfo[i]])
  1240. }, _frag); //
  1241. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1242. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  1243. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  1244. }
  1245. } else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  1246. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1247. _content = $$("div", {
  1248. className: "U_MD_D_KO",
  1249. "onmousedown": U.UF.C.closure(function(obj) {
  1250. //防止拖动图标即打开了桌面应用
  1251. U.MD.D.click(this, obj);
  1252. }, [_longhuaTeacherDeskIconInfo[i]]),
  1253. "onclick": U.UF.C.closure(function(obj) {
  1254. //防止拖动图标即打开了桌面应用
  1255. U.MD.D.click(this, obj);
  1256. }, [_longhuaTeacherDeskIconInfo[i]])
  1257. }, _frag); //
  1258. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1259. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1260. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1261. }
  1262. } else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1263. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1264. _content = $$("div", {
  1265. className: "U_MD_D_KO",
  1266. "onmousedown": U.UF.C.closure(function(obj) {
  1267. //防止拖动图标即打开了桌面应用
  1268. U.MD.D.click(this, obj);
  1269. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1270. "onclick": U.UF.C.closure(function(obj) {
  1271. //防止拖动图标即打开了桌面应用
  1272. U.MD.D.click(this, obj);
  1273. }, [_yunhaiTeacherDeskIconInfo[i]])
  1274. }, _frag); //
  1275. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1276. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1277. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1278. } //_hkStudentDeskIconInfo
  1279. } else if ((_type == 1 || _type == 4) && (_oid == "206c38d2-0cbe-11ee-91d8-005056b86db5")) {
  1280. for (i = 0; i < _hkZJLSTeacherDeskIconInfo.length; i++) {
  1281. _content = $$("div", {
  1282. className: "U_MD_D_KO",
  1283. "onmousedown": U.UF.C.closure(function(obj) {
  1284. //防止拖动图标即打开了桌面应用
  1285. U.MD.D.click(this, obj);
  1286. }, [_hkZJLSTeacherDeskIconInfo[i]]),
  1287. "onclick": U.UF.C.closure(function(obj) {
  1288. //防止拖动图标即打开了桌面应用
  1289. U.MD.D.click(this, obj);
  1290. }, [_hkZJLSTeacherDeskIconInfo[i]])
  1291. }, _frag); //
  1292. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1293. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkZJLSTeacherDeskIconInfo[i].style }, _iconcontent);
  1294. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkZJLSTeacherDeskIconInfo[i].Name }, _iconcontent);
  1295. }
  1296. } else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1297. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1298. _content = $$("div", {
  1299. className: "U_MD_D_KO",
  1300. "onmousedown": U.UF.C.closure(function(obj) {
  1301. //防止拖动图标即打开了桌面应用
  1302. U.MD.D.click(this, obj);
  1303. }, [_hkTeacherDeskIconInfo[i]]),
  1304. "onclick": U.UF.C.closure(function(obj) {
  1305. //防止拖动图标即打开了桌面应用
  1306. U.MD.D.click(this, obj);
  1307. }, [_hkTeacherDeskIconInfo[i]])
  1308. }, _frag); //
  1309. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1310. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1311. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1312. }
  1313. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1314. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1315. _content = $$("div", {
  1316. className: "U_MD_D_KO",
  1317. "onmousedown": U.UF.C.closure(function(obj) {
  1318. //防止拖动图标即打开了桌面应用
  1319. U.MD.D.click(this, obj);
  1320. }, [_gdjgAdminDeskIconInfo[i]]),
  1321. "onclick": U.UF.C.closure(function(obj) {
  1322. //防止拖动图标即打开了桌面应用
  1323. U.MD.D.click(this, obj);
  1324. }, [_gdjgAdminDeskIconInfo[i]])
  1325. }, _frag); //
  1326. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1327. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1328. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1329. }
  1330. } else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1331. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1332. _content = $$("div", {
  1333. className: "U_MD_D_KO",
  1334. "onmousedown": U.UF.C.closure(function(obj) {
  1335. //防止拖动图标即打开了桌面应用
  1336. U.MD.D.click(this, obj);
  1337. }, [_gdjgTeacherDeskIconInfo[i]]),
  1338. "onclick": U.UF.C.closure(function(obj) {
  1339. //防止拖动图标即打开了桌面应用
  1340. U.MD.D.click(this, obj);
  1341. }, [_gdjgTeacherDeskIconInfo[i]])
  1342. }, _frag); //
  1343. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1344. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1345. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1346. }
  1347. } else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1348. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1349. _content = $$("div", {
  1350. className: "U_MD_D_KO",
  1351. "onmousedown": U.UF.C.closure(function(obj) {
  1352. //防止拖动图标即打开了桌面应用
  1353. U.MD.D.click(this, obj);
  1354. }, [_szherTeacherDeskIconInfo[i]]),
  1355. "onclick": U.UF.C.closure(function(obj) {
  1356. //防止拖动图标即打开了桌面应用
  1357. U.MD.D.click(this, obj);
  1358. }, [_szherTeacherDeskIconInfo[i]])
  1359. }, _frag); //
  1360. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1361. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1362. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1363. }
  1364. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1365. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1366. _content = $$("div", {
  1367. className: "U_MD_D_KO",
  1368. "onmousedown": U.UF.C.closure(function(obj) {
  1369. //防止拖动图标即打开了桌面应用
  1370. U.MD.D.click(this, obj);
  1371. }, [_heyuannAdminDeskIconInfo[i]]),
  1372. "onclick": U.UF.C.closure(function(obj) {
  1373. //防止拖动图标即打开了桌面应用
  1374. U.MD.D.click(this, obj);
  1375. }, [_heyuannAdminDeskIconInfo[i]])
  1376. }, _frag); //
  1377. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1378. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1379. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1380. }
  1381. } else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1382. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1383. _content = $$("div", {
  1384. className: "U_MD_D_KO",
  1385. "onmousedown": U.UF.C.closure(function(obj) {
  1386. //防止拖动图标即打开了桌面应用
  1387. U.MD.D.click(this, obj);
  1388. }, [_heyuanTeacherDeskIconInfo[i]]),
  1389. "onclick": U.UF.C.closure(function(obj) {
  1390. //防止拖动图标即打开了桌面应用
  1391. U.MD.D.click(this, obj);
  1392. }, [_heyuanTeacherDeskIconInfo[i]])
  1393. }, _frag); //
  1394. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1395. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1396. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1397. } //
  1398. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 1) {
  1399. for (i = 0; i < _dseiAdminDeskIconInfo.length; i++) {
  1400. _content = $$("div", {
  1401. className: "U_MD_D_KO",
  1402. "onmousedown": U.UF.C.closure(function(obj) {
  1403. //防止拖动图标即打开了桌面应用
  1404. U.MD.D.click(this, obj);
  1405. }, [_dseiAdminDeskIconInfo[i]]),
  1406. "onclick": U.UF.C.closure(function(obj) {
  1407. //防止拖动图标即打开了桌面应用
  1408. U.MD.D.click(this, obj);
  1409. }, [_dseiAdminDeskIconInfo[i]])
  1410. }, _frag); //
  1411. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1412. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiAdminDeskIconInfo[i].style }, _iconcontent);
  1413. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiAdminDeskIconInfo[i].Name }, _iconcontent);
  1414. }
  1415. } else if ((_type == 1 || _type == 4) && (_org == "7b016f69-0f4f-11ee-91d8-005056b86db5") && _role == 0) {
  1416. for (i = 0; i < _dseiTeacherDeskIconInfo.length; i++) {
  1417. _content = $$("div", {
  1418. className: "U_MD_D_KO",
  1419. "onmousedown": U.UF.C.closure(function(obj) {
  1420. //防止拖动图标即打开了桌面应用
  1421. U.MD.D.click(this, obj);
  1422. }, [_dseiTeacherDeskIconInfo[i]]),
  1423. "onclick": U.UF.C.closure(function(obj) {
  1424. //防止拖动图标即打开了桌面应用
  1425. U.MD.D.click(this, obj);
  1426. }, [_dseiTeacherDeskIconInfo[i]])
  1427. }, _frag); //
  1428. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1429. $$("div", { className: "U_MD_D_KOS U_Img", "style": _dseiTeacherDeskIconInfo[i].style }, _iconcontent);
  1430. $$("div", { className: "U_MD_D_KOX", "innerHTML": _dseiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1431. } //
  1432. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 1) {
  1433. for (i = 0; i < _szjkyAdminDeskIconInfo.length; i++) {
  1434. _content = $$("div", {
  1435. className: "U_MD_D_KO",
  1436. "onmousedown": U.UF.C.closure(function(obj) {
  1437. //防止拖动图标即打开了桌面应用
  1438. U.MD.D.click(this, obj);
  1439. }, [_szjkyAdminDeskIconInfo[i]]),
  1440. "onclick": U.UF.C.closure(function(obj) {
  1441. //防止拖动图标即打开了桌面应用
  1442. U.MD.D.click(this, obj);
  1443. }, [_szjkyAdminDeskIconInfo[i]])
  1444. }, _frag); //
  1445. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1446. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyAdminDeskIconInfo[i].style }, _iconcontent);
  1447. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyAdminDeskIconInfo[i].Name }, _iconcontent);
  1448. }
  1449. } else if ((_type == 1 || _type == 4) && (_org == "1973f6c7-1561-11ee-91d8-005056b86db5") && _role == 0) {
  1450. for (i = 0; i < _szjkyTeacherDeskIconInfo.length; i++) {
  1451. _content = $$("div", {
  1452. className: "U_MD_D_KO",
  1453. "onmousedown": U.UF.C.closure(function(obj) {
  1454. //防止拖动图标即打开了桌面应用
  1455. U.MD.D.click(this, obj);
  1456. }, [_szjkyTeacherDeskIconInfo[i]]),
  1457. "onclick": U.UF.C.closure(function(obj) {
  1458. //防止拖动图标即打开了桌面应用
  1459. U.MD.D.click(this, obj);
  1460. }, [_szjkyTeacherDeskIconInfo[i]])
  1461. }, _frag); //
  1462. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1463. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szjkyTeacherDeskIconInfo[i].style }, _iconcontent);
  1464. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szjkyTeacherDeskIconInfo[i].Name }, _iconcontent);
  1465. }
  1466. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1467. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1468. _content = $$("div", {
  1469. className: "U_MD_D_KO",
  1470. "onmousedown": U.UF.C.closure(function(obj) {
  1471. //防止拖动图标即打开了桌面应用
  1472. U.MD.D.click(this, obj);
  1473. }, [_futianAdminDeskIconInfo[i]]),
  1474. "onclick": U.UF.C.closure(function(obj) {
  1475. //防止拖动图标即打开了桌面应用
  1476. U.MD.D.click(this, obj);
  1477. }, [_futianAdminDeskIconInfo[i]])
  1478. }, _frag); //
  1479. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1480. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1481. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1482. }
  1483. } else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1484. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1485. _content = $$("div", {
  1486. className: "U_MD_D_KO",
  1487. "onmousedown": U.UF.C.closure(function(obj) {
  1488. //防止拖动图标即打开了桌面应用
  1489. U.MD.D.click(this, obj);
  1490. }, [_futianTeacherDeskIconInfo[i]]),
  1491. "onclick": U.UF.C.closure(function(obj) {
  1492. //防止拖动图标即打开了桌面应用
  1493. U.MD.D.click(this, obj);
  1494. }, [_futianTeacherDeskIconInfo[i]])
  1495. }, _frag); //
  1496. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1497. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1498. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1499. }
  1500. } else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1501. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1502. _content = $$("div", {
  1503. className: "U_MD_D_KO",
  1504. "onmousedown": U.UF.C.closure(function(obj) {
  1505. //防止拖动图标即打开了桌面应用
  1506. U.MD.D.click(this, obj);
  1507. }, [_MingdeTeacherDeskIcon[i]]),
  1508. "onclick": U.UF.C.closure(function(obj) {
  1509. //防止拖动图标即打开了桌面应用
  1510. U.MD.D.click(this, obj);
  1511. }, [_MingdeTeacherDeskIcon[i]])
  1512. }, _frag); //
  1513. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1514. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1515. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1516. }
  1517. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1518. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1519. _content = $$("div", {
  1520. className: "U_MD_D_KO",
  1521. "onmousedown": U.UF.C.closure(function(obj) {
  1522. //防止拖动图标即打开了桌面应用
  1523. U.MD.D.click(this, obj);
  1524. }, [_lhsAdminDesktopIconInfo[i]]),
  1525. "onclick": U.UF.C.closure(function(obj) {
  1526. //防止拖动图标即打开了桌面应用
  1527. U.MD.D.click(this, obj);
  1528. }, [_lhsAdminDesktopIconInfo[i]])
  1529. }, _frag); //
  1530. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1531. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1532. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1533. }
  1534. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1535. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1536. _content = $$("div", {
  1537. className: "U_MD_D_KO",
  1538. "onmousedown": U.UF.C.closure(function(obj) {
  1539. //防止拖动图标即打开了桌面应用
  1540. U.MD.D.click(this, obj);
  1541. }, [_lhsteacherDesktopIconInfo[i]]),
  1542. "onclick": U.UF.C.closure(function(obj) {
  1543. //防止拖动图标即打开了桌面应用
  1544. U.MD.D.click(this, obj);
  1545. }, [_lhsteacherDesktopIconInfo[i]])
  1546. }, _frag); //
  1547. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1548. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1549. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1550. }
  1551. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1552. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1553. _content = $$("div", {
  1554. className: "U_MD_D_KO",
  1555. "onmousedown": U.UF.C.closure(function(obj) {
  1556. //防止拖动图标即打开了桌面应用
  1557. U.MD.D.click(this, obj);
  1558. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1559. "onclick": U.UF.C.closure(function(obj) {
  1560. //防止拖动图标即打开了桌面应用
  1561. U.MD.D.click(this, obj);
  1562. }, [_zhoujiateacherDesktopIconInfo[i]])
  1563. }, _frag); //
  1564. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1565. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1566. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1567. }
  1568. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1569. for (i = 0; i < _hanDeskIcon.length; i++) {
  1570. _content = $$("div", {
  1571. className: "U_MD_D_KO",
  1572. "onmousedown": U.UF.C.closure(function(obj) {
  1573. //防止拖动图标即打开了桌面应用
  1574. U.MD.D.click(this, obj);
  1575. }, [_hanDeskIcon[i]]),
  1576. "onclick": U.UF.C.closure(function(obj) {
  1577. //防止拖动图标即打开了桌面应用
  1578. U.MD.D.click(this, obj);
  1579. }, [_hanDeskIcon[i]])
  1580. }, _frag); //
  1581. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1582. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1583. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1584. }
  1585. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1586. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1587. _content = $$("div", {
  1588. className: "U_MD_D_KO",
  1589. "onmousedown": U.UF.C.closure(function(obj) {
  1590. //防止拖动图标即打开了桌面应用
  1591. U.MD.D.click(this, obj);
  1592. }, [_orgStemDeskIcon[i]]),
  1593. "onclick": U.UF.C.closure(function(obj) {
  1594. //防止拖动图标即打开了桌面应用
  1595. U.MD.D.click(this, obj);
  1596. }, [_orgStemDeskIcon[i]])
  1597. }, _frag); //
  1598. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1599. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1600. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1601. }
  1602. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1603. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1604. _content = $$("div", {
  1605. className: "U_MD_D_KO",
  1606. "onmousedown": U.UF.C.closure(function(obj) {
  1607. //防止拖动图标即打开了桌面应用
  1608. U.MD.D.click(this, obj);
  1609. }, [_szulsDeskIcon[i]]),
  1610. "onclick": U.UF.C.closure(function(obj) {
  1611. //防止拖动图标即打开了桌面应用
  1612. U.MD.D.click(this, obj);
  1613. }, [_szulsDeskIcon[i]])
  1614. }, _frag); //
  1615. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1616. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1617. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1618. }
  1619. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1620. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1621. _content = $$("div", {
  1622. className: "U_MD_D_KO",
  1623. "onmousedown": U.UF.C.closure(function(obj) {
  1624. //防止拖动图标即打开了桌面应用
  1625. U.MD.D.click(this, obj);
  1626. }, [_orgDesktopIconInfo[i]]),
  1627. "onclick": U.UF.C.closure(function(obj) {
  1628. //防止拖动图标即打开了桌面应用
  1629. U.MD.D.click(this, obj);
  1630. }, [_orgDesktopIconInfo[i]])
  1631. }, _frag); //
  1632. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1633. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1634. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1635. }
  1636. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1637. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1638. _content = $$("div", {
  1639. className: "U_MD_D_KO",
  1640. "onmousedown": U.UF.C.closure(function(obj) {
  1641. //防止拖动图标即打开了桌面应用
  1642. U.MD.D.click(this, obj);
  1643. }, [_schoolDesktopIconInfo[i]]),
  1644. "onclick": U.UF.C.closure(function(obj) {
  1645. //防止拖动图标即打开了桌面应用
  1646. U.MD.D.click(this, obj);
  1647. }, [_schoolDesktopIconInfo[i]])
  1648. }, _frag); //
  1649. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1650. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1651. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1652. }
  1653. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1654. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1655. _content = $$("div", {
  1656. className: "U_MD_D_KO",
  1657. "onmousedown": U.UF.C.closure(function(obj) {
  1658. //防止拖动图标即打开了桌面应用
  1659. U.MD.D.click(this, obj);
  1660. }, [_GMteacherDesktopIconInfo[i]]),
  1661. "onclick": U.UF.C.closure(function(obj) {
  1662. //防止拖动图标即打开了桌面应用
  1663. U.MD.D.click(this, obj);
  1664. }, [_GMteacherDesktopIconInfo[i]])
  1665. }, _frag); //
  1666. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1667. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1668. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1669. }
  1670. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1671. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1672. _content = $$("div", {
  1673. className: "U_MD_D_KO",
  1674. "onmousedown": U.UF.C.closure(function(obj) {
  1675. //防止拖动图标即打开了桌面应用
  1676. U.MD.D.click(this, obj);
  1677. }, [_SONGteacherDesktopIconInfo[i]]),
  1678. "onclick": U.UF.C.closure(function(obj) {
  1679. //防止拖动图标即打开了桌面应用
  1680. U.MD.D.click(this, obj);
  1681. }, [_SONGteacherDesktopIconInfo[i]])
  1682. }, _frag); //
  1683. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1684. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1685. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1686. }
  1687. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1688. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1689. _content = $$("div", {
  1690. className: "U_MD_D_KO",
  1691. "onmousedown": U.UF.C.closure(function(obj) {
  1692. //防止拖动图标即打开了桌面应用
  1693. U.MD.D.click(this, obj);
  1694. }, [_GMstudentDesktopIconInfo[i]]),
  1695. "onclick": U.UF.C.closure(function(obj) {
  1696. //防止拖动图标即打开了桌面应用
  1697. U.MD.D.click(this, obj);
  1698. }, [_GMstudentDesktopIconInfo[i]])
  1699. }, _frag); //
  1700. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1701. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1702. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1703. }
  1704. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1705. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1706. _content = $$("div", {
  1707. className: "U_MD_D_KO",
  1708. "onmousedown": U.UF.C.closure(function(obj) {
  1709. //防止拖动图标即打开了桌面应用
  1710. U.MD.D.click(this, obj);
  1711. }, [_tcTeacherDeskIconInfo[i]]),
  1712. "onclick": U.UF.C.closure(function(obj) {
  1713. //防止拖动图标即打开了桌面应用
  1714. U.MD.D.click(this, obj);
  1715. }, [_tcTeacherDeskIconInfo[i]])
  1716. }, _frag); //
  1717. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1718. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1719. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1720. }
  1721. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1722. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1723. _content = $$("div", {
  1724. className: "U_MD_D_KO",
  1725. "onmousedown": U.UF.C.closure(function(obj) {
  1726. //防止拖动图标即打开了桌面应用
  1727. U.MD.D.click(this, obj);
  1728. }, [_tcOrganizerDeskIconInfo[i]]),
  1729. "onclick": U.UF.C.closure(function(obj) {
  1730. //防止拖动图标即打开了桌面应用
  1731. U.MD.D.click(this, obj);
  1732. }, [_tcOrganizerDeskIconInfo[i]])
  1733. }, _frag); //
  1734. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1735. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1736. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1737. }
  1738. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1739. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1740. _content = $$("div", {
  1741. className: "U_MD_D_KO",
  1742. "onmousedown": U.UF.C.closure(function(obj) {
  1743. //防止拖动图标即打开了桌面应用
  1744. U.MD.D.click(this, obj);
  1745. }, [_szscTeacherDeskIconInfo[i]]),
  1746. "onclick": U.UF.C.closure(function(obj) {
  1747. //防止拖动图标即打开了桌面应用
  1748. U.MD.D.click(this, obj);
  1749. }, [_szscTeacherDeskIconInfo[i]])
  1750. }, _frag); //
  1751. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1752. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1753. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1754. }
  1755. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1756. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1757. _content = $$("div", {
  1758. className: "U_MD_D_KO",
  1759. "onmousedown": U.UF.C.closure(function(obj) {
  1760. //防止拖动图标即打开了桌面应用
  1761. U.MD.D.click(this, obj);
  1762. }, [_szscOrganizerDeskIconInfo[i]]),
  1763. "onclick": U.UF.C.closure(function(obj) {
  1764. //防止拖动图标即打开了桌面应用
  1765. U.MD.D.click(this, obj);
  1766. }, [_szscOrganizerDeskIconInfo[i]])
  1767. }, _frag); //
  1768. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1769. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1770. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1771. }
  1772. } else {
  1773. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1774. _content = $$("div", {
  1775. className: "U_MD_D_KO",
  1776. "onmousedown": U.UF.C.closure(function(obj) {
  1777. //防止拖动图标即打开了桌面应用
  1778. U.MD.D.click(this, obj);
  1779. }, [_teacherDesktopIconInfo[i]]),
  1780. "onclick": U.UF.C.closure(function(obj) {
  1781. //防止拖动图标即打开了桌面应用
  1782. U.MD.D.click(this, obj);
  1783. }, [_teacherDesktopIconInfo[i]])
  1784. }, _frag); //
  1785. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1786. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1787. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1788. }
  1789. }
  1790. } else {
  1791. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1792. _content = $$("div", {
  1793. className: "U_MD_D_KO",
  1794. style: { 'width': '124px', 'height': '145px' },
  1795. "onmousedown": U.UF.C.closure(function(obj) {
  1796. //防止拖动图标即打开了桌面应用
  1797. U.MD.D.click(this, obj);
  1798. }, [_easyDesktopIconInfo[i]]),
  1799. "onclick": U.UF.C.closure(function(obj) {
  1800. //防止拖动图标即打开了桌面应用
  1801. U.MD.D.click(this, obj);
  1802. }, [_easyDesktopIconInfo[i]])
  1803. }, _frag); //
  1804. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1805. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1806. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1807. }
  1808. }
  1809. if (type == 1) {
  1810. //加载好后给图标定位
  1811. U.MD.D.iconPostion($(_frag).Child());
  1812. } else {
  1813. //加载好后给图标定位
  1814. U.MD.D.iconPostion2($(_frag).Child());
  1815. }
  1816. //把图标加载到页面
  1817. el.appendChild(_frag);
  1818. }
  1819. /**
  1820. * 显示任务栏
  1821. *
  1822. * @param {element} 桌面元素
  1823. */
  1824. U.MD.D.I.displayTaskbar = function(el) {
  1825. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1826. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1827. //任务栏位置变化
  1828. U.selectEl(el).css({ "bottom": "0px" });
  1829. //桌面位置变话
  1830. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1831. }
  1832. }
  1833. //#region 桌面图标拖动逻辑
  1834. /**
  1835. * 桌面排列图标
  1836. *
  1837. * @param {element} 桌面元素
  1838. * @param {object} 上下相距的距离
  1839. * @param {object} 左右相距的距离
  1840. * @return {object} 命名空间
  1841. */
  1842. U.MD.D.iconPostion = function(childs, top, left) {
  1843. var i; //用于循环处理
  1844. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1845. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1846. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1847. for (i = 0; i < childs.length; i++) {
  1848. //如果竖排top超过了范围处理
  1849. if (top + 95 > US.height - 10) {
  1850. //left超过了页面范围处理,则向上重叠打印处理
  1851. if ((left + 180) > US.width) {
  1852. top -= 110;
  1853. left -= 90;
  1854. }
  1855. //没有超过范围,那么left+90添加到下一个竖排打印
  1856. else {
  1857. left += 90;
  1858. top = 15;
  1859. };
  1860. }
  1861. //给图标的位置赋值
  1862. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1863. if (i < childs.length - 1) {
  1864. //页面图标每次向下加95
  1865. top += 95;
  1866. }
  1867. }
  1868. //返回最后调用的图标的位置
  1869. return [top, left];
  1870. }
  1871. /**
  1872. * 桌面排列图标
  1873. *
  1874. * @param {element} 桌面元素
  1875. * @param {object} 上下相距的距离
  1876. * @param {object} 左右相距的距离
  1877. * @return {object} 命名空间
  1878. */
  1879. U.MD.D.iconPostion2 = function(childs, top, left) {
  1880. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1881. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1882. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1883. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1884. for (i = 0; i < childs.length; i++) {
  1885. //如果竖排top超过了范围处理
  1886. if (left + 150 > US.width - 10) {
  1887. //left超过了页面范围处理,则向上重叠打印处理
  1888. if ((top + 180) > US.Height) {
  1889. top -= 150;
  1890. left -= 150;
  1891. }
  1892. //没有超过范围,那么left+90添加到下一个竖排打印
  1893. else {
  1894. top += 150;
  1895. left = ol;
  1896. };
  1897. }
  1898. //给图标的位置赋值
  1899. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1900. if (i < childs.length - 1) {
  1901. //页面图标每次向下加95
  1902. left += 150;
  1903. }
  1904. }
  1905. //返回最后调用的图标的位置
  1906. return [top, left];
  1907. }
  1908. /**
  1909. * 桌面点击事件逻辑
  1910. *
  1911. * @param {element} 桌面元素
  1912. * @param {object} 上下相距的距离
  1913. * @param {object} 左右相距的距离
  1914. * @return {object} 命名空间
  1915. */
  1916. U.MD.D.click = function(el, obj) {
  1917. var _buttonnumber = event.button; //点击的按钮的事件值
  1918. var _userinfo = US.userInfo;
  1919. U.UF.EV.stopBubble(); //阻止向上冒泡
  1920. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1921. if (_buttonnumber < 2) {
  1922. //如果是click事件的处理
  1923. if (event.type == "click") {
  1924. //如果元素在mousemove事件中没有移动则出发click事件
  1925. if (!U.MD.D.I.IsDrag) {
  1926. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1927. U.alert("请先登录您的账号!");
  1928. setTimeout(() => {
  1929. U.MD.U.L.login();
  1930. }, 2000);
  1931. } else {
  1932. //打开应用处理
  1933. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1934. }
  1935. }
  1936. }
  1937. //如果是mouse事件的处理
  1938. else {
  1939. if (US.Config.type == '1') {
  1940. //拖动处理,添加拖动和拖动结束事件
  1941. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1942. }
  1943. }
  1944. U.MD.D.I.IsDrag = false;
  1945. }
  1946. }
  1947. /**
  1948. * 拖动的处理
  1949. *
  1950. */
  1951. U.MD.D.iconMove = function() {
  1952. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1953. U.MD.D.I.IsDrag = true;
  1954. }
  1955. /**
  1956. * 拖动结束后,这里是定位处理,以网状的形式定位
  1957. *
  1958. * @param {element} 拖动的元素
  1959. * @return {object} 命名空间
  1960. */
  1961. U.MD.D.iconUp = function(el) {
  1962. var _top = 15,
  1963. _left = 20,
  1964. _margin,
  1965. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1966. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1967. if (_positioninfo["OT"] > 15) {
  1968. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1969. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1970. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1971. }
  1972. if (_positioninfo["OL"] > 20) {
  1973. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1974. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1975. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1976. }
  1977. //while循环判断么一个重叠的元素
  1978. do {
  1979. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1980. _top = _positioninfo[0] + 95; //得到定位后的top
  1981. _left = _positioninfo[1]; //得到定位后的left
  1982. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1983. }
  1984. /**
  1985. * 判断拖动后图标是否重叠
  1986. *
  1987. * @param {element} 拖动的元素
  1988. * @param {element} 桌面所有的元素
  1989. * @param {array} 拖动元素的位置
  1990. ----------[0] 上 top
  1991. ----------[1] 左 left
  1992. * @return {object} 命名空间
  1993. */
  1994. U.MD.D.isOverlap = function(el, childs, postionarray) {
  1995. //循环所有的图标
  1996. for (var i = 0; i < childs.length; i++) {
  1997. //判断有没有和该图标诶子重叠的元素
  1998. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1999. return childs[i]; //如果有返回
  2000. }
  2001. }
  2002. }
  2003. //#endregion
  2004. //#endregion
  2005. //#region 桌面应用
  2006. /**
  2007. * 打开应用
  2008. *
  2009. * @param {string} 类型
  2010. -----------------Disk 网盘系统
  2011. -----------------PDisk 学习系统网盘
  2012. -----------------Poto 图片
  2013. -----------------Video 视频
  2014. -----------------Music 音乐
  2015. -----------------Word word
  2016. -----------------Excel excel
  2017. -----------------Txt 记事本
  2018. -----------------PB 学习系统
  2019. -----------------Blog 朋友圈系统
  2020. -----------------FTP ftp系统
  2021. -----------------Group 好友群
  2022. -----------------SY 首页系统
  2023. -----------------Set 个人设置
  2024. -----------------XSet 系统设置
  2025. -----------------App 我们所有的app
  2026. -----------------BC c.1473.cn 平台
  2027. -----------------CWeb d.1473.cn 变成平台
  2028. -----------------其他的外联系统 我们统一用iframe打开
  2029. * @param {array} 类型
  2030. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  2031. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  2032. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  2033. 如果第一个参数为其他,则无第二个参数
  2034. * @returns {array}
  2035. */
  2036. window.addEventListener('message', function(e) { // 监听 message 事件
  2037. // alert(e.data.type);
  2038. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  2039. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  2040. //3是展示全部阶段 2学生 1老师 4专家
  2041. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  2042. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  2043. //3是展示全部阶段 2学生 1老师 4专家
  2044. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  2045. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  2046. //3是展示全部阶段 2学生 1老师 4专家
  2047. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  2048. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  2049. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  2050. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  2051. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  2052. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  2053. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  2054. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  2055. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  2056. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  2057. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  2058. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  2059. //3是展示全部阶段 2学生 1老师 4专家
  2060. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  2061. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  2062. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  2063. U.MD.D.I.selectUser();
  2064. } else if (e.data.allScreen && e.data.allScreen == "1") {
  2065. var _formel = document.getElementById("study");
  2066. U.UF.F.windowZooming(_formel);
  2067. } else if (e.data.allScreen && e.data.allScreen == "2") {
  2068. var _formel = document.getElementById("studyDetail");
  2069. U.UF.F.windowZooming(_formel);
  2070. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  2071. var _formel = document.getElementById("studyDetail");
  2072. U.UF.F.windowZooming(_formel);
  2073. } else if (e.data.allScreen && e.data.allScreen == "3") {
  2074. var _formel = document.getElementById("studentStudy");
  2075. U.UF.F.windowZooming(_formel);
  2076. } else if (e.data.allScreen && e.data.allScreen == "6") {
  2077. // var _formel = document.getElementById("study");
  2078. //如果最大化了,那么就把他缩小
  2079. // if (_formel.ismaximize) {
  2080. // return;
  2081. // }
  2082. // U.UF.F.windowZooming(_formel);
  2083. // U.UF.F.topWindow(_formel);
  2084. } else if (e.data.allScreen && e.data.allScreen == "4") {
  2085. // var _formel = document.getElementById("studyDetail");
  2086. //如果最大化了,那么就把他缩小
  2087. // if (_formel.ismaximize) {
  2088. // return;
  2089. // }
  2090. // U.UF.F.windowZooming(_formel);
  2091. // U.UF.F.topWindow(_formel);
  2092. } else if (e.data.allScreen && e.data.allScreen == "5") {
  2093. // var _formel = document.getElementById("studentStudy");
  2094. // if (_formel.ismaximize) {
  2095. // return;
  2096. // }
  2097. // U.UF.F.windowZooming(_formel);
  2098. // U.UF.F.topWindow(_formel);
  2099. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  2100. var _formel = document.getElementById("study");
  2101. // if (_formel.ismaximize) {
  2102. // return;
  2103. // }
  2104. // U.UF.F.windowZooming(_formel);
  2105. U.UF.F.topWindow(_formel);
  2106. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  2107. var _formel = document.getElementById("studentIndex");
  2108. U.UF.F.windowZooming(_formel);
  2109. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  2110. var _formel = document.getElementById("studyDetailS");
  2111. U.UF.F.windowZooming(_formel);
  2112. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  2113. var _formel = document.getElementById("studioIndex");
  2114. U.UF.F.windowZooming(_formel);
  2115. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  2116. var _formel = document.getElementById("studyDetailStudio");
  2117. U.UF.F.windowZooming(_formel);
  2118. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  2119. var _formel = document.getElementById("studyDetailStudio");
  2120. U.UF.F.windowZooming(_formel);
  2121. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  2122. var _formel = document.getElementById("studyDetailNT");
  2123. U.UF.F.windowZooming(_formel);
  2124. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  2125. var _formel = document.getElementById("studyDetailS");
  2126. U.UF.F.windowZooming(_formel);
  2127. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  2128. var _formel = document.getElementById("studyDetailS");
  2129. U.UF.F.topWindow(_formel);
  2130. } else if (e.data.tools && e.data.tools == "1") {
  2131. // U.MD.D.I.openApplication("whiteboard")
  2132. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2133. } else if (e.data.tools && e.data.tools == "2") {
  2134. U.MD.D.I.openApplication("note")
  2135. } else if (e.data.tools && e.data.tools == "3") {
  2136. // U.MD.D.I.openApplication("mind")
  2137. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2138. } else if (e.data.tools && e.data.tools == "4") {
  2139. U.MD.D.I.openApplication("investigation")
  2140. } else if (e.data.tools && e.data.tools == "6") {
  2141. // U.MD.D.I.openApplication("doc")
  2142. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2143. } else if (e.data.tools && e.data.tools == "7") {
  2144. // U.MD.D.I.openApplication("mindNetwork")
  2145. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2146. } else if (e.data.tools && e.data.tools == "8") {
  2147. U.MD.D.I.openApplication("library")
  2148. } else if (e.data.tools && e.data.tools == "17") {
  2149. U.MD.D.I.openApplication("stuLibrary")
  2150. } else if (e.data.tools && e.data.tools == "18") {
  2151. U.MD.D.I.openApplication("train")
  2152. } else if (e.data.tools && e.data.tools == "21") {
  2153. U.MD.D.I.openApplication("program")
  2154. } else if (e.data.tools && e.data.tools == "22") {
  2155. U.MD.D.I.openApplication("AIprogram2")
  2156. } else if (e.data.tools && e.data.tools == "23") {
  2157. U.MD.D.I.openApplication("Pythonprogram")
  2158. } else if (e.data.tools && e.data.tools == "24") {
  2159. U.MD.D.I.openApplication("AIprogram")
  2160. } else if (e.data.tools && e.data.tools == "25") {
  2161. U.MD.D.I.openApplication("sys")
  2162. } else if (e.data.tools && e.data.tools == "26") {
  2163. // U.MD.D.I.openApplication("courseDesign")
  2164. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2165. } else if (e.data.tools && e.data.tools == "31") {
  2166. U.MD.D.I.openApplication("netWorkPanel")
  2167. } else if (e.data.tools && e.data.tools == "32") {
  2168. U.MD.D.I.openApplication("codeEdit")
  2169. } else if (e.data.tools && e.data.tools == "57") {
  2170. U.MD.D.I.openApplication("CocoPi")
  2171. } else if (e.data.tools && e.data.tools == "63") {
  2172. U.MD.D.I.openApplication("Wood")
  2173. } else if (e.data.tools && e.data.tools == "58") {
  2174. U.MD.D.I.openApplication("car")
  2175. } else if (e.data.tools && e.data.tools == "59") {
  2176. U.MD.D.I.openApplication("lineSearch")
  2177. } else if (e.data.tools && e.data.tools == "60") {
  2178. U.MD.D.I.openApplication("deepLearning")
  2179. } else if (e.data.tools && e.data.tools == "61") {
  2180. U.MD.D.I.openApplication("allHistory")
  2181. } else if (e.data.tools && e.data.tools == "28") {
  2182. U.MD.D.I.openApplication("translation")
  2183. } else if (e.data.tools && e.data.tools == "37") {
  2184. U.MD.D.I.openApplication("mohe")
  2185. } else if (e.data.tools && e.data.tools == "38") {
  2186. U.MD.D.I.openApplication("24game")
  2187. } else if (e.data.tools && e.data.tools == "39") {
  2188. U.MD.D.I.openApplication("GeoGebra")
  2189. } else if (e.data.tools && e.data.tools == "43") {
  2190. U.MD.D.I.openApplication("studentEvaluate")
  2191. } else if (e.data.tools && e.data.tools == "44") {
  2192. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  2193. } else if (e.data.tools && e.data.tools == "46") {
  2194. U.MD.D.I.openApplication("project")
  2195. } else if (e.data.tools && e.data.tools == "1s") {
  2196. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2197. } else if (e.data.tools && e.data.tools == "3s") {
  2198. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2199. } else if (e.data.tools && e.data.tools == "6s") {
  2200. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2201. } else if (e.data.tools && e.data.tools == "1studio") {
  2202. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2203. } else if (e.data.tools && e.data.tools == "3studio") {
  2204. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2205. } else if (e.data.tools && e.data.tools == "6studio") {
  2206. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2207. } else if (e.data.tools && e.data.tools == "3y") {
  2208. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2209. } else if (e.data.tools && e.data.tools == "1y") {
  2210. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2211. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  2212. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  2213. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  2214. U.MD.D.I.openApplication("AIAnalyse")
  2215. } else if (e.data.tools && e.data.tools == "1teacher") {
  2216. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2217. } else if (e.data.tools && e.data.tools == "3teacher") {
  2218. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2219. } else if (e.data.tools && e.data.tools == "7teacher") {
  2220. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2221. } else if (e.data.tools && e.data.tools == "1teacherE") {
  2222. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2223. } else if (e.data.tools && e.data.tools == "3teacherE") {
  2224. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2225. } else if (e.data.tools && e.data.tools == "1E") {
  2226. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2227. } else if (e.data.tools && e.data.tools == "3E") {
  2228. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2229. } else if (e.data.tools && e.data.tools == "57y") {
  2230. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2231. } else if (e.data.tools && e.data.tools == "57u") {
  2232. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  2233. } else if (e.data.tools && e.data.tools == "57teacher") {
  2234. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  2235. } else if (e.data.tools && e.data.tools == "64") {
  2236. U.MD.D.I.openApplication("AIChat")
  2237. } else if (e.data.tools && e.data.tools == "66") {
  2238. U.MD.D.I.openApplication("formulaEdi")
  2239. } else if (e.data.tools && e.data.tools == "67") {
  2240. U.MD.D.I.openApplication("molStr")
  2241. } else if (e.data.tools && e.data.tools == "68") {
  2242. U.MD.D.I.openApplication("timeAxis")
  2243. }
  2244. });
  2245. U.MD.D.I.selectUser = function() {
  2246. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function(res) { //US.userInfo.userid
  2247. if (res.value[0].length > 0) {
  2248. US.userInfo = res.value[0][0];
  2249. $(".userName")[0].innerHTML = US.userInfo.username;
  2250. }
  2251. }, [], { "type": "GET", "withCredentials": true });
  2252. }
  2253. U.MD.D.I.openInApplication = function(str, data, screenType, tType) {
  2254. var _userinfo = US.userInfo, //登录用户信息
  2255. _userid = US.userInfo.userid, //登录用户id
  2256. _oid = _userinfo.organizeid,
  2257. _type = US.userInfo.type,
  2258. _org = US.userInfo.org,
  2259. _role = US.userInfo.role,
  2260. _classId = US.userInfo.classid;
  2261. if (_type == 4) {
  2262. tType = 4
  2263. }
  2264. switch (str) {
  2265. case "studyDetailNT": //无终端模式
  2266. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2267. setTimeout(() => {
  2268. U.MD.U.L.login();
  2269. }, 2000);
  2270. } else {
  2271. _formdiv = new U.UF.UI.form(
  2272. "课程详情",
  2273. $$("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 }), {
  2274. "id": "studyDetailNT",
  2275. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2276. "onresize": function() {}
  2277. }, {
  2278. closecallback: function() {}
  2279. }, { "style": { "height": "36px" } }).form; //创建窗体
  2280. _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); } }
  2281. break;
  2282. }
  2283. case "studyDetail":
  2284. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2285. setTimeout(() => {
  2286. U.MD.U.L.login();
  2287. }, 2000);
  2288. } else {
  2289. _formdiv = new U.UF.UI.form(
  2290. "课程详情",
  2291. $$("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 }), {
  2292. "id": "studyDetail",
  2293. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2294. "onresize": function() {}
  2295. }, {
  2296. closecallback: function() {}
  2297. }, { "style": { "height": "36px" } }).form; //创建窗体
  2298. _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); } }
  2299. break;
  2300. }
  2301. case "studyDetailS":
  2302. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2303. setTimeout(() => {
  2304. U.MD.U.L.login();
  2305. }, 2000);
  2306. } else {
  2307. _formdiv = new U.UF.UI.form(
  2308. "项目详情",
  2309. $$("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 }), {
  2310. "id": "studyDetailS",
  2311. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2312. "onresize": function() {}
  2313. }, {
  2314. closecallback: function() {}
  2315. }, { "style": { "height": "36px" } }).form; //创建窗体
  2316. _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); } }
  2317. break;
  2318. }
  2319. case "studyDetailStudio":
  2320. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2321. setTimeout(() => {
  2322. U.MD.U.L.login();
  2323. }, 2000);
  2324. } else {
  2325. _formdiv = new U.UF.UI.form(
  2326. "工作详情",
  2327. $$("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 }), {
  2328. "id": "studyDetailStudio",
  2329. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2330. "onresize": function() {}
  2331. }, {
  2332. closecallback: function() {}
  2333. }, { "style": { "height": "36px" } }).form; //创建窗体
  2334. _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); } }
  2335. break;
  2336. }
  2337. case "studyDetailS5":
  2338. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2339. setTimeout(() => {
  2340. U.MD.U.L.login();
  2341. }, 2000);
  2342. } else {
  2343. _formdiv = new U.UF.UI.form(
  2344. "项目详情",
  2345. $$("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 }), {
  2346. "id": "studyDetailS",
  2347. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2348. "onresize": function() {}
  2349. }, {
  2350. closecallback: function() {}
  2351. }, { "style": { "height": "36px" } }).form; //创建窗体
  2352. _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); } }
  2353. break;
  2354. }
  2355. case "studyDetailGM":
  2356. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2357. setTimeout(() => {
  2358. U.MD.U.L.login();
  2359. }, 2000);
  2360. } else {
  2361. _formdiv = new U.UF.UI.form(
  2362. "课程详情",
  2363. $$("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 }), {
  2364. "id": "studyDetail",
  2365. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2366. "onresize": function() {}
  2367. }, {
  2368. closecallback: function() {}
  2369. }, { "style": { "height": "36px" } }).form; //创建窗体
  2370. _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); } }
  2371. break;
  2372. }
  2373. case "hanUrl":
  2374. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2375. setTimeout(() => {
  2376. U.MD.U.L.login();
  2377. }, 2000);
  2378. } else {
  2379. _formdiv = new U.UF.UI.form(
  2380. "汉字宫",
  2381. $$("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" }), {
  2382. "id": "hanUrl",
  2383. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2384. "onresize": function() {}
  2385. }, {
  2386. closecallback: function() {}
  2387. }, { "style": { "height": "36px" } }).form; //创建窗体
  2388. _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); } }
  2389. break;
  2390. }
  2391. }
  2392. }
  2393. U.MD.D.I.openApplication = function(str, obj, info) {
  2394. obj = obj || {};
  2395. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2396. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2397. _userinfo = US.userInfo, //登录用户信息
  2398. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2399. _oid = obj.organizeid || _userinfo.organizeid,
  2400. _type = US.userInfo.type,
  2401. _org = US.userInfo.org,
  2402. _role = US.userInfo.role,
  2403. _classId = US.userInfo.classid,
  2404. _TscreenType = 1
  2405. _screenType = 2,
  2406. _SscreenType = 3;
  2407. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2408. return;
  2409. }
  2410. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2411. switch (str) {
  2412. case "studnetProject": //好友打开
  2413. _formdiv = new U.UF.UI.form(
  2414. "我的项目",
  2415. $$("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 }), {
  2416. "id": "studnetProject",
  2417. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2418. "onresize": function() {}
  2419. }, {
  2420. closecallback: function() {}
  2421. }, { "style": { "height": "36px" } }).form; //创建窗体
  2422. _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); } }
  2423. break;
  2424. case "studentEvaluate": //好友打开
  2425. _formdiv = new U.UF.UI.form(
  2426. "我的评价",
  2427. $$("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 }), {
  2428. "id": "studentEvaluate",
  2429. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2430. "onresize": function() {}
  2431. }, {
  2432. closecallback: function() {}
  2433. }, { "style": { "height": "36px" } }).form; //创建窗体
  2434. _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); } }
  2435. break;
  2436. case "my":
  2437. _formdiv = new U.UF.UI.form(
  2438. "我的资料",
  2439. $$("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 }), {
  2440. "id": "my",
  2441. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2442. "onresize": function() {}
  2443. }, {
  2444. closecallback: function() {}
  2445. }, { "style": { "height": "36px" } }).form; //创建窗体
  2446. _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); } }
  2447. break;
  2448. case "program":
  2449. _formdiv = new U.UF.UI.form(
  2450. "编程平台",
  2451. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2452. "id": "program",
  2453. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2454. "onresize": function() {}
  2455. }, {
  2456. closecallback: function() {}
  2457. }, { "style": { "height": "36px" } }).form; //创建窗体
  2458. _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); } }
  2459. break;
  2460. case "library":
  2461. _formdiv = new U.UF.UI.form(
  2462. "素材库",
  2463. $$("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 }), {
  2464. "id": "library",
  2465. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2466. "onresize": function() {}
  2467. }, {
  2468. closecallback: function() {}
  2469. }, { "style": { "height": "36px" } }).form; //创建窗体
  2470. _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); } }
  2471. break;
  2472. case "whiteboard":
  2473. _formdiv = new U.UF.UI.form(
  2474. "电子白板",
  2475. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2476. "id": "whiteboard",
  2477. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2478. "onresize": function() {}
  2479. }, {
  2480. closecallback: function() {}
  2481. }, { "style": { "height": "36px" } }).form; //创建窗体
  2482. _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); } }
  2483. break;
  2484. case "investigation":
  2485. _formdiv = new U.UF.UI.form(
  2486. "问卷调查",
  2487. $$("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 }), {
  2488. "id": "investigation",
  2489. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2490. "onresize": function() {}
  2491. }, {
  2492. closecallback: function() {}
  2493. }, { "style": { "height": "36px" } }).form; //创建窗体
  2494. _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); } }
  2495. break;
  2496. case "note":
  2497. _formdiv = new U.UF.UI.form(
  2498. "便签分类",
  2499. $$("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 }), {
  2500. "id": "note",
  2501. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2502. "onresize": function() {}
  2503. }, {
  2504. closecallback: function() {}
  2505. }, { "style": { "height": "36px" } }).form; //创建窗体
  2506. _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); } }
  2507. break;
  2508. // case "score":
  2509. // _formdiv = new U.UF.UI.form(
  2510. // "量规评分",
  2511. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2512. // "id": "score",
  2513. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2514. // "onresize": function() {}
  2515. // }, {
  2516. // closecallback: function() {}
  2517. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2518. // _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); } }
  2519. // break;
  2520. case "mind":
  2521. _formdiv = new U.UF.UI.form(
  2522. "思维导图",
  2523. $$("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"
  2524. "id": "mind",
  2525. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2526. "onresize": function() {}
  2527. }, {
  2528. closecallback: function() {}
  2529. }, { "style": { "height": "36px" } }).form; //创建窗体
  2530. _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); } }
  2531. break;
  2532. case "doc":
  2533. // U.MD.D.I.isRoom();
  2534. _formdiv = new U.UF.UI.form(
  2535. "协同文档",
  2536. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2537. "id": "doc",
  2538. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2539. "onresize": function() {}
  2540. }, {
  2541. closecallback: function() {}
  2542. }, { "style": { "height": "36px" } }).form; //创建窗体
  2543. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2544. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2545. // })
  2546. _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); } }
  2547. break;
  2548. case "studentStudy":
  2549. _formdiv = new U.UF.UI.form(
  2550. "课程中心",
  2551. $$("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
  2552. "id": "studentStudy",
  2553. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2554. "onresize": function() {}
  2555. }, {
  2556. closecallback: function() {}
  2557. }, { "style": { "height": "36px" } }).form; //创建窗体
  2558. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2559. break;
  2560. case "train": //好友打开
  2561. _formdiv = new U.UF.UI.form(
  2562. "训练平台",
  2563. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2564. "id": "train",
  2565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2566. "onresize": function() {}
  2567. }, {
  2568. closecallback: function() {}
  2569. }, { "style": { "height": "36px" } }).form; //创建窗体
  2570. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2571. break;
  2572. case "mindNetwork": //好友打开
  2573. _formdiv = new U.UF.UI.form(
  2574. "思维网格",
  2575. $$("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 }), {
  2576. "id": "mindNetwork",
  2577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2578. "onresize": function() {}
  2579. }, {
  2580. closecallback: function() {}
  2581. }, { "style": { "height": "36px" } }).form; //创建窗体
  2582. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2583. break;
  2584. case "studentClassRoom": //好友打开
  2585. _formdiv = new U.UF.UI.form(
  2586. "实时课堂",
  2587. $$("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 }), {
  2588. "id": "studentClassRoom",
  2589. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2590. "onresize": function() {}
  2591. }, {
  2592. closecallback: function() {}
  2593. }, { "style": { "height": "36px" } }).form; //创建窗体
  2594. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2595. setTimeout(() => {
  2596. U.UF.F.windowZooming(_formdiv)
  2597. }, 0);
  2598. break;
  2599. }
  2600. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2601. switch (str) {
  2602. case "studnetProject": //好友打开
  2603. _formdiv = new U.UF.UI.form(
  2604. "我的项目",
  2605. $$("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 }), {
  2606. "id": "studnetProject",
  2607. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2608. "onresize": function() {}
  2609. }, {
  2610. closecallback: function() {}
  2611. }, { "style": { "height": "36px" } }).form; //创建窗体
  2612. _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); } }
  2613. break;
  2614. case "studentEvaluate": //好友打开
  2615. _formdiv = new U.UF.UI.form(
  2616. "我的评价",
  2617. $$("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 }), {
  2618. "id": "studentEvaluate",
  2619. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2620. "onresize": function() {}
  2621. }, {
  2622. closecallback: function() {}
  2623. }, { "style": { "height": "36px" } }).form; //创建窗体
  2624. _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); } }
  2625. break;
  2626. case "my":
  2627. _formdiv = new U.UF.UI.form(
  2628. "我的资料",
  2629. $$("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 }), {
  2630. "id": "my",
  2631. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2632. "onresize": function() {}
  2633. }, {
  2634. closecallback: function() {}
  2635. }, { "style": { "height": "36px" } }).form; //创建窗体
  2636. _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); } }
  2637. break;
  2638. case "program":
  2639. _formdiv = new U.UF.UI.form(
  2640. "编程平台",
  2641. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2642. "id": "program",
  2643. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2644. "onresize": function() {}
  2645. }, {
  2646. closecallback: function() {}
  2647. }, { "style": { "height": "36px" } }).form; //创建窗体
  2648. _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); } }
  2649. break;
  2650. case "library":
  2651. _formdiv = new U.UF.UI.form(
  2652. "素材库",
  2653. $$("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 }), {
  2654. "id": "library",
  2655. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2656. "onresize": function() {}
  2657. }, {
  2658. closecallback: function() {}
  2659. }, { "style": { "height": "36px" } }).form; //创建窗体
  2660. _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); } }
  2661. break;
  2662. case "whiteboard":
  2663. _formdiv = new U.UF.UI.form(
  2664. "电子白板",
  2665. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2666. "id": "whiteboard",
  2667. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2668. "onresize": function() {}
  2669. }, {
  2670. closecallback: function() {}
  2671. }, { "style": { "height": "36px" } }).form; //创建窗体
  2672. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2673. break;
  2674. case "investigation":
  2675. _formdiv = new U.UF.UI.form(
  2676. "问卷调查",
  2677. $$("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 }), {
  2678. "id": "investigation",
  2679. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2680. "onresize": function() {}
  2681. }, {
  2682. closecallback: function() {}
  2683. }, { "style": { "height": "36px" } }).form; //创建窗体
  2684. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2685. break;
  2686. case "note":
  2687. _formdiv = new U.UF.UI.form(
  2688. "便签分类",
  2689. $$("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 }), {
  2690. "id": "note",
  2691. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2692. "onresize": function() {}
  2693. }, {
  2694. closecallback: function() {}
  2695. }, { "style": { "height": "36px" } }).form; //创建窗体
  2696. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2697. break;
  2698. // case "score":
  2699. // _formdiv = new U.UF.UI.form(
  2700. // "量规评分",
  2701. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2702. // "id": "score",
  2703. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2704. // "onresize": function() {}
  2705. // }, {
  2706. // closecallback: function() {}
  2707. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2708. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2709. // break;
  2710. case "mind":
  2711. _formdiv = new U.UF.UI.form(
  2712. "思维导图",
  2713. $$("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"
  2714. "id": "mind",
  2715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2716. "onresize": function() {}
  2717. }, {
  2718. closecallback: function() {}
  2719. }, { "style": { "height": "36px" } }).form; //创建窗体
  2720. _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); } }
  2721. break;
  2722. case "doc":
  2723. // U.MD.D.I.isRoom();
  2724. _formdiv = new U.UF.UI.form(
  2725. "协同文档",
  2726. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2727. "id": "doc",
  2728. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2729. "onresize": function() {}
  2730. }, {
  2731. closecallback: function() {}
  2732. }, { "style": { "height": "36px" } }).form; //创建窗体
  2733. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  2734. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2735. })
  2736. _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); } }
  2737. break;
  2738. case "train": //好友打开
  2739. _formdiv = new U.UF.UI.form(
  2740. "训练平台",
  2741. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2742. "id": "train",
  2743. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2744. "onresize": function() {}
  2745. }, {
  2746. closecallback: function() {}
  2747. }, { "style": { "height": "36px" } }).form; //创建窗体
  2748. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2749. break;
  2750. case "studentStudy":
  2751. _formdiv = new U.UF.UI.form(
  2752. "课程中心",
  2753. $$("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
  2754. "id": "studentStudy",
  2755. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2756. "onresize": function() {}
  2757. }, {
  2758. closecallback: function() {}
  2759. }, { "style": { "height": "36px" } }).form; //创建窗体
  2760. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2761. break;
  2762. case "mindNetwork": //好友打开
  2763. _formdiv = new U.UF.UI.form(
  2764. "思维网格",
  2765. $$("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 }), {
  2766. "id": "mindNetwork",
  2767. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2768. "onresize": function() {}
  2769. }, {
  2770. closecallback: function() {}
  2771. }, { "style": { "height": "36px" } }).form; //创建窗体
  2772. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2773. break;
  2774. case "studentClassRoom": //好友打开
  2775. _formdiv = new U.UF.UI.form(
  2776. "实时课堂",
  2777. $$("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 }), {
  2778. "id": "studentClassRoom",
  2779. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2780. "onresize": function() {}
  2781. }, {
  2782. closecallback: function() {}
  2783. }, { "style": { "height": "36px" } }).form; //创建窗体
  2784. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2785. setTimeout(() => {
  2786. U.UF.F.windowZooming(_formdiv)
  2787. }, 0);
  2788. break;
  2789. }
  2790. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2791. //选择应用处理
  2792. switch (str) {
  2793. case "project": //好友打开
  2794. _formdiv = new U.UF.UI.form(
  2795. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目' : "课程管理",
  2796. $$("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 }), {
  2797. "id": "project",
  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/project.png)" }, "name": _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目' : "课程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2804. break;
  2805. case "student":
  2806. _formdiv = new U.UF.UI.form(
  2807. "学生管理",
  2808. $$("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 }), {
  2809. "id": "student",
  2810. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2811. "onresize": function() {}
  2812. }, {
  2813. closecallback: function() {}
  2814. }, { "style": { "height": "36px" } }).form; //创建窗体
  2815. _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); } }
  2816. break;
  2817. case "evaluate":
  2818. _formdiv = new U.UF.UI.form(
  2819. "学生评价",
  2820. $$("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 }), {
  2821. "id": "evaluate",
  2822. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2823. "onresize": function() {}
  2824. }, {
  2825. closecallback: function() {}
  2826. }, { "style": { "height": "36px" } }).form; //创建窗体
  2827. _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); } }
  2828. break;
  2829. case "sys":
  2830. _formdiv = new U.UF.UI.form(
  2831. "目标管理",
  2832. $$("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 }), {
  2833. "id": "sys",
  2834. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2835. "onresize": function() {}
  2836. }, {
  2837. closecallback: function() {}
  2838. }, { "style": { "height": "36px" } }).form; //创建窗体
  2839. _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); } }
  2840. break;
  2841. case "courseDesign":
  2842. _formdiv = new U.UF.UI.form(
  2843. "项目设计",
  2844. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2845. "id": "courseDesign",
  2846. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2847. "onresize": function() {}
  2848. }, {
  2849. closecallback: function() {}
  2850. }, { "style": { "height": "36px" } }).form; //创建窗体
  2851. _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); } }
  2852. break;
  2853. case "program":
  2854. _formdiv = new U.UF.UI.form(
  2855. "编程平台",
  2856. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2857. "id": "program",
  2858. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2859. "onresize": function() {}
  2860. }, {
  2861. closecallback: function() {}
  2862. }, { "style": { "height": "36px" } }).form; //创建窗体
  2863. _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); } }
  2864. break;
  2865. case "class":
  2866. _formdiv = new U.UF.UI.form(
  2867. "班级管理",
  2868. $$("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 }), {
  2869. "id": "class",
  2870. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2871. "onresize": function() {}
  2872. }, {
  2873. closecallback: function() {}
  2874. }, { "style": { "height": "36px" } }).form; //创建窗体
  2875. _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); } }
  2876. break;
  2877. case "Grade":
  2878. _formdiv = new U.UF.UI.form(
  2879. "年级管理",
  2880. $$("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 }), {
  2881. "id": "Grade",
  2882. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2883. "onresize": function() {}
  2884. }, {
  2885. closecallback: function() {}
  2886. }, { "style": { "height": "36px" } }).form; //创建窗体
  2887. _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); } }
  2888. break;
  2889. case "teacherOffice":
  2890. _formdiv = new U.UF.UI.form(
  2891. "教研室",
  2892. $$("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 }), {
  2893. "id": "teacherOffice",
  2894. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2895. "onresize": function() {}
  2896. }, {
  2897. closecallback: function() {}
  2898. }, { "style": { "height": "36px" } }).form; //创建窗体
  2899. _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); } }
  2900. break;
  2901. case "my":
  2902. _formdiv = new U.UF.UI.form(
  2903. "我的资料",
  2904. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2905. "id": "my",
  2906. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2907. "onresize": function() {}
  2908. }, {
  2909. closecallback: function() {}
  2910. }, { "style": { "height": "36px" } }).form; //创建窗体
  2911. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2912. break;
  2913. case "notice":
  2914. _formdiv = new U.UF.UI.form(
  2915. "通知公告",
  2916. $$("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 }), {
  2917. "id": "notice",
  2918. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2919. "onresize": function() {}
  2920. }, {
  2921. closecallback: function() {}
  2922. }, { "style": { "height": "36px" } }).form; //创建窗体
  2923. _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); } }
  2924. break;
  2925. case "library":
  2926. _formdiv = new U.UF.UI.form(
  2927. "素材库",
  2928. $$("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 }), {
  2929. "id": "library",
  2930. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2931. "onresize": function() {}
  2932. }, {
  2933. closecallback: function() {}
  2934. }, { "style": { "height": "36px" } }).form; //创建窗体
  2935. _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); } }
  2936. break;
  2937. case "whiteboard":
  2938. _formdiv = new U.UF.UI.form(
  2939. "电子白板",
  2940. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2941. "id": "whiteboard",
  2942. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2943. "onresize": function() {}
  2944. }, {
  2945. closecallback: function() {}
  2946. }, { "style": { "height": "36px" } }).form; //创建窗体
  2947. _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); } }
  2948. break;
  2949. case "investigation":
  2950. _formdiv = new U.UF.UI.form(
  2951. "问卷调查",
  2952. $$("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 }), {
  2953. "id": "investigation",
  2954. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2955. "onresize": function() {}
  2956. }, {
  2957. closecallback: function() {}
  2958. }, { "style": { "height": "36px" } }).form; //创建窗体
  2959. _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); } }
  2960. break;
  2961. case "note":
  2962. _formdiv = new U.UF.UI.form(
  2963. "便签分类",
  2964. $$("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 }), {
  2965. "id": "note",
  2966. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2967. "onresize": function() {}
  2968. }, {
  2969. closecallback: function() {}
  2970. }, { "style": { "height": "36px" } }).form; //创建窗体
  2971. _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); } }
  2972. break;
  2973. // case "score":
  2974. // _formdiv = new U.UF.UI.form(
  2975. // "量规评分",
  2976. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2977. // "id": "score",
  2978. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2979. // "onresize": function() {}
  2980. // }, {
  2981. // closecallback: function() {}
  2982. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2983. // _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); } }
  2984. // break;
  2985. case "mind":
  2986. _formdiv = new U.UF.UI.form(
  2987. "思维导图",
  2988. $$("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"
  2989. "id": "mind",
  2990. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2991. "onresize": function() {}
  2992. }, {
  2993. closecallback: function() {}
  2994. }, { "style": { "height": "36px" } }).form; //创建窗体
  2995. _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); } }
  2996. break;
  2997. case "doc":
  2998. // U.MD.D.I.isRoom();
  2999. _formdiv = new U.UF.UI.form(
  3000. "协同文档",
  3001. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3002. "id": "doc",
  3003. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3004. "onresize": function() {}
  3005. }, {
  3006. closecallback: function() {}
  3007. }, { "style": { "height": "36px" } }).form; //创建窗体
  3008. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3009. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3010. })
  3011. _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); } }
  3012. break;
  3013. case "study":
  3014. _formdiv = new U.UF.UI.form(
  3015. "课程中心",
  3016. $$("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
  3017. "id": "study",
  3018. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3019. "onresize": function() {}
  3020. }, {
  3021. closecallback: function() {}
  3022. }, { "style": { "height": "36px" } }).form; //创建窗体
  3023. _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); } }
  3024. break;
  3025. case "mindNetwork": //好友打开
  3026. _formdiv = new U.UF.UI.form(
  3027. "思维网格",
  3028. $$("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 }), {
  3029. "id": "mindNetwork",
  3030. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3031. "onresize": function() {}
  3032. }, {
  3033. closecallback: function() {}
  3034. }, { "style": { "height": "36px" } }).form; //创建窗体
  3035. _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); } }
  3036. break;
  3037. case "train": //好友打开
  3038. _formdiv = new U.UF.UI.form(
  3039. "训练平台",
  3040. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3041. "id": "mindNetwork",
  3042. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3043. "onresize": function() {}
  3044. }, {
  3045. closecallback: function() {}
  3046. }, { "style": { "height": "36px" } }).form; //创建窗体
  3047. _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); } }
  3048. break;
  3049. case "teacherClassRoom": //好友打开
  3050. _formdiv = new U.UF.UI.form(
  3051. "实时课堂",
  3052. $$("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 }), {
  3053. "id": "teacherClassRoom",
  3054. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3055. "onresize": function() {}
  3056. }, {
  3057. closecallback: function() {}
  3058. }, { "style": { "height": "36px" } }).form; //创建窗体
  3059. _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); } }
  3060. setTimeout(() => {
  3061. U.UF.F.windowZooming(_formdiv)
  3062. }, 0);
  3063. break;
  3064. }
  3065. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  3066. switch (str) {
  3067. case "project": //好友打开
  3068. _formdiv = new U.UF.UI.form(
  3069. "课程管理",
  3070. $$("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 }), {
  3071. "id": "project",
  3072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3073. "onresize": function() {}
  3074. }, {
  3075. closecallback: function() {}
  3076. }, { "style": { "height": "36px" } }).form; //创建窗体
  3077. _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); } }
  3078. break;
  3079. case "evaluate":
  3080. _formdiv = new U.UF.UI.form(
  3081. "学生评价",
  3082. $$("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 }), {
  3083. "id": "evaluate",
  3084. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3085. "onresize": function() {}
  3086. }, {
  3087. closecallback: function() {}
  3088. }, { "style": { "height": "36px" } }).form; //创建窗体
  3089. _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); } }
  3090. break;
  3091. case "notice":
  3092. _formdiv = new U.UF.UI.form(
  3093. "通知公告",
  3094. $$("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 }), {
  3095. "id": "notice",
  3096. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3097. "onresize": function() {}
  3098. }, {
  3099. closecallback: function() {}
  3100. }, { "style": { "height": "36px" } }).form; //创建窗体
  3101. _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); } }
  3102. break;
  3103. case "stuLibrary":
  3104. _formdiv = new U.UF.UI.form(
  3105. "学习资料",
  3106. $$("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 }), {
  3107. "id": "stuLibrary",
  3108. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3109. "onresize": function() {}
  3110. }, {
  3111. closecallback: function() {}
  3112. }, { "style": { "height": "36px" } }).form; //创建窗体
  3113. _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); } }
  3114. break;
  3115. case "program":
  3116. _formdiv = new U.UF.UI.form(
  3117. "编程平台",
  3118. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  3119. "id": "program",
  3120. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3121. "onresize": function() {}
  3122. }, {
  3123. closecallback: function() {}
  3124. }, { "style": { "height": "36px" } }).form; //创建窗体
  3125. _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); } }
  3126. break;
  3127. case "whiteboard":
  3128. _formdiv = new U.UF.UI.form(
  3129. "电子白板",
  3130. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  3131. "id": "whiteboard",
  3132. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3133. "onresize": function() {}
  3134. }, {
  3135. closecallback: function() {}
  3136. }, { "style": { "height": "36px" } }).form; //创建窗体
  3137. _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); } }
  3138. break;
  3139. case "investigation":
  3140. _formdiv = new U.UF.UI.form(
  3141. "问卷调查",
  3142. $$("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 }), {
  3143. "id": "investigation",
  3144. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3145. "onresize": function() {}
  3146. }, {
  3147. closecallback: function() {}
  3148. }, { "style": { "height": "36px" } }).form; //创建窗体
  3149. _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); } }
  3150. break;
  3151. case "mind":
  3152. _formdiv = new U.UF.UI.form(
  3153. "思维导图",
  3154. $$("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"
  3155. "id": "mind",
  3156. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3157. "onresize": function() {}
  3158. }, {
  3159. closecallback: function() {}
  3160. }, { "style": { "height": "36px" } }).form; //创建窗体
  3161. _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); } }
  3162. break;
  3163. case "doc":
  3164. // U.MD.D.I.isRoom();
  3165. _formdiv = new U.UF.UI.form(
  3166. "协同文档",
  3167. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  3168. "id": "doc",
  3169. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3170. "onresize": function() {}
  3171. }, {
  3172. closecallback: function() {}
  3173. }, { "style": { "height": "36px" } }).form; //创建窗体
  3174. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  3175. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  3176. })
  3177. _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); } }
  3178. break;
  3179. case "study":
  3180. _formdiv = new U.UF.UI.form(
  3181. "课程中心",
  3182. $$("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
  3183. "id": "study",
  3184. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3185. "onresize": function() {}
  3186. }, {
  3187. closecallback: function() {}
  3188. }, { "style": { "height": "36px" } }).form; //创建窗体
  3189. _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); } }
  3190. break;
  3191. case "mindNetwork": //好友打开
  3192. _formdiv = new U.UF.UI.form(
  3193. "思维网格",
  3194. $$("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 }), {
  3195. "id": "mindNetwork",
  3196. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3197. "onresize": function() {}
  3198. }, {
  3199. closecallback: function() {}
  3200. }, { "style": { "height": "36px" } }).form; //创建窗体
  3201. _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); } }
  3202. break;
  3203. case "train": //好友打开
  3204. _formdiv = new U.UF.UI.form(
  3205. "训练平台",
  3206. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  3207. "id": "train",
  3208. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3209. "onresize": function() {}
  3210. }, {
  3211. closecallback: function() {}
  3212. }, { "style": { "height": "36px" } }).form; //创建窗体
  3213. _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); } }
  3214. break;
  3215. case "sys":
  3216. _formdiv = new U.UF.UI.form(
  3217. "目标管理",
  3218. $$("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 }), {
  3219. "id": "sys",
  3220. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3221. "onresize": function() {}
  3222. }, {
  3223. closecallback: function() {}
  3224. }, { "style": { "height": "36px" } }).form; //创建窗体
  3225. _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); } }
  3226. break;
  3227. case "courseDesign":
  3228. _formdiv = new U.UF.UI.form(
  3229. "项目设计",
  3230. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  3231. "id": "courseDesign",
  3232. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3233. "onresize": function() {}
  3234. }, {
  3235. closecallback: function() {}
  3236. }, { "style": { "height": "36px" } }).form; //创建窗体
  3237. _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); } }
  3238. break;
  3239. }
  3240. } else if (!_type) {
  3241. switch (str) {
  3242. case "my":
  3243. _formdiv = new U.UF.UI.form(
  3244. "我的资料",
  3245. $$("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 }), {
  3246. "id": "my",
  3247. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3248. "onresize": function() {}
  3249. }, {
  3250. closecallback: function() {}
  3251. }, { "style": { "height": "36px" } }).form; //创建窗体
  3252. _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); } }
  3253. break;
  3254. }
  3255. }
  3256. switch (str) {
  3257. // AIprogram2 AI体验 aihub.cocorobo.cn
  3258. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  3259. // AIprogram AI编程 ai-blockly.cocorobo.cn
  3260. case "formulaEdi": //公式编辑
  3261. _formdiv = new U.UF.UI.form(
  3262. "公式编辑",
  3263. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.latexlive.com/" }), {
  3264. "id": "formulaEdi",
  3265. "style": { "width": "70%", "height": "90%", "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/formulaEdi.png)" }, "name": "公式编辑", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3271. break;
  3272. case "molStr": //分子结构
  3273. _formdiv = new U.UF.UI.form(
  3274. "分子结构",
  3275. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://molview.org/" }), {
  3276. "id": "molStr",
  3277. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3278. "onresize": function() {}
  3279. }, {
  3280. closecallback: function() {}
  3281. }, { "style": { "height": "36px" } }).form; //创建窗体
  3282. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/molStr.png)" }, "name": "分子结构", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3283. break;
  3284. case "timeAxis": //时间轴
  3285. _formdiv = new U.UF.UI.form(
  3286. "时间轴",
  3287. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://time.graphics/editor" }), {
  3288. "id": "timeAxis",
  3289. "style": { "width": "70%", "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/timeAxis.png)" }, "name": "时间轴", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3295. break;
  3296. case "AIprogram2": //AI体验
  3297. _formdiv = new U.UF.UI.form(
  3298. "AI体验",
  3299. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  3300. "id": "AIprogram2",
  3301. "style": { "width": "70%", "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/AIprogram2.png)" }, "name": "AI体验", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3307. break;
  3308. case "Pythonprogram": //python编程
  3309. _formdiv = new U.UF.UI.form(
  3310. "Python编程",
  3311. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  3312. "id": "Pythonprogram",
  3313. "style": { "width": "70%", "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/Pythonprogram.png)" }, "name": "Python编程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3319. break;
  3320. case "AIprogram": //ai编程
  3321. _formdiv = new U.UF.UI.form(
  3322. "AI编程平台",
  3323. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  3324. "id": "AIprogram",
  3325. "style": { "width": "70%", "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/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3331. break;
  3332. case "CocoPi": //CocoPi
  3333. _formdiv = new U.UF.UI.form(
  3334. "CocoPi",
  3335. $$("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" }), {
  3336. "id": "CocoPi",
  3337. "style": { "width": "70%", "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/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3343. break;
  3344. case "Wood": //Wood
  3345. _formdiv = new U.UF.UI.form(
  3346. "海龟编程",
  3347. $$("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/" }), {
  3348. "id": "Wood",
  3349. "style": { "width": "70%", "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/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3355. break;
  3356. case "car": //模拟驾驶
  3357. _formdiv = new U.UF.UI.form(
  3358. "模拟驾驶",
  3359. $$("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/" }), {
  3360. "id": "car",
  3361. "style": { "width": "70%", "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/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3367. break;
  3368. case "lineSearch": //路径搜索
  3369. _formdiv = new U.UF.UI.form(
  3370. "路径搜索",
  3371. $$("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/" }), {
  3372. "id": "lineSearch",
  3373. "style": { "width": "70%", "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/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3379. break;
  3380. case "deepLearning": //深度学习
  3381. _formdiv = new U.UF.UI.form(
  3382. "深度学习",
  3383. $$("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/#" }), {
  3384. "id": "deepLearning",
  3385. "style": { "width": "70%", "height": "90%", "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/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3391. break;
  3392. case "allHistory": //深度学习
  3393. _formdiv = new U.UF.UI.form(
  3394. "全历史",
  3395. $$("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/" }), {
  3396. "id": "allHistory",
  3397. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3398. "onresize": function() {}
  3399. }, {
  3400. closecallback: function() {}
  3401. }, { "style": { "height": "36px" } }).form; //创建窗体
  3402. _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); } }
  3403. break;
  3404. case "chatPDF": //ai编程
  3405. _formdiv = new U.UF.UI.form(
  3406. "chatPDF",
  3407. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3408. "id": "chatPDF",
  3409. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3410. "onresize": function() {}
  3411. }, {
  3412. closecallback: function() {}
  3413. }, { "style": { "height": "36px" } }).form; //创建窗体
  3414. _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); } }
  3415. break;
  3416. case "resources": //国家教育
  3417. _formdiv = new U.UF.UI.form(
  3418. "国家教育",
  3419. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3420. "id": "resources",
  3421. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3422. "onresize": function() {}
  3423. }, {
  3424. closecallback: function() {}
  3425. }, { "style": { "height": "36px" } }).form; //创建窗体
  3426. _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); } }
  3427. break;
  3428. case "codeEdit": //源码编辑
  3429. _formdiv = new U.UF.UI.form(
  3430. "源码编辑",
  3431. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3432. "id": "codeEdit",
  3433. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3434. "onresize": function() {}
  3435. }, {
  3436. closecallback: function() {}
  3437. }, { "style": { "height": "36px" } }).form; //创建窗体
  3438. _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); } }
  3439. break; //
  3440. case "MindMap": //MindMap
  3441. _formdiv = new U.UF.UI.form(
  3442. "MindMap",
  3443. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3444. "id": "MindMap",
  3445. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3446. "onresize": function() {}
  3447. }, {
  3448. closecallback: function() {}
  3449. }, { "style": { "height": "36px" } }).form; //创建窗体
  3450. _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); } }
  3451. break;
  3452. case "netWorkPanel": //netWorkPanel
  3453. _formdiv = new U.UF.UI.form(
  3454. "netWorkPanel",
  3455. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3456. "id": "netWorkPanel",
  3457. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3458. "onresize": function() {}
  3459. }, {
  3460. closecallback: function() {}
  3461. }, { "style": { "height": "36px" } }).form; //创建窗体
  3462. _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); } }
  3463. break;
  3464. case "GeoGebra": //GeoGebra
  3465. _formdiv = new U.UF.UI.form(
  3466. "GeoGebra",
  3467. $$("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" }), {
  3468. "id": "GeoGebra",
  3469. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3470. "onresize": function() {}
  3471. }, {
  3472. closecallback: function() {}
  3473. }, { "style": { "height": "36px" } }).form; //创建窗体
  3474. _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); } }
  3475. break;
  3476. case "translation": //翻译
  3477. _formdiv = new U.UF.UI.form(
  3478. "翻译",
  3479. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3480. "id": "translation",
  3481. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3482. "onresize": function() {}
  3483. }, {
  3484. closecallback: function() {}
  3485. }, { "style": { "height": "36px" } }).form; //创建窗体
  3486. _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); } }
  3487. break;
  3488. case "mohe": //魔盒
  3489. _formdiv = new U.UF.UI.form(
  3490. "魔盒识字",
  3491. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3492. "id": "mohe",
  3493. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3494. "onresize": function() {}
  3495. }, {
  3496. closecallback: function() {}
  3497. }, { "style": { "height": "36px" } }).form; //创建窗体
  3498. _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); } }
  3499. break;
  3500. case "24game": //24点
  3501. _formdiv = new U.UF.UI.form(
  3502. "24点",
  3503. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3504. "id": "24game",
  3505. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3506. "onresize": function() {}
  3507. }, {
  3508. closecallback: function() {}
  3509. }, { "style": { "height": "36px" } }).form; //创建窗体
  3510. _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); } }
  3511. break;
  3512. case "case":
  3513. _formdiv = new U.UF.UI.form(
  3514. "课程进展",
  3515. $$("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 }), {
  3516. "id": "case",
  3517. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3518. "onresize": function() {}
  3519. }, {
  3520. closecallback: function() {}
  3521. }, { "style": { "height": "36px" } }).form; //创建窗体
  3522. _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); } }
  3523. break;
  3524. case "snf":
  3525. _formdiv = new U.UF.UI.form(
  3526. "赛诺梵",
  3527. $$("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" }), {
  3528. "id": "snf",
  3529. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3530. "onresize": function() {}
  3531. }, {
  3532. closecallback: function() {}
  3533. }, { "style": { "height": "36px" } }).form; //创建窗体
  3534. _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); } }
  3535. break;
  3536. case "hanFamily":
  3537. _formdiv = new U.UF.UI.form(
  3538. "汉字家族",
  3539. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3540. "id": "hanFamily",
  3541. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3542. "onresize": function() {}
  3543. }, {
  3544. closecallback: function() {}
  3545. }, { "style": { "height": "36px" } }).form; //创建窗体
  3546. _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); } }
  3547. break;
  3548. case "hanClassics":
  3549. _formdiv = new U.UF.UI.form(
  3550. "国学经典",
  3551. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3552. "id": "hanClassics",
  3553. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3554. "onresize": function() {}
  3555. }, {
  3556. closecallback: function() {}
  3557. }, { "style": { "height": "36px" } }).form; //创建窗体
  3558. _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); } }
  3559. break;
  3560. case "hanTraining":
  3561. _formdiv = new U.UF.UI.form(
  3562. "笔画训练",
  3563. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3564. "id": "hanTraining",
  3565. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3566. "onresize": function() {}
  3567. }, {
  3568. closecallback: function() {}
  3569. }, { "style": { "height": "36px" } }).form; //创建窗体
  3570. _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); } }
  3571. break;
  3572. case "hanClass":
  3573. _formdiv = new U.UF.UI.form(
  3574. "书法课堂",
  3575. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3576. "id": "hanClass",
  3577. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3578. "onresize": function() {}
  3579. }, {
  3580. closecallback: function() {}
  3581. }, { "style": { "height": "36px" } }).form; //创建窗体
  3582. _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); } }
  3583. break;
  3584. case "han":
  3585. _formdiv = new U.UF.UI.form(
  3586. "汉字宫",
  3587. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3588. "id": "han",
  3589. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3590. "onresize": function() {}
  3591. }, {
  3592. closecallback: function() {}
  3593. }, { "style": { "height": "36px" } }).form; //创建窗体
  3594. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3595. break;
  3596. case "projectGM": //课程管理
  3597. _formdiv = new U.UF.UI.form(
  3598. "课程管理",
  3599. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3600. "id": "projectGM",
  3601. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3602. "onresize": function() {}
  3603. }, {
  3604. closecallback: function() {}
  3605. }, { "style": { "height": "36px" } }).form; //创建窗体
  3606. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3607. break;
  3608. case "studyGM": //课程中心
  3609. _formdiv = new U.UF.UI.form(
  3610. "课程中心",
  3611. $$("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
  3612. "id": "study",
  3613. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3614. "onresize": function() {}
  3615. }, {
  3616. closecallback: function() {}
  3617. }, { "style": { "height": "36px" } }).form; //创建窗体
  3618. _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); } }
  3619. break;
  3620. // studentGM
  3621. case "studentGM": //学生管理
  3622. _formdiv = new U.UF.UI.form(
  3623. "学生管理",
  3624. $$("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 }), {
  3625. "id": "studentGM",
  3626. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3627. "onresize": function() {}
  3628. }, {
  3629. closecallback: function() {}
  3630. }, { "style": { "height": "36px" } }).form; //创建窗体
  3631. _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); } }
  3632. break;
  3633. case "evaluateGM": //学生评价
  3634. _formdiv = new U.UF.UI.form(
  3635. "学生评价",
  3636. $$("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 }), {
  3637. "id": "evaluateGM",
  3638. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3639. "onresize": function() {}
  3640. }, {
  3641. closecallback: function() {}
  3642. }, { "style": { "height": "36px" } }).form; //创建窗体
  3643. _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); } }
  3644. break;
  3645. // classGM
  3646. case "classGM": //班级管理
  3647. _formdiv = new U.UF.UI.form(
  3648. "班级管理",
  3649. $$("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 }), {
  3650. "id": "classGM",
  3651. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3652. "onresize": function() {}
  3653. }, {
  3654. closecallback: function() {}
  3655. }, { "style": { "height": "36px" } }).form; //创建窗体
  3656. _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); } }
  3657. break;
  3658. // dataGM
  3659. case "dataGM":
  3660. _formdiv = new U.UF.UI.form(
  3661. "我的资料",
  3662. $$("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 }), {
  3663. "id": "dataGM",
  3664. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3665. "onresize": function() {}
  3666. }, {
  3667. closecallback: function() {}
  3668. }, { "style": { "height": "36px" } }).form; //创建窗体
  3669. _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); } }
  3670. break;
  3671. // caseGM
  3672. case "caseGM": //课程进展
  3673. _formdiv = new U.UF.UI.form(
  3674. "课程进展",
  3675. $$("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 }), {
  3676. "id": "caseGM",
  3677. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3678. "onresize": function() {}
  3679. }, {
  3680. closecallback: function() {}
  3681. }, { "style": { "height": "36px" } }).form; //创建窗体
  3682. _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); } }
  3683. break;
  3684. // meterialGM
  3685. case "meterialGM": //素材库
  3686. _formdiv = new U.UF.UI.form(
  3687. "素材库",
  3688. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org }), {
  3689. "id": "meterialGM",
  3690. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3691. "onresize": function() {}
  3692. }, {
  3693. closecallback: function() {}
  3694. }, { "style": { "height": "36px" } }).form; //创建窗体
  3695. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  3696. break;
  3697. // evaluateSGM
  3698. case "evaluateSGM": //我的评价
  3699. _formdiv = new U.UF.UI.form(
  3700. "我的评价",
  3701. $$("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 }), {
  3702. "id": "evaluateSGM",
  3703. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3704. "onresize": function() {}
  3705. }, {
  3706. closecallback: function() {}
  3707. }, { "style": { "height": "36px" } }).form; //创建窗体
  3708. _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); } }
  3709. break;
  3710. case "jupyter": //jupyter
  3711. _formdiv = new U.UF.UI.form(
  3712. "jupyter",
  3713. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3714. "id": "jupyter",
  3715. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3716. "onresize": function() {}
  3717. }, {
  3718. closecallback: function() {}
  3719. }, { "style": { "height": "36px" } }).form; //创建窗体
  3720. _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); } }
  3721. break;
  3722. case "number": //数字实验室
  3723. _formdiv = new U.UF.UI.form(
  3724. "数字实验室",
  3725. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3726. "id": "number",
  3727. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3728. "onresize": function() {}
  3729. }, {
  3730. closecallback: function() {}
  3731. }, { "style": { "height": "36px" } }).form; //创建窗体
  3732. _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); } }
  3733. break;
  3734. case "studentCourse": //项目管理 学生
  3735. _formdiv = new U.UF.UI.form(
  3736. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3737. $$("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 }), {
  3738. "id": "studentCourse",
  3739. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3740. "onresize": function() {}
  3741. }, {
  3742. closecallback: function() {}
  3743. }, { "style": { "height": "36px" } }).form; //创建窗体
  3744. _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); } }
  3745. break;
  3746. case "studentCourseS": //项目管理 老师
  3747. _formdiv = new U.UF.UI.form(
  3748. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3749. $$("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 }), {
  3750. "id": "studentCourseS",
  3751. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3752. "onresize": function() {}
  3753. }, {
  3754. closecallback: function() {}
  3755. }, { "style": { "height": "36px" } }).form; //创建窗体
  3756. _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); } }
  3757. break;
  3758. case "studentIndex": //项目中心
  3759. _formdiv = new U.UF.UI.form(
  3760. "项目中心",
  3761. $$("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 }), {
  3762. "id": "studentIndex",
  3763. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3764. "onresize": function() {}
  3765. }, {
  3766. closecallback: function() {}
  3767. }, { "style": { "height": "36px" } }).form; //创建窗体
  3768. _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); } }
  3769. break;
  3770. case "CaseDesignS":
  3771. _formdiv = new U.UF.UI.form(
  3772. "项目进展",
  3773. $$("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 }), {
  3774. "id": "case",
  3775. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3776. "onresize": function() {}
  3777. }, {
  3778. closecallback: function() {}
  3779. }, { "style": { "height": "36px" } }).form; //创建窗体
  3780. _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); } }
  3781. break;
  3782. case "tcStudent": //腾讯学生管理
  3783. _formdiv = new U.UF.UI.form(
  3784. "学生管理",
  3785. $$("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 }), {
  3786. "id": "tcStudent",
  3787. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3788. "onresize": function() {}
  3789. }, {
  3790. closecallback: function() {}
  3791. }, { "style": { "height": "36px" } }).form; //创建窗体
  3792. _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); } }
  3793. break;
  3794. case "tcSchool": //腾讯学校管理
  3795. _formdiv = new U.UF.UI.form(
  3796. "学校管理",
  3797. $$("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 }), {
  3798. "id": "tcSchool",
  3799. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3800. "onresize": function() {}
  3801. }, {
  3802. closecallback: function() {}
  3803. }, { "style": { "height": "36px" } }).form; //创建窗体
  3804. _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); } }
  3805. break;
  3806. case "tcTeacher": //腾讯学校管理
  3807. _formdiv = new U.UF.UI.form(
  3808. "教师管理",
  3809. $$("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 }), {
  3810. "id": "tcTeacher",
  3811. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3812. "onresize": function() {}
  3813. }, {
  3814. closecallback: function() {}
  3815. }, { "style": { "height": "36px" } }).form; //创建窗体
  3816. _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); } }
  3817. break;
  3818. case "tcData": //腾讯我的资料
  3819. _formdiv = new U.UF.UI.form(
  3820. "我的资料",
  3821. $$("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 }), {
  3822. "id": "tcData",
  3823. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3824. "onresize": function() {}
  3825. }, {
  3826. closecallback: function() {}
  3827. }, { "style": { "height": "36px" } }).form; //创建窗体
  3828. _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); } }
  3829. break;
  3830. case "tcNotice": //腾讯消息通知
  3831. _formdiv = new U.UF.UI.form(
  3832. "消息通知",
  3833. $$("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 }), {
  3834. "id": "tcNotice",
  3835. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3836. "onresize": function() {}
  3837. }, {
  3838. closecallback: function() {}
  3839. }, { "style": { "height": "36px" } }).form; //创建窗体
  3840. _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); } }
  3841. break;
  3842. case "myReport": //好友打开
  3843. _formdiv = new U.UF.UI.form(
  3844. "我的评价",
  3845. $$("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 }), {
  3846. "id": "myReport",
  3847. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3848. "onresize": function() {}
  3849. }, {
  3850. closecallback: function() {}
  3851. }, { "style": { "height": "36px" } }).form; //创建窗体
  3852. _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); } }
  3853. break;
  3854. case "learnAna": //好友打开
  3855. _formdiv = new U.UF.UI.form(
  3856. "学习分析",
  3857. $$("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 }), {
  3858. "id": "learnAna",
  3859. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3860. "onresize": function() {}
  3861. }, {
  3862. closecallback: function() {}
  3863. }, { "style": { "height": "36px" } }).form; //创建窗体
  3864. _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); } }
  3865. break;
  3866. case "AIChat": //AI共创
  3867. _formdiv = new U.UF.UI.form(
  3868. "AI共创",
  3869. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3870. "id": "AIChat",
  3871. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3872. "onresize": function() {}
  3873. }, {
  3874. istop: true,
  3875. closecallback: function() { $("#aichat_icon").remove(); },
  3876. narrowcallback: function() {
  3877. if (!$("#aichat_icon")[0]) {
  3878. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function() { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3879. }
  3880. },
  3881. }, { "style": { "height": "36px" } }).form; //创建窗体
  3882. _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); } }
  3883. break;
  3884. case "ainew": //AI共创
  3885. _formdiv = new U.UF.UI.form(
  3886. "AI协同",
  3887. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ainew/" }), {
  3888. "id": "ainew",
  3889. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3890. "onresize": function() {}
  3891. }, {
  3892. closecallback: function() {}
  3893. }, { "style": { "height": "36px" } }).form; //创建窗体
  3894. _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); } }
  3895. break;
  3896. case "AIAnalyse": //AI共创
  3897. _formdiv = new U.UF.UI.form(
  3898. "AI分析",
  3899. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3900. "id": "AIAnalyse",
  3901. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3902. "onresize": function() {}
  3903. }, {
  3904. closecallback: function() {}
  3905. }, { "style": { "height": "36px" } }).form; //创建窗体
  3906. _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); } }
  3907. break;
  3908. case "studioCourse": //AI共创
  3909. _formdiv = new U.UF.UI.form(
  3910. "工作管理",
  3911. $$("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 }), {
  3912. "id": "studioCourse",
  3913. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3914. "onresize": function() {}
  3915. }, {
  3916. closecallback: function() {}
  3917. }, { "style": { "height": "36px" } }).form; //创建窗体
  3918. _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); } }
  3919. break;
  3920. case "studioIndex": //AI共创
  3921. _formdiv = new U.UF.UI.form(
  3922. "工作中心",
  3923. $$("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 }), {
  3924. "id": "studioIndex",
  3925. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3926. "onresize": function() {}
  3927. }, {
  3928. closecallback: function() {}
  3929. }, { "style": { "height": "36px" } }).form; //创建窗体
  3930. _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); } }
  3931. break;
  3932. case "source":
  3933. _formdiv = new U.UF.UI.form(
  3934. "教学资源",
  3935. $$("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 }), {
  3936. "id": "source",
  3937. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3938. "onresize": function() {}
  3939. }, {
  3940. closecallback: function() {}
  3941. }, { "style": { "height": "36px" } }).form; //创建窗体
  3942. _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); } }
  3943. break;
  3944. }
  3945. //U.MD.D.I.openClick(str);
  3946. //如果有任务栏信息
  3947. if (_taskbar) {
  3948. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3949. }
  3950. }
  3951. // U.MD.D.I.openClick = function(str){
  3952. // var click = '';
  3953. // switch(str){
  3954. // case 'friend':
  3955. // click = '我的好友';
  3956. // break;
  3957. // case 'domain':
  3958. // click = '域名管理';
  3959. // break;
  3960. // case 'disk':
  3961. // click = '我的云盘';
  3962. // break;
  3963. // case 'word':
  3964. // click = 'Word';
  3965. // break;
  3966. // case 'excel':
  3967. // click = 'Execl';
  3968. // break;
  3969. // case 'txt':
  3970. // click = '文本文件';
  3971. // break;
  3972. // case 'lookupFriend':
  3973. // click = '查找好友';
  3974. // break;
  3975. // case 'ftp':
  3976. // click = 'FTP';
  3977. // break;
  3978. // case 'group':
  3979. // click = '群组';
  3980. // break;
  3981. // case 'set':
  3982. // click = '我的设置';
  3983. // break;
  3984. // case 'systemSet':
  3985. // click = '系统设置';
  3986. // break;
  3987. // case 'boomYun':
  3988. // click = '互联办公';
  3989. // break;
  3990. // case 'xz':
  3991. // click = '云端下载';
  3992. // break;
  3993. // case 'client':
  3994. // click = '有思浏览器';
  3995. // break;
  3996. // case 'backEndProgramming':
  3997. // click = '在线后台编程';
  3998. // break;
  3999. // case 'frontEndProgramming':
  4000. // click = '在线前端编程';
  4001. // break;
  4002. // default: break;
  4003. // }
  4004. // if(U.MD.D.I.Ip && click){
  4005. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  4006. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  4007. // })
  4008. // }
  4009. // }
  4010. /**
  4011. *函数作用:ajax简易函数,使用post格式
  4012. *@param url {data} 后台地址
  4013. *@param data {data} 参数json
  4014. *@param fn {data} 回调函数
  4015. *
  4016. */
  4017. // U.MD.D.I.Mysqlrequest = function(url,fn){
  4018. // var xhr = new XMLHttpRequest();
  4019. // xhr.open("GET",url,true);
  4020. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  4021. // xhr.onreadystatechange = function(){
  4022. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  4023. // fn.call(this,xhr.responseText);
  4024. // }
  4025. // };
  4026. // xhr.send();
  4027. // }
  4028. /*判断是否是内网IP*/
  4029. // U.MD.D.I.isInnerIPFn = function(str){
  4030. // var curPageUrl = str;
  4031. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  4032. // curPageUrl =curPageUrl.replace(reg1,'');
  4033. // // console.log('curPageUrl-1 '+curPageUrl);
  4034. // var reg2 = /\:+/g;//替换冒号为一点
  4035. // curPageUrl =curPageUrl.replace(reg2,'.');
  4036. // // console.log('curPageUrl-2 '+curPageUrl);
  4037. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  4038. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  4039. // if(curPageUrl[2] != '16'){
  4040. // return ipAddress;
  4041. // }else{
  4042. // return false;
  4043. // }
  4044. // }
  4045. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  4046. // //compatibility for firefox and chrome
  4047. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  4048. // var pc = new myPeerConnection({
  4049. // iceServers: []
  4050. // }),
  4051. // noop = function() {},
  4052. // localIPs = {},
  4053. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  4054. // key;
  4055. // function iterateIP(ip) {
  4056. // if (!localIPs[ip]) onNewIP(ip);
  4057. // localIPs[ip] = true;
  4058. // }
  4059. // //create a bogus data channel
  4060. // pc.createDataChannel("");
  4061. // // create offer and set local description
  4062. // pc.createOffer().then(function(sdp) {
  4063. // sdp.sdp.split('\n').forEach(function(line) {
  4064. // if (line.indexOf('candidate') < 0) return;
  4065. // line.match(ipRegex).forEach(iterateIP);
  4066. // });
  4067. // pc.setLocalDescription(sdp, noop, noop);
  4068. // }).catch(function(reason) {
  4069. // // An error occurred, so handle the failure to connect
  4070. // });
  4071. // //sten for candidate events
  4072. // pc.onicecandidate = function(ice) {
  4073. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  4074. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  4075. // };
  4076. // }
  4077. // U.MD.D.I.getUserIpBool = function(callback){
  4078. // U.MD.D.I.getUserIP(function(ip){
  4079. // alert("Got IP! :" + ip);
  4080. // });
  4081. //}
  4082. //#endregion
  4083. U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
  4084. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4085. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4086. _userinfo = US.userInfo, //登录用户信息
  4087. _userid = US.userInfo.userid //登录用户id
  4088. let _iframe;
  4089. let _cid = cid,
  4090. _stage = stage,
  4091. _task = task,
  4092. _tool = tool;
  4093. var _jie = $$("div", {
  4094. "style": {
  4095. "position": "absolute",
  4096. "bottom": "50px",
  4097. "right": "50px",
  4098. "zIndex": "9999",
  4099. "backgroundColor": "#2268bc",
  4100. "color": "#fff",
  4101. "padding": "12px 20px",
  4102. "cursor": "pointer",
  4103. "borderRadius": "4px",
  4104. },
  4105. "innerHTML": "提交作业"
  4106. })
  4107. let aTool = ''
  4108. let _loading = document.createElement('div')
  4109. _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;"
  4110. // _loading.id = "";
  4111. let _lchild = document.createElement('div')
  4112. let _limg = document.createElement('img')
  4113. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4114. _limg.style = "width: 26px;margin-right: 10px;"
  4115. _lchild.appendChild(_limg)
  4116. let _lspan = document.createElement('span')
  4117. _lspan.innerHTML = "上传中..."
  4118. _lchild.appendChild(_lspan)
  4119. _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%);"
  4120. _loading.appendChild(_lchild)
  4121. var _box = $$('div', {
  4122. "style": {
  4123. "position": "relative",
  4124. "width": "100%",
  4125. "height": "100%",
  4126. },
  4127. })
  4128. _box.appendChild(_loading)
  4129. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
  4130. switch (str) {
  4131. case "whiteboard":
  4132. aTool = 1;
  4133. _iframe = $$("iframe", {
  4134. "frameborder": "no",
  4135. "border": "0",
  4136. "scrolling ": "no",
  4137. "style": {
  4138. "cssText": "border:0;width:100%;height:100%"
  4139. },
  4140. "src": "https://iwb.cocorobo.cn/"
  4141. })
  4142. _box.appendChild(_iframe);
  4143. _box.appendChild(_jie);
  4144. _formdiv = new U.UF.UI.form(
  4145. "电子白板",
  4146. _box, {
  4147. "id": "whiteboard" + cid + stage + task + tool,
  4148. "style": {
  4149. "width": "90%",
  4150. "height": "90%",
  4151. "overflow": 'hidden'
  4152. },
  4153. "onresize": function() {}
  4154. }, {
  4155. closecallback: function() {}
  4156. }, {
  4157. "style": {
  4158. "height": "36px"
  4159. }
  4160. }).form; //创建窗体
  4161. _taskbar = {
  4162. "id": str + _formdiv.id,
  4163. "style": {
  4164. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4165. },
  4166. "name": "电子白板",
  4167. "forms": _formdiv,
  4168. "click": function() {
  4169. U.MD.D.I.openApplication(str, obj, info);
  4170. }
  4171. }
  4172. break;
  4173. case "mind":
  4174. aTool = 3;
  4175. _iframe = $$("iframe", {
  4176. "frameborder": "no",
  4177. "border": "0",
  4178. "scrolling ": "no",
  4179. "style": {
  4180. "cssText": "border:0;width:100%;height:100%"
  4181. },
  4182. "src": "/kityminder-editor/dist/index.html"
  4183. })
  4184. _box.appendChild(_iframe);
  4185. _box.appendChild(_jie);
  4186. _formdiv = new U.UF.UI.form(
  4187. "思维导图",
  4188. _box, { //"/jsmind/example/demo.html"
  4189. "id": "mind" + cid + stage + task + tool,
  4190. "style": {
  4191. "width": "90%",
  4192. "height": "90%",
  4193. "overflow": 'hidden'
  4194. },
  4195. "onresize": function() {}
  4196. }, {
  4197. closecallback: function() {}
  4198. }, {
  4199. "style": {
  4200. "height": "36px"
  4201. }
  4202. }).form; //创建窗体
  4203. _taskbar = {
  4204. "id": str + _formdiv.id,
  4205. "style": {
  4206. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4207. },
  4208. "name": "思维导图",
  4209. "forms": _formdiv,
  4210. "click": function() {
  4211. U.MD.D.I.openApplication(str, obj, info);
  4212. }
  4213. }
  4214. break;
  4215. case "MindMap":
  4216. aTool = 3;
  4217. _iframe = $$("iframe", {
  4218. "frameborder": "no",
  4219. "border": "0",
  4220. "scrolling ": "no",
  4221. "style": {
  4222. "cssText": "border:0;width:100%;height:100%"
  4223. },
  4224. "src": "//cloud.cocorobo.cn/mind/"
  4225. })
  4226. _box.appendChild(_iframe);
  4227. _box.appendChild(_jie);
  4228. _formdiv = new U.UF.UI.form(
  4229. "思维导图",
  4230. _box, { //"/jsmind/example/demo.html"
  4231. "id": "mind" + cid + stage + task + tool,
  4232. "style": {
  4233. "width": "90%",
  4234. "height": "90%",
  4235. "overflow": 'hidden'
  4236. },
  4237. "onresize": function() {}
  4238. }, {
  4239. closecallback: function() {}
  4240. }, {
  4241. "style": {
  4242. "height": "36px"
  4243. }
  4244. }).form; //创建窗体
  4245. _taskbar = {
  4246. "id": str + _formdiv.id,
  4247. "style": {
  4248. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4249. },
  4250. "name": "思维导图",
  4251. "forms": _formdiv,
  4252. "click": function() {
  4253. U.MD.D.I.openApplication(str, obj, info);
  4254. }
  4255. }
  4256. break;
  4257. case "doc":
  4258. aTool = 6;
  4259. _iframe = $$("iframe", {
  4260. "frameborder": "no",
  4261. "border": "0",
  4262. "scrolling ": "no",
  4263. "style": {
  4264. "cssText": "border:0;width:100%;height:100%"
  4265. },
  4266. "src": "/Office/Word/WordEditArea.htm"
  4267. })
  4268. _box.appendChild(_iframe);
  4269. _box.appendChild(_jie);
  4270. _formdiv = new U.UF.UI.form(
  4271. "协同文档",
  4272. _box, {
  4273. "id": "doc" + cid + stage + task + tool,
  4274. "style": {
  4275. "width": "90%",
  4276. "height": "90%",
  4277. "overflow": 'hidden'
  4278. },
  4279. "onresize": function() {}
  4280. }, {
  4281. closecallback: function() {}
  4282. }, {
  4283. "style": {
  4284. "height": "36px"
  4285. }
  4286. }).form; //创建窗体
  4287. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4288. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4289. })
  4290. _taskbar = {
  4291. "id": str + _formdiv.id,
  4292. "style": {
  4293. "backgroundImage": "url(/img/icon/doc.png)"
  4294. },
  4295. "name": "协同文档",
  4296. "forms": _formdiv,
  4297. "click": function() {
  4298. U.MD.D.I.openApplication(str, obj, info);
  4299. }
  4300. }
  4301. break;
  4302. case "mindNetwork": //好友打开
  4303. aTool = 7;
  4304. _iframe = $$("iframe", {
  4305. "webkitallowfullscreen": "",
  4306. "mozallowfullscreen": "",
  4307. "allowfullscreen": "",
  4308. "frameborder": "no",
  4309. "border": "0",
  4310. "scrolling ": "no",
  4311. "style": {
  4312. "cssText": "border:0; width:100%; height:100%;"
  4313. },
  4314. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4315. })
  4316. _box.appendChild(_iframe);
  4317. _box.appendChild(_jie);
  4318. _formdiv = new U.UF.UI.form(
  4319. "思维网格",
  4320. _box, {
  4321. "id": "mindNetwork" + cid + stage + task + tool,
  4322. "style": {
  4323. "width": "90%",
  4324. "height": "90%",
  4325. "overflow": 'hidden'
  4326. },
  4327. "onresize": function() {}
  4328. }, {
  4329. closecallback: function() {}
  4330. }, {
  4331. "style": {
  4332. "height": "36px"
  4333. }
  4334. }).form; //创建窗体
  4335. _taskbar = {
  4336. "id": str + _formdiv.id,
  4337. "style": {
  4338. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4339. },
  4340. "name": "思维网格",
  4341. "forms": _formdiv,
  4342. "click": function() {
  4343. U.MD.D.I.openApplication(str, obj, info);
  4344. }
  4345. }
  4346. break;
  4347. case "courseDesign":
  4348. _iframe = $$("iframe", {
  4349. "webkitallowfullscreen": "",
  4350. "mozallowfullscreen": "",
  4351. "allowfullscreen": "",
  4352. "frameborder": "no",
  4353. "border": "0",
  4354. "scrolling ": "no",
  4355. "style": {
  4356. "cssText": "border:0; width:100%; height:100%;"
  4357. },
  4358. "src": "/course-design-vue"
  4359. })
  4360. _box.appendChild(_iframe);
  4361. _box.appendChild(_jie);
  4362. _formdiv = new U.UF.UI.form(
  4363. "项目设计",
  4364. _box, {
  4365. "id": "courseDesign" + cid + stage + task + tool,
  4366. "style": {
  4367. "width": "90%",
  4368. "height": "90%",
  4369. "overflow": 'hidden'
  4370. },
  4371. "onresize": function() {}
  4372. }, {
  4373. closecallback: function() {}
  4374. }, {
  4375. "style": {
  4376. "height": "36px"
  4377. }
  4378. }).form; //创建窗体
  4379. _taskbar = {
  4380. "id": str + _formdiv.id,
  4381. "style": {
  4382. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4383. },
  4384. "name": "项目设计",
  4385. "forms": _formdiv,
  4386. "click": function() {
  4387. U.MD.D.I.openApplication(str, obj, info);
  4388. }
  4389. }
  4390. break;
  4391. }
  4392. const script1 = document.createElement("script");
  4393. script1.type = "text/javascript";
  4394. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4395. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4396. const script2 = document.createElement("script");
  4397. script2.type = "text/javascript";
  4398. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4399. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4400. const script3 = document.createElement("script");
  4401. script3.type = "text/javascript";
  4402. script3.charset = "UTF-8";
  4403. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4404. const script4 = document.createElement("script");
  4405. script4.type = "text/javascript";
  4406. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4407. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4408. if (_iframe) {
  4409. if (str == 'doc') {
  4410. _iframe = _formdiv.querySelector('iframe')
  4411. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4412. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4413. _iframe.contentWindow.document.body.appendChild(script1);
  4414. _iframe.contentWindow.document.body.appendChild(script2);
  4415. // _iframe.contentWindow.document.body.appendChild(script3);
  4416. _iframe.contentWindow.document.body.appendChild(script4);
  4417. })
  4418. if (onloadListener) {
  4419. _iframe.contentDocument.location.reload()
  4420. } else {
  4421. _iframe.contentDocument.location.reload()
  4422. }
  4423. } else if (str == 'courseDesign') {
  4424. U.UF.DL.iframeLoad(_iframe, function() {
  4425. // _iframe.contentWindow.U.MD.O.W.load();
  4426. // _iframe.contentWindow.document.body.appendChild(script1);
  4427. _iframe.contentWindow.document.body.appendChild(script2);
  4428. _iframe.contentWindow.document.body.appendChild(script4);
  4429. })
  4430. } else if (str == 'mind') {
  4431. _iframe = _formdiv.querySelector('iframe')
  4432. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4433. //
  4434. _iframe.contentWindow.document.body.appendChild(script1);
  4435. _iframe.contentWindow.document.body.appendChild(script2);
  4436. _iframe.contentWindow.document.body.appendChild(script4);
  4437. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4438. })
  4439. if (onloadListener) {
  4440. _iframe.contentDocument.location.reload()
  4441. } else {
  4442. _iframe.contentDocument.location.reload()
  4443. }
  4444. } else if (str == 'whiteboard') {
  4445. _iframe = _formdiv.querySelector('iframe')
  4446. let onloadListener = _iframe.onload = () => {
  4447. _iframe.contentWindow.document.body.appendChild(script1);
  4448. _iframe.contentWindow.document.body.appendChild(script2);
  4449. _iframe.contentWindow.document.body.appendChild(script4);
  4450. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4451. };
  4452. if (onloadListener) {
  4453. _iframe.contentDocument.location.reload()
  4454. } else {
  4455. _iframe.contentDocument.location.reload()
  4456. }
  4457. } else {
  4458. _iframe.onload = () => {
  4459. _iframe.contentWindow.document.body.appendChild(script1);
  4460. _iframe.contentWindow.document.body.appendChild(script2);
  4461. // _iframe.contentWindow.document.body.appendChild(script3);
  4462. _iframe.contentWindow.document.body.appendChild(script4);
  4463. };
  4464. }
  4465. _jie.onclick = async() => {
  4466. let text = ''
  4467. if (aTool == 1) {
  4468. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4469. } else if (aTool == 6) {
  4470. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4471. } else if (aTool == 3) {
  4472. text = await U.MD.D.I.getEditorContent(_iframe);
  4473. }
  4474. _loading.style.display = 'flex'
  4475. console.log(_loading);
  4476. var _ajs = _iframe.contentWindow.document.createElement("script");
  4477. _ajs.type = "text/javascript";
  4478. _ajs.innerHTML =
  4479. // 'console.log(' + _loading + ');\n' +
  4480. 'var _js = document.createElement("script");\n' +
  4481. '_js.type="text/javascript";\n' +
  4482. '_js.charset="UTF-8";\n' +
  4483. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4484. "_js.onload = function(){\n" +
  4485. ' var a = document.getElementsByTagName("img")\n' +
  4486. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4487. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4488. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4489. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4490. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4491. "beforeUpload_shishi(file," +
  4492. "'" +
  4493. _userid +
  4494. "'" +
  4495. ", " +
  4496. "'" +
  4497. _cid +
  4498. "'" +
  4499. ", " +
  4500. "'" +
  4501. _stage +
  4502. "'" +
  4503. ", " +
  4504. "'" +
  4505. _task +
  4506. "'" +
  4507. ", " +
  4508. "'" +
  4509. _tool +
  4510. "'" +
  4511. ", " +
  4512. "'" +
  4513. (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
  4514. "'" +
  4515. ", " +
  4516. "'" +
  4517. aTool +
  4518. "'" +
  4519. ", " +
  4520. "`" +
  4521. text +
  4522. "`" +
  4523. ")\n" +
  4524. " });\n" +
  4525. "}\n" +
  4526. "document.head.appendChild(_js);\n";
  4527. _iframe.contentWindow.document.head.appendChild(_ajs);
  4528. }
  4529. }
  4530. //U.MD.D.I.openClick(str);
  4531. //如果有任务栏信息
  4532. // if (_taskbar) {
  4533. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4534. // }
  4535. }
  4536. U.MD.D.I.openApplicationJieE = function(str, cid, stage, task, tool) {
  4537. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4538. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4539. _userinfo = US.userInfo, //登录用户信息
  4540. _userid = US.userInfo.userid //登录用户id
  4541. let _iframe;
  4542. let _cid = cid,
  4543. _stage = stage,
  4544. _task = task,
  4545. _tool = tool;
  4546. var _jie = $$("div", {
  4547. "style": {
  4548. "position": "absolute",
  4549. "bottom": "50px",
  4550. "right": "50px",
  4551. "zIndex": "9999",
  4552. "backgroundColor": "#2268bc",
  4553. "color": "#fff",
  4554. "padding": "12px 20px",
  4555. "cursor": "pointer",
  4556. "borderRadius": "4px",
  4557. },
  4558. "innerHTML": "提交作业"
  4559. })
  4560. let aTool = ''
  4561. let _loading = document.createElement('div')
  4562. _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;"
  4563. // _loading.id = "";
  4564. let _lchild = document.createElement('div')
  4565. let _limg = document.createElement('img')
  4566. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4567. _limg.style = "width: 26px;margin-right: 10px;"
  4568. _lchild.appendChild(_limg)
  4569. let _lspan = document.createElement('span')
  4570. _lspan.innerHTML = "上传中..."
  4571. _lchild.appendChild(_lspan)
  4572. _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%);"
  4573. _loading.appendChild(_lchild)
  4574. var _box = $$('div', {
  4575. "style": {
  4576. "position": "relative",
  4577. "width": "100%",
  4578. "height": "100%",
  4579. },
  4580. })
  4581. _box.appendChild(_loading)
  4582. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
  4583. switch (str) {
  4584. case "whiteboard":
  4585. aTool = 1;
  4586. _iframe = $$("iframe", {
  4587. "frameborder": "no",
  4588. "border": "0",
  4589. "scrolling ": "no",
  4590. "style": {
  4591. "cssText": "border:0;width:100%;height:100%"
  4592. },
  4593. "src": "https://iwb.cocorobo.cn/"
  4594. })
  4595. _box.appendChild(_iframe);
  4596. _box.appendChild(_jie);
  4597. _formdiv = new U.UF.UI.form(
  4598. "电子白板",
  4599. _box, {
  4600. "id": "whiteboard" + cid + stage + task + tool,
  4601. "style": {
  4602. "width": "90%",
  4603. "height": "90%",
  4604. "overflow": 'hidden'
  4605. },
  4606. "onresize": function() {}
  4607. }, {
  4608. closecallback: function() {}
  4609. }, {
  4610. "style": {
  4611. "height": "36px"
  4612. }
  4613. }).form; //创建窗体
  4614. _taskbar = {
  4615. "id": str + _formdiv.id,
  4616. "style": {
  4617. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4618. },
  4619. "name": "电子白板",
  4620. "forms": _formdiv,
  4621. "click": function() {
  4622. U.MD.D.I.openApplication(str, obj, info);
  4623. }
  4624. }
  4625. break;
  4626. case "mind":
  4627. aTool = 3;
  4628. _iframe = $$("iframe", {
  4629. "frameborder": "no",
  4630. "border": "0",
  4631. "scrolling ": "no",
  4632. "style": {
  4633. "cssText": "border:0;width:100%;height:100%"
  4634. },
  4635. "src": "/kityminder-editor/dist/index.html"
  4636. })
  4637. _box.appendChild(_iframe);
  4638. _box.appendChild(_jie);
  4639. _formdiv = new U.UF.UI.form(
  4640. "思维导图",
  4641. _box, { //"/jsmind/example/demo.html"
  4642. "id": "mind" + cid + stage + task + tool,
  4643. "style": {
  4644. "width": "90%",
  4645. "height": "90%",
  4646. "overflow": 'hidden'
  4647. },
  4648. "onresize": function() {}
  4649. }, {
  4650. closecallback: function() {}
  4651. }, {
  4652. "style": {
  4653. "height": "36px"
  4654. }
  4655. }).form; //创建窗体
  4656. _taskbar = {
  4657. "id": str + _formdiv.id,
  4658. "style": {
  4659. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4660. },
  4661. "name": "思维导图",
  4662. "forms": _formdiv,
  4663. "click": function() {
  4664. U.MD.D.I.openApplication(str, obj, info);
  4665. }
  4666. }
  4667. break;
  4668. case "MindMap":
  4669. aTool = 3;
  4670. _iframe = $$("iframe", {
  4671. "frameborder": "no",
  4672. "border": "0",
  4673. "scrolling ": "no",
  4674. "style": {
  4675. "cssText": "border:0;width:100%;height:100%"
  4676. },
  4677. "src": "//cloud.cocorobo.cn/mind/"
  4678. })
  4679. _box.appendChild(_iframe);
  4680. _box.appendChild(_jie);
  4681. _formdiv = new U.UF.UI.form(
  4682. "思维导图",
  4683. _box, { //"/jsmind/example/demo.html"
  4684. "id": "mind" + cid + stage + task + tool,
  4685. "style": {
  4686. "width": "90%",
  4687. "height": "90%",
  4688. "overflow": 'hidden'
  4689. },
  4690. "onresize": function() {}
  4691. }, {
  4692. closecallback: function() {}
  4693. }, {
  4694. "style": {
  4695. "height": "36px"
  4696. }
  4697. }).form; //创建窗体
  4698. _taskbar = {
  4699. "id": str + _formdiv.id,
  4700. "style": {
  4701. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4702. },
  4703. "name": "思维导图",
  4704. "forms": _formdiv,
  4705. "click": function() {
  4706. U.MD.D.I.openApplication(str, obj, info);
  4707. }
  4708. }
  4709. break;
  4710. case "doc":
  4711. aTool = 6;
  4712. _iframe = $$("iframe", {
  4713. "frameborder": "no",
  4714. "border": "0",
  4715. "scrolling ": "no",
  4716. "style": {
  4717. "cssText": "border:0;width:100%;height:100%"
  4718. },
  4719. "src": "/Office/Word/WordEditArea.htm"
  4720. })
  4721. _box.appendChild(_iframe);
  4722. _box.appendChild(_jie);
  4723. _formdiv = new U.UF.UI.form(
  4724. "协同文档",
  4725. _box, {
  4726. "id": "doc" + cid + stage + task + tool,
  4727. "style": {
  4728. "width": "90%",
  4729. "height": "90%",
  4730. "overflow": 'hidden'
  4731. },
  4732. "onresize": function() {}
  4733. }, {
  4734. closecallback: function() {}
  4735. }, {
  4736. "style": {
  4737. "height": "36px"
  4738. }
  4739. }).form; //创建窗体
  4740. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  4741. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4742. })
  4743. _taskbar = {
  4744. "id": str + _formdiv.id,
  4745. "style": {
  4746. "backgroundImage": "url(/img/icon/doc.png)"
  4747. },
  4748. "name": "协同文档",
  4749. "forms": _formdiv,
  4750. "click": function() {
  4751. U.MD.D.I.openApplication(str, obj, info);
  4752. }
  4753. }
  4754. break;
  4755. case "mindNetwork": //好友打开
  4756. aTool = 7;
  4757. _iframe = $$("iframe", {
  4758. "webkitallowfullscreen": "",
  4759. "mozallowfullscreen": "",
  4760. "allowfullscreen": "",
  4761. "frameborder": "no",
  4762. "border": "0",
  4763. "scrolling ": "no",
  4764. "style": {
  4765. "cssText": "border:0; width:100%; height:100%;"
  4766. },
  4767. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4768. })
  4769. _box.appendChild(_iframe);
  4770. _box.appendChild(_jie);
  4771. _formdiv = new U.UF.UI.form(
  4772. "思维网格",
  4773. _box, {
  4774. "id": "mindNetwork" + cid + stage + task + tool,
  4775. "style": {
  4776. "width": "90%",
  4777. "height": "90%",
  4778. "overflow": 'hidden'
  4779. },
  4780. "onresize": function() {}
  4781. }, {
  4782. closecallback: function() {}
  4783. }, {
  4784. "style": {
  4785. "height": "36px"
  4786. }
  4787. }).form; //创建窗体
  4788. _taskbar = {
  4789. "id": str + _formdiv.id,
  4790. "style": {
  4791. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4792. },
  4793. "name": "思维网格",
  4794. "forms": _formdiv,
  4795. "click": function() {
  4796. U.MD.D.I.openApplication(str, obj, info);
  4797. }
  4798. }
  4799. break;
  4800. case "courseDesign":
  4801. _iframe = $$("iframe", {
  4802. "webkitallowfullscreen": "",
  4803. "mozallowfullscreen": "",
  4804. "allowfullscreen": "",
  4805. "frameborder": "no",
  4806. "border": "0",
  4807. "scrolling ": "no",
  4808. "style": {
  4809. "cssText": "border:0; width:100%; height:100%;"
  4810. },
  4811. "src": "/course-design-vue"
  4812. })
  4813. _box.appendChild(_iframe);
  4814. _box.appendChild(_jie);
  4815. _formdiv = new U.UF.UI.form(
  4816. "项目设计",
  4817. _box, {
  4818. "id": "courseDesign" + cid + stage + task + tool,
  4819. "style": {
  4820. "width": "90%",
  4821. "height": "90%",
  4822. "overflow": 'hidden'
  4823. },
  4824. "onresize": function() {}
  4825. }, {
  4826. closecallback: function() {}
  4827. }, {
  4828. "style": {
  4829. "height": "36px"
  4830. }
  4831. }).form; //创建窗体
  4832. _taskbar = {
  4833. "id": str + _formdiv.id,
  4834. "style": {
  4835. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4836. },
  4837. "name": "项目设计",
  4838. "forms": _formdiv,
  4839. "click": function() {
  4840. U.MD.D.I.openApplication(str, obj, info);
  4841. }
  4842. }
  4843. break;
  4844. }
  4845. const script1 = document.createElement("script");
  4846. script1.type = "text/javascript";
  4847. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4848. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4849. const script2 = document.createElement("script");
  4850. script2.type = "text/javascript";
  4851. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4852. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4853. const script3 = document.createElement("script");
  4854. script3.type = "text/javascript";
  4855. script3.charset = "UTF-8";
  4856. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4857. const script4 = document.createElement("script");
  4858. script4.type = "text/javascript";
  4859. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4860. script4.src = window.origin + "/js/Common/jietu2E.js";
  4861. if (_iframe) {
  4862. if (str == 'doc') {
  4863. _iframe = _formdiv.querySelector('iframe')
  4864. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4865. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4866. _iframe.contentWindow.document.body.appendChild(script1);
  4867. _iframe.contentWindow.document.body.appendChild(script2);
  4868. // _iframe.contentWindow.document.body.appendChild(script3);
  4869. _iframe.contentWindow.document.body.appendChild(script4);
  4870. })
  4871. if (onloadListener) {
  4872. _iframe.contentDocument.location.reload()
  4873. } else {
  4874. _iframe.contentDocument.location.reload()
  4875. }
  4876. } else if (str == 'courseDesign') {
  4877. U.UF.DL.iframeLoad(_iframe, function() {
  4878. // _iframe.contentWindow.U.MD.O.W.load();
  4879. // _iframe.contentWindow.document.body.appendChild(script1);
  4880. _iframe.contentWindow.document.body.appendChild(script2);
  4881. _iframe.contentWindow.document.body.appendChild(script4);
  4882. })
  4883. } else if (str == 'mind') {
  4884. _iframe = _formdiv.querySelector('iframe')
  4885. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  4886. //
  4887. _iframe.contentWindow.document.body.appendChild(script1);
  4888. _iframe.contentWindow.document.body.appendChild(script2);
  4889. _iframe.contentWindow.document.body.appendChild(script4);
  4890. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4891. })
  4892. if (onloadListener) {
  4893. _iframe.contentDocument.location.reload()
  4894. } else {
  4895. _iframe.contentDocument.location.reload()
  4896. }
  4897. } else if (str == 'whiteboard') {
  4898. _iframe = _formdiv.querySelector('iframe')
  4899. let onloadListener = _iframe.onload = () => {
  4900. _iframe.contentWindow.document.body.appendChild(script1);
  4901. _iframe.contentWindow.document.body.appendChild(script2);
  4902. _iframe.contentWindow.document.body.appendChild(script4);
  4903. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4904. };
  4905. if (onloadListener) {
  4906. _iframe.contentDocument.location.reload()
  4907. } else {
  4908. _iframe.contentDocument.location.reload()
  4909. }
  4910. } else {
  4911. _iframe.onload = () => {
  4912. _iframe.contentWindow.document.body.appendChild(script1);
  4913. _iframe.contentWindow.document.body.appendChild(script2);
  4914. // _iframe.contentWindow.document.body.appendChild(script3);
  4915. _iframe.contentWindow.document.body.appendChild(script4);
  4916. };
  4917. }
  4918. _jie.onclick = async() => {
  4919. let text = ''
  4920. if (aTool == 1) {
  4921. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4922. } else if (aTool == 6) {
  4923. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4924. } else if (aTool == 3) {
  4925. text = await U.MD.D.I.getEditorContent(_iframe);
  4926. }
  4927. _loading.style.display = 'flex'
  4928. console.log(_loading);
  4929. var _ajs = _iframe.contentWindow.document.createElement("script");
  4930. _ajs.type = "text/javascript";
  4931. _ajs.innerHTML =
  4932. // 'console.log(' + _loading + ');\n' +
  4933. 'var _js = document.createElement("script");\n' +
  4934. '_js.type="text/javascript";\n' +
  4935. '_js.charset="UTF-8";\n' +
  4936. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4937. "_js.onload = function(){\n" +
  4938. ' var a = document.getElementsByTagName("img")\n' +
  4939. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4940. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4941. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4942. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4943. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4944. "beforeUpload_shishi(file," +
  4945. "'" +
  4946. _userid +
  4947. "'" +
  4948. ", " +
  4949. "'" +
  4950. _cid +
  4951. "'" +
  4952. ", " +
  4953. "'" +
  4954. _stage +
  4955. "'" +
  4956. ", " +
  4957. "'" +
  4958. _task +
  4959. "'" +
  4960. ", " +
  4961. "'" +
  4962. _tool +
  4963. "'" +
  4964. ", " +
  4965. "'" +
  4966. (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
  4967. "'" +
  4968. ", " +
  4969. "'" +
  4970. aTool +
  4971. "'" +
  4972. ", " +
  4973. "`" +
  4974. text +
  4975. "`" +
  4976. ")\n" +
  4977. " });\n" +
  4978. "}\n" +
  4979. "document.head.appendChild(_js);\n";
  4980. _iframe.contentWindow.document.head.appendChild(_ajs);
  4981. }
  4982. }
  4983. //U.MD.D.I.openClick(str);
  4984. //如果有任务栏信息
  4985. // if (_taskbar) {
  4986. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4987. // }
  4988. }
  4989. U.MD.D.I.openApplicationJieTeacher = function(str, cid, stage, task, tool, student) {
  4990. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4991. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4992. _userid = student.userid, //登录用户id
  4993. _username = student.student //用户名字
  4994. let _iframe;
  4995. let _cid = cid,
  4996. _stage = stage,
  4997. _task = task,
  4998. _tool = tool;
  4999. var _jie = $$("div", {
  5000. "style": {
  5001. "position": "absolute",
  5002. "bottom": "50px",
  5003. "right": "50px",
  5004. "zIndex": "9999",
  5005. "backgroundColor": "#2268bc",
  5006. "color": "#fff",
  5007. "padding": "12px 20px",
  5008. "cursor": "pointer",
  5009. "borderRadius": "4px",
  5010. },
  5011. "innerHTML": "提交作业"
  5012. })
  5013. let aTool = ''
  5014. let _loading = document.createElement('div')
  5015. _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;"
  5016. // _loading.id = "";
  5017. let _lchild = document.createElement('div')
  5018. let _limg = document.createElement('img')
  5019. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5020. _limg.style = "width: 26px;margin-right: 10px;"
  5021. _lchild.appendChild(_limg)
  5022. let _lspan = document.createElement('span')
  5023. _lspan.innerHTML = "上传中..."
  5024. _lchild.appendChild(_lspan)
  5025. _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%);"
  5026. _loading.appendChild(_lchild)
  5027. var _box = $$('div', {
  5028. "style": {
  5029. "position": "relative",
  5030. "width": "100%",
  5031. "height": "100%",
  5032. },
  5033. })
  5034. _box.appendChild(_loading)
  5035. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
  5036. switch (str) {
  5037. case "whiteboard":
  5038. aTool = 1;
  5039. _iframe = $$("iframe", {
  5040. "frameborder": "no",
  5041. "border": "0",
  5042. "scrolling ": "no",
  5043. "style": {
  5044. "cssText": "border:0;width:100%;height:100%"
  5045. },
  5046. "src": "https://iwb.cocorobo.cn/"
  5047. })
  5048. _box.appendChild(_iframe);
  5049. _box.appendChild(_jie);
  5050. _formdiv = new U.UF.UI.form(
  5051. "电子白板-" + _username,
  5052. _box, {
  5053. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5054. "style": {
  5055. "width": "90%",
  5056. "height": "90%",
  5057. "overflow": 'hidden'
  5058. },
  5059. "onresize": function() {}
  5060. }, {
  5061. closecallback: function() {}
  5062. }, {
  5063. "style": {
  5064. "height": "36px"
  5065. }
  5066. }).form; //创建窗体
  5067. _taskbar = {
  5068. "id": str + _formdiv.id,
  5069. "style": {
  5070. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5071. },
  5072. "name": "电子白板",
  5073. "forms": _formdiv,
  5074. "click": function() {
  5075. U.MD.D.I.openApplication(str, obj, info);
  5076. }
  5077. }
  5078. break;
  5079. case "mind":
  5080. aTool = 3;
  5081. _iframe = $$("iframe", {
  5082. "frameborder": "no",
  5083. "border": "0",
  5084. "scrolling ": "no",
  5085. "style": {
  5086. "cssText": "border:0;width:100%;height:100%"
  5087. },
  5088. "src": "/kityminder-editor/dist/index.html"
  5089. })
  5090. _box.appendChild(_iframe);
  5091. _box.appendChild(_jie);
  5092. _formdiv = new U.UF.UI.form(
  5093. "思维导图-" + _username,
  5094. _box, { //"/jsmind/example/demo.html"
  5095. "id": "mind" + cid + stage + task + tool + _userid,
  5096. "style": {
  5097. "width": "90%",
  5098. "height": "90%",
  5099. "overflow": 'hidden'
  5100. },
  5101. "onresize": function() {}
  5102. }, {
  5103. closecallback: function() {}
  5104. }, {
  5105. "style": {
  5106. "height": "36px"
  5107. }
  5108. }).form; //创建窗体
  5109. _taskbar = {
  5110. "id": str + _formdiv.id,
  5111. "style": {
  5112. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5113. },
  5114. "name": "思维导图",
  5115. "forms": _formdiv,
  5116. "click": function() {
  5117. U.MD.D.I.openApplication(str, obj, info);
  5118. }
  5119. }
  5120. break;
  5121. case "MindMap":
  5122. aTool = 3;
  5123. _iframe = $$("iframe", {
  5124. "frameborder": "no",
  5125. "border": "0",
  5126. "scrolling ": "no",
  5127. "style": {
  5128. "cssText": "border:0;width:100%;height:100%"
  5129. },
  5130. "src": "//cloud.cocorobo.cn/mind/"
  5131. })
  5132. _box.appendChild(_iframe);
  5133. _box.appendChild(_jie);
  5134. _formdiv = new U.UF.UI.form(
  5135. "思维导图-" + _username,
  5136. _box, { //"/jsmind/example/demo.html"
  5137. "id": "mind" + cid + stage + task + tool + _userid,
  5138. "style": {
  5139. "width": "90%",
  5140. "height": "90%",
  5141. "overflow": 'hidden'
  5142. },
  5143. "onresize": function() {}
  5144. }, {
  5145. closecallback: function() {}
  5146. }, {
  5147. "style": {
  5148. "height": "36px"
  5149. }
  5150. }).form; //创建窗体
  5151. _taskbar = {
  5152. "id": str + _formdiv.id,
  5153. "style": {
  5154. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5155. },
  5156. "name": "思维导图",
  5157. "forms": _formdiv,
  5158. "click": function() {
  5159. U.MD.D.I.openApplication(str, obj, info);
  5160. }
  5161. }
  5162. break;
  5163. case "doc":
  5164. aTool = 6;
  5165. _iframe = $$("iframe", {
  5166. "frameborder": "no",
  5167. "border": "0",
  5168. "scrolling ": "no",
  5169. "style": {
  5170. "cssText": "border:0;width:100%;height:100%"
  5171. },
  5172. "src": "/Office/Word/WordEditArea.htm"
  5173. })
  5174. _box.appendChild(_iframe);
  5175. _box.appendChild(_jie);
  5176. _formdiv = new U.UF.UI.form(
  5177. "协同文档-" + _username,
  5178. _box, {
  5179. "id": "doc" + cid + stage + task + tool + _userid,
  5180. "style": {
  5181. "width": "90%",
  5182. "height": "90%",
  5183. "overflow": 'hidden'
  5184. },
  5185. "onresize": function() {}
  5186. }, {
  5187. closecallback: function() {}
  5188. }, {
  5189. "style": {
  5190. "height": "36px"
  5191. }
  5192. }).form; //创建窗体
  5193. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5194. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5195. })
  5196. _taskbar = {
  5197. "id": str + _formdiv.id,
  5198. "style": {
  5199. "backgroundImage": "url(/img/icon/doc.png)"
  5200. },
  5201. "name": "协同文档",
  5202. "forms": _formdiv,
  5203. "click": function() {
  5204. U.MD.D.I.openApplication(str, obj, info);
  5205. }
  5206. }
  5207. break;
  5208. case "mindNetwork": //好友打开
  5209. aTool = 7;
  5210. _iframe = $$("iframe", {
  5211. "webkitallowfullscreen": "",
  5212. "mozallowfullscreen": "",
  5213. "allowfullscreen": "",
  5214. "frameborder": "no",
  5215. "border": "0",
  5216. "scrolling ": "no",
  5217. "style": {
  5218. "cssText": "border:0; width:100%; height:100%;"
  5219. },
  5220. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5221. })
  5222. _box.appendChild(_iframe);
  5223. _box.appendChild(_jie);
  5224. _formdiv = new U.UF.UI.form(
  5225. "思维网格-" + _username,
  5226. _box, {
  5227. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5228. "style": {
  5229. "width": "90%",
  5230. "height": "90%",
  5231. "overflow": 'hidden'
  5232. },
  5233. "onresize": function() {}
  5234. }, {
  5235. closecallback: function() {}
  5236. }, {
  5237. "style": {
  5238. "height": "36px"
  5239. }
  5240. }).form; //创建窗体
  5241. _taskbar = {
  5242. "id": str + _formdiv.id,
  5243. "style": {
  5244. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5245. },
  5246. "name": "思维网格",
  5247. "forms": _formdiv,
  5248. "click": function() {
  5249. U.MD.D.I.openApplication(str, obj, info);
  5250. }
  5251. }
  5252. break;
  5253. case "courseDesign":
  5254. _iframe = $$("iframe", {
  5255. "webkitallowfullscreen": "",
  5256. "mozallowfullscreen": "",
  5257. "allowfullscreen": "",
  5258. "frameborder": "no",
  5259. "border": "0",
  5260. "scrolling ": "no",
  5261. "style": {
  5262. "cssText": "border:0; width:100%; height:100%;"
  5263. },
  5264. "src": "/course-design-vue"
  5265. })
  5266. _box.appendChild(_iframe);
  5267. _box.appendChild(_jie);
  5268. _formdiv = new U.UF.UI.form(
  5269. "项目设计-" + _username,
  5270. _box, {
  5271. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5272. "style": {
  5273. "width": "90%",
  5274. "height": "90%",
  5275. "overflow": 'hidden'
  5276. },
  5277. "onresize": function() {}
  5278. }, {
  5279. closecallback: function() {}
  5280. }, {
  5281. "style": {
  5282. "height": "36px"
  5283. }
  5284. }).form; //创建窗体
  5285. _taskbar = {
  5286. "id": str + _formdiv.id,
  5287. "style": {
  5288. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5289. },
  5290. "name": "项目设计",
  5291. "forms": _formdiv,
  5292. "click": function() {
  5293. U.MD.D.I.openApplication(str, obj, info);
  5294. }
  5295. }
  5296. break;
  5297. }
  5298. const script1 = document.createElement("script");
  5299. script1.type = "text/javascript";
  5300. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5301. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5302. const script2 = document.createElement("script");
  5303. script2.type = "text/javascript";
  5304. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5305. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5306. const script3 = document.createElement("script");
  5307. script3.type = "text/javascript";
  5308. script3.charset = "UTF-8";
  5309. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5310. const script4 = document.createElement("script");
  5311. script4.type = "text/javascript";
  5312. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5313. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  5314. if (_iframe) {
  5315. if (str == 'doc') {
  5316. _iframe = _formdiv.querySelector('iframe')
  5317. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5318. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5319. _iframe.contentWindow.document.body.appendChild(script1);
  5320. _iframe.contentWindow.document.body.appendChild(script2);
  5321. // _iframe.contentWindow.document.body.appendChild(script3);
  5322. _iframe.contentWindow.document.body.appendChild(script4);
  5323. })
  5324. if (onloadListener) {
  5325. _iframe.contentDocument.location.reload()
  5326. } else {
  5327. _iframe.contentDocument.location.reload()
  5328. }
  5329. } else if (str == 'courseDesign') {
  5330. U.UF.DL.iframeLoad(_iframe, function() {
  5331. // _iframe.contentWindow.U.MD.O.W.load();
  5332. // _iframe.contentWindow.document.body.appendChild(script1);
  5333. _iframe.contentWindow.document.body.appendChild(script2);
  5334. _iframe.contentWindow.document.body.appendChild(script4);
  5335. })
  5336. } else if (str == 'mind') {
  5337. _iframe = _formdiv.querySelector('iframe')
  5338. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5339. //
  5340. _iframe.contentWindow.document.body.appendChild(script1);
  5341. _iframe.contentWindow.document.body.appendChild(script2);
  5342. _iframe.contentWindow.document.body.appendChild(script4);
  5343. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5344. })
  5345. if (onloadListener) {
  5346. _iframe.contentDocument.location.reload()
  5347. } else {
  5348. _iframe.contentDocument.location.reload()
  5349. }
  5350. } else if (str == 'whiteboard') {
  5351. _iframe = _formdiv.querySelector('iframe')
  5352. let onloadListener = _iframe.onload = () => {
  5353. _iframe.contentWindow.document.body.appendChild(script1);
  5354. _iframe.contentWindow.document.body.appendChild(script2);
  5355. _iframe.contentWindow.document.body.appendChild(script4);
  5356. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5357. };
  5358. if (onloadListener) {
  5359. _iframe.contentDocument.location.reload()
  5360. } else {
  5361. _iframe.contentDocument.location.reload()
  5362. }
  5363. } else {
  5364. _iframe.onload = () => {
  5365. _iframe.contentWindow.document.body.appendChild(script1);
  5366. _iframe.contentWindow.document.body.appendChild(script2);
  5367. // _iframe.contentWindow.document.body.appendChild(script3);
  5368. _iframe.contentWindow.document.body.appendChild(script4);
  5369. };
  5370. }
  5371. _jie.onclick = async() => {
  5372. let text = ''
  5373. if (aTool == 1) {
  5374. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5375. } else if (aTool == 6) {
  5376. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5377. } else if (aTool == 3) {
  5378. text = await U.MD.D.I.getEditorContent(_iframe);
  5379. }
  5380. _loading.style.display = 'flex'
  5381. console.log(_loading);
  5382. var _ajs = _iframe.contentWindow.document.createElement("script");
  5383. _ajs.type = "text/javascript";
  5384. _ajs.innerHTML =
  5385. // 'console.log(' + _loading + ');\n' +
  5386. 'var _js = document.createElement("script");\n' +
  5387. '_js.type="text/javascript";\n' +
  5388. '_js.charset="UTF-8";\n' +
  5389. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5390. "_js.onload = function(){\n" +
  5391. ' var a = document.getElementsByTagName("img")\n' +
  5392. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5393. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5394. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5395. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5396. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5397. "beforeUpload_shishi(file," +
  5398. "'" +
  5399. _userid +
  5400. "'" +
  5401. ", " +
  5402. "'" +
  5403. _cid +
  5404. "'" +
  5405. ", " +
  5406. "'" +
  5407. _stage +
  5408. "'" +
  5409. ", " +
  5410. "'" +
  5411. _task +
  5412. "'" +
  5413. ", " +
  5414. "'" +
  5415. _tool +
  5416. "'" +
  5417. ", " +
  5418. "'" +
  5419. (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
  5420. "'" +
  5421. ", " +
  5422. "'" +
  5423. aTool +
  5424. "'" +
  5425. ", " +
  5426. "`" +
  5427. text +
  5428. "`" +
  5429. ")\n" +
  5430. " });\n" +
  5431. "}\n" +
  5432. "document.head.appendChild(_js);\n";
  5433. _iframe.contentWindow.document.head.appendChild(_ajs);
  5434. }
  5435. }
  5436. }
  5437. U.MD.D.I.openApplicationJieTeacherE = function(str, cid, stage, task, tool, student) {
  5438. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5439. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5440. _userid = student.userid, //登录用户id
  5441. _username = student.student //用户名字
  5442. let _iframe;
  5443. let _cid = cid,
  5444. _stage = stage,
  5445. _task = task,
  5446. _tool = tool;
  5447. var _jie = $$("div", {
  5448. "style": {
  5449. "position": "absolute",
  5450. "bottom": "50px",
  5451. "right": "50px",
  5452. "zIndex": "9999",
  5453. "backgroundColor": "#2268bc",
  5454. "color": "#fff",
  5455. "padding": "12px 20px",
  5456. "cursor": "pointer",
  5457. "borderRadius": "4px",
  5458. },
  5459. "innerHTML": "提交作业"
  5460. })
  5461. let aTool = ''
  5462. let _loading = document.createElement('div')
  5463. _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;"
  5464. // _loading.id = "";
  5465. let _lchild = document.createElement('div')
  5466. let _limg = document.createElement('img')
  5467. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5468. _limg.style = "width: 26px;margin-right: 10px;"
  5469. _lchild.appendChild(_limg)
  5470. let _lspan = document.createElement('span')
  5471. _lspan.innerHTML = "上传中..."
  5472. _lchild.appendChild(_lspan)
  5473. _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%);"
  5474. _loading.appendChild(_lchild)
  5475. var _box = $$('div', {
  5476. "style": {
  5477. "position": "relative",
  5478. "width": "100%",
  5479. "height": "100%",
  5480. },
  5481. })
  5482. _box.appendChild(_loading)
  5483. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5484. switch (str) {
  5485. case "whiteboard":
  5486. aTool = 1;
  5487. _iframe = $$("iframe", {
  5488. "frameborder": "no",
  5489. "border": "0",
  5490. "scrolling ": "no",
  5491. "style": {
  5492. "cssText": "border:0;width:100%;height:100%"
  5493. },
  5494. "src": "https://iwb.cocorobo.cn/"
  5495. })
  5496. _box.appendChild(_iframe);
  5497. _box.appendChild(_jie);
  5498. _formdiv = new U.UF.UI.form(
  5499. "电子白板-" + _username,
  5500. _box, {
  5501. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5502. "style": {
  5503. "width": "90%",
  5504. "height": "90%",
  5505. "overflow": 'hidden'
  5506. },
  5507. "onresize": function() {}
  5508. }, {
  5509. closecallback: function() {}
  5510. }, {
  5511. "style": {
  5512. "height": "36px"
  5513. }
  5514. }).form; //创建窗体
  5515. _taskbar = {
  5516. "id": str + _formdiv.id,
  5517. "style": {
  5518. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5519. },
  5520. "name": "电子白板",
  5521. "forms": _formdiv,
  5522. "click": function() {
  5523. U.MD.D.I.openApplication(str, obj, info);
  5524. }
  5525. }
  5526. break;
  5527. case "mind":
  5528. aTool = 3;
  5529. _iframe = $$("iframe", {
  5530. "frameborder": "no",
  5531. "border": "0",
  5532. "scrolling ": "no",
  5533. "style": {
  5534. "cssText": "border:0;width:100%;height:100%"
  5535. },
  5536. "src": "/kityminder-editor/dist/index.html"
  5537. })
  5538. _box.appendChild(_iframe);
  5539. _box.appendChild(_jie);
  5540. _formdiv = new U.UF.UI.form(
  5541. "思维导图-" + _username,
  5542. _box, { //"/jsmind/example/demo.html"
  5543. "id": "mind" + cid + stage + task + tool + _userid,
  5544. "style": {
  5545. "width": "90%",
  5546. "height": "90%",
  5547. "overflow": 'hidden'
  5548. },
  5549. "onresize": function() {}
  5550. }, {
  5551. closecallback: function() {}
  5552. }, {
  5553. "style": {
  5554. "height": "36px"
  5555. }
  5556. }).form; //创建窗体
  5557. _taskbar = {
  5558. "id": str + _formdiv.id,
  5559. "style": {
  5560. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5561. },
  5562. "name": "思维导图",
  5563. "forms": _formdiv,
  5564. "click": function() {
  5565. U.MD.D.I.openApplication(str, obj, info);
  5566. }
  5567. }
  5568. break;
  5569. case "MindMap":
  5570. aTool = 3;
  5571. _iframe = $$("iframe", {
  5572. "frameborder": "no",
  5573. "border": "0",
  5574. "scrolling ": "no",
  5575. "style": {
  5576. "cssText": "border:0;width:100%;height:100%"
  5577. },
  5578. "src": "//cloud.cocorobo.cn/mind/"
  5579. })
  5580. _box.appendChild(_iframe);
  5581. _box.appendChild(_jie);
  5582. _formdiv = new U.UF.UI.form(
  5583. "思维导图-" + _username,
  5584. _box, { //"/jsmind/example/demo.html"
  5585. "id": "mind" + cid + stage + task + tool + _userid,
  5586. "style": {
  5587. "width": "90%",
  5588. "height": "90%",
  5589. "overflow": 'hidden'
  5590. },
  5591. "onresize": function() {}
  5592. }, {
  5593. closecallback: function() {}
  5594. }, {
  5595. "style": {
  5596. "height": "36px"
  5597. }
  5598. }).form; //创建窗体
  5599. _taskbar = {
  5600. "id": str + _formdiv.id,
  5601. "style": {
  5602. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5603. },
  5604. "name": "思维导图",
  5605. "forms": _formdiv,
  5606. "click": function() {
  5607. U.MD.D.I.openApplication(str, obj, info);
  5608. }
  5609. }
  5610. break;
  5611. case "doc":
  5612. aTool = 6;
  5613. _iframe = $$("iframe", {
  5614. "frameborder": "no",
  5615. "border": "0",
  5616. "scrolling ": "no",
  5617. "style": {
  5618. "cssText": "border:0;width:100%;height:100%"
  5619. },
  5620. "src": "/Office/Word/WordEditArea.htm"
  5621. })
  5622. _box.appendChild(_iframe);
  5623. _box.appendChild(_jie);
  5624. _formdiv = new U.UF.UI.form(
  5625. "协同文档-" + _username,
  5626. _box, {
  5627. "id": "doc" + cid + stage + task + tool + _userid,
  5628. "style": {
  5629. "width": "90%",
  5630. "height": "90%",
  5631. "overflow": 'hidden'
  5632. },
  5633. "onresize": function() {}
  5634. }, {
  5635. closecallback: function() {}
  5636. }, {
  5637. "style": {
  5638. "height": "36px"
  5639. }
  5640. }).form; //创建窗体
  5641. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  5642. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5643. })
  5644. _taskbar = {
  5645. "id": str + _formdiv.id,
  5646. "style": {
  5647. "backgroundImage": "url(/img/icon/doc.png)"
  5648. },
  5649. "name": "协同文档",
  5650. "forms": _formdiv,
  5651. "click": function() {
  5652. U.MD.D.I.openApplication(str, obj, info);
  5653. }
  5654. }
  5655. break;
  5656. case "mindNetwork": //好友打开
  5657. aTool = 7;
  5658. _iframe = $$("iframe", {
  5659. "webkitallowfullscreen": "",
  5660. "mozallowfullscreen": "",
  5661. "allowfullscreen": "",
  5662. "frameborder": "no",
  5663. "border": "0",
  5664. "scrolling ": "no",
  5665. "style": {
  5666. "cssText": "border:0; width:100%; height:100%;"
  5667. },
  5668. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5669. })
  5670. _box.appendChild(_iframe);
  5671. _box.appendChild(_jie);
  5672. _formdiv = new U.UF.UI.form(
  5673. "思维网格-" + _username,
  5674. _box, {
  5675. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5676. "style": {
  5677. "width": "90%",
  5678. "height": "90%",
  5679. "overflow": 'hidden'
  5680. },
  5681. "onresize": function() {}
  5682. }, {
  5683. closecallback: function() {}
  5684. }, {
  5685. "style": {
  5686. "height": "36px"
  5687. }
  5688. }).form; //创建窗体
  5689. _taskbar = {
  5690. "id": str + _formdiv.id,
  5691. "style": {
  5692. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5693. },
  5694. "name": "思维网格",
  5695. "forms": _formdiv,
  5696. "click": function() {
  5697. U.MD.D.I.openApplication(str, obj, info);
  5698. }
  5699. }
  5700. break;
  5701. case "courseDesign":
  5702. _iframe = $$("iframe", {
  5703. "webkitallowfullscreen": "",
  5704. "mozallowfullscreen": "",
  5705. "allowfullscreen": "",
  5706. "frameborder": "no",
  5707. "border": "0",
  5708. "scrolling ": "no",
  5709. "style": {
  5710. "cssText": "border:0; width:100%; height:100%;"
  5711. },
  5712. "src": "/course-design-vue"
  5713. })
  5714. _box.appendChild(_iframe);
  5715. _box.appendChild(_jie);
  5716. _formdiv = new U.UF.UI.form(
  5717. "项目设计-" + _username,
  5718. _box, {
  5719. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5720. "style": {
  5721. "width": "90%",
  5722. "height": "90%",
  5723. "overflow": 'hidden'
  5724. },
  5725. "onresize": function() {}
  5726. }, {
  5727. closecallback: function() {}
  5728. }, {
  5729. "style": {
  5730. "height": "36px"
  5731. }
  5732. }).form; //创建窗体
  5733. _taskbar = {
  5734. "id": str + _formdiv.id,
  5735. "style": {
  5736. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5737. },
  5738. "name": "项目设计",
  5739. "forms": _formdiv,
  5740. "click": function() {
  5741. U.MD.D.I.openApplication(str, obj, info);
  5742. }
  5743. }
  5744. break;
  5745. }
  5746. const script1 = document.createElement("script");
  5747. script1.type = "text/javascript";
  5748. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5749. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5750. const script2 = document.createElement("script");
  5751. script2.type = "text/javascript";
  5752. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5753. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5754. const script3 = document.createElement("script");
  5755. script3.type = "text/javascript";
  5756. script3.charset = "UTF-8";
  5757. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5758. const script4 = document.createElement("script");
  5759. script4.type = "text/javascript";
  5760. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5761. script4.src = window.origin + "/js/Common/jietu2E.js";
  5762. if (_iframe) {
  5763. if (str == 'doc') {
  5764. _iframe = _formdiv.querySelector('iframe')
  5765. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5766. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5767. _iframe.contentWindow.document.body.appendChild(script1);
  5768. _iframe.contentWindow.document.body.appendChild(script2);
  5769. // _iframe.contentWindow.document.body.appendChild(script3);
  5770. _iframe.contentWindow.document.body.appendChild(script4);
  5771. })
  5772. if (onloadListener) {
  5773. _iframe.contentDocument.location.reload()
  5774. } else {
  5775. _iframe.contentDocument.location.reload()
  5776. }
  5777. } else if (str == 'courseDesign') {
  5778. U.UF.DL.iframeLoad(_iframe, function() {
  5779. // _iframe.contentWindow.U.MD.O.W.load();
  5780. // _iframe.contentWindow.document.body.appendChild(script1);
  5781. _iframe.contentWindow.document.body.appendChild(script2);
  5782. _iframe.contentWindow.document.body.appendChild(script4);
  5783. })
  5784. } else if (str == 'mind') {
  5785. _iframe = _formdiv.querySelector('iframe')
  5786. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  5787. //
  5788. _iframe.contentWindow.document.body.appendChild(script1);
  5789. _iframe.contentWindow.document.body.appendChild(script2);
  5790. _iframe.contentWindow.document.body.appendChild(script4);
  5791. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5792. })
  5793. if (onloadListener) {
  5794. _iframe.contentDocument.location.reload()
  5795. } else {
  5796. _iframe.contentDocument.location.reload()
  5797. }
  5798. } else if (str == 'whiteboard') {
  5799. _iframe = _formdiv.querySelector('iframe')
  5800. let onloadListener = _iframe.onload = () => {
  5801. _iframe.contentWindow.document.body.appendChild(script1);
  5802. _iframe.contentWindow.document.body.appendChild(script2);
  5803. _iframe.contentWindow.document.body.appendChild(script4);
  5804. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5805. };
  5806. if (onloadListener) {
  5807. _iframe.contentDocument.location.reload()
  5808. } else {
  5809. _iframe.contentDocument.location.reload()
  5810. }
  5811. } else {
  5812. _iframe.onload = () => {
  5813. _iframe.contentWindow.document.body.appendChild(script1);
  5814. _iframe.contentWindow.document.body.appendChild(script2);
  5815. // _iframe.contentWindow.document.body.appendChild(script3);
  5816. _iframe.contentWindow.document.body.appendChild(script4);
  5817. };
  5818. }
  5819. _jie.onclick = async() => {
  5820. let text = ''
  5821. if (aTool == 1) {
  5822. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5823. } else if (aTool == 6) {
  5824. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5825. } else if (aTool == 3) {
  5826. text = await U.MD.D.I.getEditorContent(_iframe);
  5827. }
  5828. _loading.style.display = 'flex'
  5829. console.log(_loading);
  5830. var _ajs = _iframe.contentWindow.document.createElement("script");
  5831. _ajs.type = "text/javascript";
  5832. _ajs.innerHTML =
  5833. // 'console.log(' + _loading + ');\n' +
  5834. 'var _js = document.createElement("script");\n' +
  5835. '_js.type="text/javascript";\n' +
  5836. '_js.charset="UTF-8";\n' +
  5837. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5838. "_js.onload = function(){\n" +
  5839. ' var a = document.getElementsByTagName("img")\n' +
  5840. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5841. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5842. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5843. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5844. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5845. "beforeUpload_shishi(file," +
  5846. "'" +
  5847. _userid +
  5848. "'" +
  5849. ", " +
  5850. "'" +
  5851. _cid +
  5852. "'" +
  5853. ", " +
  5854. "'" +
  5855. _stage +
  5856. "'" +
  5857. ", " +
  5858. "'" +
  5859. _task +
  5860. "'" +
  5861. ", " +
  5862. "'" +
  5863. _tool +
  5864. "'" +
  5865. ", " +
  5866. "'" +
  5867. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
  5868. "'" +
  5869. ", " +
  5870. "'" +
  5871. aTool +
  5872. "'" +
  5873. ", " +
  5874. "`" +
  5875. text +
  5876. "`" +
  5877. ")\n" +
  5878. " });\n" +
  5879. "}\n" +
  5880. "document.head.appendChild(_js);\n";
  5881. _iframe.contentWindow.document.head.appendChild(_ajs);
  5882. }
  5883. }
  5884. }
  5885. U.MD.D.I.getEditorContent = function(iframe) {
  5886. return new Promise((resolve, reject) => {
  5887. iframe.contentWindow.editor.minder.exportData('json').then(function(content) {
  5888. console.log(content);
  5889. resolve(content)
  5890. });
  5891. });
  5892. }
  5893. U.MD.D.I.getContent = function(cid, s, task, t, uid, type, iframe) {
  5894. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5895. // if (res.value[0].length > 0) {
  5896. // // resolve(res.value[0][0].text);
  5897. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5898. // $(fileInput).val('');
  5899. // });
  5900. // }
  5901. // }, [], { "type": "GET", "withCredentials": true });
  5902. var xmlhttp;
  5903. var Mac, Sn, DeviceId
  5904. if (window.XMLHttpRequest) {
  5905. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5906. xmlhttp = new XMLHttpRequest();
  5907. } else {
  5908. // IE6, IE5 浏览器执行代码
  5909. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5910. }
  5911. xmlhttp.onreadystatechange = function() {
  5912. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5913. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5914. // resolve(res.value[0][0].text);
  5915. if (type == '2') {
  5916. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5917. } else if (type == '3') {
  5918. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5919. }
  5920. } else {
  5921. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5922. }
  5923. }
  5924. }
  5925. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5926. xmlhttp.send();
  5927. }
  5928. U.MD.D.I.openApplicationJieS = function(str, cid, stage, task, tool) {
  5929. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5930. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5931. _userinfo = US.userInfo, //登录用户信息
  5932. _userid = US.userInfo.userid //登录用户id
  5933. let _iframe;
  5934. let _cid = cid,
  5935. _stage = stage,
  5936. _task = task,
  5937. _tool = tool;
  5938. var _jie = $$("div", {
  5939. "style": {
  5940. "position": "absolute",
  5941. "bottom": "50px",
  5942. "right": "50px",
  5943. "zIndex": "9999",
  5944. "backgroundColor": "#2268bc",
  5945. "color": "#fff",
  5946. "padding": "12px 20px",
  5947. "cursor": "pointer",
  5948. "borderRadius": "4px",
  5949. },
  5950. "innerHTML": "确认并提交"
  5951. })
  5952. let aTool = ''
  5953. let _loading = document.createElement('div')
  5954. _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;"
  5955. // _loading.id = "";
  5956. let _lchild = document.createElement('div')
  5957. let _limg = document.createElement('img')
  5958. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5959. _limg.style = "width: 26px;margin-right: 10px;"
  5960. _lchild.appendChild(_limg)
  5961. let _lspan = document.createElement('span')
  5962. _lspan.innerHTML = "上传中..."
  5963. _lchild.appendChild(_lspan)
  5964. _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%);"
  5965. _loading.appendChild(_lchild)
  5966. var _box = $$('div', {
  5967. "style": {
  5968. "position": "relative",
  5969. "width": "100%",
  5970. "height": "100%",
  5971. },
  5972. })
  5973. _box.appendChild(_loading)
  5974. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
  5975. switch (str) {
  5976. case "whiteboard":
  5977. aTool = 1;
  5978. _iframe = $$("iframe", {
  5979. "frameborder": "no",
  5980. "border": "0",
  5981. "scrolling ": "no",
  5982. "style": {
  5983. "cssText": "border:0;width:100%;height:100%"
  5984. },
  5985. "src": "https://iwb.cocorobo.cn/"
  5986. })
  5987. _box.appendChild(_iframe);
  5988. _box.appendChild(_jie);
  5989. _formdiv = new U.UF.UI.form(
  5990. "电子白板",
  5991. _box, {
  5992. "id": "whiteboards" + cid + stage + task + tool,
  5993. "style": {
  5994. "width": "90%",
  5995. "height": "90%",
  5996. "overflow": 'hidden'
  5997. },
  5998. "onresize": function() {}
  5999. }, {
  6000. closecallback: function() {}
  6001. }, {
  6002. "style": {
  6003. "height": "36px"
  6004. }
  6005. }).form; //创建窗体
  6006. _taskbar = {
  6007. "id": str + _formdiv.id,
  6008. "style": {
  6009. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6010. },
  6011. "name": "电子白板",
  6012. "forms": _formdiv,
  6013. "click": function() {
  6014. U.MD.D.I.openApplication(str, obj, info);
  6015. }
  6016. }
  6017. break;
  6018. case "mind":
  6019. aTool = 3;
  6020. _iframe = $$("iframe", {
  6021. "frameborder": "no",
  6022. "border": "0",
  6023. "scrolling ": "no",
  6024. "style": {
  6025. "cssText": "border:0;width:100%;height:100%"
  6026. },
  6027. "src": "/kityminder-editor/dist/index.html"
  6028. });
  6029. _box.appendChild(_iframe);
  6030. _box.appendChild(_jie);
  6031. _formdiv = new U.UF.UI.form(
  6032. "思维导图",
  6033. _box, { //"/jsmind/example/demo.html"
  6034. "id": "minds" + cid + stage + task + tool,
  6035. "style": {
  6036. "width": "90%",
  6037. "height": "90%",
  6038. "overflow": 'hidden'
  6039. },
  6040. "onresize": function() {}
  6041. }, {
  6042. closecallback: function() {}
  6043. }, {
  6044. "style": {
  6045. "height": "36px"
  6046. }
  6047. }).form; //创建窗体
  6048. _taskbar = {
  6049. "id": str + _formdiv.id,
  6050. "style": {
  6051. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6052. },
  6053. "name": "思维导图",
  6054. "forms": _formdiv,
  6055. "click": function() {
  6056. U.MD.D.I.openApplication(str, obj, info);
  6057. }
  6058. }
  6059. break;
  6060. case "doc":
  6061. aTool = 6;
  6062. _iframe = $$("iframe", {
  6063. "frameborder": "no",
  6064. "border": "0",
  6065. "scrolling ": "no",
  6066. "style": {
  6067. "cssText": "border:0;width:100%;height:100%"
  6068. },
  6069. "src": "/Office/Word/WordEditArea.htm"
  6070. })
  6071. _box.appendChild(_iframe);
  6072. _box.appendChild(_jie);
  6073. _formdiv = new U.UF.UI.form(
  6074. "协同文档",
  6075. _box, {
  6076. "id": "docs" + cid + stage + task + tool,
  6077. "style": {
  6078. "width": "90%",
  6079. "height": "90%",
  6080. "overflow": 'hidden'
  6081. },
  6082. "onresize": function() {}
  6083. }, {
  6084. closecallback: function() {}
  6085. }, {
  6086. "style": {
  6087. "height": "36px"
  6088. }
  6089. }).form; //创建窗体
  6090. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6091. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6092. })
  6093. _taskbar = {
  6094. "id": str + _formdiv.id,
  6095. "style": {
  6096. "backgroundImage": "url(/img/icon/doc.png)"
  6097. },
  6098. "name": "协同文档",
  6099. "forms": _formdiv,
  6100. "click": function() {
  6101. U.MD.D.I.openApplication(str, obj, info);
  6102. }
  6103. }
  6104. break;
  6105. }
  6106. const script1 = document.createElement("script");
  6107. script1.type = "text/javascript";
  6108. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6109. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6110. const script2 = document.createElement("script");
  6111. script2.type = "text/javascript";
  6112. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6113. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6114. const script3 = document.createElement("script");
  6115. script3.type = "text/javascript";
  6116. script3.charset = "UTF-8";
  6117. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6118. const script4 = document.createElement("script");
  6119. script4.type = "text/javascript";
  6120. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6121. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  6122. if (_iframe) {
  6123. if (str == 'doc') {
  6124. _iframe = _formdiv.querySelector('iframe')
  6125. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6126. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6127. _iframe.contentWindow.document.body.appendChild(script1);
  6128. _iframe.contentWindow.document.body.appendChild(script2);
  6129. // _iframe.contentWindow.document.body.appendChild(script3);
  6130. _iframe.contentWindow.document.body.appendChild(script4);
  6131. })
  6132. if (onloadListener) {
  6133. _iframe.contentDocument.location.reload()
  6134. } else {
  6135. _iframe.contentDocument.location.reload()
  6136. }
  6137. } else if (str == 'mind') {
  6138. _iframe = _formdiv.querySelector('iframe')
  6139. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6140. _iframe.contentWindow.document.body.appendChild(script1);
  6141. _iframe.contentWindow.document.body.appendChild(script2);
  6142. _iframe.contentWindow.document.body.appendChild(script4);
  6143. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6144. })
  6145. if (onloadListener) {
  6146. _iframe.contentDocument.location.reload()
  6147. } else {
  6148. _iframe.contentDocument.location.reload()
  6149. }
  6150. } else {
  6151. _iframe.onload = () => {
  6152. _iframe.contentWindow.document.body.appendChild(script1);
  6153. _iframe.contentWindow.document.body.appendChild(script2);
  6154. // _iframe.contentWindow.document.body.appendChild(script3);
  6155. _iframe.contentWindow.document.body.appendChild(script4);
  6156. };
  6157. }
  6158. _jie.onclick = async() => {
  6159. let text = ''
  6160. if (aTool == 6) {
  6161. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6162. } else if (aTool == 3) {
  6163. text = await U.MD.D.I.getEditorContent(_iframe);
  6164. }
  6165. _loading.style.display = 'flex'
  6166. console.log(_loading);
  6167. var _ajs = _iframe.contentWindow.document.createElement("script");
  6168. _ajs.type = "text/javascript";
  6169. _ajs.innerHTML =
  6170. // 'console.log(' + _loading + ');\n' +
  6171. 'var _js = document.createElement("script");\n' +
  6172. '_js.type="text/javascript";\n' +
  6173. '_js.charset="UTF-8";\n' +
  6174. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6175. "_js.onload = function(){\n" +
  6176. ' var a = document.getElementsByTagName("img")\n' +
  6177. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6178. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6179. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6180. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6181. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6182. "beforeUpload_shishi(file," +
  6183. "'" +
  6184. _userid +
  6185. "'" +
  6186. ", " +
  6187. "'" +
  6188. _cid +
  6189. "'" +
  6190. ", " +
  6191. "'" +
  6192. _stage +
  6193. "'" +
  6194. ", " +
  6195. "'" +
  6196. _task +
  6197. "'" +
  6198. ", " +
  6199. "'" +
  6200. _tool +
  6201. "'" +
  6202. ", " +
  6203. "'" +
  6204. (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
  6205. "'" +
  6206. ", " +
  6207. "'" +
  6208. aTool +
  6209. "'" +
  6210. ", " +
  6211. "`" +
  6212. text +
  6213. "`" +
  6214. ")\n" +
  6215. " });\n" +
  6216. "}\n" +
  6217. "document.head.appendChild(_js);\n";
  6218. _iframe.contentWindow.document.head.appendChild(_ajs);
  6219. }
  6220. }
  6221. //U.MD.D.I.openClick(str);
  6222. //如果有任务栏信息
  6223. // if (_taskbar) {
  6224. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6225. // }
  6226. }
  6227. U.MD.D.I.openApplicationJieStudio = function(str, cid, stage, task, tool) {
  6228. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6229. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6230. _userinfo = US.userInfo, //登录用户信息
  6231. _userid = US.userInfo.userid //登录用户id
  6232. let _iframe;
  6233. let _cid = cid,
  6234. _stage = stage,
  6235. _task = task,
  6236. _tool = tool;
  6237. var _jie = $$("div", {
  6238. "style": {
  6239. "position": "absolute",
  6240. "bottom": "50px",
  6241. "right": "50px",
  6242. "zIndex": "9999",
  6243. "backgroundColor": "#2268bc",
  6244. "color": "#fff",
  6245. "padding": "12px 20px",
  6246. "cursor": "pointer",
  6247. "borderRadius": "4px",
  6248. },
  6249. "innerHTML": "确认并提交"
  6250. })
  6251. let aTool = ''
  6252. let _loading = document.createElement('div')
  6253. _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;"
  6254. // _loading.id = "";
  6255. let _lchild = document.createElement('div')
  6256. let _limg = document.createElement('img')
  6257. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6258. _limg.style = "width: 26px;margin-right: 10px;"
  6259. _lchild.appendChild(_limg)
  6260. let _lspan = document.createElement('span')
  6261. _lspan.innerHTML = "上传中..."
  6262. _lchild.appendChild(_lspan)
  6263. _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%);"
  6264. _loading.appendChild(_lchild)
  6265. var _box = $$('div', {
  6266. "style": {
  6267. "position": "relative",
  6268. "width": "100%",
  6269. "height": "100%",
  6270. },
  6271. })
  6272. _box.appendChild(_loading)
  6273. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
  6274. switch (str) {
  6275. case "whiteboard":
  6276. aTool = 1;
  6277. _iframe = $$("iframe", {
  6278. "frameborder": "no",
  6279. "border": "0",
  6280. "scrolling ": "no",
  6281. "style": {
  6282. "cssText": "border:0;width:100%;height:100%"
  6283. },
  6284. "src": "https://iwb.cocorobo.cn/"
  6285. })
  6286. _box.appendChild(_iframe);
  6287. _box.appendChild(_jie);
  6288. _formdiv = new U.UF.UI.form(
  6289. "电子白板",
  6290. _box, {
  6291. "id": "whiteboards" + cid + stage + task + tool,
  6292. "style": {
  6293. "width": "90%",
  6294. "height": "90%",
  6295. "overflow": 'hidden'
  6296. },
  6297. "onresize": function() {}
  6298. }, {
  6299. closecallback: function() {}
  6300. }, {
  6301. "style": {
  6302. "height": "36px"
  6303. }
  6304. }).form; //创建窗体
  6305. _taskbar = {
  6306. "id": str + _formdiv.id,
  6307. "style": {
  6308. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6309. },
  6310. "name": "电子白板",
  6311. "forms": _formdiv,
  6312. "click": function() {
  6313. U.MD.D.I.openApplication(str, obj, info);
  6314. }
  6315. }
  6316. break;
  6317. case "mind":
  6318. aTool = 3;
  6319. _iframe = $$("iframe", {
  6320. "frameborder": "no",
  6321. "border": "0",
  6322. "scrolling ": "no",
  6323. "style": {
  6324. "cssText": "border:0;width:100%;height:100%"
  6325. },
  6326. "src": "/kityminder-editor/dist/index.html"
  6327. });
  6328. _box.appendChild(_iframe);
  6329. _box.appendChild(_jie);
  6330. _formdiv = new U.UF.UI.form(
  6331. "思维导图",
  6332. _box, { //"/jsmind/example/demo.html"
  6333. "id": "minds" + cid + stage + task + tool,
  6334. "style": {
  6335. "width": "90%",
  6336. "height": "90%",
  6337. "overflow": 'hidden'
  6338. },
  6339. "onresize": function() {}
  6340. }, {
  6341. closecallback: function() {}
  6342. }, {
  6343. "style": {
  6344. "height": "36px"
  6345. }
  6346. }).form; //创建窗体
  6347. _taskbar = {
  6348. "id": str + _formdiv.id,
  6349. "style": {
  6350. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6351. },
  6352. "name": "思维导图",
  6353. "forms": _formdiv,
  6354. "click": function() {
  6355. U.MD.D.I.openApplication(str, obj, info);
  6356. }
  6357. }
  6358. break;
  6359. case "doc":
  6360. aTool = 6;
  6361. _iframe = $$("iframe", {
  6362. "frameborder": "no",
  6363. "border": "0",
  6364. "scrolling ": "no",
  6365. "style": {
  6366. "cssText": "border:0;width:100%;height:100%"
  6367. },
  6368. "src": "/Office/Word/WordEditArea.htm"
  6369. })
  6370. _box.appendChild(_iframe);
  6371. _box.appendChild(_jie);
  6372. _formdiv = new U.UF.UI.form(
  6373. "协同文档",
  6374. _box, {
  6375. "id": "docs" + cid + stage + task + tool,
  6376. "style": {
  6377. "width": "90%",
  6378. "height": "90%",
  6379. "overflow": 'hidden'
  6380. },
  6381. "onresize": function() {}
  6382. }, {
  6383. closecallback: function() {}
  6384. }, {
  6385. "style": {
  6386. "height": "36px"
  6387. }
  6388. }).form; //创建窗体
  6389. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6390. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6391. })
  6392. _taskbar = {
  6393. "id": str + _formdiv.id,
  6394. "style": {
  6395. "backgroundImage": "url(/img/icon/doc.png)"
  6396. },
  6397. "name": "协同文档",
  6398. "forms": _formdiv,
  6399. "click": function() {
  6400. U.MD.D.I.openApplication(str, obj, info);
  6401. }
  6402. }
  6403. break;
  6404. }
  6405. const script1 = document.createElement("script");
  6406. script1.type = "text/javascript";
  6407. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6408. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6409. const script2 = document.createElement("script");
  6410. script2.type = "text/javascript";
  6411. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6412. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6413. const script3 = document.createElement("script");
  6414. script3.type = "text/javascript";
  6415. script3.charset = "UTF-8";
  6416. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6417. const script4 = document.createElement("script");
  6418. script4.type = "text/javascript";
  6419. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6420. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6421. if (_iframe) {
  6422. if (str == 'doc') {
  6423. _iframe = _formdiv.querySelector('iframe')
  6424. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6425. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6426. _iframe.contentWindow.document.body.appendChild(script1);
  6427. _iframe.contentWindow.document.body.appendChild(script2);
  6428. // _iframe.contentWindow.document.body.appendChild(script3);
  6429. _iframe.contentWindow.document.body.appendChild(script4);
  6430. })
  6431. if (onloadListener) {
  6432. _iframe.contentDocument.location.reload()
  6433. } else {
  6434. _iframe.contentDocument.location.reload()
  6435. }
  6436. } else if (str == 'mind') {
  6437. _iframe = _formdiv.querySelector('iframe')
  6438. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6439. _iframe.contentWindow.document.body.appendChild(script1);
  6440. _iframe.contentWindow.document.body.appendChild(script2);
  6441. _iframe.contentWindow.document.body.appendChild(script4);
  6442. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6443. })
  6444. if (onloadListener) {
  6445. _iframe.contentDocument.location.reload()
  6446. } else {
  6447. _iframe.contentDocument.location.reload()
  6448. }
  6449. } else {
  6450. _iframe.onload = () => {
  6451. _iframe.contentWindow.document.body.appendChild(script1);
  6452. _iframe.contentWindow.document.body.appendChild(script2);
  6453. // _iframe.contentWindow.document.body.appendChild(script3);
  6454. _iframe.contentWindow.document.body.appendChild(script4);
  6455. };
  6456. }
  6457. _jie.onclick = async() => {
  6458. let text = ''
  6459. if (aTool == 6) {
  6460. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6461. } else if (aTool == 3) {
  6462. text = await U.MD.D.I.getEditorContent(_iframe);
  6463. }
  6464. _loading.style.display = 'flex'
  6465. console.log(_loading);
  6466. var _ajs = _iframe.contentWindow.document.createElement("script");
  6467. _ajs.type = "text/javascript";
  6468. _ajs.innerHTML =
  6469. // 'console.log(' + _loading + ');\n' +
  6470. 'var _js = document.createElement("script");\n' +
  6471. '_js.type="text/javascript";\n' +
  6472. '_js.charset="UTF-8";\n' +
  6473. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6474. "_js.onload = function(){\n" +
  6475. ' var a = document.getElementsByTagName("img")\n' +
  6476. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6477. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6478. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6479. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6480. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6481. "beforeUpload_shishi(file," +
  6482. "'" +
  6483. _userid +
  6484. "'" +
  6485. ", " +
  6486. "'" +
  6487. _cid +
  6488. "'" +
  6489. ", " +
  6490. "'" +
  6491. _stage +
  6492. "'" +
  6493. ", " +
  6494. "'" +
  6495. _task +
  6496. "'" +
  6497. ", " +
  6498. "'" +
  6499. _tool +
  6500. "'" +
  6501. ", " +
  6502. "'" +
  6503. (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
  6504. "'" +
  6505. ", " +
  6506. "'" +
  6507. aTool +
  6508. "'" +
  6509. ", " +
  6510. "`" +
  6511. text +
  6512. "`" +
  6513. ")\n" +
  6514. " });\n" +
  6515. "}\n" +
  6516. "document.head.appendChild(_js);\n";
  6517. _iframe.contentWindow.document.head.appendChild(_ajs);
  6518. }
  6519. }
  6520. //U.MD.D.I.openClick(str);
  6521. //如果有任务栏信息
  6522. // if (_taskbar) {
  6523. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6524. // }
  6525. }
  6526. U.MD.D.I.openApplicationYu = function(str, cid, stage, task, tool) {
  6527. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6528. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6529. _userinfo = US.userInfo, //登录用户信息
  6530. _userid = US.userInfo.userid //登录用户id
  6531. let _iframe;
  6532. let _cid = cid,
  6533. _stage = stage,
  6534. _task = task,
  6535. _tool = tool;
  6536. var _jie = $$("div", {
  6537. "style": {
  6538. "position": "absolute",
  6539. "bottom": "50px",
  6540. "right": "50px",
  6541. "zIndex": "9999",
  6542. "backgroundColor": "#2268bc",
  6543. "color": "#fff",
  6544. "padding": "12px 20px",
  6545. "cursor": "pointer",
  6546. "borderRadius": "4px",
  6547. },
  6548. "innerHTML": "上传模板"
  6549. })
  6550. let aTool = ''
  6551. let _loading = document.createElement('div')
  6552. _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;"
  6553. // _loading.id = "";
  6554. let _lchild = document.createElement('div')
  6555. let _limg = document.createElement('img')
  6556. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6557. _limg.style = "width: 26px;margin-right: 10px;"
  6558. _lchild.appendChild(_limg)
  6559. let _lspan = document.createElement('span')
  6560. _lspan.innerHTML = "上传中..."
  6561. _lchild.appendChild(_lspan)
  6562. _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%);"
  6563. _loading.appendChild(_lchild)
  6564. var _box = $$('div', {
  6565. "style": {
  6566. "position": "relative",
  6567. "width": "100%",
  6568. "height": "100%",
  6569. },
  6570. })
  6571. _box.appendChild(_loading)
  6572. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
  6573. switch (str) {
  6574. case "whiteboard":
  6575. aTool = 1;
  6576. _iframe = $$("iframe", {
  6577. "frameborder": "no",
  6578. "border": "0",
  6579. "scrolling ": "no",
  6580. "style": {
  6581. "cssText": "border:0;width:100%;height:100%"
  6582. },
  6583. "src": "https://iwb.cocorobo.cn/"
  6584. })
  6585. _box.appendChild(_iframe);
  6586. _box.appendChild(_jie);
  6587. _formdiv = new U.UF.UI.form(
  6588. "电子白板",
  6589. _box, {
  6590. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6591. "style": {
  6592. "width": "90%",
  6593. "height": "90%",
  6594. "overflow": 'hidden'
  6595. },
  6596. "onresize": function() {}
  6597. }, {
  6598. closecallback: function() {}
  6599. }, {
  6600. "style": {
  6601. "height": "36px"
  6602. }
  6603. }).form; //创建窗体
  6604. _taskbar = {
  6605. "id": str + _formdiv.id,
  6606. "style": {
  6607. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6608. },
  6609. "name": "电子白板",
  6610. "forms": _formdiv,
  6611. "click": function() {
  6612. U.MD.D.I.openApplication(str, obj, info);
  6613. }
  6614. }
  6615. break;
  6616. case "mind":
  6617. aTool = 3;
  6618. _iframe = $$("iframe", {
  6619. "frameborder": "no",
  6620. "border": "0",
  6621. "scrolling ": "no",
  6622. "style": {
  6623. "cssText": "border:0;width:100%;height:100%"
  6624. },
  6625. "src": "/kityminder-editor/dist/index.html"
  6626. });
  6627. _box.appendChild(_iframe);
  6628. _box.appendChild(_jie);
  6629. _formdiv = new U.UF.UI.form(
  6630. "思维导图",
  6631. _box, { //"/jsmind/example/demo.html"
  6632. "id": "minds_Yu" + cid + stage + task + tool,
  6633. "style": {
  6634. "width": "90%",
  6635. "height": "90%",
  6636. "overflow": 'hidden'
  6637. },
  6638. "onresize": function() {}
  6639. }, {
  6640. closecallback: function() {}
  6641. }, {
  6642. "style": {
  6643. "height": "36px"
  6644. }
  6645. }).form; //创建窗体
  6646. _taskbar = {
  6647. "id": str + _formdiv.id,
  6648. "style": {
  6649. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6650. },
  6651. "name": "思维导图",
  6652. "forms": _formdiv,
  6653. "click": function() {
  6654. U.MD.D.I.openApplication(str, obj, info);
  6655. }
  6656. }
  6657. break;
  6658. case "doc":
  6659. aTool = 6;
  6660. _iframe = $$("iframe", {
  6661. "frameborder": "no",
  6662. "border": "0",
  6663. "scrolling ": "no",
  6664. "style": {
  6665. "cssText": "border:0;width:100%;height:100%"
  6666. },
  6667. "src": "/Office/Word/WordEditArea.htm"
  6668. })
  6669. _box.appendChild(_iframe);
  6670. _box.appendChild(_jie);
  6671. _formdiv = new U.UF.UI.form(
  6672. "协同文档",
  6673. _box, {
  6674. "id": "docs_Yu" + cid + stage + task + tool,
  6675. "style": {
  6676. "width": "90%",
  6677. "height": "90%",
  6678. "overflow": 'hidden'
  6679. },
  6680. "onresize": function() {}
  6681. }, {
  6682. closecallback: function() {}
  6683. }, {
  6684. "style": {
  6685. "height": "36px"
  6686. }
  6687. }).form; //创建窗体
  6688. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
  6689. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6690. })
  6691. _taskbar = {
  6692. "id": str + _formdiv.id,
  6693. "style": {
  6694. "backgroundImage": "url(/img/icon/doc.png)"
  6695. },
  6696. "name": "协同文档",
  6697. "forms": _formdiv,
  6698. "click": function() {
  6699. U.MD.D.I.openApplication(str, obj, info);
  6700. }
  6701. }
  6702. break;
  6703. case "CocoPi":
  6704. aTool = 57;
  6705. _iframe = $$("iframe", {
  6706. "allowpaymentrequest": "allowpaymentrequest",
  6707. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6708. "webkitallowfullscreen": "",
  6709. "mozallowfullscreen": "",
  6710. "frameborder": "no",
  6711. "border": "0",
  6712. "scrolling ": "no",
  6713. "style": {
  6714. "cssText": "border:0;width:100%;height:100%"
  6715. },
  6716. "src": "https://pi.cocorobo.cn/"
  6717. })
  6718. _box.appendChild(_iframe);
  6719. _box.appendChild(_jie);
  6720. _formdiv = new U.UF.UI.form(
  6721. "CocoPi",
  6722. _box, {
  6723. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6724. "style": {
  6725. "width": "90%",
  6726. "height": "90%",
  6727. "overflow": 'hidden'
  6728. },
  6729. "onresize": function() {}
  6730. }, {
  6731. closecallback: function() {}
  6732. }, {
  6733. "style": {
  6734. "height": "36px"
  6735. }
  6736. }).form; //创建窗体
  6737. _taskbar = {
  6738. "id": str + _formdiv.id,
  6739. "style": {
  6740. "backgroundImage": "url(/img/icon/cocopi.png)"
  6741. },
  6742. "name": "CocoPi",
  6743. "forms": _formdiv,
  6744. "click": function() {
  6745. U.MD.D.I.openApplication(str, obj, info);
  6746. }
  6747. }
  6748. break;
  6749. }
  6750. if (_iframe) {
  6751. if (str == 'doc') {
  6752. _iframe = _formdiv.querySelector('iframe')
  6753. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6754. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6755. })
  6756. if (onloadListener) {
  6757. _iframe.contentDocument.location.reload()
  6758. } else {
  6759. _iframe.contentDocument.location.reload()
  6760. }
  6761. } else if (str == 'mind') {
  6762. _iframe = _formdiv.querySelector('iframe')
  6763. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6764. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6765. })
  6766. if (onloadListener) {
  6767. _iframe.contentDocument.location.reload()
  6768. } else {
  6769. _iframe.contentDocument.location.reload()
  6770. }
  6771. } else if (str == 'whiteboard') {
  6772. _iframe = _formdiv.querySelector('iframe')
  6773. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6774. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6775. })
  6776. if (onloadListener) {
  6777. _iframe.contentDocument.location.reload()
  6778. } else {
  6779. _iframe.contentDocument.location.reload()
  6780. }
  6781. } else if (str == 'CocoPi') {
  6782. _iframe = _formdiv.querySelector('iframe')
  6783. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  6784. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6785. })
  6786. if (onloadListener) {
  6787. _iframe.contentDocument.location.reload()
  6788. } else {
  6789. _iframe.contentDocument.location.reload()
  6790. }
  6791. } else {
  6792. _iframe.onload = () => {};
  6793. }
  6794. _jie.onclick = async() => {
  6795. let text = ''
  6796. let type = '2'
  6797. if (aTool == 1) {
  6798. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6799. type = '3'
  6800. } else if (aTool == 6) {
  6801. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6802. type = '1'
  6803. } else if (aTool == 3) {
  6804. text = await U.MD.D.I.getEditorContent(_iframe);
  6805. type = '2'
  6806. } else if (aTool == 57) {
  6807. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6808. type = '4'
  6809. }
  6810. _loading.style.display = 'flex'
  6811. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6812. }
  6813. }
  6814. //U.MD.D.I.openClick(str);
  6815. //如果有任务栏信息
  6816. // if (_taskbar) {
  6817. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6818. // }
  6819. }
  6820. U.MD.D.I.getContents = function(cid, s, task, t, uid, type, iframe) {
  6821. var xmlhttp;
  6822. var Mac, Sn, DeviceId
  6823. if (window.XMLHttpRequest) {
  6824. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6825. xmlhttp = new XMLHttpRequest();
  6826. } else {
  6827. // IE6, IE5 浏览器执行代码
  6828. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6829. }
  6830. xmlhttp.onreadystatechange = function() {
  6831. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6832. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6833. // resolve(res.value[0][0].text);
  6834. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6835. }
  6836. }
  6837. }
  6838. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6839. xmlhttp.send();
  6840. }
  6841. U.MD.D.I.getContents2 = function(cid, s, task, t, uid, type, iframe) {
  6842. var xmlhttp;
  6843. var Mac, Sn, DeviceId
  6844. if (window.XMLHttpRequest) {
  6845. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6846. xmlhttp = new XMLHttpRequest();
  6847. } else {
  6848. // IE6, IE5 浏览器执行代码
  6849. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6850. }
  6851. xmlhttp.onreadystatechange = function() {
  6852. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6853. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6854. // resolve(res.value[0][0].text);
  6855. if (type == '2') {
  6856. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6857. } else if (type == '3') {
  6858. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6859. } else if (type == '4') {
  6860. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6861. }
  6862. } else {
  6863. if (type == '2') {
  6864. iframe.contentWindow.editor.minder.importData('json', '')
  6865. } else if (type == '3') {
  6866. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6867. } else if (type == '4') {
  6868. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6869. }
  6870. }
  6871. }
  6872. }
  6873. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6874. xmlhttp.send();
  6875. }
  6876. U.MD.D.I.setContents = function(cid, s, task, t, uid, type, text, loading, span) {
  6877. var xmlhttp;
  6878. var Mac, Sn, DeviceId
  6879. if (window.XMLHttpRequest) {
  6880. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6881. xmlhttp = new XMLHttpRequest();
  6882. } else {
  6883. // IE6, IE5 浏览器执行代码
  6884. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6885. }
  6886. xmlhttp.onreadystatechange = function() {
  6887. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6888. if (xmlhttp.response) {
  6889. // resolve(res.value[0][0].text);
  6890. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6891. // $(fileInput).val('');
  6892. // });
  6893. span.innerHTML = '上传成功'
  6894. setTimeout(() => {
  6895. loading.style.display = 'none'
  6896. }, 1000);
  6897. }
  6898. }
  6899. }
  6900. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6901. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6902. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6903. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6904. // 设置请求头,表示请求体的编码格式
  6905. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6906. // 设置请求体,使用url-encoded格式的数据
  6907. }
  6908. U.MD.D.I.openApplicationUpload = function(str, cid, stage, task, tool) {
  6909. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6910. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6911. _userinfo = US.userInfo, //登录用户信息
  6912. _userid = US.userInfo.userid //登录用户id
  6913. let _iframe;
  6914. let _cid = cid,
  6915. _stage = stage,
  6916. _task = task,
  6917. _tool = tool;
  6918. var _jie = $$("div", {
  6919. "style": {
  6920. "position": "absolute",
  6921. "bottom": "50px",
  6922. "right": "50px",
  6923. "zIndex": "9999",
  6924. "backgroundColor": "#2268bc",
  6925. "color": "#fff",
  6926. "padding": "12px 20px",
  6927. "cursor": "pointer",
  6928. "borderRadius": "4px",
  6929. },
  6930. "innerHTML": "提交作业"
  6931. })
  6932. let aTool = ''
  6933. let _loading = document.createElement('div')
  6934. _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;"
  6935. // _loading.id = "";
  6936. let _lchild = document.createElement('div')
  6937. let _limg = document.createElement('img')
  6938. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6939. _limg.style = "width: 26px;margin-right: 10px;"
  6940. _lchild.appendChild(_limg)
  6941. let _lspan = document.createElement('span')
  6942. _lspan.innerHTML = "上传中..."
  6943. _lchild.appendChild(_lspan)
  6944. _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%);"
  6945. _loading.appendChild(_lchild)
  6946. var _box = $$('div', {
  6947. "style": {
  6948. "position": "relative",
  6949. "width": "100%",
  6950. "height": "100%",
  6951. },
  6952. })
  6953. _box.appendChild(_loading)
  6954. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
  6955. switch (str) {
  6956. case "CocoPi":
  6957. aTool = 57;
  6958. _iframe = $$("iframe", {
  6959. "allowpaymentrequest": "allowpaymentrequest",
  6960. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6961. "webkitallowfullscreen": "",
  6962. "mozallowfullscreen": "",
  6963. "frameborder": "no",
  6964. "border": "0",
  6965. "scrolling ": "no",
  6966. "style": {
  6967. "cssText": "border:0;width:100%;height:100%"
  6968. },
  6969. "src": "https://pi.cocorobo.cn/"
  6970. })
  6971. _box.appendChild(_iframe);
  6972. _box.appendChild(_jie);
  6973. _formdiv = new U.UF.UI.form(
  6974. "CocoPi",
  6975. _box, {
  6976. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6977. "style": {
  6978. "width": "90%",
  6979. "height": "90%",
  6980. "overflow": 'hidden'
  6981. },
  6982. "onresize": function() {}
  6983. }, {
  6984. closecallback: function() {}
  6985. }, {
  6986. "style": {
  6987. "height": "36px"
  6988. }
  6989. }).form; //创建窗体
  6990. _taskbar = {
  6991. "id": str + _formdiv.id,
  6992. "style": {
  6993. "backgroundImage": "url(/img/icon/cocopi.png)"
  6994. },
  6995. "name": "CocoPi",
  6996. "forms": _formdiv,
  6997. "click": function() {
  6998. U.MD.D.I.openApplication(str, obj, info);
  6999. }
  7000. }
  7001. break;
  7002. }
  7003. if (_iframe) {
  7004. if (str == 'CocoPi') {
  7005. _iframe = _formdiv.querySelector('iframe')
  7006. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7007. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7008. })
  7009. if (onloadListener) {
  7010. _iframe.contentDocument.location.reload()
  7011. } else {
  7012. _iframe.contentDocument.location.reload()
  7013. }
  7014. }
  7015. _jie.onclick = async() => {
  7016. let text = ''
  7017. if (aTool == 57) {
  7018. text = _iframe.contentWindow.getLoadXmlStr()
  7019. }
  7020. _loading.style.display = 'flex'
  7021. console.log(_loading);
  7022. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7023. _loading.style.display = 'none'
  7024. let _div = document.createElement('div')
  7025. _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;"
  7026. let _inner = document.createElement('div')
  7027. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7028. _inner.innerHTML = "上传成功"
  7029. _div.appendChild(_inner)
  7030. _iframe.contentWindow.window.document.body.appendChild(_div)
  7031. _div.onclick = () => {
  7032. _iframe.contentWindow.window.document.body.removeChild(_div)
  7033. }
  7034. setTimeout(() => {
  7035. _iframe.contentWindow.window.document.body.removeChild(_div)
  7036. }, 1000);
  7037. }, [], { "type": "POST", "withCredentials": true });
  7038. }
  7039. }
  7040. }
  7041. U.MD.D.I.openApplicationTeacherUpload = function(str, cid, stage, task, tool, student) {
  7042. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  7043. _formdiv, //创建任务栏时同时弹出的窗体元素。
  7044. _userid = student.userid, //登录用户id
  7045. _username = student.student //用户名字
  7046. let _iframe;
  7047. let _cid = cid,
  7048. _stage = stage,
  7049. _task = task,
  7050. _tool = tool;
  7051. var _jie = $$("div", {
  7052. "style": {
  7053. "position": "absolute",
  7054. "bottom": "50px",
  7055. "right": "50px",
  7056. "zIndex": "9999",
  7057. "backgroundColor": "#2268bc",
  7058. "color": "#fff",
  7059. "padding": "12px 20px",
  7060. "cursor": "pointer",
  7061. "borderRadius": "4px",
  7062. },
  7063. "innerHTML": "提交作业"
  7064. })
  7065. let aTool = ''
  7066. let _loading = document.createElement('div')
  7067. _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;"
  7068. // _loading.id = "";
  7069. let _lchild = document.createElement('div')
  7070. let _limg = document.createElement('img')
  7071. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  7072. _limg.style = "width: 26px;margin-right: 10px;"
  7073. _lchild.appendChild(_limg)
  7074. let _lspan = document.createElement('span')
  7075. _lspan.innerHTML = "上传中..."
  7076. _lchild.appendChild(_lspan)
  7077. _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%);"
  7078. _loading.appendChild(_lchild)
  7079. var _box = $$('div', {
  7080. "style": {
  7081. "position": "relative",
  7082. "width": "100%",
  7083. "height": "100%",
  7084. },
  7085. })
  7086. _box.appendChild(_loading)
  7087. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
  7088. switch (str) {
  7089. case "CocoPi":
  7090. aTool = 57;
  7091. _iframe = $$("iframe", {
  7092. "allowpaymentrequest": "allowpaymentrequest",
  7093. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  7094. "webkitallowfullscreen": "",
  7095. "mozallowfullscreen": "",
  7096. "frameborder": "no",
  7097. "border": "0",
  7098. "scrolling ": "no",
  7099. "style": {
  7100. "cssText": "border:0;width:100%;height:100%"
  7101. },
  7102. "src": "https://pi.cocorobo.cn/"
  7103. })
  7104. _box.appendChild(_iframe);
  7105. _box.appendChild(_jie);
  7106. _formdiv = new U.UF.UI.form(
  7107. "CocoPi-" + _username,
  7108. _box, {
  7109. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  7110. "style": {
  7111. "width": "90%",
  7112. "height": "90%",
  7113. "overflow": 'hidden'
  7114. },
  7115. "onresize": function() {}
  7116. }, {
  7117. closecallback: function() {}
  7118. }, {
  7119. "style": {
  7120. "height": "36px"
  7121. }
  7122. }).form; //创建窗体
  7123. _taskbar = {
  7124. "id": str + _formdiv.id,
  7125. "style": {
  7126. "backgroundImage": "url(/img/icon/cocopi.png)"
  7127. },
  7128. "name": "CocoPi",
  7129. "forms": _formdiv,
  7130. "click": function() {
  7131. U.MD.D.I.openApplication(str, obj, info);
  7132. }
  7133. }
  7134. break;
  7135. }
  7136. if (_iframe) {
  7137. if (str == 'CocoPi') {
  7138. _iframe = _formdiv.querySelector('iframe')
  7139. let onloadListener = U.UF.DL.iframeLoad(_iframe, function() {
  7140. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
  7141. })
  7142. if (onloadListener) {
  7143. _iframe.contentDocument.location.reload()
  7144. } else {
  7145. _iframe.contentDocument.location.reload()
  7146. }
  7147. }
  7148. _jie.onclick = async() => {
  7149. let text = ''
  7150. if (aTool == 57) {
  7151. text = _iframe.contentWindow.getLoadXmlStr()
  7152. }
  7153. _loading.style.display = 'flex'
  7154. console.log(_loading);
  7155. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function(res) {
  7156. _loading.style.display = 'none'
  7157. let _div = document.createElement('div')
  7158. _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;"
  7159. let _inner = document.createElement('div')
  7160. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  7161. _inner.innerHTML = "上传成功"
  7162. _div.appendChild(_inner)
  7163. _iframe.contentWindow.window.document.body.appendChild(_div)
  7164. _div.onclick = () => {
  7165. _iframe.contentWindow.window.document.body.removeChild(_div)
  7166. }
  7167. setTimeout(() => {
  7168. _iframe.contentWindow.window.document.body.removeChild(_div)
  7169. }, 1000);
  7170. }, [], { "type": "POST", "withCredentials": true });
  7171. }
  7172. }
  7173. }
  7174. U.MD.D.I.getUploadContent = function(cid, s, task, t, uid, atool, type, iframe) {
  7175. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function(res) {
  7176. if (res.value[0].length > 0) {
  7177. if (atool == 57) {
  7178. iframe.contentWindow.loadingXml(res.value[0][0].content)
  7179. }
  7180. } else {
  7181. if (atool == 57) {
  7182. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  7183. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  7184. }
  7185. }
  7186. }, [], { "type": "POST", "withCredentials": true });
  7187. }