DeskTop.js 392 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036
  1. /*
  2. 此处为桌面系统启动应用区域
  3. */
  4. Namespace.register("U.MD.D.I"); //桌面应用处理
  5. //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
  6. U.MD.D.I.IsDrag;
  7. U.MD.D.I.Ip;
  8. //教师桌面图标的全局变量
  9. U.MD.D.I.teacherDeskIcon = [
  10. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  11. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  12. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  13. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  14. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  15. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  16. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  17. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  18. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  19. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  20. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  21. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  22. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  23. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  24. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  25. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  26. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  27. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  28. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  29. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  30. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  31. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  32. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  33. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  34. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  35. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  36. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  37. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  38. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  39. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  40. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  41. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  42. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  43. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  44. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  45. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  46. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  47. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  48. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  49. ];
  50. //极简模式
  51. U.MD.D.I.easyDeskIcon = [
  52. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  55. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  56. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  57. ];
  58. //教师桌面图标的全局变量
  59. U.MD.D.I.teacherDeskIcon2 = [
  60. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  61. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  62. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  63. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  64. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  65. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  66. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  67. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  68. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  69. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  70. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  71. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  72. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  73. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  74. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  75. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  76. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  77. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  78. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  79. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  80. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  81. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  82. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  83. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  84. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  85. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  86. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  87. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  88. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  89. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  90. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  91. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  92. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  93. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  94. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  95. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  96. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  97. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  98. ];
  99. U.MD.D.I.studentDeskIcon = [
  100. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  101. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  102. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  103. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  104. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  105. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  106. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  107. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  108. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  109. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  110. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  111. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  112. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  113. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  114. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  115. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  116. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  117. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  118. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  119. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  120. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  121. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  122. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  123. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  124. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  125. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  126. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  127. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  128. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  129. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  130. ];
  131. U.MD.D.I.studentDeskIcon2 = [
  132. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  133. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  134. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  135. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  136. ]
  137. U.MD.D.I.studentDeskIcon3 = [
  138. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  139. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  140. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  141. ]
  142. U.MD.D.I.schoolDeskIcon = [
  143. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  144. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  145. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  146. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  147. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  148. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  149. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  150. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  151. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  152. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  153. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  154. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  155. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  156. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  157. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  158. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  159. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  160. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  161. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  162. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  163. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  164. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  165. ];
  166. U.MD.D.I.orgDeskIcon = [
  167. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  168. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  169. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  170. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  171. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  172. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  173. ];
  174. U.MD.D.I.orgStemDeskIcon = [
  175. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  176. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  177. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  178. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  179. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  180. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  181. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  182. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  183. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  184. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  185. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  186. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  187. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  188. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  189. ];
  190. U.MD.D.I.szulsDeskIcon = [
  191. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  192. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  193. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  194. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  195. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  196. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  197. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  198. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  199. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  200. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  201. ];
  202. U.MD.D.I.hanDeskIcon = [
  203. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  204. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  205. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  206. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  207. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  208. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  209. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  210. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  211. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  212. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  213. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  214. ];
  215. U.MD.D.I.GMteacherDeskIcon = [
  216. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  217. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  218. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  219. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  220. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  221. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  222. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  223. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  224. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  225. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  226. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  227. ];
  228. U.MD.D.I.GMstudentDeskIcon = [
  229. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  230. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  231. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  232. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  233. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  234. ];
  235. //北师大
  236. U.MD.D.I.BSDNSteacherDeskIcon = [
  237. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  238. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  239. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  240. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  241. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  242. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  243. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  244. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  245. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  246. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  247. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  248. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  249. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  250. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  251. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  252. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  253. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  254. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  255. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  256. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  257. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  258. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  259. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  260. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  261. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  262. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  263. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  264. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  265. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  266. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  267. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  268. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  269. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  270. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  271. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  272. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  273. ];
  274. //松山湖
  275. U.MD.D.I.SONGteacherDeskIcon = [
  276. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  277. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  278. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  279. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  280. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  281. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  282. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  283. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  284. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  285. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  286. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  287. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  288. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  289. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  290. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  291. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  292. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  293. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  294. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  295. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  296. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  297. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  298. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  299. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  300. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  301. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  302. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  303. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  304. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  305. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  306. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  307. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  308. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  309. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  310. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  311. ];
  312. U.MD.D.I.tcStudentDeskIcon = [
  313. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  314. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  315. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  316. ];
  317. U.MD.D.I.tcTeacherDeskIcon = [
  318. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  319. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  320. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  321. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  322. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  323. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  324. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  325. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  326. ];
  327. U.MD.D.I.tcOrganizerDeskIcon = [
  328. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  329. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  330. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  331. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  332. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  333. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  334. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  335. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  336. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  337. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  338. ];
  339. U.MD.D.I.szscStudentDeskIcon = [
  340. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  341. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  342. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  343. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  344. ];
  345. U.MD.D.I.szscTeacherDeskIcon = [
  346. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  347. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  348. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  349. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  350. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  351. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  352. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  353. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  354. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  355. ];
  356. U.MD.D.I.szscOrganizerDeskIcon = [
  357. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  358. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  359. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  360. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  361. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  362. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  363. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  364. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  365. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  366. ];
  367. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  368. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  369. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  370. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  371. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  372. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  373. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  374. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  375. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  376. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  377. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  378. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  379. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  380. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  381. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  382. ];
  383. U.MD.D.I.wankeAdminDeskIcon = [
  384. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  385. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  386. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  387. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  388. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  389. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  390. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  391. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  392. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  393. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  394. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  395. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  398. ];
  399. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  400. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  401. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  402. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  403. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  404. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  405. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  406. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  407. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  408. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  409. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  410. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  411. ];
  412. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  413. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  414. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  415. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  416. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  417. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  418. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  419. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  422. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  423. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  424. ];
  425. //明德教师桌面图标的全局变量
  426. U.MD.D.I.MingdeTeacherDeskIcon = [
  427. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  428. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  429. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  430. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  431. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  432. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  433. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  434. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  435. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  436. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  437. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  438. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  439. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  440. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  441. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  442. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  443. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  444. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  445. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  446. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  447. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  448. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  449. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  450. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  451. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  452. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  453. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  454. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  455. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  456. ];
  457. //97c4ee8b-d010-4042-986d-e9d3c217264f
  458. //教师桌面图标的全局变量
  459. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  460. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  461. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  462. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  463. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  464. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  465. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  466. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  467. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  468. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  469. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  470. ];
  471. //福田
  472. U.MD.D.I.futianTeacherDeskIcon = [
  473. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  474. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  475. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  476. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  477. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  478. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  479. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  480. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  481. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  482. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  483. ];
  484. //福田
  485. U.MD.D.I.futianAdminDeskIcon = [
  486. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  487. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  488. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  489. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  490. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  491. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  492. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  493. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  494. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  495. ];
  496. //lotech
  497. U.MD.D.I.lotechTeacherDeskIcon = [
  498. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  499. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  500. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  501. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  502. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  503. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  504. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  505. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  506. ];
  507. //龙华中心小学教师桌面图标的全局变量
  508. U.MD.D.I.longhuateacherDeskIcon = [
  509. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  510. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  511. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  512. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  513. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  514. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  515. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  516. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  517. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  518. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  519. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  520. ];
  521. //教科院实小教师桌面图标的全局变量
  522. U.MD.D.I.siesteacherDeskIcon = [
  523. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  524. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  525. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  526. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  527. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  528. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  529. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  530. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  531. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  532. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  533. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  534. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  535. ];
  536. //福田
  537. U.MD.D.I.gdjgTeacherDeskIcon = [
  538. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  539. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  540. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  541. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  542. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  543. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  544. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  545. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  546. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  547. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  548. ];
  549. //gdjg
  550. U.MD.D.I.gdjgAdminDeskIcon = [
  551. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  552. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  553. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  554. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  555. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  556. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  557. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  558. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  559. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  560. ];
  561. //hk
  562. U.MD.D.I.hkteacherDeskIcon = [
  563. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  564. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  565. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  566. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  567. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  568. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  569. // { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  570. // { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  571. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  572. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  573. // { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  574. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  575. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  576. ];
  577. //hk
  578. U.MD.D.I.hkStudentDeskIcon = [
  579. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  580. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  581. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  582. ];
  583. //云海
  584. U.MD.D.I.yunhaiTeacherDeskIcon = [
  585. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  586. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  587. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  588. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  589. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  590. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  591. { "Name": "年级管理", "Url": "Grade", "style": { "cssText": "background-image:url(/img/icon/Grade.png)" } },
  592. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  593. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  594. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  595. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  596. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  597. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  598. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  599. ];
  600. //福田
  601. U.MD.D.I.heyuanTeacherDeskIcon = [
  602. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  603. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  604. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  605. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  606. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  607. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  608. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  609. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  610. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  611. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  612. ];
  613. //福田
  614. U.MD.D.I.heyuanAdminDeskIcon = [
  615. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  616. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  617. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  618. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  619. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  620. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  621. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  622. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  623. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  624. ];
  625. //szjylh 54f09f1e-09f0-11ee-91d8-005056b86db5
  626. U.MD.D.I.szherTeacherDeskIcon = [
  627. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  628. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  629. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  630. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  631. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  632. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  633. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  634. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  635. ];
  636. //#region 桌面初始化a
  637. /**
  638. * 初始化桌面的起始函数
  639. *
  640. */
  641. U.MD.D.I.init = function () {
  642. if ($("#U_MD_D_K")[0]) {
  643. //初始化桌面图标
  644. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  645. // var clickUrl = ':12588/requestIp.php';
  646. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  647. // U.MD.D.I.Ip = data;
  648. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  649. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  650. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  651. // })
  652. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  653. // })
  654. }
  655. }
  656. /**
  657. * 模式切换
  658. *
  659. */
  660. U.MD.D.I.ModeCheck = function (type) {
  661. if (US.Config.type == type) {
  662. return
  663. }
  664. US.Config.type = type
  665. $('.U_PBL_Check .active')[0].className = ''
  666. if (type == 1) {
  667. $('.U_PBL_Check div')[0].className = 'active'
  668. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  669. } else {
  670. $('.U_PBL_Check div')[1].className = 'active'
  671. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  672. }
  673. //初始化桌面图标
  674. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  675. if(type == 2){
  676. U.MD.D.I.openApplication("project")
  677. }
  678. }
  679. /**
  680. * 隐藏任务栏
  681. *
  682. * @param {element} 桌面元素
  683. */
  684. U.MD.D.I.hiddenTaskbar = function (el) {
  685. //任务栏位置变小
  686. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  687. //桌面的位置变大
  688. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  689. }
  690. /**
  691. * 隐藏任务栏
  692. *
  693. * @param {element} 桌面元素
  694. */
  695. U.MD.D.I.hiddenTaskbarout = function (el) {
  696. //任务栏位置变小
  697. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  698. //任务栏位置变化
  699. U.selectEl(el).css({ "bottom": "-60px" });
  700. //桌面的位置变大
  701. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  702. }
  703. }
  704. /**
  705. * 初始化打印桌面图标
  706. *
  707. * @param {element} 桌面元素
  708. */
  709. U.MD.D.I.initDesktopIcons = function (el, type) {
  710. var i, //用于循环
  711. _content, //桌面图标元素
  712. _iconcontent, //桌面图标元素
  713. _frag = $$("frag"), //定义一个碎片元素
  714. _type = US.userInfo.type,
  715. _org = US.userInfo.org,
  716. _oid = US.userInfo.organizeid,
  717. _role = US.userInfo.role,
  718. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  719. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  720. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  721. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  722. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  723. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  724. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  725. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  726. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  727. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  728. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  729. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  730. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  731. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  732. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  733. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  734. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  735. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  736. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  737. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  738. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  739. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  740. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  741. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  742. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  743. _heyuanTeacherDeskIconInfo = U.MD.D.I.heyuanTeacherDeskIcon,//福田
  744. _heyuannAdminDeskIconInfo = U.MD.D.I.heyuanAdminDeskIcon,//福田
  745. _szherTeacherDeskIconInfo = U.MD.D.I.szherTeacherDeskIcon,//szher
  746. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//
  747. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//
  748. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  749. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  750. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  751. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  752. _hkTeacherDeskIconInfo = U.MD.D.I.hkteacherDeskIcon,//hk
  753. _hkStudentDeskIconInfo = U.MD.D.I.hkStudentDeskIcon,//hk
  754. _yunhaiTeacherDeskIconInfo = U.MD.D.I.yunhaiTeacherDeskIcon,//云海
  755. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  756. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  757. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  758. 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'];
  759. 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'];
  760. //清楚桌面图标
  761. el.innerHTML = "";
  762. if (_org == 'c95e0a56-c205-11ed-8d51-005056b86db5' || _oid == '45facc0a-1211-11ec-80ad-005056b86db5' || _oid == "16d397f3-b192-11ed-9211-005056b86db5" || _org == "0fec3a8a-ad04-11ed-b13d-005056b86db5") {
  763. _teacherDesktopIconInfo.push(
  764. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  765. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  766. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  767. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  768. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  769. )
  770. _easyDesktopIconInfo.push(
  771. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  772. )
  773. }
  774. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  775. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  776. if(el.Name == '项目管理'){
  777. el.Name = 'PBL项目'
  778. }
  779. return el
  780. })
  781. }
  782. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  783. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  784. return el.Name != '魔盒识字' && el.Name != '24点'
  785. })
  786. }
  787. 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) {
  788. _studentDesktopIconInfo.push(
  789. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  790. )
  791. }
  792. //循环创建桌面图标
  793. if (type == 1) {
  794. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  795. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  796. _content = $$("div", {
  797. className: "U_MD_D_KO",
  798. "onmousedown": U.UF.C.closure(function (obj) {
  799. //防止拖动图标即打开了桌面应用
  800. U.MD.D.click(this, obj);
  801. }, [_studentDesktopIconInfo[i]]),
  802. "onclick": U.UF.C.closure(function (obj) {
  803. //防止拖动图标即打开了桌面应用
  804. U.MD.D.click(this, obj);
  805. }, [_studentDesktopIconInfo[i]])
  806. }, _frag); //
  807. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  808. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  809. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  810. }
  811. }else if (_type == 2 && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  812. for (i = 0; i < _hkStudentDeskIconInfo.length; i++) {
  813. _content = $$("div", {
  814. className: "U_MD_D_KO",
  815. "onmousedown": U.UF.C.closure(function (obj) {
  816. //防止拖动图标即打开了桌面应用
  817. U.MD.D.click(this, obj);
  818. }, [_hkStudentDeskIconInfo[i]]),
  819. "onclick": U.UF.C.closure(function (obj) {
  820. //防止拖动图标即打开了桌面应用
  821. U.MD.D.click(this, obj);
  822. }, [_hkStudentDeskIconInfo[i]])
  823. }, _frag); //
  824. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  825. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkStudentDeskIconInfo[i].style }, _iconcontent);
  826. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkStudentDeskIconInfo[i].Name }, _iconcontent);
  827. }
  828. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  829. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  830. _content = $$("div", {
  831. className: "U_MD_D_KO",
  832. "onmousedown": U.UF.C.closure(function (obj) {
  833. //防止拖动图标即打开了桌面应用
  834. U.MD.D.click(this, obj);
  835. }, [_studentDesktopIconInfo[i]]),
  836. "onclick": U.UF.C.closure(function (obj) {
  837. //防止拖动图标即打开了桌面应用
  838. U.MD.D.click(this, obj);
  839. }, [_studentDesktopIconInfo[i]])
  840. }, _frag); //
  841. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  842. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  843. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  844. }
  845. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  846. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  847. _content = $$("div", {
  848. className: "U_MD_D_KO",
  849. "onmousedown": U.UF.C.closure(function (obj) {
  850. //防止拖动图标即打开了桌面应用
  851. U.MD.D.click(this, obj);
  852. }, [_tcStudentDeskIconInfo[i]]),
  853. "onclick": U.UF.C.closure(function (obj) {
  854. //防止拖动图标即打开了桌面应用
  855. U.MD.D.click(this, obj);
  856. }, [_tcStudentDeskIconInfo[i]])
  857. }, _frag); //
  858. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  859. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  860. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  861. }
  862. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  863. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  864. _content = $$("div", {
  865. className: "U_MD_D_KO",
  866. "onmousedown": U.UF.C.closure(function (obj) {
  867. //防止拖动图标即打开了桌面应用
  868. U.MD.D.click(this, obj);
  869. }, [_szscStudentDeskIconInfo[i]]),
  870. "onclick": U.UF.C.closure(function (obj) {
  871. //防止拖动图标即打开了桌面应用
  872. U.MD.D.click(this, obj);
  873. }, [_szscStudentDeskIconInfo[i]])
  874. }, _frag); //
  875. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  876. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  877. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  878. }
  879. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  880. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  881. _content = $$("div", {
  882. className: "U_MD_D_KO",
  883. "onmousedown": U.UF.C.closure(function (obj) {
  884. //防止拖动图标即打开了桌面应用
  885. U.MD.D.click(this, obj);
  886. }, [_studentDesktopIconInfo3[i]]),
  887. "onclick": U.UF.C.closure(function (obj) {
  888. //防止拖动图标即打开了桌面应用
  889. U.MD.D.click(this, obj);
  890. }, [_studentDesktopIconInfo3[i]])
  891. }, _frag); //
  892. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  893. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  894. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  895. }
  896. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  897. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  898. _content = $$("div", {
  899. className: "U_MD_D_KO",
  900. "onmousedown": U.UF.C.closure(function (obj) {
  901. //防止拖动图标即打开了桌面应用
  902. U.MD.D.click(this, obj);
  903. }, [_studentDesktopIconInfo2[i]]),
  904. "onclick": U.UF.C.closure(function (obj) {
  905. //防止拖动图标即打开了桌面应用
  906. U.MD.D.click(this, obj);
  907. }, [_studentDesktopIconInfo2[i]])
  908. }, _frag); //
  909. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  910. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  911. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  912. }
  913. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  914. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  915. _content = $$("div", {
  916. className: "U_MD_D_KO",
  917. "onmousedown": U.UF.C.closure(function (obj) {
  918. //防止拖动图标即打开了桌面应用
  919. U.MD.D.click(this, obj);
  920. }, [_wanketeacherDesktopIconInfo[i]]),
  921. "onclick": U.UF.C.closure(function (obj) {
  922. //防止拖动图标即打开了桌面应用
  923. U.MD.D.click(this, obj);
  924. }, [_wanketeacherDesktopIconInfo[i]])
  925. }, _frag); //
  926. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  927. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  928. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  929. }
  930. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  931. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  932. _content = $$("div", {
  933. className: "U_MD_D_KO",
  934. "onmousedown": U.UF.C.closure(function (obj) {
  935. //防止拖动图标即打开了桌面应用
  936. U.MD.D.click(this, obj);
  937. }, [_wankeAdminDesktopIconInfo[i]]),
  938. "onclick": U.UF.C.closure(function (obj) {
  939. //防止拖动图标即打开了桌面应用
  940. U.MD.D.click(this, obj);
  941. }, [_wankeAdminDesktopIconInfo[i]])
  942. }, _frag); //
  943. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  944. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  945. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  946. }
  947. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  948. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  949. _content = $$("div", {
  950. className: "U_MD_D_KO",
  951. "onmousedown": U.UF.C.closure(function (obj) {
  952. //防止拖动图标即打开了桌面应用
  953. U.MD.D.click(this, obj);
  954. }, [_teacherDesktopIconInfo2[i]]),
  955. "onclick": U.UF.C.closure(function (obj) {
  956. //防止拖动图标即打开了桌面应用
  957. U.MD.D.click(this, obj);
  958. }, [_teacherDesktopIconInfo2[i]])
  959. }, _frag); //
  960. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  961. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  962. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  963. }
  964. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  965. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  966. _content = $$("div", {
  967. className: "U_MD_D_KO",
  968. "onmousedown": U.UF.C.closure(function (obj) {
  969. //防止拖动图标即打开了桌面应用
  970. U.MD.D.click(this, obj);
  971. }, [_lotechTeacherDeskIconInfo[i]]),
  972. "onclick": U.UF.C.closure(function (obj) {
  973. //防止拖动图标即打开了桌面应用
  974. U.MD.D.click(this, obj);
  975. }, [_lotechTeacherDeskIconInfo[i]])
  976. }, _frag); //
  977. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  978. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  979. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  980. }
  981. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  982. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  983. _content = $$("div", {
  984. className: "U_MD_D_KO",
  985. "onmousedown": U.UF.C.closure(function (obj) {
  986. //防止拖动图标即打开了桌面应用
  987. U.MD.D.click(this, obj);
  988. }, [_siesTeacherDeskIconInfo[i]]),
  989. "onclick": U.UF.C.closure(function (obj) {
  990. //防止拖动图标即打开了桌面应用
  991. U.MD.D.click(this, obj);
  992. }, [_siesTeacherDeskIconInfo[i]])
  993. }, _frag); //
  994. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  995. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  996. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  997. }
  998. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  999. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  1000. _content = $$("div", {
  1001. className: "U_MD_D_KO",
  1002. "onmousedown": U.UF.C.closure(function (obj) {
  1003. //防止拖动图标即打开了桌面应用
  1004. U.MD.D.click(this, obj);
  1005. }, [_longhuaTeacherDeskIconInfo[i]]),
  1006. "onclick": U.UF.C.closure(function (obj) {
  1007. //防止拖动图标即打开了桌面应用
  1008. U.MD.D.click(this, obj);
  1009. }, [_longhuaTeacherDeskIconInfo[i]])
  1010. }, _frag); //
  1011. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1012. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  1013. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  1014. }
  1015. }else if ((_type == 1 || _type == 4) && (_oid == "b1095a3c-1d06-4ac8-854f-7c0d97f4ab41")) {
  1016. for (i = 0; i < _yunhaiTeacherDeskIconInfo.length; i++) {
  1017. _content = $$("div", {
  1018. className: "U_MD_D_KO",
  1019. "onmousedown": U.UF.C.closure(function (obj) {
  1020. //防止拖动图标即打开了桌面应用
  1021. U.MD.D.click(this, obj);
  1022. }, [_yunhaiTeacherDeskIconInfo[i]]),
  1023. "onclick": U.UF.C.closure(function (obj) {
  1024. //防止拖动图标即打开了桌面应用
  1025. U.MD.D.click(this, obj);
  1026. }, [_yunhaiTeacherDeskIconInfo[i]])
  1027. }, _frag); //
  1028. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1029. $$("div", { className: "U_MD_D_KOS U_Img", "style": _yunhaiTeacherDeskIconInfo[i].style }, _iconcontent);
  1030. $$("div", { className: "U_MD_D_KOX", "innerHTML": _yunhaiTeacherDeskIconInfo[i].Name }, _iconcontent);
  1031. }//_hkStudentDeskIconInfo
  1032. }else if ((_type == 1 || _type == 4) && (_org == "b50cf65a-001c-11ee-91d8-005056b86db5")) {
  1033. for (i = 0; i < _hkTeacherDeskIconInfo.length; i++) {
  1034. _content = $$("div", {
  1035. className: "U_MD_D_KO",
  1036. "onmousedown": U.UF.C.closure(function (obj) {
  1037. //防止拖动图标即打开了桌面应用
  1038. U.MD.D.click(this, obj);
  1039. }, [_hkTeacherDeskIconInfo[i]]),
  1040. "onclick": U.UF.C.closure(function (obj) {
  1041. //防止拖动图标即打开了桌面应用
  1042. U.MD.D.click(this, obj);
  1043. }, [_hkTeacherDeskIconInfo[i]])
  1044. }, _frag); //
  1045. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1046. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hkTeacherDeskIconInfo[i].style }, _iconcontent);
  1047. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hkTeacherDeskIconInfo[i].Name }, _iconcontent);
  1048. }
  1049. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  1050. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  1051. _content = $$("div", {
  1052. className: "U_MD_D_KO",
  1053. "onmousedown": U.UF.C.closure(function (obj) {
  1054. //防止拖动图标即打开了桌面应用
  1055. U.MD.D.click(this, obj);
  1056. }, [_gdjgAdminDeskIconInfo[i]]),
  1057. "onclick": U.UF.C.closure(function (obj) {
  1058. //防止拖动图标即打开了桌面应用
  1059. U.MD.D.click(this, obj);
  1060. }, [_gdjgAdminDeskIconInfo[i]])
  1061. }, _frag); //
  1062. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1063. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  1064. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  1065. }
  1066. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  1067. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  1068. _content = $$("div", {
  1069. className: "U_MD_D_KO",
  1070. "onmousedown": U.UF.C.closure(function (obj) {
  1071. //防止拖动图标即打开了桌面应用
  1072. U.MD.D.click(this, obj);
  1073. }, [_gdjgTeacherDeskIconInfo[i]]),
  1074. "onclick": U.UF.C.closure(function (obj) {
  1075. //防止拖动图标即打开了桌面应用
  1076. U.MD.D.click(this, obj);
  1077. }, [_gdjgTeacherDeskIconInfo[i]])
  1078. }, _frag); //
  1079. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1080. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  1081. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  1082. }
  1083. }else if ((_type == 1 || _type == 4) && (_org == "54f09f1e-09f0-11ee-91d8-005056b86db5")) {
  1084. for (i = 0; i < _szherTeacherDeskIconInfo.length; i++) {
  1085. _content = $$("div", {
  1086. className: "U_MD_D_KO",
  1087. "onmousedown": U.UF.C.closure(function (obj) {
  1088. //防止拖动图标即打开了桌面应用
  1089. U.MD.D.click(this, obj);
  1090. }, [_szherTeacherDeskIconInfo[i]]),
  1091. "onclick": U.UF.C.closure(function (obj) {
  1092. //防止拖动图标即打开了桌面应用
  1093. U.MD.D.click(this, obj);
  1094. }, [_szherTeacherDeskIconInfo[i]])
  1095. }, _frag); //
  1096. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1097. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szherTeacherDeskIconInfo[i].style }, _iconcontent);
  1098. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szherTeacherDeskIconInfo[i].Name }, _iconcontent);
  1099. }
  1100. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 1) {
  1101. for (i = 0; i < _heyuannAdminDeskIconInfo.length; i++) {
  1102. _content = $$("div", {
  1103. className: "U_MD_D_KO",
  1104. "onmousedown": U.UF.C.closure(function (obj) {
  1105. //防止拖动图标即打开了桌面应用
  1106. U.MD.D.click(this, obj);
  1107. }, [_heyuannAdminDeskIconInfo[i]]),
  1108. "onclick": U.UF.C.closure(function (obj) {
  1109. //防止拖动图标即打开了桌面应用
  1110. U.MD.D.click(this, obj);
  1111. }, [_heyuannAdminDeskIconInfo[i]])
  1112. }, _frag); //
  1113. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1114. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuannAdminDeskIconInfo[i].style }, _iconcontent);
  1115. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuannAdminDeskIconInfo[i].Name }, _iconcontent);
  1116. }
  1117. }else if ((_type == 1 || _type == 4) && (_org == "578de748-05d2-11ee-91d8-005056b86db5") && _role == 0) {
  1118. for (i = 0; i < _heyuanTeacherDeskIconInfo.length; i++) {
  1119. _content = $$("div", {
  1120. className: "U_MD_D_KO",
  1121. "onmousedown": U.UF.C.closure(function (obj) {
  1122. //防止拖动图标即打开了桌面应用
  1123. U.MD.D.click(this, obj);
  1124. }, [_heyuanTeacherDeskIconInfo[i]]),
  1125. "onclick": U.UF.C.closure(function (obj) {
  1126. //防止拖动图标即打开了桌面应用
  1127. U.MD.D.click(this, obj);
  1128. }, [_heyuanTeacherDeskIconInfo[i]])
  1129. }, _frag); //
  1130. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1131. $$("div", { className: "U_MD_D_KOS U_Img", "style": _heyuanTeacherDeskIconInfo[i].style }, _iconcontent);
  1132. $$("div", { className: "U_MD_D_KOX", "innerHTML": _heyuanTeacherDeskIconInfo[i].Name }, _iconcontent);
  1133. }
  1134. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  1135. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  1136. _content = $$("div", {
  1137. className: "U_MD_D_KO",
  1138. "onmousedown": U.UF.C.closure(function (obj) {
  1139. //防止拖动图标即打开了桌面应用
  1140. U.MD.D.click(this, obj);
  1141. }, [_futianAdminDeskIconInfo[i]]),
  1142. "onclick": U.UF.C.closure(function (obj) {
  1143. //防止拖动图标即打开了桌面应用
  1144. U.MD.D.click(this, obj);
  1145. }, [_futianAdminDeskIconInfo[i]])
  1146. }, _frag); //
  1147. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1148. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  1149. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  1150. }
  1151. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  1152. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  1153. _content = $$("div", {
  1154. className: "U_MD_D_KO",
  1155. "onmousedown": U.UF.C.closure(function (obj) {
  1156. //防止拖动图标即打开了桌面应用
  1157. U.MD.D.click(this, obj);
  1158. }, [_futianTeacherDeskIconInfo[i]]),
  1159. "onclick": U.UF.C.closure(function (obj) {
  1160. //防止拖动图标即打开了桌面应用
  1161. U.MD.D.click(this, obj);
  1162. }, [_futianTeacherDeskIconInfo[i]])
  1163. }, _frag); //
  1164. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1165. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  1166. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  1167. }
  1168. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  1169. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  1170. _content = $$("div", {
  1171. className: "U_MD_D_KO",
  1172. "onmousedown": U.UF.C.closure(function (obj) {
  1173. //防止拖动图标即打开了桌面应用
  1174. U.MD.D.click(this, obj);
  1175. }, [_MingdeTeacherDeskIcon[i]]),
  1176. "onclick": U.UF.C.closure(function (obj) {
  1177. //防止拖动图标即打开了桌面应用
  1178. U.MD.D.click(this, obj);
  1179. }, [_MingdeTeacherDeskIcon[i]])
  1180. }, _frag); //
  1181. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1182. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  1183. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  1184. }
  1185. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  1186. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  1187. _content = $$("div", {
  1188. className: "U_MD_D_KO",
  1189. "onmousedown": U.UF.C.closure(function (obj) {
  1190. //防止拖动图标即打开了桌面应用
  1191. U.MD.D.click(this, obj);
  1192. }, [_lhsAdminDesktopIconInfo[i]]),
  1193. "onclick": U.UF.C.closure(function (obj) {
  1194. //防止拖动图标即打开了桌面应用
  1195. U.MD.D.click(this, obj);
  1196. }, [_lhsAdminDesktopIconInfo[i]])
  1197. }, _frag); //
  1198. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1199. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1200. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1201. }
  1202. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1203. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1204. _content = $$("div", {
  1205. className: "U_MD_D_KO",
  1206. "onmousedown": U.UF.C.closure(function (obj) {
  1207. //防止拖动图标即打开了桌面应用
  1208. U.MD.D.click(this, obj);
  1209. }, [_lhsteacherDesktopIconInfo[i]]),
  1210. "onclick": U.UF.C.closure(function (obj) {
  1211. //防止拖动图标即打开了桌面应用
  1212. U.MD.D.click(this, obj);
  1213. }, [_lhsteacherDesktopIconInfo[i]])
  1214. }, _frag); //
  1215. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1216. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1217. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1218. }
  1219. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1220. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1221. _content = $$("div", {
  1222. className: "U_MD_D_KO",
  1223. "onmousedown": U.UF.C.closure(function (obj) {
  1224. //防止拖动图标即打开了桌面应用
  1225. U.MD.D.click(this, obj);
  1226. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1227. "onclick": U.UF.C.closure(function (obj) {
  1228. //防止拖动图标即打开了桌面应用
  1229. U.MD.D.click(this, obj);
  1230. }, [_zhoujiateacherDesktopIconInfo[i]])
  1231. }, _frag); //
  1232. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1233. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1234. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1235. }
  1236. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1237. for (i = 0; i < _hanDeskIcon.length; i++) {
  1238. _content = $$("div", {
  1239. className: "U_MD_D_KO",
  1240. "onmousedown": U.UF.C.closure(function (obj) {
  1241. //防止拖动图标即打开了桌面应用
  1242. U.MD.D.click(this, obj);
  1243. }, [_hanDeskIcon[i]]),
  1244. "onclick": U.UF.C.closure(function (obj) {
  1245. //防止拖动图标即打开了桌面应用
  1246. U.MD.D.click(this, obj);
  1247. }, [_hanDeskIcon[i]])
  1248. }, _frag); //
  1249. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1250. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1251. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1252. }
  1253. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1254. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1255. _content = $$("div", {
  1256. className: "U_MD_D_KO",
  1257. "onmousedown": U.UF.C.closure(function (obj) {
  1258. //防止拖动图标即打开了桌面应用
  1259. U.MD.D.click(this, obj);
  1260. }, [_orgStemDeskIcon[i]]),
  1261. "onclick": U.UF.C.closure(function (obj) {
  1262. //防止拖动图标即打开了桌面应用
  1263. U.MD.D.click(this, obj);
  1264. }, [_orgStemDeskIcon[i]])
  1265. }, _frag); //
  1266. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1267. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1268. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1269. }
  1270. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1271. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1272. _content = $$("div", {
  1273. className: "U_MD_D_KO",
  1274. "onmousedown": U.UF.C.closure(function (obj) {
  1275. //防止拖动图标即打开了桌面应用
  1276. U.MD.D.click(this, obj);
  1277. }, [_szulsDeskIcon[i]]),
  1278. "onclick": U.UF.C.closure(function (obj) {
  1279. //防止拖动图标即打开了桌面应用
  1280. U.MD.D.click(this, obj);
  1281. }, [_szulsDeskIcon[i]])
  1282. }, _frag); //
  1283. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1284. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1285. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1286. }
  1287. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1288. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1289. _content = $$("div", {
  1290. className: "U_MD_D_KO",
  1291. "onmousedown": U.UF.C.closure(function (obj) {
  1292. //防止拖动图标即打开了桌面应用
  1293. U.MD.D.click(this, obj);
  1294. }, [_orgDesktopIconInfo[i]]),
  1295. "onclick": U.UF.C.closure(function (obj) {
  1296. //防止拖动图标即打开了桌面应用
  1297. U.MD.D.click(this, obj);
  1298. }, [_orgDesktopIconInfo[i]])
  1299. }, _frag); //
  1300. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1301. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1302. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1303. }
  1304. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1305. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1306. _content = $$("div", {
  1307. className: "U_MD_D_KO",
  1308. "onmousedown": U.UF.C.closure(function (obj) {
  1309. //防止拖动图标即打开了桌面应用
  1310. U.MD.D.click(this, obj);
  1311. }, [_schoolDesktopIconInfo[i]]),
  1312. "onclick": U.UF.C.closure(function (obj) {
  1313. //防止拖动图标即打开了桌面应用
  1314. U.MD.D.click(this, obj);
  1315. }, [_schoolDesktopIconInfo[i]])
  1316. }, _frag); //
  1317. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1318. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1319. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1320. }
  1321. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1322. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1323. _content = $$("div", {
  1324. className: "U_MD_D_KO",
  1325. "onmousedown": U.UF.C.closure(function (obj) {
  1326. //防止拖动图标即打开了桌面应用
  1327. U.MD.D.click(this, obj);
  1328. }, [_GMteacherDesktopIconInfo[i]]),
  1329. "onclick": U.UF.C.closure(function (obj) {
  1330. //防止拖动图标即打开了桌面应用
  1331. U.MD.D.click(this, obj);
  1332. }, [_GMteacherDesktopIconInfo[i]])
  1333. }, _frag); //
  1334. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1335. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1336. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1337. }
  1338. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1339. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1340. _content = $$("div", {
  1341. className: "U_MD_D_KO",
  1342. "onmousedown": U.UF.C.closure(function (obj) {
  1343. //防止拖动图标即打开了桌面应用
  1344. U.MD.D.click(this, obj);
  1345. }, [_SONGteacherDesktopIconInfo[i]]),
  1346. "onclick": U.UF.C.closure(function (obj) {
  1347. //防止拖动图标即打开了桌面应用
  1348. U.MD.D.click(this, obj);
  1349. }, [_SONGteacherDesktopIconInfo[i]])
  1350. }, _frag); //
  1351. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1352. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1353. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1354. }
  1355. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1356. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1357. _content = $$("div", {
  1358. className: "U_MD_D_KO",
  1359. "onmousedown": U.UF.C.closure(function (obj) {
  1360. //防止拖动图标即打开了桌面应用
  1361. U.MD.D.click(this, obj);
  1362. }, [_GMstudentDesktopIconInfo[i]]),
  1363. "onclick": U.UF.C.closure(function (obj) {
  1364. //防止拖动图标即打开了桌面应用
  1365. U.MD.D.click(this, obj);
  1366. }, [_GMstudentDesktopIconInfo[i]])
  1367. }, _frag); //
  1368. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1369. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1370. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1371. }
  1372. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1373. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1374. _content = $$("div", {
  1375. className: "U_MD_D_KO",
  1376. "onmousedown": U.UF.C.closure(function (obj) {
  1377. //防止拖动图标即打开了桌面应用
  1378. U.MD.D.click(this, obj);
  1379. }, [_tcTeacherDeskIconInfo[i]]),
  1380. "onclick": U.UF.C.closure(function (obj) {
  1381. //防止拖动图标即打开了桌面应用
  1382. U.MD.D.click(this, obj);
  1383. }, [_tcTeacherDeskIconInfo[i]])
  1384. }, _frag); //
  1385. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1386. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1387. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1388. }
  1389. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1390. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1391. _content = $$("div", {
  1392. className: "U_MD_D_KO",
  1393. "onmousedown": U.UF.C.closure(function (obj) {
  1394. //防止拖动图标即打开了桌面应用
  1395. U.MD.D.click(this, obj);
  1396. }, [_tcOrganizerDeskIconInfo[i]]),
  1397. "onclick": U.UF.C.closure(function (obj) {
  1398. //防止拖动图标即打开了桌面应用
  1399. U.MD.D.click(this, obj);
  1400. }, [_tcOrganizerDeskIconInfo[i]])
  1401. }, _frag); //
  1402. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1403. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1404. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1405. }
  1406. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1407. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1408. _content = $$("div", {
  1409. className: "U_MD_D_KO",
  1410. "onmousedown": U.UF.C.closure(function (obj) {
  1411. //防止拖动图标即打开了桌面应用
  1412. U.MD.D.click(this, obj);
  1413. }, [_szscTeacherDeskIconInfo[i]]),
  1414. "onclick": U.UF.C.closure(function (obj) {
  1415. //防止拖动图标即打开了桌面应用
  1416. U.MD.D.click(this, obj);
  1417. }, [_szscTeacherDeskIconInfo[i]])
  1418. }, _frag); //
  1419. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1420. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1421. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1422. }
  1423. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1424. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1425. _content = $$("div", {
  1426. className: "U_MD_D_KO",
  1427. "onmousedown": U.UF.C.closure(function (obj) {
  1428. //防止拖动图标即打开了桌面应用
  1429. U.MD.D.click(this, obj);
  1430. }, [_szscOrganizerDeskIconInfo[i]]),
  1431. "onclick": U.UF.C.closure(function (obj) {
  1432. //防止拖动图标即打开了桌面应用
  1433. U.MD.D.click(this, obj);
  1434. }, [_szscOrganizerDeskIconInfo[i]])
  1435. }, _frag); //
  1436. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1437. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1438. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1439. }
  1440. } else {
  1441. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1442. _content = $$("div", {
  1443. className: "U_MD_D_KO",
  1444. "onmousedown": U.UF.C.closure(function (obj) {
  1445. //防止拖动图标即打开了桌面应用
  1446. U.MD.D.click(this, obj);
  1447. }, [_teacherDesktopIconInfo[i]]),
  1448. "onclick": U.UF.C.closure(function (obj) {
  1449. //防止拖动图标即打开了桌面应用
  1450. U.MD.D.click(this, obj);
  1451. }, [_teacherDesktopIconInfo[i]])
  1452. }, _frag); //
  1453. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1454. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1455. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1456. }
  1457. }
  1458. } else {
  1459. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1460. _content = $$("div", {
  1461. className: "U_MD_D_KO",
  1462. style: { 'width': '124px', 'height': '145px' },
  1463. "onmousedown": U.UF.C.closure(function (obj) {
  1464. //防止拖动图标即打开了桌面应用
  1465. U.MD.D.click(this, obj);
  1466. }, [_easyDesktopIconInfo[i]]),
  1467. "onclick": U.UF.C.closure(function (obj) {
  1468. //防止拖动图标即打开了桌面应用
  1469. U.MD.D.click(this, obj);
  1470. }, [_easyDesktopIconInfo[i]])
  1471. }, _frag); //
  1472. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1473. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1474. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1475. }
  1476. }
  1477. if (type == 1) {
  1478. //加载好后给图标定位
  1479. U.MD.D.iconPostion($(_frag).Child());
  1480. } else {
  1481. //加载好后给图标定位
  1482. U.MD.D.iconPostion2($(_frag).Child());
  1483. }
  1484. //把图标加载到页面
  1485. el.appendChild(_frag);
  1486. }
  1487. /**
  1488. * 显示任务栏
  1489. *
  1490. * @param {element} 桌面元素
  1491. */
  1492. U.MD.D.I.displayTaskbar = function (el) {
  1493. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1494. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1495. //任务栏位置变化
  1496. U.selectEl(el).css({ "bottom": "0px" });
  1497. //桌面位置变话
  1498. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1499. }
  1500. }
  1501. //#region 桌面图标拖动逻辑
  1502. /**
  1503. * 桌面排列图标
  1504. *
  1505. * @param {element} 桌面元素
  1506. * @param {object} 上下相距的距离
  1507. * @param {object} 左右相距的距离
  1508. * @return {object} 命名空间
  1509. */
  1510. U.MD.D.iconPostion = function (childs, top, left) {
  1511. var i; //用于循环处理
  1512. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1513. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1514. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1515. for (i = 0; i < childs.length; i++) {
  1516. //如果竖排top超过了范围处理
  1517. if (top + 95 > US.height - 10) {
  1518. //left超过了页面范围处理,则向上重叠打印处理
  1519. if ((left + 180) > US.width) {
  1520. top -= 110;
  1521. left -= 90;
  1522. }
  1523. //没有超过范围,那么left+90添加到下一个竖排打印
  1524. else {
  1525. left += 90;
  1526. top = 15;
  1527. };
  1528. }
  1529. //给图标的位置赋值
  1530. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1531. if (i < childs.length - 1) {
  1532. //页面图标每次向下加95
  1533. top += 95;
  1534. }
  1535. }
  1536. //返回最后调用的图标的位置
  1537. return [top, left];
  1538. }
  1539. /**
  1540. * 桌面排列图标
  1541. *
  1542. * @param {element} 桌面元素
  1543. * @param {object} 上下相距的距离
  1544. * @param {object} 左右相距的距离
  1545. * @return {object} 命名空间
  1546. */
  1547. U.MD.D.iconPostion2 = function (childs, top, left) {
  1548. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1549. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1550. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1551. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1552. for (i = 0; i < childs.length; i++) {
  1553. //如果竖排top超过了范围处理
  1554. if (left + 150 > US.width - 10) {
  1555. //left超过了页面范围处理,则向上重叠打印处理
  1556. if ((top + 180) > US.Height) {
  1557. top -= 150;
  1558. left -= 150;
  1559. }
  1560. //没有超过范围,那么left+90添加到下一个竖排打印
  1561. else {
  1562. top += 150;
  1563. left = ol;
  1564. };
  1565. }
  1566. //给图标的位置赋值
  1567. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1568. if (i < childs.length - 1) {
  1569. //页面图标每次向下加95
  1570. left += 150;
  1571. }
  1572. }
  1573. //返回最后调用的图标的位置
  1574. return [top, left];
  1575. }
  1576. /**
  1577. * 桌面点击事件逻辑
  1578. *
  1579. * @param {element} 桌面元素
  1580. * @param {object} 上下相距的距离
  1581. * @param {object} 左右相距的距离
  1582. * @return {object} 命名空间
  1583. */
  1584. U.MD.D.click = function (el, obj) {
  1585. var _buttonnumber = event.button; //点击的按钮的事件值
  1586. var _userinfo = US.userInfo;
  1587. U.UF.EV.stopBubble(); //阻止向上冒泡
  1588. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1589. if (_buttonnumber < 2) {
  1590. //如果是click事件的处理
  1591. if (event.type == "click") {
  1592. //如果元素在mousemove事件中没有移动则出发click事件
  1593. if (!U.MD.D.I.IsDrag) {
  1594. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1595. U.alert("请先登录您的账号!");
  1596. setTimeout(() => {
  1597. U.MD.U.L.login();
  1598. }, 2000);
  1599. } else {
  1600. //打开应用处理
  1601. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1602. }
  1603. }
  1604. }
  1605. //如果是mouse事件的处理
  1606. else {
  1607. if (US.Config.type == '1') {
  1608. //拖动处理,添加拖动和拖动结束事件
  1609. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1610. }
  1611. }
  1612. U.MD.D.I.IsDrag = false;
  1613. }
  1614. }
  1615. /**
  1616. * 拖动的处理
  1617. *
  1618. */
  1619. U.MD.D.iconMove = function () {
  1620. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1621. U.MD.D.I.IsDrag = true;
  1622. }
  1623. /**
  1624. * 拖动结束后,这里是定位处理,以网状的形式定位
  1625. *
  1626. * @param {element} 拖动的元素
  1627. * @return {object} 命名空间
  1628. */
  1629. U.MD.D.iconUp = function (el) {
  1630. var _top = 15,
  1631. _left = 20,
  1632. _margin,
  1633. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1634. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1635. if (_positioninfo["OT"] > 15) {
  1636. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1637. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1638. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1639. }
  1640. if (_positioninfo["OL"] > 20) {
  1641. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1642. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1643. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1644. }
  1645. //while循环判断么一个重叠的元素
  1646. do {
  1647. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1648. _top = _positioninfo[0] + 95; //得到定位后的top
  1649. _left = _positioninfo[1]; //得到定位后的left
  1650. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1651. }
  1652. /**
  1653. * 判断拖动后图标是否重叠
  1654. *
  1655. * @param {element} 拖动的元素
  1656. * @param {element} 桌面所有的元素
  1657. * @param {array} 拖动元素的位置
  1658. ----------[0] 上 top
  1659. ----------[1] 左 left
  1660. * @return {object} 命名空间
  1661. */
  1662. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1663. //循环所有的图标
  1664. for (var i = 0; i < childs.length; i++) {
  1665. //判断有没有和该图标诶子重叠的元素
  1666. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1667. return childs[i]; //如果有返回
  1668. }
  1669. }
  1670. }
  1671. //#endregion
  1672. //#endregion
  1673. //#region 桌面应用
  1674. /**
  1675. * 打开应用
  1676. *
  1677. * @param {string} 类型
  1678. -----------------Disk 网盘系统
  1679. -----------------PDisk 学习系统网盘
  1680. -----------------Poto 图片
  1681. -----------------Video 视频
  1682. -----------------Music 音乐
  1683. -----------------Word word
  1684. -----------------Excel excel
  1685. -----------------Txt 记事本
  1686. -----------------PB 学习系统
  1687. -----------------Blog 朋友圈系统
  1688. -----------------FTP ftp系统
  1689. -----------------Group 好友群
  1690. -----------------SY 首页系统
  1691. -----------------Set 个人设置
  1692. -----------------XSet 系统设置
  1693. -----------------App 我们所有的app
  1694. -----------------BC c.1473.cn 平台
  1695. -----------------CWeb d.1473.cn 变成平台
  1696. -----------------其他的外联系统 我们统一用iframe打开
  1697. * @param {array} 类型
  1698. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1699. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1700. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1701. 如果第一个参数为其他,则无第二个参数
  1702. * @returns {array}
  1703. */
  1704. window.addEventListener('message', function (e) { // 监听 message 事件
  1705. // alert(e.data.type);
  1706. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1707. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1708. //3是展示全部阶段 2学生 1老师 4专家
  1709. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1710. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1711. //3是展示全部阶段 2学生 1老师 4专家
  1712. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1713. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1714. //3是展示全部阶段 2学生 1老师 4专家
  1715. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1716. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1717. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1718. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1719. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1720. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1721. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1722. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1723. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1724. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1725. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1726. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1727. //3是展示全部阶段 2学生 1老师 4专家
  1728. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1729. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1730. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1731. U.MD.D.I.selectUser();
  1732. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1733. var _formel = document.getElementById("study");
  1734. U.UF.F.windowZooming(_formel);
  1735. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1736. var _formel = document.getElementById("studyDetail");
  1737. U.UF.F.windowZooming(_formel);
  1738. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1739. var _formel = document.getElementById("studyDetail");
  1740. U.UF.F.windowZooming(_formel);
  1741. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1742. var _formel = document.getElementById("studentStudy");
  1743. U.UF.F.windowZooming(_formel);
  1744. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1745. // var _formel = document.getElementById("study");
  1746. //如果最大化了,那么就把他缩小
  1747. // if (_formel.ismaximize) {
  1748. // return;
  1749. // }
  1750. // U.UF.F.windowZooming(_formel);
  1751. // U.UF.F.topWindow(_formel);
  1752. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1753. // var _formel = document.getElementById("studyDetail");
  1754. //如果最大化了,那么就把他缩小
  1755. // if (_formel.ismaximize) {
  1756. // return;
  1757. // }
  1758. // U.UF.F.windowZooming(_formel);
  1759. // U.UF.F.topWindow(_formel);
  1760. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1761. // var _formel = document.getElementById("studentStudy");
  1762. // if (_formel.ismaximize) {
  1763. // return;
  1764. // }
  1765. // U.UF.F.windowZooming(_formel);
  1766. // U.UF.F.topWindow(_formel);
  1767. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1768. var _formel = document.getElementById("study");
  1769. // if (_formel.ismaximize) {
  1770. // return;
  1771. // }
  1772. // U.UF.F.windowZooming(_formel);
  1773. U.UF.F.topWindow(_formel);
  1774. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1775. var _formel = document.getElementById("studentIndex");
  1776. U.UF.F.windowZooming(_formel);
  1777. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1778. var _formel = document.getElementById("studyDetailS");
  1779. U.UF.F.windowZooming(_formel);
  1780. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1781. var _formel = document.getElementById("studioIndex");
  1782. U.UF.F.windowZooming(_formel);
  1783. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1784. var _formel = document.getElementById("studyDetailStudio");
  1785. U.UF.F.windowZooming(_formel);
  1786. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1787. var _formel = document.getElementById("studyDetailStudio");
  1788. U.UF.F.windowZooming(_formel);
  1789. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1790. var _formel = document.getElementById("studyDetailNT");
  1791. U.UF.F.windowZooming(_formel);
  1792. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1793. var _formel = document.getElementById("studyDetailS");
  1794. U.UF.F.windowZooming(_formel);
  1795. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1796. var _formel = document.getElementById("studyDetailS");
  1797. U.UF.F.topWindow(_formel);
  1798. } else if (e.data.tools && e.data.tools == "1") {
  1799. // U.MD.D.I.openApplication("whiteboard")
  1800. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1801. } else if (e.data.tools && e.data.tools == "2") {
  1802. U.MD.D.I.openApplication("note")
  1803. } else if (e.data.tools && e.data.tools == "3") {
  1804. // U.MD.D.I.openApplication("mind")
  1805. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1806. } else if (e.data.tools && e.data.tools == "4") {
  1807. U.MD.D.I.openApplication("investigation")
  1808. } else if (e.data.tools && e.data.tools == "6") {
  1809. // U.MD.D.I.openApplication("doc")
  1810. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1811. } else if (e.data.tools && e.data.tools == "7") {
  1812. // U.MD.D.I.openApplication("mindNetwork")
  1813. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1814. } else if (e.data.tools && e.data.tools == "8") {
  1815. U.MD.D.I.openApplication("library")
  1816. } else if (e.data.tools && e.data.tools == "17") {
  1817. U.MD.D.I.openApplication("stuLibrary")
  1818. } else if (e.data.tools && e.data.tools == "18") {
  1819. U.MD.D.I.openApplication("train")
  1820. } else if (e.data.tools && e.data.tools == "21") {
  1821. U.MD.D.I.openApplication("program")
  1822. } else if (e.data.tools && e.data.tools == "22") {
  1823. U.MD.D.I.openApplication("AIprogram2")
  1824. } else if (e.data.tools && e.data.tools == "23") {
  1825. U.MD.D.I.openApplication("Pythonprogram")
  1826. } else if (e.data.tools && e.data.tools == "24") {
  1827. U.MD.D.I.openApplication("AIprogram")
  1828. } else if (e.data.tools && e.data.tools == "25") {
  1829. U.MD.D.I.openApplication("sys")
  1830. } else if (e.data.tools && e.data.tools == "26") {
  1831. // U.MD.D.I.openApplication("courseDesign")
  1832. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1833. } else if (e.data.tools && e.data.tools == "31") {
  1834. U.MD.D.I.openApplication("netWorkPanel")
  1835. } else if (e.data.tools && e.data.tools == "32") {
  1836. U.MD.D.I.openApplication("codeEdit")
  1837. } else if (e.data.tools && e.data.tools == "57") {
  1838. U.MD.D.I.openApplication("CocoPi")
  1839. } else if (e.data.tools && e.data.tools == "63") {
  1840. U.MD.D.I.openApplication("Wood")
  1841. } else if (e.data.tools && e.data.tools == "58") {
  1842. U.MD.D.I.openApplication("car")
  1843. } else if (e.data.tools && e.data.tools == "59") {
  1844. U.MD.D.I.openApplication("lineSearch")
  1845. } else if (e.data.tools && e.data.tools == "60") {
  1846. U.MD.D.I.openApplication("deepLearning")
  1847. } else if (e.data.tools && e.data.tools == "61") {
  1848. U.MD.D.I.openApplication("allHistory")
  1849. } else if (e.data.tools && e.data.tools == "28") {
  1850. U.MD.D.I.openApplication("translation")
  1851. } else if (e.data.tools && e.data.tools == "37") {
  1852. U.MD.D.I.openApplication("mohe")
  1853. } else if (e.data.tools && e.data.tools == "38") {
  1854. U.MD.D.I.openApplication("24game")
  1855. } else if (e.data.tools && e.data.tools == "39") {
  1856. U.MD.D.I.openApplication("GeoGebra")
  1857. } else if (e.data.tools && e.data.tools == "43") {
  1858. U.MD.D.I.openApplication("studentEvaluate")
  1859. } else if (e.data.tools && e.data.tools == "44") {
  1860. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1861. } else if (e.data.tools && e.data.tools == "46") {
  1862. U.MD.D.I.openApplication("project")
  1863. } else if (e.data.tools && e.data.tools == "1s") {
  1864. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1865. } else if (e.data.tools && e.data.tools == "3s") {
  1866. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1867. } else if (e.data.tools && e.data.tools == "6s") {
  1868. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1869. } else if (e.data.tools && e.data.tools == "1studio") {
  1870. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1871. } else if (e.data.tools && e.data.tools == "3studio") {
  1872. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1873. } else if (e.data.tools && e.data.tools == "6studio") {
  1874. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1875. } else if (e.data.tools && e.data.tools == "3y") {
  1876. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1877. } else if (e.data.tools && e.data.tools == "1y") {
  1878. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1879. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1880. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1881. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1882. U.MD.D.I.openApplication("AIAnalyse")
  1883. } else if (e.data.tools && e.data.tools == "1teacher") {
  1884. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1885. } else if (e.data.tools && e.data.tools == "3teacher") {
  1886. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1887. } else if (e.data.tools && e.data.tools == "7teacher") {
  1888. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1889. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1890. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1891. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1892. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1893. } else if (e.data.tools && e.data.tools == "1E") {
  1894. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1895. } else if (e.data.tools && e.data.tools == "3E") {
  1896. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1897. } else if (e.data.tools && e.data.tools == "57y") {
  1898. U.MD.D.I.openApplicationYu("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1899. } else if (e.data.tools && e.data.tools == "57u") {
  1900. U.MD.D.I.openApplicationUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1901. } else if (e.data.tools && e.data.tools == "57teacher") {
  1902. U.MD.D.I.openApplicationTeacherUpload("CocoPi", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1903. }
  1904. });
  1905. U.MD.D.I.selectUser = function () {
  1906. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1907. if (res.value[0].length > 0) {
  1908. US.userInfo = res.value[0][0];
  1909. $(".userName")[0].innerHTML = US.userInfo.username;
  1910. }
  1911. }, [], { "type": "GET", "withCredentials": true });
  1912. }
  1913. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1914. var _userinfo = US.userInfo, //登录用户信息
  1915. _userid = US.userInfo.userid, //登录用户id
  1916. _oid = _userinfo.organizeid,
  1917. _type = US.userInfo.type,
  1918. _org = US.userInfo.org,
  1919. _role = US.userInfo.role,
  1920. _classId = US.userInfo.classid;
  1921. if (_type == 4) {
  1922. tType = 4
  1923. }
  1924. switch (str) {
  1925. case "studyDetailNT"://无终端模式
  1926. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1927. setTimeout(() => {
  1928. U.MD.U.L.login();
  1929. }, 2000);
  1930. } else {
  1931. _formdiv = new U.UF.UI.form(
  1932. "课程详情",
  1933. $$("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 }), {
  1934. "id": "studyDetailNT",
  1935. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1936. "onresize": function () { }
  1937. }, {
  1938. closecallback: function () { }
  1939. }, { "style": { "height": "36px" } }).form; //创建窗体
  1940. _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); } }
  1941. break;
  1942. }
  1943. case "studyDetail":
  1944. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1945. setTimeout(() => {
  1946. U.MD.U.L.login();
  1947. }, 2000);
  1948. } else {
  1949. _formdiv = new U.UF.UI.form(
  1950. "课程详情",
  1951. $$("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 }), {
  1952. "id": "studyDetail",
  1953. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1954. "onresize": function () { }
  1955. }, {
  1956. closecallback: function () { }
  1957. }, { "style": { "height": "36px" } }).form; //创建窗体
  1958. _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); } }
  1959. break;
  1960. }
  1961. case "studyDetailS":
  1962. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1963. setTimeout(() => {
  1964. U.MD.U.L.login();
  1965. }, 2000);
  1966. } else {
  1967. _formdiv = new U.UF.UI.form(
  1968. "项目详情",
  1969. $$("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 }), {
  1970. "id": "studyDetailS",
  1971. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1972. "onresize": function () { }
  1973. }, {
  1974. closecallback: function () { }
  1975. }, { "style": { "height": "36px" } }).form; //创建窗体
  1976. _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); } }
  1977. break;
  1978. }
  1979. case "studyDetailStudio":
  1980. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1981. setTimeout(() => {
  1982. U.MD.U.L.login();
  1983. }, 2000);
  1984. } else {
  1985. _formdiv = new U.UF.UI.form(
  1986. "工作详情",
  1987. $$("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 }), {
  1988. "id": "studyDetailStudio",
  1989. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1990. "onresize": function () { }
  1991. }, {
  1992. closecallback: function () { }
  1993. }, { "style": { "height": "36px" } }).form; //创建窗体
  1994. _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); } }
  1995. break;
  1996. }
  1997. case "studyDetailS5":
  1998. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1999. setTimeout(() => {
  2000. U.MD.U.L.login();
  2001. }, 2000);
  2002. } else {
  2003. _formdiv = new U.UF.UI.form(
  2004. "项目详情",
  2005. $$("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 }), {
  2006. "id": "studyDetailS",
  2007. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  2008. "onresize": function () { }
  2009. }, {
  2010. closecallback: function () { }
  2011. }, { "style": { "height": "36px" } }).form; //创建窗体
  2012. _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); } }
  2013. break;
  2014. }
  2015. case "studyDetailGM":
  2016. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2017. setTimeout(() => {
  2018. U.MD.U.L.login();
  2019. }, 2000);
  2020. } else {
  2021. _formdiv = new U.UF.UI.form(
  2022. "课程详情",
  2023. $$("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 }), {
  2024. "id": "studyDetail",
  2025. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2026. "onresize": function () { }
  2027. }, {
  2028. closecallback: function () { }
  2029. }, { "style": { "height": "36px" } }).form; //创建窗体
  2030. _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); } }
  2031. break;
  2032. }
  2033. case "hanUrl":
  2034. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  2035. setTimeout(() => {
  2036. U.MD.U.L.login();
  2037. }, 2000);
  2038. } else {
  2039. _formdiv = new U.UF.UI.form(
  2040. "汉字宫",
  2041. $$("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" }), {
  2042. "id": "hanUrl",
  2043. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2044. "onresize": function () { }
  2045. }, {
  2046. closecallback: function () { }
  2047. }, { "style": { "height": "36px" } }).form; //创建窗体
  2048. _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); } }
  2049. break;
  2050. }
  2051. }
  2052. }
  2053. U.MD.D.I.openApplication = function (str, obj, info) {
  2054. obj = obj || {};
  2055. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  2056. _formdiv, //创建任务栏时同时弹出的窗体元素。
  2057. _userinfo = US.userInfo, //登录用户信息
  2058. _userid = obj.userid || US.userInfo.userid, //登录用户id
  2059. _oid = obj.organizeid || _userinfo.organizeid,
  2060. _type = US.userInfo.type,
  2061. _org = US.userInfo.org,
  2062. _role = US.userInfo.role,
  2063. _classId = US.userInfo.classid,
  2064. _TscreenType = 1
  2065. _screenType = 2,
  2066. _SscreenType = 3;
  2067. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  2068. return;
  2069. }
  2070. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2071. switch (str) {
  2072. case "studnetProject": //好友打开
  2073. _formdiv = new U.UF.UI.form(
  2074. "我的项目",
  2075. $$("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 }), {
  2076. "id": "studnetProject",
  2077. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2078. "onresize": function () { }
  2079. }, {
  2080. closecallback: function () { }
  2081. }, { "style": { "height": "36px" } }).form; //创建窗体
  2082. _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); } }
  2083. break;
  2084. case "studentEvaluate": //好友打开
  2085. _formdiv = new U.UF.UI.form(
  2086. "我的评价",
  2087. $$("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 }), {
  2088. "id": "studentEvaluate",
  2089. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2090. "onresize": function () { }
  2091. }, {
  2092. closecallback: function () { }
  2093. }, { "style": { "height": "36px" } }).form; //创建窗体
  2094. _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); } }
  2095. break;
  2096. case "my":
  2097. _formdiv = new U.UF.UI.form(
  2098. "我的资料",
  2099. $$("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 }), {
  2100. "id": "my",
  2101. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2102. "onresize": function () { }
  2103. }, {
  2104. closecallback: function () { }
  2105. }, { "style": { "height": "36px" } }).form; //创建窗体
  2106. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2107. break;
  2108. case "program":
  2109. _formdiv = new U.UF.UI.form(
  2110. "编程平台",
  2111. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2112. "id": "program",
  2113. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2114. "onresize": function () { }
  2115. }, {
  2116. closecallback: function () { }
  2117. }, { "style": { "height": "36px" } }).form; //创建窗体
  2118. _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); } }
  2119. break;
  2120. case "library":
  2121. _formdiv = new U.UF.UI.form(
  2122. "素材库",
  2123. $$("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 }), {
  2124. "id": "library",
  2125. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2126. "onresize": function () { }
  2127. }, {
  2128. closecallback: function () { }
  2129. }, { "style": { "height": "36px" } }).form; //创建窗体
  2130. _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); } }
  2131. break;
  2132. case "whiteboard":
  2133. _formdiv = new U.UF.UI.form(
  2134. "电子白板",
  2135. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2136. "id": "whiteboard",
  2137. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2138. "onresize": function () { }
  2139. }, {
  2140. closecallback: function () { }
  2141. }, { "style": { "height": "36px" } }).form; //创建窗体
  2142. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2143. break;
  2144. case "investigation":
  2145. _formdiv = new U.UF.UI.form(
  2146. "问卷调查",
  2147. $$("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 }), {
  2148. "id": "investigation",
  2149. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2150. "onresize": function () { }
  2151. }, {
  2152. closecallback: function () { }
  2153. }, { "style": { "height": "36px" } }).form; //创建窗体
  2154. _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); } }
  2155. break;
  2156. case "note":
  2157. _formdiv = new U.UF.UI.form(
  2158. "便签分类",
  2159. $$("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 }), {
  2160. "id": "note",
  2161. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2162. "onresize": function () { }
  2163. }, {
  2164. closecallback: function () { }
  2165. }, { "style": { "height": "36px" } }).form; //创建窗体
  2166. _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); } }
  2167. break;
  2168. // case "score":
  2169. // _formdiv = new U.UF.UI.form(
  2170. // "量规评分",
  2171. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2172. // "id": "score",
  2173. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2174. // "onresize": function() {}
  2175. // }, {
  2176. // closecallback: function() {}
  2177. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2178. // _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/score.png)" }, "name": "量规评分", "forms": _formdiv, "click": function() { U.MD.D.I.openApplication(str, obj, info); } }
  2179. // break;
  2180. case "mind":
  2181. _formdiv = new U.UF.UI.form(
  2182. "思维导图",
  2183. $$("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"
  2184. "id": "mind",
  2185. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2186. "onresize": function () { }
  2187. }, {
  2188. closecallback: function () { }
  2189. }, { "style": { "height": "36px" } }).form; //创建窗体
  2190. _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); } }
  2191. break;
  2192. case "doc":
  2193. // U.MD.D.I.isRoom();
  2194. _formdiv = new U.UF.UI.form(
  2195. "协同文档",
  2196. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  2197. "id": "doc",
  2198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2199. "onresize": function () { }
  2200. }, {
  2201. closecallback: function () { }
  2202. }, { "style": { "height": "36px" } }).form; //创建窗体
  2203. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2204. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2205. // })
  2206. _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); } }
  2207. break;
  2208. case "studentStudy":
  2209. _formdiv = new U.UF.UI.form(
  2210. "课程中心",
  2211. $$("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
  2212. "id": "studentStudy",
  2213. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2214. "onresize": function () { }
  2215. }, {
  2216. closecallback: function () { }
  2217. }, { "style": { "height": "36px" } }).form; //创建窗体
  2218. _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); } }
  2219. break;
  2220. case "train": //好友打开
  2221. _formdiv = new U.UF.UI.form(
  2222. "训练平台",
  2223. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2224. "id": "train",
  2225. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2226. "onresize": function () { }
  2227. }, {
  2228. closecallback: function () { }
  2229. }, { "style": { "height": "36px" } }).form; //创建窗体
  2230. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2231. break;
  2232. case "mindNetwork": //好友打开
  2233. _formdiv = new U.UF.UI.form(
  2234. "思维网格",
  2235. $$("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 }), {
  2236. "id": "mindNetwork",
  2237. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2238. "onresize": function () { }
  2239. }, {
  2240. closecallback: function () { }
  2241. }, { "style": { "height": "36px" } }).form; //创建窗体
  2242. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2243. break;
  2244. case "studentClassRoom": //好友打开
  2245. _formdiv = new U.UF.UI.form(
  2246. "实时课堂",
  2247. $$("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 }), {
  2248. "id": "studentClassRoom",
  2249. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2250. "onresize": function () { }
  2251. }, {
  2252. closecallback: function () { }
  2253. }, { "style": { "height": "36px" } }).form; //创建窗体
  2254. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2255. setTimeout(() => {
  2256. U.UF.F.windowZooming(_formdiv)
  2257. }, 0);
  2258. break;
  2259. }
  2260. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2261. switch (str) {
  2262. case "studnetProject": //好友打开
  2263. _formdiv = new U.UF.UI.form(
  2264. "我的项目",
  2265. $$("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 }), {
  2266. "id": "studnetProject",
  2267. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2268. "onresize": function () { }
  2269. }, {
  2270. closecallback: function () { }
  2271. }, { "style": { "height": "36px" } }).form; //创建窗体
  2272. _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); } }
  2273. break;
  2274. case "studentEvaluate": //好友打开
  2275. _formdiv = new U.UF.UI.form(
  2276. "我的评价",
  2277. $$("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 }), {
  2278. "id": "studentEvaluate",
  2279. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2280. "onresize": function () { }
  2281. }, {
  2282. closecallback: function () { }
  2283. }, { "style": { "height": "36px" } }).form; //创建窗体
  2284. _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); } }
  2285. break;
  2286. case "my":
  2287. _formdiv = new U.UF.UI.form(
  2288. "我的资料",
  2289. $$("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 }), {
  2290. "id": "my",
  2291. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2292. "onresize": function () { }
  2293. }, {
  2294. closecallback: function () { }
  2295. }, { "style": { "height": "36px" } }).form; //创建窗体
  2296. _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); } }
  2297. break;
  2298. case "program":
  2299. _formdiv = new U.UF.UI.form(
  2300. "编程平台",
  2301. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2302. "id": "program",
  2303. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2304. "onresize": function () { }
  2305. }, {
  2306. closecallback: function () { }
  2307. }, { "style": { "height": "36px" } }).form; //创建窗体
  2308. _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); } }
  2309. break;
  2310. case "library":
  2311. _formdiv = new U.UF.UI.form(
  2312. "素材库",
  2313. $$("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 }), {
  2314. "id": "library",
  2315. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2316. "onresize": function () { }
  2317. }, {
  2318. closecallback: function () { }
  2319. }, { "style": { "height": "36px" } }).form; //创建窗体
  2320. _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); } }
  2321. break;
  2322. case "whiteboard":
  2323. _formdiv = new U.UF.UI.form(
  2324. "电子白板",
  2325. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2326. "id": "whiteboard",
  2327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2328. "onresize": function () { }
  2329. }, {
  2330. closecallback: function () { }
  2331. }, { "style": { "height": "36px" } }).form; //创建窗体
  2332. _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); } }
  2333. break;
  2334. case "investigation":
  2335. _formdiv = new U.UF.UI.form(
  2336. "问卷调查",
  2337. $$("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 }), {
  2338. "id": "investigation",
  2339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2340. "onresize": function () { }
  2341. }, {
  2342. closecallback: function () { }
  2343. }, { "style": { "height": "36px" } }).form; //创建窗体
  2344. _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); } }
  2345. break;
  2346. case "note":
  2347. _formdiv = new U.UF.UI.form(
  2348. "便签分类",
  2349. $$("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 }), {
  2350. "id": "note",
  2351. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2352. "onresize": function () { }
  2353. }, {
  2354. closecallback: function () { }
  2355. }, { "style": { "height": "36px" } }).form; //创建窗体
  2356. _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); } }
  2357. break;
  2358. // case "score":
  2359. // _formdiv = new U.UF.UI.form(
  2360. // "量规评分",
  2361. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2362. // "id": "score",
  2363. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2364. // "onresize": function() {}
  2365. // }, {
  2366. // closecallback: function() {}
  2367. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2368. // _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); } }
  2369. // break;
  2370. case "mind":
  2371. _formdiv = new U.UF.UI.form(
  2372. "思维导图",
  2373. $$("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"
  2374. "id": "mind",
  2375. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2376. "onresize": function () { }
  2377. }, {
  2378. closecallback: function () { }
  2379. }, { "style": { "height": "36px" } }).form; //创建窗体
  2380. _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); } }
  2381. break;
  2382. case "doc":
  2383. // U.MD.D.I.isRoom();
  2384. _formdiv = new U.UF.UI.form(
  2385. "协同文档",
  2386. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2387. "id": "doc",
  2388. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2389. "onresize": function () { }
  2390. }, {
  2391. closecallback: function () { }
  2392. }, { "style": { "height": "36px" } }).form; //创建窗体
  2393. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2394. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2395. })
  2396. _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); } }
  2397. break;
  2398. case "train": //好友打开
  2399. _formdiv = new U.UF.UI.form(
  2400. "训练平台",
  2401. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2402. "id": "train",
  2403. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2404. "onresize": function () { }
  2405. }, {
  2406. closecallback: function () { }
  2407. }, { "style": { "height": "36px" } }).form; //创建窗体
  2408. _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); } }
  2409. break;
  2410. case "studentStudy":
  2411. _formdiv = new U.UF.UI.form(
  2412. "课程中心",
  2413. $$("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
  2414. "id": "studentStudy",
  2415. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2416. "onresize": function () { }
  2417. }, {
  2418. closecallback: function () { }
  2419. }, { "style": { "height": "36px" } }).form; //创建窗体
  2420. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2421. break;
  2422. case "mindNetwork": //好友打开
  2423. _formdiv = new U.UF.UI.form(
  2424. "思维网格",
  2425. $$("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 }), {
  2426. "id": "mindNetwork",
  2427. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2428. "onresize": function () { }
  2429. }, {
  2430. closecallback: function () { }
  2431. }, { "style": { "height": "36px" } }).form; //创建窗体
  2432. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2433. break;
  2434. case "studentClassRoom": //好友打开
  2435. _formdiv = new U.UF.UI.form(
  2436. "实时课堂",
  2437. $$("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 }), {
  2438. "id": "studentClassRoom",
  2439. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2440. "onresize": function () { }
  2441. }, {
  2442. closecallback: function () { }
  2443. }, { "style": { "height": "36px" } }).form; //创建窗体
  2444. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2445. setTimeout(() => {
  2446. U.UF.F.windowZooming(_formdiv)
  2447. }, 0);
  2448. break;
  2449. }
  2450. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2451. //选择应用处理
  2452. switch (str) {
  2453. case "project": //好友打开
  2454. _formdiv = new U.UF.UI.form(
  2455. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2456. $$("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 }), {
  2457. "id": "project",
  2458. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2459. "onresize": function () { }
  2460. }, {
  2461. closecallback: function () { }
  2462. }, { "style": { "height": "36px" } }).form; //创建窗体
  2463. _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); } }
  2464. break;
  2465. case "student":
  2466. _formdiv = new U.UF.UI.form(
  2467. "学生管理",
  2468. $$("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 }), {
  2469. "id": "student",
  2470. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2471. "onresize": function () { }
  2472. }, {
  2473. closecallback: function () { }
  2474. }, { "style": { "height": "36px" } }).form; //创建窗体
  2475. _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); } }
  2476. break;
  2477. case "evaluate":
  2478. _formdiv = new U.UF.UI.form(
  2479. "学生评价",
  2480. $$("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 }), {
  2481. "id": "evaluate",
  2482. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2483. "onresize": function () { }
  2484. }, {
  2485. closecallback: function () { }
  2486. }, { "style": { "height": "36px" } }).form; //创建窗体
  2487. _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); } }
  2488. break;
  2489. case "sys":
  2490. _formdiv = new U.UF.UI.form(
  2491. "目标管理",
  2492. $$("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 }), {
  2493. "id": "sys",
  2494. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2495. "onresize": function () { }
  2496. }, {
  2497. closecallback: function () { }
  2498. }, { "style": { "height": "36px" } }).form; //创建窗体
  2499. _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); } }
  2500. break;
  2501. case "courseDesign":
  2502. _formdiv = new U.UF.UI.form(
  2503. "项目设计",
  2504. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2505. "id": "courseDesign",
  2506. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2507. "onresize": function () { }
  2508. }, {
  2509. closecallback: function () { }
  2510. }, { "style": { "height": "36px" } }).form; //创建窗体
  2511. _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); } }
  2512. break;
  2513. case "program":
  2514. _formdiv = new U.UF.UI.form(
  2515. "编程平台",
  2516. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2517. "id": "program",
  2518. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2519. "onresize": function () { }
  2520. }, {
  2521. closecallback: function () { }
  2522. }, { "style": { "height": "36px" } }).form; //创建窗体
  2523. _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); } }
  2524. break;
  2525. case "class":
  2526. _formdiv = new U.UF.UI.form(
  2527. "班级管理",
  2528. $$("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 }), {
  2529. "id": "class",
  2530. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2531. "onresize": function () { }
  2532. }, {
  2533. closecallback: function () { }
  2534. }, { "style": { "height": "36px" } }).form; //创建窗体
  2535. _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); } }
  2536. break;
  2537. case "Grade":
  2538. _formdiv = new U.UF.UI.form(
  2539. "年级管理",
  2540. $$("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 }), {
  2541. "id": "class",
  2542. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2543. "onresize": function () { }
  2544. }, {
  2545. closecallback: function () { }
  2546. }, { "style": { "height": "36px" } }).form; //创建窗体
  2547. _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); } }
  2548. break;
  2549. case "my":
  2550. _formdiv = new U.UF.UI.form(
  2551. "我的资料",
  2552. $$("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 }), {
  2553. "id": "my",
  2554. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2555. "onresize": function () { }
  2556. }, {
  2557. closecallback: function () { }
  2558. }, { "style": { "height": "36px" } }).form; //创建窗体
  2559. _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); } }
  2560. break;
  2561. case "notice":
  2562. _formdiv = new U.UF.UI.form(
  2563. "通知公告",
  2564. $$("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 }), {
  2565. "id": "notice",
  2566. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2567. "onresize": function () { }
  2568. }, {
  2569. closecallback: function () { }
  2570. }, { "style": { "height": "36px" } }).form; //创建窗体
  2571. _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); } }
  2572. break;
  2573. case "library":
  2574. _formdiv = new U.UF.UI.form(
  2575. "素材库",
  2576. $$("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 }), {
  2577. "id": "library",
  2578. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2579. "onresize": function () { }
  2580. }, {
  2581. closecallback: function () { }
  2582. }, { "style": { "height": "36px" } }).form; //创建窗体
  2583. _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); } }
  2584. break;
  2585. case "whiteboard":
  2586. _formdiv = new U.UF.UI.form(
  2587. "电子白板",
  2588. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2589. "id": "whiteboard",
  2590. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2591. "onresize": function () { }
  2592. }, {
  2593. closecallback: function () { }
  2594. }, { "style": { "height": "36px" } }).form; //创建窗体
  2595. _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); } }
  2596. break;
  2597. case "investigation":
  2598. _formdiv = new U.UF.UI.form(
  2599. "问卷调查",
  2600. $$("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 }), {
  2601. "id": "investigation",
  2602. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2603. "onresize": function () { }
  2604. }, {
  2605. closecallback: function () { }
  2606. }, { "style": { "height": "36px" } }).form; //创建窗体
  2607. _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); } }
  2608. break;
  2609. case "note":
  2610. _formdiv = new U.UF.UI.form(
  2611. "便签分类",
  2612. $$("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 }), {
  2613. "id": "note",
  2614. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2615. "onresize": function () { }
  2616. }, {
  2617. closecallback: function () { }
  2618. }, { "style": { "height": "36px" } }).form; //创建窗体
  2619. _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); } }
  2620. break;
  2621. // case "score":
  2622. // _formdiv = new U.UF.UI.form(
  2623. // "量规评分",
  2624. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2625. // "id": "score",
  2626. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2627. // "onresize": function() {}
  2628. // }, {
  2629. // closecallback: function() {}
  2630. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2631. // _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); } }
  2632. // break;
  2633. case "mind":
  2634. _formdiv = new U.UF.UI.form(
  2635. "思维导图",
  2636. $$("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"
  2637. "id": "mind",
  2638. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2639. "onresize": function () { }
  2640. }, {
  2641. closecallback: function () { }
  2642. }, { "style": { "height": "36px" } }).form; //创建窗体
  2643. _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); } }
  2644. break;
  2645. case "doc":
  2646. // U.MD.D.I.isRoom();
  2647. _formdiv = new U.UF.UI.form(
  2648. "协同文档",
  2649. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2650. "id": "doc",
  2651. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2652. "onresize": function () { }
  2653. }, {
  2654. closecallback: function () { }
  2655. }, { "style": { "height": "36px" } }).form; //创建窗体
  2656. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2657. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2658. })
  2659. _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); } }
  2660. break;
  2661. case "study":
  2662. _formdiv = new U.UF.UI.form(
  2663. "课程中心",
  2664. $$("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
  2665. "id": "study",
  2666. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2667. "onresize": function () { }
  2668. }, {
  2669. closecallback: function () { }
  2670. }, { "style": { "height": "36px" } }).form; //创建窗体
  2671. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2672. break;
  2673. case "mindNetwork": //好友打开
  2674. _formdiv = new U.UF.UI.form(
  2675. "思维网格",
  2676. $$("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 }), {
  2677. "id": "mindNetwork",
  2678. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2679. "onresize": function () { }
  2680. }, {
  2681. closecallback: function () { }
  2682. }, { "style": { "height": "36px" } }).form; //创建窗体
  2683. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2684. break;
  2685. case "train": //好友打开
  2686. _formdiv = new U.UF.UI.form(
  2687. "训练平台",
  2688. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2689. "id": "mindNetwork",
  2690. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2691. "onresize": function () { }
  2692. }, {
  2693. closecallback: function () { }
  2694. }, { "style": { "height": "36px" } }).form; //创建窗体
  2695. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2696. break;
  2697. case "teacherClassRoom": //好友打开
  2698. _formdiv = new U.UF.UI.form(
  2699. "实时课堂",
  2700. $$("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 }), {
  2701. "id": "teacherClassRoom",
  2702. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2703. "onresize": function () { }
  2704. }, {
  2705. closecallback: function () { }
  2706. }, { "style": { "height": "36px" } }).form; //创建窗体
  2707. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2708. setTimeout(() => {
  2709. U.UF.F.windowZooming(_formdiv)
  2710. }, 0);
  2711. break;
  2712. }
  2713. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2714. switch (str) {
  2715. case "project": //好友打开
  2716. _formdiv = new U.UF.UI.form(
  2717. "课程管理",
  2718. $$("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 }), {
  2719. "id": "project",
  2720. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2721. "onresize": function () { }
  2722. }, {
  2723. closecallback: function () { }
  2724. }, { "style": { "height": "36px" } }).form; //创建窗体
  2725. _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); } }
  2726. break;
  2727. case "evaluate":
  2728. _formdiv = new U.UF.UI.form(
  2729. "学生评价",
  2730. $$("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 }), {
  2731. "id": "evaluate",
  2732. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2733. "onresize": function () { }
  2734. }, {
  2735. closecallback: function () { }
  2736. }, { "style": { "height": "36px" } }).form; //创建窗体
  2737. _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); } }
  2738. break;
  2739. case "notice":
  2740. _formdiv = new U.UF.UI.form(
  2741. "通知公告",
  2742. $$("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 }), {
  2743. "id": "notice",
  2744. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2745. "onresize": function () { }
  2746. }, {
  2747. closecallback: function () { }
  2748. }, { "style": { "height": "36px" } }).form; //创建窗体
  2749. _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); } }
  2750. break;
  2751. case "stuLibrary":
  2752. _formdiv = new U.UF.UI.form(
  2753. "学习资料",
  2754. $$("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 }), {
  2755. "id": "stuLibrary",
  2756. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2757. "onresize": function () { }
  2758. }, {
  2759. closecallback: function () { }
  2760. }, { "style": { "height": "36px" } }).form; //创建窗体
  2761. _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); } }
  2762. break;
  2763. case "program":
  2764. _formdiv = new U.UF.UI.form(
  2765. "编程平台",
  2766. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2767. "id": "program",
  2768. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2769. "onresize": function () { }
  2770. }, {
  2771. closecallback: function () { }
  2772. }, { "style": { "height": "36px" } }).form; //创建窗体
  2773. _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); } }
  2774. break;
  2775. case "whiteboard":
  2776. _formdiv = new U.UF.UI.form(
  2777. "电子白板",
  2778. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2779. "id": "whiteboard",
  2780. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2781. "onresize": function () { }
  2782. }, {
  2783. closecallback: function () { }
  2784. }, { "style": { "height": "36px" } }).form; //创建窗体
  2785. _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); } }
  2786. break;
  2787. case "investigation":
  2788. _formdiv = new U.UF.UI.form(
  2789. "问卷调查",
  2790. $$("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 }), {
  2791. "id": "investigation",
  2792. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2793. "onresize": function () { }
  2794. }, {
  2795. closecallback: function () { }
  2796. }, { "style": { "height": "36px" } }).form; //创建窗体
  2797. _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); } }
  2798. break;
  2799. case "mind":
  2800. _formdiv = new U.UF.UI.form(
  2801. "思维导图",
  2802. $$("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"
  2803. "id": "mind",
  2804. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2805. "onresize": function () { }
  2806. }, {
  2807. closecallback: function () { }
  2808. }, { "style": { "height": "36px" } }).form; //创建窗体
  2809. _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); } }
  2810. break;
  2811. case "doc":
  2812. // U.MD.D.I.isRoom();
  2813. _formdiv = new U.UF.UI.form(
  2814. "协同文档",
  2815. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2816. "id": "doc",
  2817. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2818. "onresize": function () { }
  2819. }, {
  2820. closecallback: function () { }
  2821. }, { "style": { "height": "36px" } }).form; //创建窗体
  2822. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2823. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2824. })
  2825. _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); } }
  2826. break;
  2827. case "study":
  2828. _formdiv = new U.UF.UI.form(
  2829. "课程中心",
  2830. $$("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
  2831. "id": "study",
  2832. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2833. "onresize": function () { }
  2834. }, {
  2835. closecallback: function () { }
  2836. }, { "style": { "height": "36px" } }).form; //创建窗体
  2837. _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); } }
  2838. break;
  2839. case "mindNetwork": //好友打开
  2840. _formdiv = new U.UF.UI.form(
  2841. "思维网格",
  2842. $$("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 }), {
  2843. "id": "mindNetwork",
  2844. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2845. "onresize": function () { }
  2846. }, {
  2847. closecallback: function () { }
  2848. }, { "style": { "height": "36px" } }).form; //创建窗体
  2849. _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); } }
  2850. break;
  2851. case "train": //好友打开
  2852. _formdiv = new U.UF.UI.form(
  2853. "训练平台",
  2854. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2855. "id": "train",
  2856. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2857. "onresize": function () { }
  2858. }, {
  2859. closecallback: function () { }
  2860. }, { "style": { "height": "36px" } }).form; //创建窗体
  2861. _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); } }
  2862. break;
  2863. case "sys":
  2864. _formdiv = new U.UF.UI.form(
  2865. "目标管理",
  2866. $$("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 }), {
  2867. "id": "sys",
  2868. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2869. "onresize": function () { }
  2870. }, {
  2871. closecallback: function () { }
  2872. }, { "style": { "height": "36px" } }).form; //创建窗体
  2873. _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); } }
  2874. break;
  2875. case "courseDesign":
  2876. _formdiv = new U.UF.UI.form(
  2877. "项目设计",
  2878. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2879. "id": "courseDesign",
  2880. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2881. "onresize": function () { }
  2882. }, {
  2883. closecallback: function () { }
  2884. }, { "style": { "height": "36px" } }).form; //创建窗体
  2885. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/courseDesign.png)" }, "name": "项目设计", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2886. break;
  2887. }
  2888. } else if (!_type) {
  2889. switch (str) {
  2890. case "my":
  2891. _formdiv = new U.UF.UI.form(
  2892. "我的资料",
  2893. $$("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 }), {
  2894. "id": "my",
  2895. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2896. "onresize": function () { }
  2897. }, {
  2898. closecallback: function () { }
  2899. }, { "style": { "height": "36px" } }).form; //创建窗体
  2900. _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); } }
  2901. break;
  2902. }
  2903. }
  2904. switch (str) {
  2905. // AIprogram2 AI体验 aihub.cocorobo.cn
  2906. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2907. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2908. case "AIprogram2": //AI体验
  2909. _formdiv = new U.UF.UI.form(
  2910. "AI体验",
  2911. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2912. "id": "AIprogram2",
  2913. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2914. "onresize": function () { }
  2915. }, {
  2916. closecallback: function () { }
  2917. }, { "style": { "height": "36px" } }).form; //创建窗体
  2918. _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); } }
  2919. break;
  2920. case "Pythonprogram": //python编程
  2921. _formdiv = new U.UF.UI.form(
  2922. "Python编程",
  2923. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2924. "id": "Pythonprogram",
  2925. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2926. "onresize": function () { }
  2927. }, {
  2928. closecallback: function () { }
  2929. }, { "style": { "height": "36px" } }).form; //创建窗体
  2930. _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); } }
  2931. break;
  2932. case "AIprogram": //ai编程
  2933. _formdiv = new U.UF.UI.form(
  2934. "AI编程平台",
  2935. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2936. "id": "AIprogram",
  2937. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2938. "onresize": function () { }
  2939. }, {
  2940. closecallback: function () { }
  2941. }, { "style": { "height": "36px" } }).form; //创建窗体
  2942. _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); } }
  2943. break;
  2944. case "CocoPi": //CocoPi
  2945. _formdiv = new U.UF.UI.form(
  2946. "CocoPi",
  2947. $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2948. "id": "CocoPi",
  2949. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2950. "onresize": function () { }
  2951. }, {
  2952. closecallback: function () { }
  2953. }, { "style": { "height": "36px" } }).form; //创建窗体
  2954. _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); } }
  2955. break;
  2956. case "Wood": //Wood
  2957. _formdiv = new U.UF.UI.form(
  2958. "海龟编程",
  2959. $$("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/" }), {
  2960. "id": "Wood",
  2961. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2962. "onresize": function () { }
  2963. }, {
  2964. closecallback: function () { }
  2965. }, { "style": { "height": "36px" } }).form; //创建窗体
  2966. _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); } }
  2967. break;
  2968. case "car": //模拟驾驶
  2969. _formdiv = new U.UF.UI.form(
  2970. "模拟驾驶",
  2971. $$("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/" }), {
  2972. "id": "car",
  2973. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2974. "onresize": function () { }
  2975. }, {
  2976. closecallback: function () { }
  2977. }, { "style": { "height": "36px" } }).form; //创建窗体
  2978. _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); } }
  2979. break;
  2980. case "lineSearch": //路径搜索
  2981. _formdiv = new U.UF.UI.form(
  2982. "路径搜索",
  2983. $$("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/" }), {
  2984. "id": "lineSearch",
  2985. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2986. "onresize": function () { }
  2987. }, {
  2988. closecallback: function () { }
  2989. }, { "style": { "height": "36px" } }).form; //创建窗体
  2990. _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); } }
  2991. break;
  2992. case "deepLearning": //深度学习
  2993. _formdiv = new U.UF.UI.form(
  2994. "深度学习",
  2995. $$("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/#" }), {
  2996. "id": "deepLearning",
  2997. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2998. "onresize": function () { }
  2999. }, {
  3000. closecallback: function () { }
  3001. }, { "style": { "height": "36px" } }).form; //创建窗体
  3002. _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); } }
  3003. break;
  3004. case "allHistory": //深度学习
  3005. _formdiv = new U.UF.UI.form(
  3006. "全历史",
  3007. $$("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/" }), {
  3008. "id": "allHistory",
  3009. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3010. "onresize": function () { }
  3011. }, {
  3012. closecallback: function () { }
  3013. }, { "style": { "height": "36px" } }).form; //创建窗体
  3014. _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); } }
  3015. break;
  3016. case "chatPDF": //ai编程
  3017. _formdiv = new U.UF.UI.form(
  3018. "chatPDF",
  3019. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  3020. "id": "chatPDF",
  3021. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3022. "onresize": function () { }
  3023. }, {
  3024. closecallback: function () { }
  3025. }, { "style": { "height": "36px" } }).form; //创建窗体
  3026. _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); } }
  3027. break;
  3028. case "resources": //国家教育
  3029. _formdiv = new U.UF.UI.form(
  3030. "国家教育",
  3031. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  3032. "id": "resources",
  3033. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3034. "onresize": function () { }
  3035. }, {
  3036. closecallback: function () { }
  3037. }, { "style": { "height": "36px" } }).form; //创建窗体
  3038. _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); } }
  3039. break;
  3040. case "codeEdit": //源码编辑
  3041. _formdiv = new U.UF.UI.form(
  3042. "源码编辑",
  3043. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  3044. "id": "codeEdit",
  3045. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3046. "onresize": function () { }
  3047. }, {
  3048. closecallback: function () { }
  3049. }, { "style": { "height": "36px" } }).form; //创建窗体
  3050. _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); } }
  3051. break; //
  3052. case "MindMap": //MindMap
  3053. _formdiv = new U.UF.UI.form(
  3054. "MindMap",
  3055. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  3056. "id": "MindMap",
  3057. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3058. "onresize": function () { }
  3059. }, {
  3060. closecallback: function () { }
  3061. }, { "style": { "height": "36px" } }).form; //创建窗体
  3062. _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); } }
  3063. break;
  3064. case "netWorkPanel": //netWorkPanel
  3065. _formdiv = new U.UF.UI.form(
  3066. "netWorkPanel",
  3067. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  3068. "id": "netWorkPanel",
  3069. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3070. "onresize": function () { }
  3071. }, {
  3072. closecallback: function () { }
  3073. }, { "style": { "height": "36px" } }).form; //创建窗体
  3074. _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); } }
  3075. break;
  3076. case "GeoGebra": //GeoGebra
  3077. _formdiv = new U.UF.UI.form(
  3078. "GeoGebra",
  3079. $$("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" }), {
  3080. "id": "GeoGebra",
  3081. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3082. "onresize": function () { }
  3083. }, {
  3084. closecallback: function () { }
  3085. }, { "style": { "height": "36px" } }).form; //创建窗体
  3086. _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); } }
  3087. break;
  3088. case "translation": //翻译
  3089. _formdiv = new U.UF.UI.form(
  3090. "翻译",
  3091. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  3092. "id": "translation",
  3093. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  3094. "onresize": function () { }
  3095. }, {
  3096. closecallback: function () { }
  3097. }, { "style": { "height": "36px" } }).form; //创建窗体
  3098. _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); } }
  3099. break;
  3100. case "mohe": //魔盒
  3101. _formdiv = new U.UF.UI.form(
  3102. "魔盒识字",
  3103. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  3104. "id": "mohe",
  3105. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3106. "onresize": function () { }
  3107. }, {
  3108. closecallback: function () { }
  3109. }, { "style": { "height": "36px" } }).form; //创建窗体
  3110. _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); } }
  3111. break;
  3112. case "24game": //24点
  3113. _formdiv = new U.UF.UI.form(
  3114. "24点",
  3115. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  3116. "id": "24game",
  3117. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  3118. "onresize": function () { }
  3119. }, {
  3120. closecallback: function () { }
  3121. }, { "style": { "height": "36px" } }).form; //创建窗体
  3122. _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); } }
  3123. break;
  3124. case "case":
  3125. _formdiv = new U.UF.UI.form(
  3126. "课程进展",
  3127. $$("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 }), {
  3128. "id": "case",
  3129. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3130. "onresize": function () { }
  3131. }, {
  3132. closecallback: function () { }
  3133. }, { "style": { "height": "36px" } }).form; //创建窗体
  3134. _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); } }
  3135. break;
  3136. case "snf":
  3137. _formdiv = new U.UF.UI.form(
  3138. "赛诺梵",
  3139. $$("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" }), {
  3140. "id": "snf",
  3141. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3142. "onresize": function () { }
  3143. }, {
  3144. closecallback: function () { }
  3145. }, { "style": { "height": "36px" } }).form; //创建窗体
  3146. _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); } }
  3147. break;
  3148. case "hanFamily":
  3149. _formdiv = new U.UF.UI.form(
  3150. "汉字家族",
  3151. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  3152. "id": "hanFamily",
  3153. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3154. "onresize": function () { }
  3155. }, {
  3156. closecallback: function () { }
  3157. }, { "style": { "height": "36px" } }).form; //创建窗体
  3158. _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); } }
  3159. break;
  3160. case "hanClassics":
  3161. _formdiv = new U.UF.UI.form(
  3162. "国学经典",
  3163. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  3164. "id": "hanClassics",
  3165. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3166. "onresize": function () { }
  3167. }, {
  3168. closecallback: function () { }
  3169. }, { "style": { "height": "36px" } }).form; //创建窗体
  3170. _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); } }
  3171. break;
  3172. case "hanTraining":
  3173. _formdiv = new U.UF.UI.form(
  3174. "笔画训练",
  3175. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  3176. "id": "hanTraining",
  3177. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3178. "onresize": function () { }
  3179. }, {
  3180. closecallback: function () { }
  3181. }, { "style": { "height": "36px" } }).form; //创建窗体
  3182. _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); } }
  3183. break;
  3184. case "hanClass":
  3185. _formdiv = new U.UF.UI.form(
  3186. "书法课堂",
  3187. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  3188. "id": "hanClass",
  3189. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3190. "onresize": function () { }
  3191. }, {
  3192. closecallback: function () { }
  3193. }, { "style": { "height": "36px" } }).form; //创建窗体
  3194. _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); } }
  3195. break;
  3196. case "han":
  3197. _formdiv = new U.UF.UI.form(
  3198. "汉字宫",
  3199. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  3200. "id": "han",
  3201. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3202. "onresize": function () { }
  3203. }, {
  3204. closecallback: function () { }
  3205. }, { "style": { "height": "36px" } }).form; //创建窗体
  3206. _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); } }
  3207. break;
  3208. case "projectGM": //课程管理
  3209. _formdiv = new U.UF.UI.form(
  3210. "课程管理",
  3211. $$("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 }), {
  3212. "id": "projectGM",
  3213. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3214. "onresize": function () { }
  3215. }, {
  3216. closecallback: function () { }
  3217. }, { "style": { "height": "36px" } }).form; //创建窗体
  3218. _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); } }
  3219. break;
  3220. case "studyGM"://课程中心
  3221. _formdiv = new U.UF.UI.form(
  3222. "课程中心",
  3223. $$("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
  3224. "id": "study",
  3225. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3226. "onresize": function () { }
  3227. }, {
  3228. closecallback: function () { }
  3229. }, { "style": { "height": "36px" } }).form; //创建窗体
  3230. _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); } }
  3231. break;
  3232. // studentGM
  3233. case "studentGM"://学生管理
  3234. _formdiv = new U.UF.UI.form(
  3235. "学生管理",
  3236. $$("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 }), {
  3237. "id": "studentGM",
  3238. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3239. "onresize": function () { }
  3240. }, {
  3241. closecallback: function () { }
  3242. }, { "style": { "height": "36px" } }).form; //创建窗体
  3243. _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); } }
  3244. break;
  3245. case "evaluateGM"://学生评价
  3246. _formdiv = new U.UF.UI.form(
  3247. "学生评价",
  3248. $$("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 }), {
  3249. "id": "evaluateGM",
  3250. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3251. "onresize": function () { }
  3252. }, {
  3253. closecallback: function () { }
  3254. }, { "style": { "height": "36px" } }).form; //创建窗体
  3255. _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); } }
  3256. break;
  3257. // classGM
  3258. case "classGM"://班级管理
  3259. _formdiv = new U.UF.UI.form(
  3260. "班级管理",
  3261. $$("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 }), {
  3262. "id": "classGM",
  3263. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3264. "onresize": function () { }
  3265. }, {
  3266. closecallback: function () { }
  3267. }, { "style": { "height": "36px" } }).form; //创建窗体
  3268. _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); } }
  3269. break;
  3270. // dataGM
  3271. case "dataGM":
  3272. _formdiv = new U.UF.UI.form(
  3273. "我的资料",
  3274. $$("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 }), {
  3275. "id": "dataGM",
  3276. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3277. "onresize": function () { }
  3278. }, {
  3279. closecallback: function () { }
  3280. }, { "style": { "height": "36px" } }).form; //创建窗体
  3281. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/data.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3282. break;
  3283. // caseGM
  3284. case "caseGM"://课程进展
  3285. _formdiv = new U.UF.UI.form(
  3286. "课程进展",
  3287. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3288. "id": "caseGM",
  3289. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3290. "onresize": function () { }
  3291. }, {
  3292. closecallback: function () { }
  3293. }, { "style": { "height": "36px" } }).form; //创建窗体
  3294. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3295. break;
  3296. // meterialGM
  3297. case "meterialGM"://素材库
  3298. _formdiv = new U.UF.UI.form(
  3299. "素材库",
  3300. $$("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 }), {
  3301. "id": "meterialGM",
  3302. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3303. "onresize": function () { }
  3304. }, {
  3305. closecallback: function () { }
  3306. }, { "style": { "height": "36px" } }).form; //创建窗体
  3307. _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); } }
  3308. break;
  3309. // evaluateSGM
  3310. case "evaluateSGM": //我的评价
  3311. _formdiv = new U.UF.UI.form(
  3312. "我的评价",
  3313. $$("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 }), {
  3314. "id": "evaluateSGM",
  3315. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3316. "onresize": function () { }
  3317. }, {
  3318. closecallback: function () { }
  3319. }, { "style": { "height": "36px" } }).form; //创建窗体
  3320. _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); } }
  3321. break;
  3322. case "jupyter": //jupyter
  3323. _formdiv = new U.UF.UI.form(
  3324. "jupyter",
  3325. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3326. "id": "jupyter",
  3327. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3328. "onresize": function () { }
  3329. }, {
  3330. closecallback: function () { }
  3331. }, { "style": { "height": "36px" } }).form; //创建窗体
  3332. _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); } }
  3333. break;
  3334. case "number": //数字实验室
  3335. _formdiv = new U.UF.UI.form(
  3336. "数字实验室",
  3337. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3338. "id": "number",
  3339. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3340. "onresize": function () { }
  3341. }, {
  3342. closecallback: function () { }
  3343. }, { "style": { "height": "36px" } }).form; //创建窗体
  3344. _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); } }
  3345. break;
  3346. case "studentCourse": //项目管理 学生
  3347. _formdiv = new U.UF.UI.form(
  3348. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3349. $$("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 }), {
  3350. "id": "studentCourse",
  3351. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3352. "onresize": function () { }
  3353. }, {
  3354. closecallback: function () { }
  3355. }, { "style": { "height": "36px" } }).form; //创建窗体
  3356. _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); } }
  3357. break;
  3358. case "studentCourseS": //项目管理 老师
  3359. _formdiv = new U.UF.UI.form(
  3360. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3361. $$("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 }), {
  3362. "id": "studentCourseS",
  3363. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3364. "onresize": function () { }
  3365. }, {
  3366. closecallback: function () { }
  3367. }, { "style": { "height": "36px" } }).form; //创建窗体
  3368. _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); } }
  3369. break;
  3370. case "studentIndex": //项目中心
  3371. _formdiv = new U.UF.UI.form(
  3372. "项目中心",
  3373. $$("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 }), {
  3374. "id": "studentIndex",
  3375. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3376. "onresize": function () { }
  3377. }, {
  3378. closecallback: function () { }
  3379. }, { "style": { "height": "36px" } }).form; //创建窗体
  3380. _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); } }
  3381. break;
  3382. case "CaseDesignS":
  3383. _formdiv = new U.UF.UI.form(
  3384. "项目进展",
  3385. $$("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 }), {
  3386. "id": "case",
  3387. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3388. "onresize": function () { }
  3389. }, {
  3390. closecallback: function () { }
  3391. }, { "style": { "height": "36px" } }).form; //创建窗体
  3392. _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); } }
  3393. break;
  3394. case "tcStudent": //腾讯学生管理
  3395. _formdiv = new U.UF.UI.form(
  3396. "学生管理",
  3397. $$("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 }), {
  3398. "id": "tcStudent",
  3399. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3400. "onresize": function () { }
  3401. }, {
  3402. closecallback: function () { }
  3403. }, { "style": { "height": "36px" } }).form; //创建窗体
  3404. _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); } }
  3405. break;
  3406. case "tcSchool": //腾讯学校管理
  3407. _formdiv = new U.UF.UI.form(
  3408. "学校管理",
  3409. $$("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 }), {
  3410. "id": "tcSchool",
  3411. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3412. "onresize": function () { }
  3413. }, {
  3414. closecallback: function () { }
  3415. }, { "style": { "height": "36px" } }).form; //创建窗体
  3416. _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); } }
  3417. break;
  3418. case "tcTeacher": //腾讯学校管理
  3419. _formdiv = new U.UF.UI.form(
  3420. "教师管理",
  3421. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/tcTeacher?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
  3422. "id": "tcTeacher",
  3423. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3424. "onresize": function () { }
  3425. }, {
  3426. closecallback: function () { }
  3427. }, { "style": { "height": "36px" } }).form; //创建窗体
  3428. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3429. break;
  3430. case "tcData": //腾讯我的资料
  3431. _formdiv = new U.UF.UI.form(
  3432. "我的资料",
  3433. $$("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 }), {
  3434. "id": "tcData",
  3435. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3436. "onresize": function () { }
  3437. }, {
  3438. closecallback: function () { }
  3439. }, { "style": { "height": "36px" } }).form; //创建窗体
  3440. _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); } }
  3441. break;
  3442. case "tcNotice": //腾讯消息通知
  3443. _formdiv = new U.UF.UI.form(
  3444. "消息通知",
  3445. $$("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 }), {
  3446. "id": "tcNotice",
  3447. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3448. "onresize": function () { }
  3449. }, {
  3450. closecallback: function () { }
  3451. }, { "style": { "height": "36px" } }).form; //创建窗体
  3452. _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); } }
  3453. break;
  3454. case "myReport": //好友打开
  3455. _formdiv = new U.UF.UI.form(
  3456. "我的评价",
  3457. $$("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 }), {
  3458. "id": "myReport",
  3459. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3460. "onresize": function () { }
  3461. }, {
  3462. closecallback: function () { }
  3463. }, { "style": { "height": "36px" } }).form; //创建窗体
  3464. _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); } }
  3465. break;
  3466. case "learnAna": //好友打开
  3467. _formdiv = new U.UF.UI.form(
  3468. "学习分析",
  3469. $$("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 }), {
  3470. "id": "learnAna",
  3471. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3472. "onresize": function () { }
  3473. }, {
  3474. closecallback: function () { }
  3475. }, { "style": { "height": "36px" } }).form; //创建窗体
  3476. _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); } }
  3477. break;
  3478. case "AIChat": //AI共创
  3479. _formdiv = new U.UF.UI.form(
  3480. "AI共创",
  3481. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3482. "id": "AIChat",
  3483. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3484. "onresize": function () { }
  3485. }, {
  3486. istop: true,
  3487. closecallback: function () { $("#aichat_icon").remove(); },
  3488. narrowcallback: function () {
  3489. if (!$("#aichat_icon")[0]) {
  3490. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3491. }
  3492. },
  3493. }, { "style": { "height": "36px" } }).form; //创建窗体
  3494. _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); } }
  3495. break;
  3496. case "AIAnalyse": //AI共创
  3497. _formdiv = new U.UF.UI.form(
  3498. "AI分析",
  3499. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3500. "id": "AIAnalyse",
  3501. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3502. "onresize": function () { }
  3503. }, {
  3504. closecallback: function () { }
  3505. }, { "style": { "height": "36px" } }).form; //创建窗体
  3506. _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); } }
  3507. break;
  3508. case "studioCourse": //AI共创
  3509. _formdiv = new U.UF.UI.form(
  3510. "工作管理",
  3511. $$("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 }), {
  3512. "id": "studioCourse",
  3513. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3514. "onresize": function () { }
  3515. }, {
  3516. closecallback: function () { }
  3517. }, { "style": { "height": "36px" } }).form; //创建窗体
  3518. _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); } }
  3519. break;
  3520. case "studioIndex": //AI共创
  3521. _formdiv = new U.UF.UI.form(
  3522. "工作中心",
  3523. $$("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 }), {
  3524. "id": "studioIndex",
  3525. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3526. "onresize": function () { }
  3527. }, {
  3528. closecallback: function () { }
  3529. }, { "style": { "height": "36px" } }).form; //创建窗体
  3530. _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); } }
  3531. break;
  3532. case "source":
  3533. _formdiv = new U.UF.UI.form(
  3534. "教学资源",
  3535. $$("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 }), {
  3536. "id": "source",
  3537. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3538. "onresize": function () { }
  3539. }, {
  3540. closecallback: function () { }
  3541. }, { "style": { "height": "36px" } }).form; //创建窗体
  3542. _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); } }
  3543. break;
  3544. }
  3545. //U.MD.D.I.openClick(str);
  3546. //如果有任务栏信息
  3547. if (_taskbar) {
  3548. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3549. }
  3550. }
  3551. // U.MD.D.I.openClick = function(str){
  3552. // var click = '';
  3553. // switch(str){
  3554. // case 'friend':
  3555. // click = '我的好友';
  3556. // break;
  3557. // case 'domain':
  3558. // click = '域名管理';
  3559. // break;
  3560. // case 'disk':
  3561. // click = '我的云盘';
  3562. // break;
  3563. // case 'word':
  3564. // click = 'Word';
  3565. // break;
  3566. // case 'excel':
  3567. // click = 'Execl';
  3568. // break;
  3569. // case 'txt':
  3570. // click = '文本文件';
  3571. // break;
  3572. // case 'lookupFriend':
  3573. // click = '查找好友';
  3574. // break;
  3575. // case 'ftp':
  3576. // click = 'FTP';
  3577. // break;
  3578. // case 'group':
  3579. // click = '群组';
  3580. // break;
  3581. // case 'set':
  3582. // click = '我的设置';
  3583. // break;
  3584. // case 'systemSet':
  3585. // click = '系统设置';
  3586. // break;
  3587. // case 'boomYun':
  3588. // click = '互联办公';
  3589. // break;
  3590. // case 'xz':
  3591. // click = '云端下载';
  3592. // break;
  3593. // case 'client':
  3594. // click = '有思浏览器';
  3595. // break;
  3596. // case 'backEndProgramming':
  3597. // click = '在线后台编程';
  3598. // break;
  3599. // case 'frontEndProgramming':
  3600. // click = '在线前端编程';
  3601. // break;
  3602. // default: break;
  3603. // }
  3604. // if(U.MD.D.I.Ip && click){
  3605. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3606. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3607. // })
  3608. // }
  3609. // }
  3610. /**
  3611. *函数作用:ajax简易函数,使用post格式
  3612. *@param url {data} 后台地址
  3613. *@param data {data} 参数json
  3614. *@param fn {data} 回调函数
  3615. *
  3616. */
  3617. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3618. // var xhr = new XMLHttpRequest();
  3619. // xhr.open("GET",url,true);
  3620. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3621. // xhr.onreadystatechange = function(){
  3622. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3623. // fn.call(this,xhr.responseText);
  3624. // }
  3625. // };
  3626. // xhr.send();
  3627. // }
  3628. /*判断是否是内网IP*/
  3629. // U.MD.D.I.isInnerIPFn = function(str){
  3630. // var curPageUrl = str;
  3631. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3632. // curPageUrl =curPageUrl.replace(reg1,'');
  3633. // // console.log('curPageUrl-1 '+curPageUrl);
  3634. // var reg2 = /\:+/g;//替换冒号为一点
  3635. // curPageUrl =curPageUrl.replace(reg2,'.');
  3636. // // console.log('curPageUrl-2 '+curPageUrl);
  3637. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3638. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3639. // if(curPageUrl[2] != '16'){
  3640. // return ipAddress;
  3641. // }else{
  3642. // return false;
  3643. // }
  3644. // }
  3645. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3646. // //compatibility for firefox and chrome
  3647. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3648. // var pc = new myPeerConnection({
  3649. // iceServers: []
  3650. // }),
  3651. // noop = function() {},
  3652. // localIPs = {},
  3653. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3654. // key;
  3655. // function iterateIP(ip) {
  3656. // if (!localIPs[ip]) onNewIP(ip);
  3657. // localIPs[ip] = true;
  3658. // }
  3659. // //create a bogus data channel
  3660. // pc.createDataChannel("");
  3661. // // create offer and set local description
  3662. // pc.createOffer().then(function(sdp) {
  3663. // sdp.sdp.split('\n').forEach(function(line) {
  3664. // if (line.indexOf('candidate') < 0) return;
  3665. // line.match(ipRegex).forEach(iterateIP);
  3666. // });
  3667. // pc.setLocalDescription(sdp, noop, noop);
  3668. // }).catch(function(reason) {
  3669. // // An error occurred, so handle the failure to connect
  3670. // });
  3671. // //sten for candidate events
  3672. // pc.onicecandidate = function(ice) {
  3673. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3674. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3675. // };
  3676. // }
  3677. // U.MD.D.I.getUserIpBool = function(callback){
  3678. // U.MD.D.I.getUserIP(function(ip){
  3679. // alert("Got IP! :" + ip);
  3680. // });
  3681. //}
  3682. //#endregion
  3683. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3684. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3685. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3686. _userinfo = US.userInfo, //登录用户信息
  3687. _userid = US.userInfo.userid //登录用户id
  3688. let _iframe;
  3689. let _cid = cid,
  3690. _stage = stage,
  3691. _task = task,
  3692. _tool = tool;
  3693. var _jie = $$("div", {
  3694. "style": {
  3695. "position": "absolute",
  3696. "bottom": "50px",
  3697. "right": "50px",
  3698. "zIndex": "9999",
  3699. "backgroundColor": "#2268bc",
  3700. "color": "#fff",
  3701. "padding": "12px 20px",
  3702. "cursor": "pointer",
  3703. "borderRadius": "4px",
  3704. },
  3705. "innerHTML": "提交作业"
  3706. })
  3707. let aTool = ''
  3708. let _loading = document.createElement('div')
  3709. _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;"
  3710. // _loading.id = "";
  3711. let _lchild = document.createElement('div')
  3712. let _limg = document.createElement('img')
  3713. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3714. _limg.style = "width: 26px;margin-right: 10px;"
  3715. _lchild.appendChild(_limg)
  3716. let _lspan = document.createElement('span')
  3717. _lspan.innerHTML = "上传中..."
  3718. _lchild.appendChild(_lspan)
  3719. _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%);"
  3720. _loading.appendChild(_lchild)
  3721. var _box = $$('div', {
  3722. "style": {
  3723. "position": "relative",
  3724. "width": "100%",
  3725. "height": "100%",
  3726. },
  3727. })
  3728. _box.appendChild(_loading)
  3729. _box.id = str + '_loadLi_Jie' + cid + stage + task + tool+_userid
  3730. switch (str) {
  3731. case "whiteboard":
  3732. aTool = 1;
  3733. _iframe = $$("iframe", {
  3734. "frameborder": "no",
  3735. "border": "0",
  3736. "scrolling ": "no",
  3737. "style": {
  3738. "cssText": "border:0;width:100%;height:100%"
  3739. },
  3740. "src": "https://iwb.cocorobo.cn/"
  3741. })
  3742. _box.appendChild(_iframe);
  3743. _box.appendChild(_jie);
  3744. _formdiv = new U.UF.UI.form(
  3745. "电子白板",
  3746. _box, {
  3747. "id": "whiteboard" + cid + stage + task + tool,
  3748. "style": {
  3749. "width": "90%",
  3750. "height": "90%",
  3751. "overflow": 'hidden'
  3752. },
  3753. "onresize": function () { }
  3754. }, {
  3755. closecallback: function () { }
  3756. }, {
  3757. "style": {
  3758. "height": "36px"
  3759. }
  3760. }).form; //创建窗体
  3761. _taskbar = {
  3762. "id": str + _formdiv.id,
  3763. "style": {
  3764. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3765. },
  3766. "name": "电子白板",
  3767. "forms": _formdiv,
  3768. "click": function () {
  3769. U.MD.D.I.openApplication(str, obj, info);
  3770. }
  3771. }
  3772. break;
  3773. case "mind":
  3774. aTool = 3;
  3775. _iframe = $$("iframe", {
  3776. "frameborder": "no",
  3777. "border": "0",
  3778. "scrolling ": "no",
  3779. "style": {
  3780. "cssText": "border:0;width:100%;height:100%"
  3781. },
  3782. "src": "/kityminder-editor/dist/index.html"
  3783. })
  3784. _box.appendChild(_iframe);
  3785. _box.appendChild(_jie);
  3786. _formdiv = new U.UF.UI.form(
  3787. "思维导图",
  3788. _box, { //"/jsmind/example/demo.html"
  3789. "id": "mind" + cid + stage + task + tool,
  3790. "style": {
  3791. "width": "90%",
  3792. "height": "90%",
  3793. "overflow": 'hidden'
  3794. },
  3795. "onresize": function () { }
  3796. }, {
  3797. closecallback: function () { }
  3798. }, {
  3799. "style": {
  3800. "height": "36px"
  3801. }
  3802. }).form; //创建窗体
  3803. _taskbar = {
  3804. "id": str + _formdiv.id,
  3805. "style": {
  3806. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3807. },
  3808. "name": "思维导图",
  3809. "forms": _formdiv,
  3810. "click": function () {
  3811. U.MD.D.I.openApplication(str, obj, info);
  3812. }
  3813. }
  3814. break;
  3815. case "MindMap":
  3816. aTool = 3;
  3817. _iframe = $$("iframe", {
  3818. "frameborder": "no",
  3819. "border": "0",
  3820. "scrolling ": "no",
  3821. "style": {
  3822. "cssText": "border:0;width:100%;height:100%"
  3823. },
  3824. "src": "//cloud.cocorobo.cn/mind/"
  3825. })
  3826. _box.appendChild(_iframe);
  3827. _box.appendChild(_jie);
  3828. _formdiv = new U.UF.UI.form(
  3829. "思维导图",
  3830. _box, { //"/jsmind/example/demo.html"
  3831. "id": "mind" + cid + stage + task + tool,
  3832. "style": {
  3833. "width": "90%",
  3834. "height": "90%",
  3835. "overflow": 'hidden'
  3836. },
  3837. "onresize": function () { }
  3838. }, {
  3839. closecallback: function () { }
  3840. }, {
  3841. "style": {
  3842. "height": "36px"
  3843. }
  3844. }).form; //创建窗体
  3845. _taskbar = {
  3846. "id": str + _formdiv.id,
  3847. "style": {
  3848. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3849. },
  3850. "name": "思维导图",
  3851. "forms": _formdiv,
  3852. "click": function () {
  3853. U.MD.D.I.openApplication(str, obj, info);
  3854. }
  3855. }
  3856. break;
  3857. case "doc":
  3858. aTool = 6;
  3859. _iframe = $$("iframe", {
  3860. "frameborder": "no",
  3861. "border": "0",
  3862. "scrolling ": "no",
  3863. "style": {
  3864. "cssText": "border:0;width:100%;height:100%"
  3865. },
  3866. "src": "/Office/Word/WordEditArea.htm"
  3867. })
  3868. _box.appendChild(_iframe);
  3869. _box.appendChild(_jie);
  3870. _formdiv = new U.UF.UI.form(
  3871. "协同文档",
  3872. _box, {
  3873. "id": "doc" + cid + stage + task + tool,
  3874. "style": {
  3875. "width": "90%",
  3876. "height": "90%",
  3877. "overflow": 'hidden'
  3878. },
  3879. "onresize": function () { }
  3880. }, {
  3881. closecallback: function () { }
  3882. }, {
  3883. "style": {
  3884. "height": "36px"
  3885. }
  3886. }).form; //创建窗体
  3887. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3888. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3889. })
  3890. _taskbar = {
  3891. "id": str + _formdiv.id,
  3892. "style": {
  3893. "backgroundImage": "url(/img/icon/doc.png)"
  3894. },
  3895. "name": "协同文档",
  3896. "forms": _formdiv,
  3897. "click": function () {
  3898. U.MD.D.I.openApplication(str, obj, info);
  3899. }
  3900. }
  3901. break;
  3902. case "mindNetwork": //好友打开
  3903. aTool = 7;
  3904. _iframe = $$("iframe", {
  3905. "webkitallowfullscreen": "",
  3906. "mozallowfullscreen": "",
  3907. "allowfullscreen": "",
  3908. "frameborder": "no",
  3909. "border": "0",
  3910. "scrolling ": "no",
  3911. "style": {
  3912. "cssText": "border:0; width:100%; height:100%;"
  3913. },
  3914. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3915. })
  3916. _box.appendChild(_iframe);
  3917. _box.appendChild(_jie);
  3918. _formdiv = new U.UF.UI.form(
  3919. "思维网格",
  3920. _box, {
  3921. "id": "mindNetwork" + cid + stage + task + tool,
  3922. "style": {
  3923. "width": "90%",
  3924. "height": "90%",
  3925. "overflow": 'hidden'
  3926. },
  3927. "onresize": function () { }
  3928. }, {
  3929. closecallback: function () { }
  3930. }, {
  3931. "style": {
  3932. "height": "36px"
  3933. }
  3934. }).form; //创建窗体
  3935. _taskbar = {
  3936. "id": str + _formdiv.id,
  3937. "style": {
  3938. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3939. },
  3940. "name": "思维网格",
  3941. "forms": _formdiv,
  3942. "click": function () {
  3943. U.MD.D.I.openApplication(str, obj, info);
  3944. }
  3945. }
  3946. break;
  3947. case "courseDesign":
  3948. _iframe = $$("iframe", {
  3949. "webkitallowfullscreen": "",
  3950. "mozallowfullscreen": "",
  3951. "allowfullscreen": "",
  3952. "frameborder": "no",
  3953. "border": "0",
  3954. "scrolling ": "no",
  3955. "style": {
  3956. "cssText": "border:0; width:100%; height:100%;"
  3957. },
  3958. "src": "/course-design-vue"
  3959. })
  3960. _box.appendChild(_iframe);
  3961. _box.appendChild(_jie);
  3962. _formdiv = new U.UF.UI.form(
  3963. "项目设计",
  3964. _box, {
  3965. "id": "courseDesign" + cid + stage + task + tool,
  3966. "style": {
  3967. "width": "90%",
  3968. "height": "90%",
  3969. "overflow": 'hidden'
  3970. },
  3971. "onresize": function () { }
  3972. }, {
  3973. closecallback: function () { }
  3974. }, {
  3975. "style": {
  3976. "height": "36px"
  3977. }
  3978. }).form; //创建窗体
  3979. _taskbar = {
  3980. "id": str + _formdiv.id,
  3981. "style": {
  3982. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3983. },
  3984. "name": "项目设计",
  3985. "forms": _formdiv,
  3986. "click": function () {
  3987. U.MD.D.I.openApplication(str, obj, info);
  3988. }
  3989. }
  3990. break;
  3991. }
  3992. const script1 = document.createElement("script");
  3993. script1.type = "text/javascript";
  3994. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3995. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3996. const script2 = document.createElement("script");
  3997. script2.type = "text/javascript";
  3998. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3999. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4000. const script3 = document.createElement("script");
  4001. script3.type = "text/javascript";
  4002. script3.charset = "UTF-8";
  4003. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4004. const script4 = document.createElement("script");
  4005. script4.type = "text/javascript";
  4006. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4007. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4008. if (_iframe) {
  4009. if (str == 'doc') {
  4010. _iframe = _formdiv.querySelector('iframe')
  4011. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4012. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4013. _iframe.contentWindow.document.body.appendChild(script1);
  4014. _iframe.contentWindow.document.body.appendChild(script2);
  4015. // _iframe.contentWindow.document.body.appendChild(script3);
  4016. _iframe.contentWindow.document.body.appendChild(script4);
  4017. })
  4018. if (onloadListener) {
  4019. _iframe.contentDocument.location.reload()
  4020. } else {
  4021. _iframe.contentDocument.location.reload()
  4022. }
  4023. } else if (str == 'courseDesign') {
  4024. U.UF.DL.iframeLoad(_iframe, function () {
  4025. // _iframe.contentWindow.U.MD.O.W.load();
  4026. // _iframe.contentWindow.document.body.appendChild(script1);
  4027. _iframe.contentWindow.document.body.appendChild(script2);
  4028. _iframe.contentWindow.document.body.appendChild(script4);
  4029. })
  4030. } else if (str == 'mind') {
  4031. _iframe = _formdiv.querySelector('iframe')
  4032. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4033. //
  4034. _iframe.contentWindow.document.body.appendChild(script1);
  4035. _iframe.contentWindow.document.body.appendChild(script2);
  4036. _iframe.contentWindow.document.body.appendChild(script4);
  4037. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4038. })
  4039. if (onloadListener) {
  4040. _iframe.contentDocument.location.reload()
  4041. } else {
  4042. _iframe.contentDocument.location.reload()
  4043. }
  4044. } else if (str == 'whiteboard') {
  4045. _iframe = _formdiv.querySelector('iframe')
  4046. let onloadListener = _iframe.onload = () => {
  4047. _iframe.contentWindow.document.body.appendChild(script1);
  4048. _iframe.contentWindow.document.body.appendChild(script2);
  4049. _iframe.contentWindow.document.body.appendChild(script4);
  4050. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4051. };
  4052. if (onloadListener) {
  4053. _iframe.contentDocument.location.reload()
  4054. } else {
  4055. _iframe.contentDocument.location.reload()
  4056. }
  4057. } else {
  4058. _iframe.onload = () => {
  4059. _iframe.contentWindow.document.body.appendChild(script1);
  4060. _iframe.contentWindow.document.body.appendChild(script2);
  4061. // _iframe.contentWindow.document.body.appendChild(script3);
  4062. _iframe.contentWindow.document.body.appendChild(script4);
  4063. };
  4064. }
  4065. _jie.onclick = async () => {
  4066. let text = ''
  4067. if (aTool == 1) {
  4068. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4069. } else if (aTool == 6) {
  4070. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4071. } else if (aTool == 3) {
  4072. text = await U.MD.D.I.getEditorContent(_iframe);
  4073. }
  4074. _loading.style.display = 'flex'
  4075. console.log(_loading);
  4076. var _ajs = _iframe.contentWindow.document.createElement("script");
  4077. _ajs.type = "text/javascript";
  4078. _ajs.innerHTML =
  4079. // 'console.log(' + _loading + ');\n' +
  4080. 'var _js = document.createElement("script");\n' +
  4081. '_js.type="text/javascript";\n' +
  4082. '_js.charset="UTF-8";\n' +
  4083. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4084. "_js.onload = function(){\n" +
  4085. ' var a = document.getElementsByTagName("img")\n' +
  4086. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4087. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4088. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4089. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4090. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4091. "beforeUpload_shishi(file," +
  4092. "'" +
  4093. _userid +
  4094. "'" +
  4095. ", " +
  4096. "'" +
  4097. _cid +
  4098. "'" +
  4099. ", " +
  4100. "'" +
  4101. _stage +
  4102. "'" +
  4103. ", " +
  4104. "'" +
  4105. _task +
  4106. "'" +
  4107. ", " +
  4108. "'" +
  4109. _tool +
  4110. "'" +
  4111. ", " +
  4112. "'" +
  4113. (str + '_loadLi_Jie' + cid + stage + task + tool+_userid) +
  4114. "'" +
  4115. ", " +
  4116. "'" +
  4117. aTool +
  4118. "'" +
  4119. ", " +
  4120. "`" +
  4121. text +
  4122. "`" +
  4123. ")\n" +
  4124. " });\n" +
  4125. "}\n" +
  4126. "document.head.appendChild(_js);\n";
  4127. _iframe.contentWindow.document.head.appendChild(_ajs);
  4128. }
  4129. }
  4130. //U.MD.D.I.openClick(str);
  4131. //如果有任务栏信息
  4132. // if (_taskbar) {
  4133. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4134. // }
  4135. }
  4136. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  4137. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4138. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4139. _userinfo = US.userInfo, //登录用户信息
  4140. _userid = US.userInfo.userid //登录用户id
  4141. let _iframe;
  4142. let _cid = cid,
  4143. _stage = stage,
  4144. _task = task,
  4145. _tool = tool;
  4146. var _jie = $$("div", {
  4147. "style": {
  4148. "position": "absolute",
  4149. "bottom": "50px",
  4150. "right": "50px",
  4151. "zIndex": "9999",
  4152. "backgroundColor": "#2268bc",
  4153. "color": "#fff",
  4154. "padding": "12px 20px",
  4155. "cursor": "pointer",
  4156. "borderRadius": "4px",
  4157. },
  4158. "innerHTML": "提交作业"
  4159. })
  4160. let aTool = ''
  4161. let _loading = document.createElement('div')
  4162. _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;"
  4163. // _loading.id = "";
  4164. let _lchild = document.createElement('div')
  4165. let _limg = document.createElement('img')
  4166. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4167. _limg.style = "width: 26px;margin-right: 10px;"
  4168. _lchild.appendChild(_limg)
  4169. let _lspan = document.createElement('span')
  4170. _lspan.innerHTML = "上传中..."
  4171. _lchild.appendChild(_lspan)
  4172. _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%);"
  4173. _loading.appendChild(_lchild)
  4174. var _box = $$('div', {
  4175. "style": {
  4176. "position": "relative",
  4177. "width": "100%",
  4178. "height": "100%",
  4179. },
  4180. })
  4181. _box.appendChild(_loading)
  4182. _box.id = str + '_loadLi_JieE' + cid + stage + task + tool+_userid
  4183. switch (str) {
  4184. case "whiteboard":
  4185. aTool = 1;
  4186. _iframe = $$("iframe", {
  4187. "frameborder": "no",
  4188. "border": "0",
  4189. "scrolling ": "no",
  4190. "style": {
  4191. "cssText": "border:0;width:100%;height:100%"
  4192. },
  4193. "src": "https://iwb.cocorobo.cn/"
  4194. })
  4195. _box.appendChild(_iframe);
  4196. _box.appendChild(_jie);
  4197. _formdiv = new U.UF.UI.form(
  4198. "电子白板",
  4199. _box, {
  4200. "id": "whiteboard" + cid + stage + task + tool,
  4201. "style": {
  4202. "width": "90%",
  4203. "height": "90%",
  4204. "overflow": 'hidden'
  4205. },
  4206. "onresize": function () { }
  4207. }, {
  4208. closecallback: function () { }
  4209. }, {
  4210. "style": {
  4211. "height": "36px"
  4212. }
  4213. }).form; //创建窗体
  4214. _taskbar = {
  4215. "id": str + _formdiv.id,
  4216. "style": {
  4217. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4218. },
  4219. "name": "电子白板",
  4220. "forms": _formdiv,
  4221. "click": function () {
  4222. U.MD.D.I.openApplication(str, obj, info);
  4223. }
  4224. }
  4225. break;
  4226. case "mind":
  4227. aTool = 3;
  4228. _iframe = $$("iframe", {
  4229. "frameborder": "no",
  4230. "border": "0",
  4231. "scrolling ": "no",
  4232. "style": {
  4233. "cssText": "border:0;width:100%;height:100%"
  4234. },
  4235. "src": "/kityminder-editor/dist/index.html"
  4236. })
  4237. _box.appendChild(_iframe);
  4238. _box.appendChild(_jie);
  4239. _formdiv = new U.UF.UI.form(
  4240. "思维导图",
  4241. _box, { //"/jsmind/example/demo.html"
  4242. "id": "mind" + cid + stage + task + tool,
  4243. "style": {
  4244. "width": "90%",
  4245. "height": "90%",
  4246. "overflow": 'hidden'
  4247. },
  4248. "onresize": function () { }
  4249. }, {
  4250. closecallback: function () { }
  4251. }, {
  4252. "style": {
  4253. "height": "36px"
  4254. }
  4255. }).form; //创建窗体
  4256. _taskbar = {
  4257. "id": str + _formdiv.id,
  4258. "style": {
  4259. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4260. },
  4261. "name": "思维导图",
  4262. "forms": _formdiv,
  4263. "click": function () {
  4264. U.MD.D.I.openApplication(str, obj, info);
  4265. }
  4266. }
  4267. break;
  4268. case "MindMap":
  4269. aTool = 3;
  4270. _iframe = $$("iframe", {
  4271. "frameborder": "no",
  4272. "border": "0",
  4273. "scrolling ": "no",
  4274. "style": {
  4275. "cssText": "border:0;width:100%;height:100%"
  4276. },
  4277. "src": "//cloud.cocorobo.cn/mind/"
  4278. })
  4279. _box.appendChild(_iframe);
  4280. _box.appendChild(_jie);
  4281. _formdiv = new U.UF.UI.form(
  4282. "思维导图",
  4283. _box, { //"/jsmind/example/demo.html"
  4284. "id": "mind" + cid + stage + task + tool,
  4285. "style": {
  4286. "width": "90%",
  4287. "height": "90%",
  4288. "overflow": 'hidden'
  4289. },
  4290. "onresize": function () { }
  4291. }, {
  4292. closecallback: function () { }
  4293. }, {
  4294. "style": {
  4295. "height": "36px"
  4296. }
  4297. }).form; //创建窗体
  4298. _taskbar = {
  4299. "id": str + _formdiv.id,
  4300. "style": {
  4301. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4302. },
  4303. "name": "思维导图",
  4304. "forms": _formdiv,
  4305. "click": function () {
  4306. U.MD.D.I.openApplication(str, obj, info);
  4307. }
  4308. }
  4309. break;
  4310. case "doc":
  4311. aTool = 6;
  4312. _iframe = $$("iframe", {
  4313. "frameborder": "no",
  4314. "border": "0",
  4315. "scrolling ": "no",
  4316. "style": {
  4317. "cssText": "border:0;width:100%;height:100%"
  4318. },
  4319. "src": "/Office/Word/WordEditArea.htm"
  4320. })
  4321. _box.appendChild(_iframe);
  4322. _box.appendChild(_jie);
  4323. _formdiv = new U.UF.UI.form(
  4324. "协同文档",
  4325. _box, {
  4326. "id": "doc" + cid + stage + task + tool,
  4327. "style": {
  4328. "width": "90%",
  4329. "height": "90%",
  4330. "overflow": 'hidden'
  4331. },
  4332. "onresize": function () { }
  4333. }, {
  4334. closecallback: function () { }
  4335. }, {
  4336. "style": {
  4337. "height": "36px"
  4338. }
  4339. }).form; //创建窗体
  4340. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4341. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4342. })
  4343. _taskbar = {
  4344. "id": str + _formdiv.id,
  4345. "style": {
  4346. "backgroundImage": "url(/img/icon/doc.png)"
  4347. },
  4348. "name": "协同文档",
  4349. "forms": _formdiv,
  4350. "click": function () {
  4351. U.MD.D.I.openApplication(str, obj, info);
  4352. }
  4353. }
  4354. break;
  4355. case "mindNetwork": //好友打开
  4356. aTool = 7;
  4357. _iframe = $$("iframe", {
  4358. "webkitallowfullscreen": "",
  4359. "mozallowfullscreen": "",
  4360. "allowfullscreen": "",
  4361. "frameborder": "no",
  4362. "border": "0",
  4363. "scrolling ": "no",
  4364. "style": {
  4365. "cssText": "border:0; width:100%; height:100%;"
  4366. },
  4367. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4368. })
  4369. _box.appendChild(_iframe);
  4370. _box.appendChild(_jie);
  4371. _formdiv = new U.UF.UI.form(
  4372. "思维网格",
  4373. _box, {
  4374. "id": "mindNetwork" + cid + stage + task + tool,
  4375. "style": {
  4376. "width": "90%",
  4377. "height": "90%",
  4378. "overflow": 'hidden'
  4379. },
  4380. "onresize": function () { }
  4381. }, {
  4382. closecallback: function () { }
  4383. }, {
  4384. "style": {
  4385. "height": "36px"
  4386. }
  4387. }).form; //创建窗体
  4388. _taskbar = {
  4389. "id": str + _formdiv.id,
  4390. "style": {
  4391. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4392. },
  4393. "name": "思维网格",
  4394. "forms": _formdiv,
  4395. "click": function () {
  4396. U.MD.D.I.openApplication(str, obj, info);
  4397. }
  4398. }
  4399. break;
  4400. case "courseDesign":
  4401. _iframe = $$("iframe", {
  4402. "webkitallowfullscreen": "",
  4403. "mozallowfullscreen": "",
  4404. "allowfullscreen": "",
  4405. "frameborder": "no",
  4406. "border": "0",
  4407. "scrolling ": "no",
  4408. "style": {
  4409. "cssText": "border:0; width:100%; height:100%;"
  4410. },
  4411. "src": "/course-design-vue"
  4412. })
  4413. _box.appendChild(_iframe);
  4414. _box.appendChild(_jie);
  4415. _formdiv = new U.UF.UI.form(
  4416. "项目设计",
  4417. _box, {
  4418. "id": "courseDesign" + cid + stage + task + tool,
  4419. "style": {
  4420. "width": "90%",
  4421. "height": "90%",
  4422. "overflow": 'hidden'
  4423. },
  4424. "onresize": function () { }
  4425. }, {
  4426. closecallback: function () { }
  4427. }, {
  4428. "style": {
  4429. "height": "36px"
  4430. }
  4431. }).form; //创建窗体
  4432. _taskbar = {
  4433. "id": str + _formdiv.id,
  4434. "style": {
  4435. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4436. },
  4437. "name": "项目设计",
  4438. "forms": _formdiv,
  4439. "click": function () {
  4440. U.MD.D.I.openApplication(str, obj, info);
  4441. }
  4442. }
  4443. break;
  4444. }
  4445. const script1 = document.createElement("script");
  4446. script1.type = "text/javascript";
  4447. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4448. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4449. const script2 = document.createElement("script");
  4450. script2.type = "text/javascript";
  4451. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4452. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4453. const script3 = document.createElement("script");
  4454. script3.type = "text/javascript";
  4455. script3.charset = "UTF-8";
  4456. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4457. const script4 = document.createElement("script");
  4458. script4.type = "text/javascript";
  4459. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4460. script4.src = window.origin + "/js/Common/jietu2E.js";
  4461. if (_iframe) {
  4462. if (str == 'doc') {
  4463. _iframe = _formdiv.querySelector('iframe')
  4464. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4465. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4466. _iframe.contentWindow.document.body.appendChild(script1);
  4467. _iframe.contentWindow.document.body.appendChild(script2);
  4468. // _iframe.contentWindow.document.body.appendChild(script3);
  4469. _iframe.contentWindow.document.body.appendChild(script4);
  4470. })
  4471. if (onloadListener) {
  4472. _iframe.contentDocument.location.reload()
  4473. } else {
  4474. _iframe.contentDocument.location.reload()
  4475. }
  4476. } else if (str == 'courseDesign') {
  4477. U.UF.DL.iframeLoad(_iframe, function () {
  4478. // _iframe.contentWindow.U.MD.O.W.load();
  4479. // _iframe.contentWindow.document.body.appendChild(script1);
  4480. _iframe.contentWindow.document.body.appendChild(script2);
  4481. _iframe.contentWindow.document.body.appendChild(script4);
  4482. })
  4483. } else if (str == 'mind') {
  4484. _iframe = _formdiv.querySelector('iframe')
  4485. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4486. //
  4487. _iframe.contentWindow.document.body.appendChild(script1);
  4488. _iframe.contentWindow.document.body.appendChild(script2);
  4489. _iframe.contentWindow.document.body.appendChild(script4);
  4490. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4491. })
  4492. if (onloadListener) {
  4493. _iframe.contentDocument.location.reload()
  4494. } else {
  4495. _iframe.contentDocument.location.reload()
  4496. }
  4497. } else if (str == 'whiteboard') {
  4498. _iframe = _formdiv.querySelector('iframe')
  4499. let onloadListener = _iframe.onload = () => {
  4500. _iframe.contentWindow.document.body.appendChild(script1);
  4501. _iframe.contentWindow.document.body.appendChild(script2);
  4502. _iframe.contentWindow.document.body.appendChild(script4);
  4503. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4504. };
  4505. if (onloadListener) {
  4506. _iframe.contentDocument.location.reload()
  4507. } else {
  4508. _iframe.contentDocument.location.reload()
  4509. }
  4510. } else {
  4511. _iframe.onload = () => {
  4512. _iframe.contentWindow.document.body.appendChild(script1);
  4513. _iframe.contentWindow.document.body.appendChild(script2);
  4514. // _iframe.contentWindow.document.body.appendChild(script3);
  4515. _iframe.contentWindow.document.body.appendChild(script4);
  4516. };
  4517. }
  4518. _jie.onclick = async () => {
  4519. let text = ''
  4520. if (aTool == 1) {
  4521. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4522. } else if (aTool == 6) {
  4523. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4524. } else if (aTool == 3) {
  4525. text = await U.MD.D.I.getEditorContent(_iframe);
  4526. }
  4527. _loading.style.display = 'flex'
  4528. console.log(_loading);
  4529. var _ajs = _iframe.contentWindow.document.createElement("script");
  4530. _ajs.type = "text/javascript";
  4531. _ajs.innerHTML =
  4532. // 'console.log(' + _loading + ');\n' +
  4533. 'var _js = document.createElement("script");\n' +
  4534. '_js.type="text/javascript";\n' +
  4535. '_js.charset="UTF-8";\n' +
  4536. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4537. "_js.onload = function(){\n" +
  4538. ' var a = document.getElementsByTagName("img")\n' +
  4539. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4540. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4541. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4542. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4543. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4544. "beforeUpload_shishi(file," +
  4545. "'" +
  4546. _userid +
  4547. "'" +
  4548. ", " +
  4549. "'" +
  4550. _cid +
  4551. "'" +
  4552. ", " +
  4553. "'" +
  4554. _stage +
  4555. "'" +
  4556. ", " +
  4557. "'" +
  4558. _task +
  4559. "'" +
  4560. ", " +
  4561. "'" +
  4562. _tool +
  4563. "'" +
  4564. ", " +
  4565. "'" +
  4566. (str + '_loadLi_JieE' + cid + stage + task + tool+_userid) +
  4567. "'" +
  4568. ", " +
  4569. "'" +
  4570. aTool +
  4571. "'" +
  4572. ", " +
  4573. "`" +
  4574. text +
  4575. "`" +
  4576. ")\n" +
  4577. " });\n" +
  4578. "}\n" +
  4579. "document.head.appendChild(_js);\n";
  4580. _iframe.contentWindow.document.head.appendChild(_ajs);
  4581. }
  4582. }
  4583. //U.MD.D.I.openClick(str);
  4584. //如果有任务栏信息
  4585. // if (_taskbar) {
  4586. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4587. // }
  4588. }
  4589. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4590. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4591. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4592. _userid = student.userid, //登录用户id
  4593. _username = student.student //用户名字
  4594. let _iframe;
  4595. let _cid = cid,
  4596. _stage = stage,
  4597. _task = task,
  4598. _tool = tool;
  4599. var _jie = $$("div", {
  4600. "style": {
  4601. "position": "absolute",
  4602. "bottom": "50px",
  4603. "right": "50px",
  4604. "zIndex": "9999",
  4605. "backgroundColor": "#2268bc",
  4606. "color": "#fff",
  4607. "padding": "12px 20px",
  4608. "cursor": "pointer",
  4609. "borderRadius": "4px",
  4610. },
  4611. "innerHTML": "提交作业"
  4612. })
  4613. let aTool = ''
  4614. let _loading = document.createElement('div')
  4615. _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;"
  4616. // _loading.id = "";
  4617. let _lchild = document.createElement('div')
  4618. let _limg = document.createElement('img')
  4619. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4620. _limg.style = "width: 26px;margin-right: 10px;"
  4621. _lchild.appendChild(_limg)
  4622. let _lspan = document.createElement('span')
  4623. _lspan.innerHTML = "上传中..."
  4624. _lchild.appendChild(_lspan)
  4625. _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%);"
  4626. _loading.appendChild(_lchild)
  4627. var _box = $$('div', {
  4628. "style": {
  4629. "position": "relative",
  4630. "width": "100%",
  4631. "height": "100%",
  4632. },
  4633. })
  4634. _box.appendChild(_loading)
  4635. _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid
  4636. switch (str) {
  4637. case "whiteboard":
  4638. aTool = 1;
  4639. _iframe = $$("iframe", {
  4640. "frameborder": "no",
  4641. "border": "0",
  4642. "scrolling ": "no",
  4643. "style": {
  4644. "cssText": "border:0;width:100%;height:100%"
  4645. },
  4646. "src": "https://iwb.cocorobo.cn/"
  4647. })
  4648. _box.appendChild(_iframe);
  4649. _box.appendChild(_jie);
  4650. _formdiv = new U.UF.UI.form(
  4651. "电子白板-" + _username,
  4652. _box, {
  4653. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4654. "style": {
  4655. "width": "90%",
  4656. "height": "90%",
  4657. "overflow": 'hidden'
  4658. },
  4659. "onresize": function () { }
  4660. }, {
  4661. closecallback: function () { }
  4662. }, {
  4663. "style": {
  4664. "height": "36px"
  4665. }
  4666. }).form; //创建窗体
  4667. _taskbar = {
  4668. "id": str + _formdiv.id,
  4669. "style": {
  4670. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4671. },
  4672. "name": "电子白板",
  4673. "forms": _formdiv,
  4674. "click": function () {
  4675. U.MD.D.I.openApplication(str, obj, info);
  4676. }
  4677. }
  4678. break;
  4679. case "mind":
  4680. aTool = 3;
  4681. _iframe = $$("iframe", {
  4682. "frameborder": "no",
  4683. "border": "0",
  4684. "scrolling ": "no",
  4685. "style": {
  4686. "cssText": "border:0;width:100%;height:100%"
  4687. },
  4688. "src": "/kityminder-editor/dist/index.html"
  4689. })
  4690. _box.appendChild(_iframe);
  4691. _box.appendChild(_jie);
  4692. _formdiv = new U.UF.UI.form(
  4693. "思维导图-" + _username,
  4694. _box, { //"/jsmind/example/demo.html"
  4695. "id": "mind" + cid + stage + task + tool + _userid,
  4696. "style": {
  4697. "width": "90%",
  4698. "height": "90%",
  4699. "overflow": 'hidden'
  4700. },
  4701. "onresize": function () { }
  4702. }, {
  4703. closecallback: function () { }
  4704. }, {
  4705. "style": {
  4706. "height": "36px"
  4707. }
  4708. }).form; //创建窗体
  4709. _taskbar = {
  4710. "id": str + _formdiv.id,
  4711. "style": {
  4712. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4713. },
  4714. "name": "思维导图",
  4715. "forms": _formdiv,
  4716. "click": function () {
  4717. U.MD.D.I.openApplication(str, obj, info);
  4718. }
  4719. }
  4720. break;
  4721. case "MindMap":
  4722. aTool = 3;
  4723. _iframe = $$("iframe", {
  4724. "frameborder": "no",
  4725. "border": "0",
  4726. "scrolling ": "no",
  4727. "style": {
  4728. "cssText": "border:0;width:100%;height:100%"
  4729. },
  4730. "src": "//cloud.cocorobo.cn/mind/"
  4731. })
  4732. _box.appendChild(_iframe);
  4733. _box.appendChild(_jie);
  4734. _formdiv = new U.UF.UI.form(
  4735. "思维导图-" + _username,
  4736. _box, { //"/jsmind/example/demo.html"
  4737. "id": "mind" + cid + stage + task + tool + _userid,
  4738. "style": {
  4739. "width": "90%",
  4740. "height": "90%",
  4741. "overflow": 'hidden'
  4742. },
  4743. "onresize": function () { }
  4744. }, {
  4745. closecallback: function () { }
  4746. }, {
  4747. "style": {
  4748. "height": "36px"
  4749. }
  4750. }).form; //创建窗体
  4751. _taskbar = {
  4752. "id": str + _formdiv.id,
  4753. "style": {
  4754. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4755. },
  4756. "name": "思维导图",
  4757. "forms": _formdiv,
  4758. "click": function () {
  4759. U.MD.D.I.openApplication(str, obj, info);
  4760. }
  4761. }
  4762. break;
  4763. case "doc":
  4764. aTool = 6;
  4765. _iframe = $$("iframe", {
  4766. "frameborder": "no",
  4767. "border": "0",
  4768. "scrolling ": "no",
  4769. "style": {
  4770. "cssText": "border:0;width:100%;height:100%"
  4771. },
  4772. "src": "/Office/Word/WordEditArea.htm"
  4773. })
  4774. _box.appendChild(_iframe);
  4775. _box.appendChild(_jie);
  4776. _formdiv = new U.UF.UI.form(
  4777. "协同文档-" + _username,
  4778. _box, {
  4779. "id": "doc" + cid + stage + task + tool + _userid,
  4780. "style": {
  4781. "width": "90%",
  4782. "height": "90%",
  4783. "overflow": 'hidden'
  4784. },
  4785. "onresize": function () { }
  4786. }, {
  4787. closecallback: function () { }
  4788. }, {
  4789. "style": {
  4790. "height": "36px"
  4791. }
  4792. }).form; //创建窗体
  4793. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4794. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4795. })
  4796. _taskbar = {
  4797. "id": str + _formdiv.id,
  4798. "style": {
  4799. "backgroundImage": "url(/img/icon/doc.png)"
  4800. },
  4801. "name": "协同文档",
  4802. "forms": _formdiv,
  4803. "click": function () {
  4804. U.MD.D.I.openApplication(str, obj, info);
  4805. }
  4806. }
  4807. break;
  4808. case "mindNetwork": //好友打开
  4809. aTool = 7;
  4810. _iframe = $$("iframe", {
  4811. "webkitallowfullscreen": "",
  4812. "mozallowfullscreen": "",
  4813. "allowfullscreen": "",
  4814. "frameborder": "no",
  4815. "border": "0",
  4816. "scrolling ": "no",
  4817. "style": {
  4818. "cssText": "border:0; width:100%; height:100%;"
  4819. },
  4820. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4821. })
  4822. _box.appendChild(_iframe);
  4823. _box.appendChild(_jie);
  4824. _formdiv = new U.UF.UI.form(
  4825. "思维网格-" + _username,
  4826. _box, {
  4827. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4828. "style": {
  4829. "width": "90%",
  4830. "height": "90%",
  4831. "overflow": 'hidden'
  4832. },
  4833. "onresize": function () { }
  4834. }, {
  4835. closecallback: function () { }
  4836. }, {
  4837. "style": {
  4838. "height": "36px"
  4839. }
  4840. }).form; //创建窗体
  4841. _taskbar = {
  4842. "id": str + _formdiv.id,
  4843. "style": {
  4844. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4845. },
  4846. "name": "思维网格",
  4847. "forms": _formdiv,
  4848. "click": function () {
  4849. U.MD.D.I.openApplication(str, obj, info);
  4850. }
  4851. }
  4852. break;
  4853. case "courseDesign":
  4854. _iframe = $$("iframe", {
  4855. "webkitallowfullscreen": "",
  4856. "mozallowfullscreen": "",
  4857. "allowfullscreen": "",
  4858. "frameborder": "no",
  4859. "border": "0",
  4860. "scrolling ": "no",
  4861. "style": {
  4862. "cssText": "border:0; width:100%; height:100%;"
  4863. },
  4864. "src": "/course-design-vue"
  4865. })
  4866. _box.appendChild(_iframe);
  4867. _box.appendChild(_jie);
  4868. _formdiv = new U.UF.UI.form(
  4869. "项目设计-" + _username,
  4870. _box, {
  4871. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4872. "style": {
  4873. "width": "90%",
  4874. "height": "90%",
  4875. "overflow": 'hidden'
  4876. },
  4877. "onresize": function () { }
  4878. }, {
  4879. closecallback: function () { }
  4880. }, {
  4881. "style": {
  4882. "height": "36px"
  4883. }
  4884. }).form; //创建窗体
  4885. _taskbar = {
  4886. "id": str + _formdiv.id,
  4887. "style": {
  4888. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4889. },
  4890. "name": "项目设计",
  4891. "forms": _formdiv,
  4892. "click": function () {
  4893. U.MD.D.I.openApplication(str, obj, info);
  4894. }
  4895. }
  4896. break;
  4897. }
  4898. const script1 = document.createElement("script");
  4899. script1.type = "text/javascript";
  4900. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4901. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4902. const script2 = document.createElement("script");
  4903. script2.type = "text/javascript";
  4904. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4905. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4906. const script3 = document.createElement("script");
  4907. script3.type = "text/javascript";
  4908. script3.charset = "UTF-8";
  4909. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4910. const script4 = document.createElement("script");
  4911. script4.type = "text/javascript";
  4912. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4913. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4914. if (_iframe) {
  4915. if (str == 'doc') {
  4916. _iframe = _formdiv.querySelector('iframe')
  4917. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4918. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4919. _iframe.contentWindow.document.body.appendChild(script1);
  4920. _iframe.contentWindow.document.body.appendChild(script2);
  4921. // _iframe.contentWindow.document.body.appendChild(script3);
  4922. _iframe.contentWindow.document.body.appendChild(script4);
  4923. })
  4924. if (onloadListener) {
  4925. _iframe.contentDocument.location.reload()
  4926. } else {
  4927. _iframe.contentDocument.location.reload()
  4928. }
  4929. } else if (str == 'courseDesign') {
  4930. U.UF.DL.iframeLoad(_iframe, function () {
  4931. // _iframe.contentWindow.U.MD.O.W.load();
  4932. // _iframe.contentWindow.document.body.appendChild(script1);
  4933. _iframe.contentWindow.document.body.appendChild(script2);
  4934. _iframe.contentWindow.document.body.appendChild(script4);
  4935. })
  4936. } else if (str == 'mind') {
  4937. _iframe = _formdiv.querySelector('iframe')
  4938. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4939. //
  4940. _iframe.contentWindow.document.body.appendChild(script1);
  4941. _iframe.contentWindow.document.body.appendChild(script2);
  4942. _iframe.contentWindow.document.body.appendChild(script4);
  4943. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4944. })
  4945. if (onloadListener) {
  4946. _iframe.contentDocument.location.reload()
  4947. } else {
  4948. _iframe.contentDocument.location.reload()
  4949. }
  4950. } else if (str == 'whiteboard') {
  4951. _iframe = _formdiv.querySelector('iframe')
  4952. let onloadListener = _iframe.onload = () => {
  4953. _iframe.contentWindow.document.body.appendChild(script1);
  4954. _iframe.contentWindow.document.body.appendChild(script2);
  4955. _iframe.contentWindow.document.body.appendChild(script4);
  4956. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4957. };
  4958. if (onloadListener) {
  4959. _iframe.contentDocument.location.reload()
  4960. } else {
  4961. _iframe.contentDocument.location.reload()
  4962. }
  4963. } else {
  4964. _iframe.onload = () => {
  4965. _iframe.contentWindow.document.body.appendChild(script1);
  4966. _iframe.contentWindow.document.body.appendChild(script2);
  4967. // _iframe.contentWindow.document.body.appendChild(script3);
  4968. _iframe.contentWindow.document.body.appendChild(script4);
  4969. };
  4970. }
  4971. _jie.onclick = async () => {
  4972. let text = ''
  4973. if (aTool == 1) {
  4974. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4975. } else if (aTool == 6) {
  4976. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4977. } else if (aTool == 3) {
  4978. text = await U.MD.D.I.getEditorContent(_iframe);
  4979. }
  4980. _loading.style.display = 'flex'
  4981. console.log(_loading);
  4982. var _ajs = _iframe.contentWindow.document.createElement("script");
  4983. _ajs.type = "text/javascript";
  4984. _ajs.innerHTML =
  4985. // 'console.log(' + _loading + ');\n' +
  4986. 'var _js = document.createElement("script");\n' +
  4987. '_js.type="text/javascript";\n' +
  4988. '_js.charset="UTF-8";\n' +
  4989. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4990. "_js.onload = function(){\n" +
  4991. ' var a = document.getElementsByTagName("img")\n' +
  4992. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4993. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4994. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4995. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4996. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4997. "beforeUpload_shishi(file," +
  4998. "'" +
  4999. _userid +
  5000. "'" +
  5001. ", " +
  5002. "'" +
  5003. _cid +
  5004. "'" +
  5005. ", " +
  5006. "'" +
  5007. _stage +
  5008. "'" +
  5009. ", " +
  5010. "'" +
  5011. _task +
  5012. "'" +
  5013. ", " +
  5014. "'" +
  5015. _tool +
  5016. "'" +
  5017. ", " +
  5018. "'" +
  5019. (str + '_loadLi_JieTeacher' + cid + stage + task + tool+_userid) +
  5020. "'" +
  5021. ", " +
  5022. "'" +
  5023. aTool +
  5024. "'" +
  5025. ", " +
  5026. "`" +
  5027. text +
  5028. "`" +
  5029. ")\n" +
  5030. " });\n" +
  5031. "}\n" +
  5032. "document.head.appendChild(_js);\n";
  5033. _iframe.contentWindow.document.head.appendChild(_ajs);
  5034. }
  5035. }
  5036. }
  5037. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  5038. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5039. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5040. _userid = student.userid, //登录用户id
  5041. _username = student.student //用户名字
  5042. let _iframe;
  5043. let _cid = cid,
  5044. _stage = stage,
  5045. _task = task,
  5046. _tool = tool;
  5047. var _jie = $$("div", {
  5048. "style": {
  5049. "position": "absolute",
  5050. "bottom": "50px",
  5051. "right": "50px",
  5052. "zIndex": "9999",
  5053. "backgroundColor": "#2268bc",
  5054. "color": "#fff",
  5055. "padding": "12px 20px",
  5056. "cursor": "pointer",
  5057. "borderRadius": "4px",
  5058. },
  5059. "innerHTML": "提交作业"
  5060. })
  5061. let aTool = ''
  5062. let _loading = document.createElement('div')
  5063. _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;"
  5064. // _loading.id = "";
  5065. let _lchild = document.createElement('div')
  5066. let _limg = document.createElement('img')
  5067. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5068. _limg.style = "width: 26px;margin-right: 10px;"
  5069. _lchild.appendChild(_limg)
  5070. let _lspan = document.createElement('span')
  5071. _lspan.innerHTML = "上传中..."
  5072. _lchild.appendChild(_lspan)
  5073. _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%);"
  5074. _loading.appendChild(_lchild)
  5075. var _box = $$('div', {
  5076. "style": {
  5077. "position": "relative",
  5078. "width": "100%",
  5079. "height": "100%",
  5080. },
  5081. })
  5082. _box.appendChild(_loading)
  5083. _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
  5084. switch (str) {
  5085. case "whiteboard":
  5086. aTool = 1;
  5087. _iframe = $$("iframe", {
  5088. "frameborder": "no",
  5089. "border": "0",
  5090. "scrolling ": "no",
  5091. "style": {
  5092. "cssText": "border:0;width:100%;height:100%"
  5093. },
  5094. "src": "https://iwb.cocorobo.cn/"
  5095. })
  5096. _box.appendChild(_iframe);
  5097. _box.appendChild(_jie);
  5098. _formdiv = new U.UF.UI.form(
  5099. "电子白板-" + _username,
  5100. _box, {
  5101. "id": "whiteboard" + cid + stage + task + tool + _userid,
  5102. "style": {
  5103. "width": "90%",
  5104. "height": "90%",
  5105. "overflow": 'hidden'
  5106. },
  5107. "onresize": function () { }
  5108. }, {
  5109. closecallback: function () { }
  5110. }, {
  5111. "style": {
  5112. "height": "36px"
  5113. }
  5114. }).form; //创建窗体
  5115. _taskbar = {
  5116. "id": str + _formdiv.id,
  5117. "style": {
  5118. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5119. },
  5120. "name": "电子白板",
  5121. "forms": _formdiv,
  5122. "click": function () {
  5123. U.MD.D.I.openApplication(str, obj, info);
  5124. }
  5125. }
  5126. break;
  5127. case "mind":
  5128. aTool = 3;
  5129. _iframe = $$("iframe", {
  5130. "frameborder": "no",
  5131. "border": "0",
  5132. "scrolling ": "no",
  5133. "style": {
  5134. "cssText": "border:0;width:100%;height:100%"
  5135. },
  5136. "src": "/kityminder-editor/dist/index.html"
  5137. })
  5138. _box.appendChild(_iframe);
  5139. _box.appendChild(_jie);
  5140. _formdiv = new U.UF.UI.form(
  5141. "思维导图-" + _username,
  5142. _box, { //"/jsmind/example/demo.html"
  5143. "id": "mind" + cid + stage + task + tool + _userid,
  5144. "style": {
  5145. "width": "90%",
  5146. "height": "90%",
  5147. "overflow": 'hidden'
  5148. },
  5149. "onresize": function () { }
  5150. }, {
  5151. closecallback: function () { }
  5152. }, {
  5153. "style": {
  5154. "height": "36px"
  5155. }
  5156. }).form; //创建窗体
  5157. _taskbar = {
  5158. "id": str + _formdiv.id,
  5159. "style": {
  5160. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5161. },
  5162. "name": "思维导图",
  5163. "forms": _formdiv,
  5164. "click": function () {
  5165. U.MD.D.I.openApplication(str, obj, info);
  5166. }
  5167. }
  5168. break;
  5169. case "MindMap":
  5170. aTool = 3;
  5171. _iframe = $$("iframe", {
  5172. "frameborder": "no",
  5173. "border": "0",
  5174. "scrolling ": "no",
  5175. "style": {
  5176. "cssText": "border:0;width:100%;height:100%"
  5177. },
  5178. "src": "//cloud.cocorobo.cn/mind/"
  5179. })
  5180. _box.appendChild(_iframe);
  5181. _box.appendChild(_jie);
  5182. _formdiv = new U.UF.UI.form(
  5183. "思维导图-" + _username,
  5184. _box, { //"/jsmind/example/demo.html"
  5185. "id": "mind" + cid + stage + task + tool + _userid,
  5186. "style": {
  5187. "width": "90%",
  5188. "height": "90%",
  5189. "overflow": 'hidden'
  5190. },
  5191. "onresize": function () { }
  5192. }, {
  5193. closecallback: function () { }
  5194. }, {
  5195. "style": {
  5196. "height": "36px"
  5197. }
  5198. }).form; //创建窗体
  5199. _taskbar = {
  5200. "id": str + _formdiv.id,
  5201. "style": {
  5202. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5203. },
  5204. "name": "思维导图",
  5205. "forms": _formdiv,
  5206. "click": function () {
  5207. U.MD.D.I.openApplication(str, obj, info);
  5208. }
  5209. }
  5210. break;
  5211. case "doc":
  5212. aTool = 6;
  5213. _iframe = $$("iframe", {
  5214. "frameborder": "no",
  5215. "border": "0",
  5216. "scrolling ": "no",
  5217. "style": {
  5218. "cssText": "border:0;width:100%;height:100%"
  5219. },
  5220. "src": "/Office/Word/WordEditArea.htm"
  5221. })
  5222. _box.appendChild(_iframe);
  5223. _box.appendChild(_jie);
  5224. _formdiv = new U.UF.UI.form(
  5225. "协同文档-" + _username,
  5226. _box, {
  5227. "id": "doc" + 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. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5242. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5243. })
  5244. _taskbar = {
  5245. "id": str + _formdiv.id,
  5246. "style": {
  5247. "backgroundImage": "url(/img/icon/doc.png)"
  5248. },
  5249. "name": "协同文档",
  5250. "forms": _formdiv,
  5251. "click": function () {
  5252. U.MD.D.I.openApplication(str, obj, info);
  5253. }
  5254. }
  5255. break;
  5256. case "mindNetwork": //好友打开
  5257. aTool = 7;
  5258. _iframe = $$("iframe", {
  5259. "webkitallowfullscreen": "",
  5260. "mozallowfullscreen": "",
  5261. "allowfullscreen": "",
  5262. "frameborder": "no",
  5263. "border": "0",
  5264. "scrolling ": "no",
  5265. "style": {
  5266. "cssText": "border:0; width:100%; height:100%;"
  5267. },
  5268. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5269. })
  5270. _box.appendChild(_iframe);
  5271. _box.appendChild(_jie);
  5272. _formdiv = new U.UF.UI.form(
  5273. "思维网格-" + _username,
  5274. _box, {
  5275. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5276. "style": {
  5277. "width": "90%",
  5278. "height": "90%",
  5279. "overflow": 'hidden'
  5280. },
  5281. "onresize": function () { }
  5282. }, {
  5283. closecallback: function () { }
  5284. }, {
  5285. "style": {
  5286. "height": "36px"
  5287. }
  5288. }).form; //创建窗体
  5289. _taskbar = {
  5290. "id": str + _formdiv.id,
  5291. "style": {
  5292. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5293. },
  5294. "name": "思维网格",
  5295. "forms": _formdiv,
  5296. "click": function () {
  5297. U.MD.D.I.openApplication(str, obj, info);
  5298. }
  5299. }
  5300. break;
  5301. case "courseDesign":
  5302. _iframe = $$("iframe", {
  5303. "webkitallowfullscreen": "",
  5304. "mozallowfullscreen": "",
  5305. "allowfullscreen": "",
  5306. "frameborder": "no",
  5307. "border": "0",
  5308. "scrolling ": "no",
  5309. "style": {
  5310. "cssText": "border:0; width:100%; height:100%;"
  5311. },
  5312. "src": "/course-design-vue"
  5313. })
  5314. _box.appendChild(_iframe);
  5315. _box.appendChild(_jie);
  5316. _formdiv = new U.UF.UI.form(
  5317. "项目设计-" + _username,
  5318. _box, {
  5319. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5320. "style": {
  5321. "width": "90%",
  5322. "height": "90%",
  5323. "overflow": 'hidden'
  5324. },
  5325. "onresize": function () { }
  5326. }, {
  5327. closecallback: function () { }
  5328. }, {
  5329. "style": {
  5330. "height": "36px"
  5331. }
  5332. }).form; //创建窗体
  5333. _taskbar = {
  5334. "id": str + _formdiv.id,
  5335. "style": {
  5336. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5337. },
  5338. "name": "项目设计",
  5339. "forms": _formdiv,
  5340. "click": function () {
  5341. U.MD.D.I.openApplication(str, obj, info);
  5342. }
  5343. }
  5344. break;
  5345. }
  5346. const script1 = document.createElement("script");
  5347. script1.type = "text/javascript";
  5348. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5349. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5350. const script2 = document.createElement("script");
  5351. script2.type = "text/javascript";
  5352. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5353. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5354. const script3 = document.createElement("script");
  5355. script3.type = "text/javascript";
  5356. script3.charset = "UTF-8";
  5357. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5358. const script4 = document.createElement("script");
  5359. script4.type = "text/javascript";
  5360. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5361. script4.src = window.origin + "/js/Common/jietu2E.js";
  5362. if (_iframe) {
  5363. if (str == 'doc') {
  5364. _iframe = _formdiv.querySelector('iframe')
  5365. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5366. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5367. _iframe.contentWindow.document.body.appendChild(script1);
  5368. _iframe.contentWindow.document.body.appendChild(script2);
  5369. // _iframe.contentWindow.document.body.appendChild(script3);
  5370. _iframe.contentWindow.document.body.appendChild(script4);
  5371. })
  5372. if (onloadListener) {
  5373. _iframe.contentDocument.location.reload()
  5374. } else {
  5375. _iframe.contentDocument.location.reload()
  5376. }
  5377. } else if (str == 'courseDesign') {
  5378. U.UF.DL.iframeLoad(_iframe, function () {
  5379. // _iframe.contentWindow.U.MD.O.W.load();
  5380. // _iframe.contentWindow.document.body.appendChild(script1);
  5381. _iframe.contentWindow.document.body.appendChild(script2);
  5382. _iframe.contentWindow.document.body.appendChild(script4);
  5383. })
  5384. } else if (str == 'mind') {
  5385. _iframe = _formdiv.querySelector('iframe')
  5386. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5387. //
  5388. _iframe.contentWindow.document.body.appendChild(script1);
  5389. _iframe.contentWindow.document.body.appendChild(script2);
  5390. _iframe.contentWindow.document.body.appendChild(script4);
  5391. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5392. })
  5393. if (onloadListener) {
  5394. _iframe.contentDocument.location.reload()
  5395. } else {
  5396. _iframe.contentDocument.location.reload()
  5397. }
  5398. } else if (str == 'whiteboard') {
  5399. _iframe = _formdiv.querySelector('iframe')
  5400. let onloadListener = _iframe.onload = () => {
  5401. _iframe.contentWindow.document.body.appendChild(script1);
  5402. _iframe.contentWindow.document.body.appendChild(script2);
  5403. _iframe.contentWindow.document.body.appendChild(script4);
  5404. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5405. };
  5406. if (onloadListener) {
  5407. _iframe.contentDocument.location.reload()
  5408. } else {
  5409. _iframe.contentDocument.location.reload()
  5410. }
  5411. } else {
  5412. _iframe.onload = () => {
  5413. _iframe.contentWindow.document.body.appendChild(script1);
  5414. _iframe.contentWindow.document.body.appendChild(script2);
  5415. // _iframe.contentWindow.document.body.appendChild(script3);
  5416. _iframe.contentWindow.document.body.appendChild(script4);
  5417. };
  5418. }
  5419. _jie.onclick = async () => {
  5420. let text = ''
  5421. if (aTool == 1) {
  5422. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5423. } else if (aTool == 6) {
  5424. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5425. } else if (aTool == 3) {
  5426. text = await U.MD.D.I.getEditorContent(_iframe);
  5427. }
  5428. _loading.style.display = 'flex'
  5429. console.log(_loading);
  5430. var _ajs = _iframe.contentWindow.document.createElement("script");
  5431. _ajs.type = "text/javascript";
  5432. _ajs.innerHTML =
  5433. // 'console.log(' + _loading + ');\n' +
  5434. 'var _js = document.createElement("script");\n' +
  5435. '_js.type="text/javascript";\n' +
  5436. '_js.charset="UTF-8";\n' +
  5437. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5438. "_js.onload = function(){\n" +
  5439. ' var a = document.getElementsByTagName("img")\n' +
  5440. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5441. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5442. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5443. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5444. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5445. "beforeUpload_shishi(file," +
  5446. "'" +
  5447. _userid +
  5448. "'" +
  5449. ", " +
  5450. "'" +
  5451. _cid +
  5452. "'" +
  5453. ", " +
  5454. "'" +
  5455. _stage +
  5456. "'" +
  5457. ", " +
  5458. "'" +
  5459. _task +
  5460. "'" +
  5461. ", " +
  5462. "'" +
  5463. _tool +
  5464. "'" +
  5465. ", " +
  5466. "'" +
  5467. (str + '_loadLi_JieTeacherE' + cid + stage + task + tool+_userid) +
  5468. "'" +
  5469. ", " +
  5470. "'" +
  5471. aTool +
  5472. "'" +
  5473. ", " +
  5474. "`" +
  5475. text +
  5476. "`" +
  5477. ")\n" +
  5478. " });\n" +
  5479. "}\n" +
  5480. "document.head.appendChild(_js);\n";
  5481. _iframe.contentWindow.document.head.appendChild(_ajs);
  5482. }
  5483. }
  5484. }
  5485. U.MD.D.I.getEditorContent = function (iframe) {
  5486. return new Promise((resolve, reject) => {
  5487. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5488. console.log(content);
  5489. resolve(content)
  5490. });
  5491. });
  5492. }
  5493. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5494. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5495. // if (res.value[0].length > 0) {
  5496. // // resolve(res.value[0][0].text);
  5497. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5498. // $(fileInput).val('');
  5499. // });
  5500. // }
  5501. // }, [], { "type": "GET", "withCredentials": true });
  5502. var xmlhttp;
  5503. var Mac, Sn, DeviceId
  5504. if (window.XMLHttpRequest) {
  5505. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5506. xmlhttp = new XMLHttpRequest();
  5507. }
  5508. else {
  5509. // IE6, IE5 浏览器执行代码
  5510. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5511. }
  5512. xmlhttp.onreadystatechange = function () {
  5513. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5514. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5515. // resolve(res.value[0][0].text);
  5516. if (type == '2') {
  5517. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  5518. } else if (type == '3') {
  5519. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5520. }
  5521. } else {
  5522. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5523. }
  5524. }
  5525. }
  5526. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5527. xmlhttp.send();
  5528. }
  5529. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5530. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5531. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5532. _userinfo = US.userInfo, //登录用户信息
  5533. _userid = US.userInfo.userid //登录用户id
  5534. let _iframe;
  5535. let _cid = cid,
  5536. _stage = stage,
  5537. _task = task,
  5538. _tool = tool;
  5539. var _jie = $$("div", {
  5540. "style": {
  5541. "position": "absolute",
  5542. "bottom": "50px",
  5543. "right": "50px",
  5544. "zIndex": "9999",
  5545. "backgroundColor": "#2268bc",
  5546. "color": "#fff",
  5547. "padding": "12px 20px",
  5548. "cursor": "pointer",
  5549. "borderRadius": "4px",
  5550. },
  5551. "innerHTML": "确认并提交"
  5552. })
  5553. let aTool = ''
  5554. let _loading = document.createElement('div')
  5555. _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;"
  5556. // _loading.id = "";
  5557. let _lchild = document.createElement('div')
  5558. let _limg = document.createElement('img')
  5559. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5560. _limg.style = "width: 26px;margin-right: 10px;"
  5561. _lchild.appendChild(_limg)
  5562. let _lspan = document.createElement('span')
  5563. _lspan.innerHTML = "上传中..."
  5564. _lchild.appendChild(_lspan)
  5565. _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%);"
  5566. _loading.appendChild(_lchild)
  5567. var _box = $$('div', {
  5568. "style": {
  5569. "position": "relative",
  5570. "width": "100%",
  5571. "height": "100%",
  5572. },
  5573. })
  5574. _box.appendChild(_loading)
  5575. _box.id = str + '_loadLi_JieS' + cid + stage + task + tool+_userid
  5576. switch (str) {
  5577. case "whiteboard":
  5578. aTool = 1;
  5579. _iframe = $$("iframe", {
  5580. "frameborder": "no",
  5581. "border": "0",
  5582. "scrolling ": "no",
  5583. "style": {
  5584. "cssText": "border:0;width:100%;height:100%"
  5585. },
  5586. "src": "https://iwb.cocorobo.cn/"
  5587. })
  5588. _box.appendChild(_iframe);
  5589. _box.appendChild(_jie);
  5590. _formdiv = new U.UF.UI.form(
  5591. "电子白板",
  5592. _box, {
  5593. "id": "whiteboards" + cid + stage + task + tool,
  5594. "style": {
  5595. "width": "90%",
  5596. "height": "90%",
  5597. "overflow": 'hidden'
  5598. },
  5599. "onresize": function () { }
  5600. }, {
  5601. closecallback: function () { }
  5602. }, {
  5603. "style": {
  5604. "height": "36px"
  5605. }
  5606. }).form; //创建窗体
  5607. _taskbar = {
  5608. "id": str + _formdiv.id,
  5609. "style": {
  5610. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5611. },
  5612. "name": "电子白板",
  5613. "forms": _formdiv,
  5614. "click": function () {
  5615. U.MD.D.I.openApplication(str, obj, info);
  5616. }
  5617. }
  5618. break;
  5619. case "mind":
  5620. aTool = 3;
  5621. _iframe = $$("iframe", {
  5622. "frameborder": "no",
  5623. "border": "0",
  5624. "scrolling ": "no",
  5625. "style": {
  5626. "cssText": "border:0;width:100%;height:100%"
  5627. },
  5628. "src": "/kityminder-editor/dist/index.html"
  5629. });
  5630. _box.appendChild(_iframe);
  5631. _box.appendChild(_jie);
  5632. _formdiv = new U.UF.UI.form(
  5633. "思维导图",
  5634. _box, { //"/jsmind/example/demo.html"
  5635. "id": "minds" + cid + stage + task + tool,
  5636. "style": {
  5637. "width": "90%",
  5638. "height": "90%",
  5639. "overflow": 'hidden'
  5640. },
  5641. "onresize": function () { }
  5642. }, {
  5643. closecallback: function () { }
  5644. }, {
  5645. "style": {
  5646. "height": "36px"
  5647. }
  5648. }).form; //创建窗体
  5649. _taskbar = {
  5650. "id": str + _formdiv.id,
  5651. "style": {
  5652. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5653. },
  5654. "name": "思维导图",
  5655. "forms": _formdiv,
  5656. "click": function () {
  5657. U.MD.D.I.openApplication(str, obj, info);
  5658. }
  5659. }
  5660. break;
  5661. case "doc":
  5662. aTool = 6;
  5663. _iframe = $$("iframe", {
  5664. "frameborder": "no",
  5665. "border": "0",
  5666. "scrolling ": "no",
  5667. "style": {
  5668. "cssText": "border:0;width:100%;height:100%"
  5669. },
  5670. "src": "/Office/Word/WordEditArea.htm"
  5671. })
  5672. _box.appendChild(_iframe);
  5673. _box.appendChild(_jie);
  5674. _formdiv = new U.UF.UI.form(
  5675. "协同文档",
  5676. _box, {
  5677. "id": "docs" + cid + stage + task + tool,
  5678. "style": {
  5679. "width": "90%",
  5680. "height": "90%",
  5681. "overflow": 'hidden'
  5682. },
  5683. "onresize": function () { }
  5684. }, {
  5685. closecallback: function () { }
  5686. }, {
  5687. "style": {
  5688. "height": "36px"
  5689. }
  5690. }).form; //创建窗体
  5691. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5692. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5693. })
  5694. _taskbar = {
  5695. "id": str + _formdiv.id,
  5696. "style": {
  5697. "backgroundImage": "url(/img/icon/doc.png)"
  5698. },
  5699. "name": "协同文档",
  5700. "forms": _formdiv,
  5701. "click": function () {
  5702. U.MD.D.I.openApplication(str, obj, info);
  5703. }
  5704. }
  5705. break;
  5706. }
  5707. const script1 = document.createElement("script");
  5708. script1.type = "text/javascript";
  5709. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5710. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5711. const script2 = document.createElement("script");
  5712. script2.type = "text/javascript";
  5713. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5714. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5715. const script3 = document.createElement("script");
  5716. script3.type = "text/javascript";
  5717. script3.charset = "UTF-8";
  5718. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5719. const script4 = document.createElement("script");
  5720. script4.type = "text/javascript";
  5721. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5722. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5723. if (_iframe) {
  5724. if (str == 'doc') {
  5725. _iframe = _formdiv.querySelector('iframe')
  5726. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5727. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5728. _iframe.contentWindow.document.body.appendChild(script1);
  5729. _iframe.contentWindow.document.body.appendChild(script2);
  5730. // _iframe.contentWindow.document.body.appendChild(script3);
  5731. _iframe.contentWindow.document.body.appendChild(script4);
  5732. })
  5733. if (onloadListener) {
  5734. _iframe.contentDocument.location.reload()
  5735. } else {
  5736. _iframe.contentDocument.location.reload()
  5737. }
  5738. } else if (str == 'mind') {
  5739. _iframe = _formdiv.querySelector('iframe')
  5740. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5741. _iframe.contentWindow.document.body.appendChild(script1);
  5742. _iframe.contentWindow.document.body.appendChild(script2);
  5743. _iframe.contentWindow.document.body.appendChild(script4);
  5744. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5745. })
  5746. if (onloadListener) {
  5747. _iframe.contentDocument.location.reload()
  5748. } else {
  5749. _iframe.contentDocument.location.reload()
  5750. }
  5751. } else {
  5752. _iframe.onload = () => {
  5753. _iframe.contentWindow.document.body.appendChild(script1);
  5754. _iframe.contentWindow.document.body.appendChild(script2);
  5755. // _iframe.contentWindow.document.body.appendChild(script3);
  5756. _iframe.contentWindow.document.body.appendChild(script4);
  5757. };
  5758. }
  5759. _jie.onclick = async () => {
  5760. let text = ''
  5761. if (aTool == 6) {
  5762. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5763. } else if (aTool == 3) {
  5764. text = await U.MD.D.I.getEditorContent(_iframe);
  5765. }
  5766. _loading.style.display = 'flex'
  5767. console.log(_loading);
  5768. var _ajs = _iframe.contentWindow.document.createElement("script");
  5769. _ajs.type = "text/javascript";
  5770. _ajs.innerHTML =
  5771. // 'console.log(' + _loading + ');\n' +
  5772. 'var _js = document.createElement("script");\n' +
  5773. '_js.type="text/javascript";\n' +
  5774. '_js.charset="UTF-8";\n' +
  5775. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5776. "_js.onload = function(){\n" +
  5777. ' var a = document.getElementsByTagName("img")\n' +
  5778. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5779. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5780. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5781. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5782. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5783. "beforeUpload_shishi(file," +
  5784. "'" +
  5785. _userid +
  5786. "'" +
  5787. ", " +
  5788. "'" +
  5789. _cid +
  5790. "'" +
  5791. ", " +
  5792. "'" +
  5793. _stage +
  5794. "'" +
  5795. ", " +
  5796. "'" +
  5797. _task +
  5798. "'" +
  5799. ", " +
  5800. "'" +
  5801. _tool +
  5802. "'" +
  5803. ", " +
  5804. "'" +
  5805. (str + '_loadLi_JieS' + cid + stage + task + tool+_userid) +
  5806. "'" +
  5807. ", " +
  5808. "'" +
  5809. aTool +
  5810. "'" +
  5811. ", " +
  5812. "`" +
  5813. text +
  5814. "`" +
  5815. ")\n" +
  5816. " });\n" +
  5817. "}\n" +
  5818. "document.head.appendChild(_js);\n";
  5819. _iframe.contentWindow.document.head.appendChild(_ajs);
  5820. }
  5821. }
  5822. //U.MD.D.I.openClick(str);
  5823. //如果有任务栏信息
  5824. // if (_taskbar) {
  5825. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5826. // }
  5827. }
  5828. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5829. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5830. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5831. _userinfo = US.userInfo, //登录用户信息
  5832. _userid = US.userInfo.userid //登录用户id
  5833. let _iframe;
  5834. let _cid = cid,
  5835. _stage = stage,
  5836. _task = task,
  5837. _tool = tool;
  5838. var _jie = $$("div", {
  5839. "style": {
  5840. "position": "absolute",
  5841. "bottom": "50px",
  5842. "right": "50px",
  5843. "zIndex": "9999",
  5844. "backgroundColor": "#2268bc",
  5845. "color": "#fff",
  5846. "padding": "12px 20px",
  5847. "cursor": "pointer",
  5848. "borderRadius": "4px",
  5849. },
  5850. "innerHTML": "确认并提交"
  5851. })
  5852. let aTool = ''
  5853. let _loading = document.createElement('div')
  5854. _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;"
  5855. // _loading.id = "";
  5856. let _lchild = document.createElement('div')
  5857. let _limg = document.createElement('img')
  5858. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5859. _limg.style = "width: 26px;margin-right: 10px;"
  5860. _lchild.appendChild(_limg)
  5861. let _lspan = document.createElement('span')
  5862. _lspan.innerHTML = "上传中..."
  5863. _lchild.appendChild(_lspan)
  5864. _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%);"
  5865. _loading.appendChild(_lchild)
  5866. var _box = $$('div', {
  5867. "style": {
  5868. "position": "relative",
  5869. "width": "100%",
  5870. "height": "100%",
  5871. },
  5872. })
  5873. _box.appendChild(_loading)
  5874. _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid
  5875. switch (str) {
  5876. case "whiteboard":
  5877. aTool = 1;
  5878. _iframe = $$("iframe", {
  5879. "frameborder": "no",
  5880. "border": "0",
  5881. "scrolling ": "no",
  5882. "style": {
  5883. "cssText": "border:0;width:100%;height:100%"
  5884. },
  5885. "src": "https://iwb.cocorobo.cn/"
  5886. })
  5887. _box.appendChild(_iframe);
  5888. _box.appendChild(_jie);
  5889. _formdiv = new U.UF.UI.form(
  5890. "电子白板",
  5891. _box, {
  5892. "id": "whiteboards" + cid + stage + task + tool,
  5893. "style": {
  5894. "width": "90%",
  5895. "height": "90%",
  5896. "overflow": 'hidden'
  5897. },
  5898. "onresize": function () { }
  5899. }, {
  5900. closecallback: function () { }
  5901. }, {
  5902. "style": {
  5903. "height": "36px"
  5904. }
  5905. }).form; //创建窗体
  5906. _taskbar = {
  5907. "id": str + _formdiv.id,
  5908. "style": {
  5909. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5910. },
  5911. "name": "电子白板",
  5912. "forms": _formdiv,
  5913. "click": function () {
  5914. U.MD.D.I.openApplication(str, obj, info);
  5915. }
  5916. }
  5917. break;
  5918. case "mind":
  5919. aTool = 3;
  5920. _iframe = $$("iframe", {
  5921. "frameborder": "no",
  5922. "border": "0",
  5923. "scrolling ": "no",
  5924. "style": {
  5925. "cssText": "border:0;width:100%;height:100%"
  5926. },
  5927. "src": "/kityminder-editor/dist/index.html"
  5928. });
  5929. _box.appendChild(_iframe);
  5930. _box.appendChild(_jie);
  5931. _formdiv = new U.UF.UI.form(
  5932. "思维导图",
  5933. _box, { //"/jsmind/example/demo.html"
  5934. "id": "minds" + cid + stage + task + tool,
  5935. "style": {
  5936. "width": "90%",
  5937. "height": "90%",
  5938. "overflow": 'hidden'
  5939. },
  5940. "onresize": function () { }
  5941. }, {
  5942. closecallback: function () { }
  5943. }, {
  5944. "style": {
  5945. "height": "36px"
  5946. }
  5947. }).form; //创建窗体
  5948. _taskbar = {
  5949. "id": str + _formdiv.id,
  5950. "style": {
  5951. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5952. },
  5953. "name": "思维导图",
  5954. "forms": _formdiv,
  5955. "click": function () {
  5956. U.MD.D.I.openApplication(str, obj, info);
  5957. }
  5958. }
  5959. break;
  5960. case "doc":
  5961. aTool = 6;
  5962. _iframe = $$("iframe", {
  5963. "frameborder": "no",
  5964. "border": "0",
  5965. "scrolling ": "no",
  5966. "style": {
  5967. "cssText": "border:0;width:100%;height:100%"
  5968. },
  5969. "src": "/Office/Word/WordEditArea.htm"
  5970. })
  5971. _box.appendChild(_iframe);
  5972. _box.appendChild(_jie);
  5973. _formdiv = new U.UF.UI.form(
  5974. "协同文档",
  5975. _box, {
  5976. "id": "docs" + cid + stage + task + tool,
  5977. "style": {
  5978. "width": "90%",
  5979. "height": "90%",
  5980. "overflow": 'hidden'
  5981. },
  5982. "onresize": function () { }
  5983. }, {
  5984. closecallback: function () { }
  5985. }, {
  5986. "style": {
  5987. "height": "36px"
  5988. }
  5989. }).form; //创建窗体
  5990. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5991. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5992. })
  5993. _taskbar = {
  5994. "id": str + _formdiv.id,
  5995. "style": {
  5996. "backgroundImage": "url(/img/icon/doc.png)"
  5997. },
  5998. "name": "协同文档",
  5999. "forms": _formdiv,
  6000. "click": function () {
  6001. U.MD.D.I.openApplication(str, obj, info);
  6002. }
  6003. }
  6004. break;
  6005. }
  6006. const script1 = document.createElement("script");
  6007. script1.type = "text/javascript";
  6008. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  6009. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  6010. const script2 = document.createElement("script");
  6011. script2.type = "text/javascript";
  6012. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  6013. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  6014. const script3 = document.createElement("script");
  6015. script3.type = "text/javascript";
  6016. script3.charset = "UTF-8";
  6017. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  6018. const script4 = document.createElement("script");
  6019. script4.type = "text/javascript";
  6020. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  6021. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  6022. if (_iframe) {
  6023. if (str == 'doc') {
  6024. _iframe = _formdiv.querySelector('iframe')
  6025. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6026. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6027. _iframe.contentWindow.document.body.appendChild(script1);
  6028. _iframe.contentWindow.document.body.appendChild(script2);
  6029. // _iframe.contentWindow.document.body.appendChild(script3);
  6030. _iframe.contentWindow.document.body.appendChild(script4);
  6031. })
  6032. if (onloadListener) {
  6033. _iframe.contentDocument.location.reload()
  6034. } else {
  6035. _iframe.contentDocument.location.reload()
  6036. }
  6037. } else if (str == 'mind') {
  6038. _iframe = _formdiv.querySelector('iframe')
  6039. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6040. _iframe.contentWindow.document.body.appendChild(script1);
  6041. _iframe.contentWindow.document.body.appendChild(script2);
  6042. _iframe.contentWindow.document.body.appendChild(script4);
  6043. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  6044. })
  6045. if (onloadListener) {
  6046. _iframe.contentDocument.location.reload()
  6047. } else {
  6048. _iframe.contentDocument.location.reload()
  6049. }
  6050. } else {
  6051. _iframe.onload = () => {
  6052. _iframe.contentWindow.document.body.appendChild(script1);
  6053. _iframe.contentWindow.document.body.appendChild(script2);
  6054. // _iframe.contentWindow.document.body.appendChild(script3);
  6055. _iframe.contentWindow.document.body.appendChild(script4);
  6056. };
  6057. }
  6058. _jie.onclick = async () => {
  6059. let text = ''
  6060. if (aTool == 6) {
  6061. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6062. } else if (aTool == 3) {
  6063. text = await U.MD.D.I.getEditorContent(_iframe);
  6064. }
  6065. _loading.style.display = 'flex'
  6066. console.log(_loading);
  6067. var _ajs = _iframe.contentWindow.document.createElement("script");
  6068. _ajs.type = "text/javascript";
  6069. _ajs.innerHTML =
  6070. // 'console.log(' + _loading + ');\n' +
  6071. 'var _js = document.createElement("script");\n' +
  6072. '_js.type="text/javascript";\n' +
  6073. '_js.charset="UTF-8";\n' +
  6074. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  6075. "_js.onload = function(){\n" +
  6076. ' var a = document.getElementsByTagName("img")\n' +
  6077. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  6078. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  6079. '  var base64Url = canvas.toDataURL("image/png");\n' +
  6080. 'var base64 = "<img src=" + base64Url + " />"\n' +
  6081. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  6082. "beforeUpload_shishi(file," +
  6083. "'" +
  6084. _userid +
  6085. "'" +
  6086. ", " +
  6087. "'" +
  6088. _cid +
  6089. "'" +
  6090. ", " +
  6091. "'" +
  6092. _stage +
  6093. "'" +
  6094. ", " +
  6095. "'" +
  6096. _task +
  6097. "'" +
  6098. ", " +
  6099. "'" +
  6100. _tool +
  6101. "'" +
  6102. ", " +
  6103. "'" +
  6104. (str + '_loadLi_JieStudio' + cid + stage + task + tool+_userid) +
  6105. "'" +
  6106. ", " +
  6107. "'" +
  6108. aTool +
  6109. "'" +
  6110. ", " +
  6111. "`" +
  6112. text +
  6113. "`" +
  6114. ")\n" +
  6115. " });\n" +
  6116. "}\n" +
  6117. "document.head.appendChild(_js);\n";
  6118. _iframe.contentWindow.document.head.appendChild(_ajs);
  6119. }
  6120. }
  6121. //U.MD.D.I.openClick(str);
  6122. //如果有任务栏信息
  6123. // if (_taskbar) {
  6124. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6125. // }
  6126. }
  6127. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  6128. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6129. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6130. _userinfo = US.userInfo, //登录用户信息
  6131. _userid = US.userInfo.userid //登录用户id
  6132. let _iframe;
  6133. let _cid = cid,
  6134. _stage = stage,
  6135. _task = task,
  6136. _tool = tool;
  6137. var _jie = $$("div", {
  6138. "style": {
  6139. "position": "absolute",
  6140. "bottom": "50px",
  6141. "right": "50px",
  6142. "zIndex": "9999",
  6143. "backgroundColor": "#2268bc",
  6144. "color": "#fff",
  6145. "padding": "12px 20px",
  6146. "cursor": "pointer",
  6147. "borderRadius": "4px",
  6148. },
  6149. "innerHTML": "上传模板"
  6150. })
  6151. let aTool = ''
  6152. let _loading = document.createElement('div')
  6153. _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;"
  6154. // _loading.id = "";
  6155. let _lchild = document.createElement('div')
  6156. let _limg = document.createElement('img')
  6157. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6158. _limg.style = "width: 26px;margin-right: 10px;"
  6159. _lchild.appendChild(_limg)
  6160. let _lspan = document.createElement('span')
  6161. _lspan.innerHTML = "上传中..."
  6162. _lchild.appendChild(_lspan)
  6163. _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%);"
  6164. _loading.appendChild(_lchild)
  6165. var _box = $$('div', {
  6166. "style": {
  6167. "position": "relative",
  6168. "width": "100%",
  6169. "height": "100%",
  6170. },
  6171. })
  6172. _box.appendChild(_loading)
  6173. _box.id = str + '_loadLi_Yu' + cid + stage + task + tool+_userid
  6174. switch (str) {
  6175. case "whiteboard":
  6176. aTool = 1;
  6177. _iframe = $$("iframe", {
  6178. "frameborder": "no",
  6179. "border": "0",
  6180. "scrolling ": "no",
  6181. "style": {
  6182. "cssText": "border:0;width:100%;height:100%"
  6183. },
  6184. "src": "https://iwb.cocorobo.cn/"
  6185. })
  6186. _box.appendChild(_iframe);
  6187. _box.appendChild(_jie);
  6188. _formdiv = new U.UF.UI.form(
  6189. "电子白板",
  6190. _box, {
  6191. "id": "whiteboards_Yu" + cid + stage + task + tool,
  6192. "style": {
  6193. "width": "90%",
  6194. "height": "90%",
  6195. "overflow": 'hidden'
  6196. },
  6197. "onresize": function () { }
  6198. }, {
  6199. closecallback: function () { }
  6200. }, {
  6201. "style": {
  6202. "height": "36px"
  6203. }
  6204. }).form; //创建窗体
  6205. _taskbar = {
  6206. "id": str + _formdiv.id,
  6207. "style": {
  6208. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  6209. },
  6210. "name": "电子白板",
  6211. "forms": _formdiv,
  6212. "click": function () {
  6213. U.MD.D.I.openApplication(str, obj, info);
  6214. }
  6215. }
  6216. break;
  6217. case "mind":
  6218. aTool = 3;
  6219. _iframe = $$("iframe", {
  6220. "frameborder": "no",
  6221. "border": "0",
  6222. "scrolling ": "no",
  6223. "style": {
  6224. "cssText": "border:0;width:100%;height:100%"
  6225. },
  6226. "src": "/kityminder-editor/dist/index.html"
  6227. });
  6228. _box.appendChild(_iframe);
  6229. _box.appendChild(_jie);
  6230. _formdiv = new U.UF.UI.form(
  6231. "思维导图",
  6232. _box, { //"/jsmind/example/demo.html"
  6233. "id": "minds_Yu" + cid + stage + task + tool,
  6234. "style": {
  6235. "width": "90%",
  6236. "height": "90%",
  6237. "overflow": 'hidden'
  6238. },
  6239. "onresize": function () { }
  6240. }, {
  6241. closecallback: function () { }
  6242. }, {
  6243. "style": {
  6244. "height": "36px"
  6245. }
  6246. }).form; //创建窗体
  6247. _taskbar = {
  6248. "id": str + _formdiv.id,
  6249. "style": {
  6250. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6251. },
  6252. "name": "思维导图",
  6253. "forms": _formdiv,
  6254. "click": function () {
  6255. U.MD.D.I.openApplication(str, obj, info);
  6256. }
  6257. }
  6258. break;
  6259. case "doc":
  6260. aTool = 6;
  6261. _iframe = $$("iframe", {
  6262. "frameborder": "no",
  6263. "border": "0",
  6264. "scrolling ": "no",
  6265. "style": {
  6266. "cssText": "border:0;width:100%;height:100%"
  6267. },
  6268. "src": "/Office/Word/WordEditArea.htm"
  6269. })
  6270. _box.appendChild(_iframe);
  6271. _box.appendChild(_jie);
  6272. _formdiv = new U.UF.UI.form(
  6273. "协同文档",
  6274. _box, {
  6275. "id": "docs_Yu" + cid + stage + task + tool,
  6276. "style": {
  6277. "width": "90%",
  6278. "height": "90%",
  6279. "overflow": 'hidden'
  6280. },
  6281. "onresize": function () { }
  6282. }, {
  6283. closecallback: function () { }
  6284. }, {
  6285. "style": {
  6286. "height": "36px"
  6287. }
  6288. }).form; //创建窗体
  6289. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6290. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6291. })
  6292. _taskbar = {
  6293. "id": str + _formdiv.id,
  6294. "style": {
  6295. "backgroundImage": "url(/img/icon/doc.png)"
  6296. },
  6297. "name": "协同文档",
  6298. "forms": _formdiv,
  6299. "click": function () {
  6300. U.MD.D.I.openApplication(str, obj, info);
  6301. }
  6302. }
  6303. break;
  6304. case "CocoPi":
  6305. aTool = 57;
  6306. _iframe = $$("iframe", {
  6307. "allowpaymentrequest":"allowpaymentrequest",
  6308. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6309. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6310. "frameborder": "no",
  6311. "border": "0",
  6312. "scrolling ": "no",
  6313. "style": {
  6314. "cssText": "border:0;width:100%;height:100%"
  6315. },
  6316. "src": "https://beta.v.cocorobo.cn/"
  6317. })
  6318. _box.appendChild(_iframe);
  6319. _box.appendChild(_jie);
  6320. _formdiv = new U.UF.UI.form(
  6321. "CocoPi",
  6322. _box, {
  6323. "id": "CocoPi_Yu" + cid + stage + task + tool,
  6324. "style": {
  6325. "width": "90%",
  6326. "height": "90%",
  6327. "overflow": 'hidden'
  6328. },
  6329. "onresize": function () { }
  6330. }, {
  6331. closecallback: function () { }
  6332. }, {
  6333. "style": {
  6334. "height": "36px"
  6335. }
  6336. }).form; //创建窗体
  6337. _taskbar = {
  6338. "id": str + _formdiv.id,
  6339. "style": {
  6340. "backgroundImage": "url(/img/icon/cocopi.png)"
  6341. },
  6342. "name": "CocoPi",
  6343. "forms": _formdiv,
  6344. "click": function () {
  6345. U.MD.D.I.openApplication(str, obj, info);
  6346. }
  6347. }
  6348. break;
  6349. }
  6350. if (_iframe) {
  6351. if (str == 'doc') {
  6352. _iframe = _formdiv.querySelector('iframe')
  6353. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6354. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6355. })
  6356. if (onloadListener) {
  6357. _iframe.contentDocument.location.reload()
  6358. } else {
  6359. _iframe.contentDocument.location.reload()
  6360. }
  6361. } else if (str == 'mind') {
  6362. _iframe = _formdiv.querySelector('iframe')
  6363. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6364. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6365. })
  6366. if (onloadListener) {
  6367. _iframe.contentDocument.location.reload()
  6368. } else {
  6369. _iframe.contentDocument.location.reload()
  6370. }
  6371. } else if (str == 'whiteboard') {
  6372. _iframe = _formdiv.querySelector('iframe')
  6373. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6374. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6375. })
  6376. if (onloadListener) {
  6377. _iframe.contentDocument.location.reload()
  6378. } else {
  6379. _iframe.contentDocument.location.reload()
  6380. }
  6381. } else if (str == 'CocoPi') {
  6382. _iframe = _formdiv.querySelector('iframe')
  6383. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6384. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
  6385. })
  6386. if (onloadListener) {
  6387. _iframe.contentDocument.location.reload()
  6388. } else {
  6389. _iframe.contentDocument.location.reload()
  6390. }
  6391. } else {
  6392. _iframe.onload = () => {
  6393. };
  6394. }
  6395. _jie.onclick = async () => {
  6396. let text = ''
  6397. let type = '2'
  6398. if (aTool == 1) {
  6399. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6400. type = '3'
  6401. } else if (aTool == 6) {
  6402. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6403. type = '1'
  6404. } else if (aTool == 3) {
  6405. text = await U.MD.D.I.getEditorContent(_iframe);
  6406. type = '2'
  6407. } else if (aTool == 57) {
  6408. text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
  6409. type = '4'
  6410. }
  6411. _loading.style.display = 'flex'
  6412. U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
  6413. }
  6414. }
  6415. //U.MD.D.I.openClick(str);
  6416. //如果有任务栏信息
  6417. // if (_taskbar) {
  6418. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6419. // }
  6420. }
  6421. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6422. var xmlhttp;
  6423. var Mac, Sn, DeviceId
  6424. if (window.XMLHttpRequest) {
  6425. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6426. xmlhttp = new XMLHttpRequest();
  6427. }
  6428. else {
  6429. // IE6, IE5 浏览器执行代码
  6430. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6431. }
  6432. xmlhttp.onreadystatechange = function () {
  6433. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6434. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6435. // resolve(res.value[0][0].text);
  6436. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6437. }
  6438. }
  6439. }
  6440. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6441. xmlhttp.send();
  6442. }
  6443. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6444. var xmlhttp;
  6445. var Mac, Sn, DeviceId
  6446. if (window.XMLHttpRequest) {
  6447. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6448. xmlhttp = new XMLHttpRequest();
  6449. }
  6450. else {
  6451. // IE6, IE5 浏览器执行代码
  6452. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6453. }
  6454. xmlhttp.onreadystatechange = function () {
  6455. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6456. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6457. // resolve(res.value[0][0].text);
  6458. if (type == '2') {
  6459. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
  6460. } else if (type == '3') {
  6461. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6462. } else if (type == '4') {
  6463. iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
  6464. }
  6465. } else {
  6466. if (type == '2') {
  6467. iframe.contentWindow.editor.minder.importData('json', '')
  6468. } else if (type == '3') {
  6469. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6470. } else if (type == '4') {
  6471. iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6472. }
  6473. }
  6474. }
  6475. }
  6476. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6477. xmlhttp.send();
  6478. }
  6479. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6480. var xmlhttp;
  6481. var Mac, Sn, DeviceId
  6482. if (window.XMLHttpRequest) {
  6483. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6484. xmlhttp = new XMLHttpRequest();
  6485. }
  6486. else {
  6487. // IE6, IE5 浏览器执行代码
  6488. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6489. }
  6490. xmlhttp.onreadystatechange = function () {
  6491. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6492. if (xmlhttp.response) {
  6493. // resolve(res.value[0][0].text);
  6494. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6495. // $(fileInput).val('');
  6496. // });
  6497. span.innerHTML = '上传成功'
  6498. setTimeout(() => {
  6499. loading.style.display = 'none'
  6500. }, 1000);
  6501. }
  6502. }
  6503. }
  6504. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6505. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6506. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6507. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6508. // 设置请求头,表示请求体的编码格式
  6509. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
  6510. // 设置请求体,使用url-encoded格式的数据
  6511. }
  6512. U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
  6513. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6514. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6515. _userinfo = US.userInfo, //登录用户信息
  6516. _userid = US.userInfo.userid //登录用户id
  6517. let _iframe;
  6518. let _cid = cid,
  6519. _stage = stage,
  6520. _task = task,
  6521. _tool = tool;
  6522. var _jie = $$("div", {
  6523. "style": {
  6524. "position": "absolute",
  6525. "bottom": "50px",
  6526. "right": "50px",
  6527. "zIndex": "9999",
  6528. "backgroundColor": "#2268bc",
  6529. "color": "#fff",
  6530. "padding": "12px 20px",
  6531. "cursor": "pointer",
  6532. "borderRadius": "4px",
  6533. },
  6534. "innerHTML": "提交作业"
  6535. })
  6536. let aTool = ''
  6537. let _loading = document.createElement('div')
  6538. _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;"
  6539. // _loading.id = "";
  6540. let _lchild = document.createElement('div')
  6541. let _limg = document.createElement('img')
  6542. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6543. _limg.style = "width: 26px;margin-right: 10px;"
  6544. _lchild.appendChild(_limg)
  6545. let _lspan = document.createElement('span')
  6546. _lspan.innerHTML = "上传中..."
  6547. _lchild.appendChild(_lspan)
  6548. _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%);"
  6549. _loading.appendChild(_lchild)
  6550. var _box = $$('div', {
  6551. "style": {
  6552. "position": "relative",
  6553. "width": "100%",
  6554. "height": "100%",
  6555. },
  6556. })
  6557. _box.appendChild(_loading)
  6558. _box.id = str + '_loadLi_Upload' + cid + stage + task + tool+_userid
  6559. switch (str) {
  6560. case "CocoPi":
  6561. aTool = 57;
  6562. _iframe = $$("iframe", {
  6563. "allowpaymentrequest":"allowpaymentrequest",
  6564. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6565. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6566. "frameborder": "no",
  6567. "border": "0",
  6568. "scrolling ": "no",
  6569. "style": {
  6570. "cssText": "border:0;width:100%;height:100%"
  6571. },
  6572. "src": "https://beta.v.cocorobo.cn/"
  6573. })
  6574. _box.appendChild(_iframe);
  6575. _box.appendChild(_jie);
  6576. _formdiv = new U.UF.UI.form(
  6577. "CocoPi",
  6578. _box, {
  6579. "id": "CocoPi_Upload" + cid + stage + task + tool,
  6580. "style": {
  6581. "width": "90%",
  6582. "height": "90%",
  6583. "overflow": 'hidden'
  6584. },
  6585. "onresize": function () { }
  6586. }, {
  6587. closecallback: function () { }
  6588. }, {
  6589. "style": {
  6590. "height": "36px"
  6591. }
  6592. }).form; //创建窗体
  6593. _taskbar = {
  6594. "id": str + _formdiv.id,
  6595. "style": {
  6596. "backgroundImage": "url(/img/icon/cocopi.png)"
  6597. },
  6598. "name": "CocoPi",
  6599. "forms": _formdiv,
  6600. "click": function () {
  6601. U.MD.D.I.openApplication(str, obj, info);
  6602. }
  6603. }
  6604. break;
  6605. }
  6606. if (_iframe) {
  6607. if (str == 'CocoPi') {
  6608. _iframe = _formdiv.querySelector('iframe')
  6609. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6610. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6611. })
  6612. if (onloadListener) {
  6613. _iframe.contentDocument.location.reload()
  6614. } else {
  6615. _iframe.contentDocument.location.reload()
  6616. }
  6617. }
  6618. _jie.onclick = async () => {
  6619. let text = ''
  6620. if (aTool == 57) {
  6621. text = _iframe.contentWindow.getLoadXmlStr()
  6622. }
  6623. _loading.style.display = 'flex'
  6624. console.log(_loading);
  6625. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6626. _loading.style.display = 'none'
  6627. let _div = document.createElement('div')
  6628. _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;"
  6629. let _inner = document.createElement('div')
  6630. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6631. _inner.innerHTML = "上传成功"
  6632. _div.appendChild(_inner)
  6633. _iframe.contentWindow.window.document.body.appendChild(_div)
  6634. _div.onclick = () => {
  6635. _iframe.contentWindow.window.document.body.removeChild(_div)
  6636. }
  6637. setTimeout(() => {
  6638. _iframe.contentWindow.window.document.body.removeChild(_div)
  6639. }, 1000);
  6640. }, [], { "type": "POST", "withCredentials": true });
  6641. }
  6642. }
  6643. }
  6644. U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
  6645. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  6646. _formdiv, //创建任务栏时同时弹出的窗体元素。
  6647. _userid = student.userid, //登录用户id
  6648. _username = student.student //用户名字
  6649. let _iframe;
  6650. let _cid = cid,
  6651. _stage = stage,
  6652. _task = task,
  6653. _tool = tool;
  6654. var _jie = $$("div", {
  6655. "style": {
  6656. "position": "absolute",
  6657. "bottom": "50px",
  6658. "right": "50px",
  6659. "zIndex": "9999",
  6660. "backgroundColor": "#2268bc",
  6661. "color": "#fff",
  6662. "padding": "12px 20px",
  6663. "cursor": "pointer",
  6664. "borderRadius": "4px",
  6665. },
  6666. "innerHTML": "提交作业"
  6667. })
  6668. let aTool = ''
  6669. let _loading = document.createElement('div')
  6670. _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;"
  6671. // _loading.id = "";
  6672. let _lchild = document.createElement('div')
  6673. let _limg = document.createElement('img')
  6674. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  6675. _limg.style = "width: 26px;margin-right: 10px;"
  6676. _lchild.appendChild(_limg)
  6677. let _lspan = document.createElement('span')
  6678. _lspan.innerHTML = "上传中..."
  6679. _lchild.appendChild(_lspan)
  6680. _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%);"
  6681. _loading.appendChild(_lchild)
  6682. var _box = $$('div', {
  6683. "style": {
  6684. "position": "relative",
  6685. "width": "100%",
  6686. "height": "100%",
  6687. },
  6688. })
  6689. _box.appendChild(_loading)
  6690. _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool+_userid
  6691. switch (str) {
  6692. case "CocoPi":
  6693. aTool = 57;
  6694. _iframe = $$("iframe", {
  6695. "allowpaymentrequest":"allowpaymentrequest",
  6696. "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
  6697. "webkitallowfullscreen": "", "mozallowfullscreen": "",
  6698. "frameborder": "no",
  6699. "border": "0",
  6700. "scrolling ": "no",
  6701. "style": {
  6702. "cssText": "border:0;width:100%;height:100%"
  6703. },
  6704. "src": "https://beta.v.cocorobo.cn/"
  6705. })
  6706. _box.appendChild(_iframe);
  6707. _box.appendChild(_jie);
  6708. _formdiv = new U.UF.UI.form(
  6709. "CocoPi-" + _username,
  6710. _box, {
  6711. "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
  6712. "style": {
  6713. "width": "90%",
  6714. "height": "90%",
  6715. "overflow": 'hidden'
  6716. },
  6717. "onresize": function () { }
  6718. }, {
  6719. closecallback: function () { }
  6720. }, {
  6721. "style": {
  6722. "height": "36px"
  6723. }
  6724. }).form; //创建窗体
  6725. _taskbar = {
  6726. "id": str + _formdiv.id,
  6727. "style": {
  6728. "backgroundImage": "url(/img/icon/cocopi.png)"
  6729. },
  6730. "name": "CocoPi",
  6731. "forms": _formdiv,
  6732. "click": function () {
  6733. U.MD.D.I.openApplication(str, obj, info);
  6734. }
  6735. }
  6736. break;
  6737. }
  6738. if (_iframe) {
  6739. if (str == 'CocoPi') {
  6740. _iframe = _formdiv.querySelector('iframe')
  6741. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6742. U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool,'15', _iframe)
  6743. })
  6744. if (onloadListener) {
  6745. _iframe.contentDocument.location.reload()
  6746. } else {
  6747. _iframe.contentDocument.location.reload()
  6748. }
  6749. }
  6750. _jie.onclick = async () => {
  6751. let text = ''
  6752. if (aTool == 57) {
  6753. text = _iframe.contentWindow.getLoadXmlStr()
  6754. }
  6755. _loading.style.display = 'flex'
  6756. console.log(_loading);
  6757. U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
  6758. _loading.style.display = 'none'
  6759. let _div = document.createElement('div')
  6760. _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;"
  6761. let _inner = document.createElement('div')
  6762. _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
  6763. _inner.innerHTML = "上传成功"
  6764. _div.appendChild(_inner)
  6765. _iframe.contentWindow.window.document.body.appendChild(_div)
  6766. _div.onclick = () => {
  6767. _iframe.contentWindow.window.document.body.removeChild(_div)
  6768. }
  6769. setTimeout(() => {
  6770. _iframe.contentWindow.window.document.body.removeChild(_div)
  6771. }, 1000);
  6772. }, [], { "type": "POST", "withCredentials": true });
  6773. }
  6774. }
  6775. }
  6776. U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
  6777. U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
  6778. if (res.value[0].length > 0) {
  6779. if (atool == 57) {
  6780. iframe.contentWindow.loadingXml(res.value[0][0].content)
  6781. }
  6782. } else {
  6783. if (atool == 57) {
  6784. U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
  6785. // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
  6786. }
  6787. }
  6788. }, [], { "type": "POST", "withCredentials": true });
  6789. }