DeskTop.js 359 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463
  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": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  17. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  18. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  19. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  20. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  21. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  22. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  23. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  24. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  25. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  26. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  27. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  28. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  29. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  30. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  31. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  32. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  33. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  34. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  35. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  36. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  37. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  38. { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  39. { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  40. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  41. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  42. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  43. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  44. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  45. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  46. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  47. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  48. ];
  49. //极简模式
  50. U.MD.D.I.easyDeskIcon = [
  51. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/easy/project.png)", "width": '114px', 'height': '114px' } },
  52. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/easy/study.png)", "width": '114px', 'height': '114px' } },
  53. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/easy/evaluate.png)", "width": '114px', 'height': '114px' } },
  54. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/easy/class.png)", "width": '114px', 'height': '114px' } },
  55. // { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } },
  56. ];
  57. //教师桌面图标的全局变量
  58. U.MD.D.I.teacherDeskIcon2 = [
  59. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  60. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  61. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  62. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  63. // { "Name": "项目管理", "Url": "studentStudyS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  64. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  65. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  66. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  67. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  68. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  69. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  70. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  71. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  72. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  73. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  74. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  75. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  76. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  77. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  78. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  79. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  80. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  81. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  82. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  83. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  84. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  85. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  86. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  87. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  88. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  89. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  90. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  91. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  92. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  93. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  94. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  95. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  96. ];
  97. U.MD.D.I.studentDeskIcon = [
  98. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  99. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  100. // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  101. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  102. // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  103. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  104. // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  105. // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  106. // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  107. // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  108. // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
  109. // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  110. // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  111. // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  112. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  113. // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  114. // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  115. // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  116. // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  117. // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  118. // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  119. // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  120. // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  121. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  122. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  123. // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  124. // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  125. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  126. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  127. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  128. ];
  129. U.MD.D.I.studentDeskIcon2 = [
  130. // { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  131. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  132. // { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  133. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  134. ]
  135. U.MD.D.I.studentDeskIcon3 = [
  136. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  137. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  138. { "Name": "课程中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  139. ]
  140. U.MD.D.I.schoolDeskIcon = [
  141. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  142. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  143. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  144. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  145. { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  146. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  147. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  148. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  149. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  150. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  151. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  152. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  153. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  154. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  155. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  156. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  157. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  158. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  159. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  160. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  161. // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
  162. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  163. ];
  164. U.MD.D.I.orgDeskIcon = [
  165. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  166. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  167. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  168. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
  169. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  170. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  171. ];
  172. U.MD.D.I.orgStemDeskIcon = [
  173. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  174. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  175. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  176. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  177. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  178. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  179. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  180. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  181. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  182. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  183. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  184. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  185. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  186. ];
  187. U.MD.D.I.szulsDeskIcon = [
  188. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  189. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  190. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  191. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  192. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  193. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  194. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  195. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  196. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  197. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  198. ];
  199. U.MD.D.I.hanDeskIcon = [
  200. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
  201. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
  202. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
  203. { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
  204. { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
  205. { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
  206. { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
  207. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  208. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  209. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  210. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  211. ];
  212. U.MD.D.I.GMteacherDeskIcon = [
  213. { "Name": "课程管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
  214. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  215. { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
  216. { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  217. { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
  218. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  219. { "Name": "课程进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
  220. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  221. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  222. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  223. ];
  224. U.MD.D.I.GMstudentDeskIcon = [
  225. { "Name": "课程中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
  226. { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
  227. { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
  228. { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
  229. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  230. ];
  231. //北师大
  232. U.MD.D.I.BSDNSteacherDeskIcon = [
  233. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  234. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  235. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  236. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  237. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  238. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  239. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  240. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  241. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  242. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  243. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  244. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  245. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  246. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  247. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  248. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  249. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  250. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  251. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  252. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  253. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  254. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  255. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  256. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  257. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  258. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  259. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  260. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  261. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  262. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  263. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  264. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  265. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  266. { "Name": "数字实验室", "Url": "number", "style": { "cssText": "background-image:url(/img/icon/number.png)" } },
  267. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  268. ];
  269. //松山湖
  270. U.MD.D.I.SONGteacherDeskIcon = [
  271. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  272. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  273. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  274. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  275. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  276. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  277. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  278. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  279. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  280. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  281. { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
  282. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  283. { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
  284. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  285. // { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
  286. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  287. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  288. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  289. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  290. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  291. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  292. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  293. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  294. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  295. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  296. // { "Name": "魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
  297. // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
  298. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  299. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  300. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  301. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  302. // { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
  303. // { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
  304. // { "Name": "jupyter", "Url": "jupyter", "style": { "cssText": "background-image:url(/img/icon/jupyter.png)" } },
  305. ];
  306. U.MD.D.I.tcStudentDeskIcon = [
  307. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  308. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  309. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  310. ];
  311. U.MD.D.I.tcTeacherDeskIcon = [
  312. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  313. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  314. { "Name": "师生项目", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  315. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  316. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  317. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  318. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  319. ];
  320. U.MD.D.I.tcOrganizerDeskIcon = [
  321. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  322. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  323. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  324. { "Name": "师生项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  325. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  326. { "Name": "项目进展", "Url": "CaseDesignS", "style": { "cssText": "background-image:url(/img/icon/CaseDesignS.png)" } },
  327. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  328. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  329. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  330. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  331. ];
  332. U.MD.D.I.szscStudentDeskIcon = [
  333. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  334. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  335. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  336. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  337. ];
  338. U.MD.D.I.szscTeacherDeskIcon = [
  339. // { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  340. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  341. { "Name": "项目管理", "Url": "studentCourse", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  342. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  343. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  344. { "Name": "学生管理", "Url": "tcStudent", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  345. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  346. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  347. ];
  348. U.MD.D.I.szscOrganizerDeskIcon = [
  349. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  350. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  351. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  352. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  353. // { "Name": "学校管理", "Url": "tcSchool", "style": { "cssText": "background-image:url(/img/icon/school.png)" } },
  354. { "Name": "教师管理", "Url": "tcTeacher", "style": { "cssText": "background-image:url(/img/icon/teacher.png)" } },
  355. { "Name": "我的资料", "Url": "tcData", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  356. { "Name": "消息通知", "Url": "tcNotice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  357. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  358. ];
  359. U.MD.D.I.wankeTeacherDeskIcon = [//1c3b9def-8fbe-11ed-b13d-005056b86db5
  360. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  361. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  362. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  363. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  364. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  365. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  366. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  367. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  368. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  369. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  370. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  371. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  372. // { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  373. ];
  374. U.MD.D.I.wankeAdminDeskIcon = [
  375. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  376. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  377. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  378. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  379. { "Name": "PBL项目", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  380. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  381. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  382. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  383. { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
  384. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  385. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  386. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  387. ];
  388. U.MD.D.I.lhsTeacherDeskIcon = [//未来小学
  389. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  390. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  391. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  392. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  393. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  394. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  395. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  396. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  397. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  398. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  399. ];
  400. U.MD.D.I.lhsAdminDeskIcon = [//未来小学admin
  401. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  402. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  403. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  404. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  405. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  406. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.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. //明德教师桌面图标的全局变量
  413. U.MD.D.I.MingdeTeacherDeskIcon = [
  414. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  415. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  416. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  417. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  418. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  419. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  420. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  421. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  422. { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
  423. { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
  424. { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
  425. { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
  426. { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
  427. { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
  428. { "Name": "项目设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
  429. { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
  430. { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
  431. { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
  432. { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
  433. { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
  434. { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
  435. { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
  436. { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
  437. { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
  438. { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
  439. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  440. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  441. ];
  442. //97c4ee8b-d010-4042-986d-e9d3c217264f
  443. //教师桌面图标的全局变量
  444. U.MD.D.I.zhoujiaTeacherDeskIcon = [
  445. { "Name": "工作项目", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  446. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  447. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  448. // { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  449. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  450. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  451. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  452. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  453. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  454. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  455. ];
  456. //福田
  457. U.MD.D.I.futianTeacherDeskIcon = [
  458. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  459. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  460. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  461. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  462. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  463. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  464. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  465. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  466. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  467. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  468. ];
  469. //福田
  470. U.MD.D.I.futianAdminDeskIcon = [
  471. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  472. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  473. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  474. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  475. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  476. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  477. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  478. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  479. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  480. ];
  481. //lotech
  482. U.MD.D.I.lotechTeacherDeskIcon = [
  483. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  484. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  485. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  486. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  487. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  488. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  489. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  490. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  491. ];
  492. //龙华中心小学教师桌面图标的全局变量
  493. U.MD.D.I.longhuateacherDeskIcon = [
  494. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  495. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  496. { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  497. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  498. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  499. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  500. { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  501. { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  502. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  503. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  504. ];
  505. //教科院实小教师桌面图标的全局变量
  506. U.MD.D.I.siesteacherDeskIcon = [
  507. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  508. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  509. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  510. { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  511. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  512. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  513. // { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
  514. // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
  515. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  516. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  517. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  518. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  519. ];
  520. //福田
  521. U.MD.D.I.gdjgTeacherDeskIcon = [
  522. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  523. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  524. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  525. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  526. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  527. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  528. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  529. // { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
  530. // { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  531. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  532. ];
  533. //福田
  534. U.MD.D.I.gdjgAdminDeskIcon = [
  535. { "Name": "课程管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
  536. { "Name": "课程中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
  537. { "Name": "项目管理", "Url": "studentCourseS", "style": { "cssText": "background-image:url(/img/icon/studentCourse.png)" } },
  538. { "Name": "项目中心", "Url": "studentIndex", "style": { "cssText": "background-image:url(/img/icon/studentIndex.png)" } },
  539. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  540. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  541. { "Name": "教学资源", "Url": "source", "style": { "cssText": "background-image:url(/img/icon/source.png)" } },
  542. { "Name": "课程进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
  543. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  544. ];
  545. //#region 桌面初始化a
  546. /**
  547. * 初始化桌面的起始函数
  548. *
  549. */
  550. U.MD.D.I.init = function () {
  551. if ($("#U_MD_D_K")[0]) {
  552. //初始化桌面图标
  553. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], 1);
  554. // var clickUrl = ':12588/requestIp.php';
  555. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  556. // U.MD.D.I.Ip = data;
  557. // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
  558. // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
  559. // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
  560. // })
  561. // //初始化任务栏,因为是静态的,所以直接改变样式即可.
  562. // })
  563. }
  564. }
  565. /**
  566. * 模式切换
  567. *
  568. */
  569. U.MD.D.I.ModeCheck = function (type) {
  570. if (US.Config.type == type) {
  571. return
  572. }
  573. US.Config.type = type
  574. $('.U_PBL_Check .active')[0].className = ''
  575. if (type == 1) {
  576. $('.U_PBL_Check div')[0].className = 'active'
  577. $("#U_MD_D_BG")[0].style.backgroundImage = US.Config.background
  578. } else {
  579. $('.U_PBL_Check div')[1].className = 'active'
  580. $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
  581. }
  582. //初始化桌面图标
  583. U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0], type);
  584. if(type == 2){
  585. U.MD.D.I.openApplication("project")
  586. }
  587. }
  588. /**
  589. * 隐藏任务栏
  590. *
  591. * @param {element} 桌面元素
  592. */
  593. U.MD.D.I.hiddenTaskbar = function (el) {
  594. //任务栏位置变小
  595. U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
  596. //桌面的位置变大
  597. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  598. }
  599. /**
  600. * 隐藏任务栏
  601. *
  602. * @param {element} 桌面元素
  603. */
  604. U.MD.D.I.hiddenTaskbarout = function (el) {
  605. //任务栏位置变小
  606. if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
  607. //任务栏位置变化
  608. U.selectEl(el).css({ "bottom": "-60px" });
  609. //桌面的位置变大
  610. // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
  611. }
  612. }
  613. /**
  614. * 初始化打印桌面图标
  615. *
  616. * @param {element} 桌面元素
  617. */
  618. U.MD.D.I.initDesktopIcons = function (el, type) {
  619. var i, //用于循环
  620. _content, //桌面图标元素
  621. _iconcontent, //桌面图标元素
  622. _frag = $$("frag"), //定义一个碎片元素
  623. _type = US.userInfo.type,
  624. _org = US.userInfo.org,
  625. _oid = US.userInfo.organizeid,
  626. _role = US.userInfo.role,
  627. _teacherDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.teacherDeskIcon)), //获取教师端桌面图标
  628. _easyDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.easyDeskIcon)), //极简模式桌面图标
  629. _teacherDesktopIconInfo2 = U.MD.D.I.teacherDeskIcon2, //获取教师端桌面图标
  630. _studentDesktopIconInfo = JSON.parse(JSON.stringify(U.MD.D.I.studentDeskIcon)), //获取学生端桌面图标
  631. _studentDesktopIconInfo2 = U.MD.D.I.studentDeskIcon2, //获取学生端桌面图标
  632. _studentDesktopIconInfo3 = U.MD.D.I.studentDeskIcon3, //获取学生端桌面图标
  633. _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
  634. _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
  635. _szulsDeskIcon = U.MD.D.I.szulsDeskIcon,
  636. _hanDeskIcon = U.MD.D.I.hanDeskIcon,
  637. _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
  638. _BSDNSteacherDesktopIconInfo = U.MD.D.I.BSDNSteacherDeskIcon,//获取北师大
  639. _zhoujiateacherDesktopIconInfo = U.MD.D.I.zhoujiaTeacherDeskIcon,//获取周佳名工作室
  640. _SONGteacherDesktopIconInfo = U.MD.D.I.SONGteacherDeskIcon,//获取松山湖
  641. _wanketeacherDesktopIconInfo = U.MD.D.I.wankeTeacherDeskIcon,//获取万科双语
  642. _wankeAdminDesktopIconInfo = U.MD.D.I.wankeAdminDeskIcon,//获取万科双语
  643. _MingdeTeacherDeskIcon = U.MD.D.I.MingdeTeacherDeskIcon,//获取万科双语
  644. _lhsteacherDesktopIconInfo = U.MD.D.I.lhsTeacherDeskIcon,//获取未来小学
  645. _lhsAdminDesktopIconInfo = U.MD.D.I.lhsAdminDeskIcon,//获取未来小学
  646. _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
  647. _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon, //获取光明学校桌面图标
  648. _tcStudentDeskIconInfo = U.MD.D.I.tcStudentDeskIcon,//腾讯学生
  649. _tcTeacherDeskIconInfo = U.MD.D.I.tcTeacherDeskIcon,//腾讯学生
  650. _futianTeacherDeskIconInfo = U.MD.D.I.futianTeacherDeskIcon,//福田
  651. _futianAdminDeskIconInfo = U.MD.D.I.futianAdminDeskIcon,//福田
  652. _gdjgTeacherDeskIconInfo = U.MD.D.I.gdjgTeacherDeskIcon,//福田
  653. _gdjgAdminDeskIconInfo = U.MD.D.I.gdjgAdminDeskIcon,//福田
  654. _lotechTeacherDeskIconInfo = U.MD.D.I.lotechTeacherDeskIcon,//lotech
  655. _longhuaTeacherDeskIconInfo = U.MD.D.I.longhuateacherDeskIcon,//龙华中心
  656. _siesTeacherDeskIconInfo = U.MD.D.I.siesteacherDeskIcon,//龙华中心
  657. _tcOrganizerDeskIconInfo = U.MD.D.I.tcOrganizerDeskIcon,//腾讯学生
  658. _szscStudentDeskIconInfo = U.MD.D.I.szscStudentDeskIcon,//网络夏令营
  659. _szscTeacherDeskIconInfo = U.MD.D.I.szscTeacherDeskIcon,//网络夏令营
  660. _szscOrganizerDeskIconInfo = U.MD.D.I.szscOrganizerDeskIcon;//网络夏令营
  661. 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'];
  662. 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'];
  663. //清楚桌面图标
  664. el.innerHTML = "";
  665. 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") {
  666. _teacherDesktopIconInfo.push(
  667. // { "Name": "chatPDF", "Url": "chatPDF", "style": { "cssText": "background-image:url(/img/icon/chatPDF.png)" } },
  668. { "Name": "学习分析", "Url": "learnAna", "style": { "cssText": "background-image:url(/img/icon/learnAna.png)" } },
  669. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)" } },
  670. { "Name": "工作管理", "Url": "studioCourse", "style": { "cssText": "background-image:url(/img/icon/studioCourse.png)" } },
  671. { "Name": "工作中心", "Url": "studioIndex", "style": { "cssText": "background-image:url(/img/icon/studioIndex.png)" } },
  672. )
  673. _easyDesktopIconInfo.push(
  674. { "Name": "AI共创", "Url": "AIChat", "style": { "cssText": "background-image:url(/img/icon/AIChat.png)", "width": '114px', 'height': '114px' } }
  675. )
  676. }
  677. if(_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5'){
  678. _studentDesktopIconInfo3 = _studentDesktopIconInfo3.filter((el) => {
  679. if(el.Name == '项目管理'){
  680. el.Name = 'PBL项目'
  681. }
  682. return el
  683. })
  684. }
  685. if (_oid != '45facc0a-1211-11ec-80ad-005056b86db5') {
  686. _teacherDesktopIconInfo = _teacherDesktopIconInfo.filter((el) => {
  687. return el.Name != '魔盒识字' && el.Name != '24点'
  688. })
  689. }
  690. 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) {
  691. _studentDesktopIconInfo.push(
  692. { "Name": "我的评价", "Url": "myReport", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
  693. )
  694. }
  695. //循环创建桌面图标
  696. if (type == 1) {
  697. if (_type == 2 && _oidA.indexOf(_oid) == -1 && _orgA.indexOf(_org) == -1 && _org != 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
  698. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  699. _content = $$("div", {
  700. className: "U_MD_D_KO",
  701. "onmousedown": U.UF.C.closure(function (obj) {
  702. //防止拖动图标即打开了桌面应用
  703. U.MD.D.click(this, obj);
  704. }, [_studentDesktopIconInfo[i]]),
  705. "onclick": U.UF.C.closure(function (obj) {
  706. //防止拖动图标即打开了桌面应用
  707. U.MD.D.click(this, obj);
  708. }, [_studentDesktopIconInfo[i]])
  709. }, _frag); //
  710. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  711. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  712. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  713. }
  714. } else if (_type == 2 && (_oid == "91305d49-01ba-11ed-8c78-005056b86db5")) {
  715. for (i = 0; i < _studentDesktopIconInfo.length; i++) {
  716. _content = $$("div", {
  717. className: "U_MD_D_KO",
  718. "onmousedown": U.UF.C.closure(function (obj) {
  719. //防止拖动图标即打开了桌面应用
  720. U.MD.D.click(this, obj);
  721. }, [_studentDesktopIconInfo[i]]),
  722. "onclick": U.UF.C.closure(function (obj) {
  723. //防止拖动图标即打开了桌面应用
  724. U.MD.D.click(this, obj);
  725. }, [_studentDesktopIconInfo[i]])
  726. }, _frag); //
  727. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  728. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
  729. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
  730. }
  731. } else if (_type == 2 && _org == "150e3120-9195-11ed-b13d-005056b86db5") {
  732. for (i = 0; i < _tcStudentDeskIconInfo.length; i++) {
  733. _content = $$("div", {
  734. className: "U_MD_D_KO",
  735. "onmousedown": U.UF.C.closure(function (obj) {
  736. //防止拖动图标即打开了桌面应用
  737. U.MD.D.click(this, obj);
  738. }, [_tcStudentDeskIconInfo[i]]),
  739. "onclick": U.UF.C.closure(function (obj) {
  740. //防止拖动图标即打开了桌面应用
  741. U.MD.D.click(this, obj);
  742. }, [_tcStudentDeskIconInfo[i]])
  743. }, _frag); //
  744. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  745. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcStudentDeskIconInfo[i].style }, _iconcontent);
  746. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcStudentDeskIconInfo[i].Name }, _iconcontent);
  747. }
  748. } else if (_type == 2 && _org == "ee40e8e3-e36c-4872-8105-cf395481012s") {
  749. for (i = 0; i < _szscStudentDeskIconInfo.length; i++) {
  750. _content = $$("div", {
  751. className: "U_MD_D_KO",
  752. "onmousedown": U.UF.C.closure(function (obj) {
  753. //防止拖动图标即打开了桌面应用
  754. U.MD.D.click(this, obj);
  755. }, [_szscStudentDeskIconInfo[i]]),
  756. "onclick": U.UF.C.closure(function (obj) {
  757. //防止拖动图标即打开了桌面应用
  758. U.MD.D.click(this, obj);
  759. }, [_szscStudentDeskIconInfo[i]])
  760. }, _frag); //
  761. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  762. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscStudentDeskIconInfo[i].style }, _iconcontent);
  763. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscStudentDeskIconInfo[i].Name }, _iconcontent);
  764. }
  765. } else if (_type == 2 && (_oid == '1c3b9def-8fbe-11ed-b13d-005056b86db5' || _org == "7ada499f-4ec7-11ed-8c78-005056b86db5")) {
  766. for (i = 0; i < _studentDesktopIconInfo3.length; i++) {
  767. _content = $$("div", {
  768. className: "U_MD_D_KO",
  769. "onmousedown": U.UF.C.closure(function (obj) {
  770. //防止拖动图标即打开了桌面应用
  771. U.MD.D.click(this, obj);
  772. }, [_studentDesktopIconInfo3[i]]),
  773. "onclick": U.UF.C.closure(function (obj) {
  774. //防止拖动图标即打开了桌面应用
  775. U.MD.D.click(this, obj);
  776. }, [_studentDesktopIconInfo3[i]])
  777. }, _frag); //
  778. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  779. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo3[i].style }, _iconcontent);
  780. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo3[i].Name }, _iconcontent);
  781. }
  782. } else if (_type == 2 && (_oidA.indexOf(_oid) != -1 || _orgA.indexOf(_org) != -1)) {
  783. for (i = 0; i < _studentDesktopIconInfo2.length; i++) {
  784. _content = $$("div", {
  785. className: "U_MD_D_KO",
  786. "onmousedown": U.UF.C.closure(function (obj) {
  787. //防止拖动图标即打开了桌面应用
  788. U.MD.D.click(this, obj);
  789. }, [_studentDesktopIconInfo2[i]]),
  790. "onclick": U.UF.C.closure(function (obj) {
  791. //防止拖动图标即打开了桌面应用
  792. U.MD.D.click(this, obj);
  793. }, [_studentDesktopIconInfo2[i]])
  794. }, _frag); //
  795. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  796. $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo2[i].style }, _iconcontent);
  797. $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo2[i].Name }, _iconcontent);
  798. }
  799. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 0) {
  800. for (i = 0; i < _wanketeacherDesktopIconInfo.length; i++) {
  801. _content = $$("div", {
  802. className: "U_MD_D_KO",
  803. "onmousedown": U.UF.C.closure(function (obj) {
  804. //防止拖动图标即打开了桌面应用
  805. U.MD.D.click(this, obj);
  806. }, [_wanketeacherDesktopIconInfo[i]]),
  807. "onclick": U.UF.C.closure(function (obj) {
  808. //防止拖动图标即打开了桌面应用
  809. U.MD.D.click(this, obj);
  810. }, [_wanketeacherDesktopIconInfo[i]])
  811. }, _frag); //
  812. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  813. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wanketeacherDesktopIconInfo[i].style }, _iconcontent);
  814. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wanketeacherDesktopIconInfo[i].Name }, _iconcontent);
  815. }
  816. } else if ((_type == 1 || _type == 4) && _oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5" && _role == 1) {
  817. for (i = 0; i < _wankeAdminDesktopIconInfo.length; i++) {
  818. _content = $$("div", {
  819. className: "U_MD_D_KO",
  820. "onmousedown": U.UF.C.closure(function (obj) {
  821. //防止拖动图标即打开了桌面应用
  822. U.MD.D.click(this, obj);
  823. }, [_wankeAdminDesktopIconInfo[i]]),
  824. "onclick": U.UF.C.closure(function (obj) {
  825. //防止拖动图标即打开了桌面应用
  826. U.MD.D.click(this, obj);
  827. }, [_wankeAdminDesktopIconInfo[i]])
  828. }, _frag); //
  829. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  830. $$("div", { className: "U_MD_D_KOS U_Img", "style": _wankeAdminDesktopIconInfo[i].style }, _iconcontent);
  831. $$("div", { className: "U_MD_D_KOX", "innerHTML": _wankeAdminDesktopIconInfo[i].Name }, _iconcontent);
  832. }
  833. } else if ((_type == 1 || _type == 4) && (_oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  834. for (i = 0; i < _teacherDesktopIconInfo2.length; i++) {
  835. _content = $$("div", {
  836. className: "U_MD_D_KO",
  837. "onmousedown": U.UF.C.closure(function (obj) {
  838. //防止拖动图标即打开了桌面应用
  839. U.MD.D.click(this, obj);
  840. }, [_teacherDesktopIconInfo2[i]]),
  841. "onclick": U.UF.C.closure(function (obj) {
  842. //防止拖动图标即打开了桌面应用
  843. U.MD.D.click(this, obj);
  844. }, [_teacherDesktopIconInfo2[i]])
  845. }, _frag); //
  846. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  847. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo2[i].style }, _iconcontent);
  848. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo2[i].Name }, _iconcontent);
  849. }
  850. } else if ((_type == 1 || _type == 4) && (_org == "4df1b570-f6ac-48fc-8d50-d0b157dae776")) {
  851. for (i = 0; i < _lotechTeacherDeskIconInfo.length; i++) {
  852. _content = $$("div", {
  853. className: "U_MD_D_KO",
  854. "onmousedown": U.UF.C.closure(function (obj) {
  855. //防止拖动图标即打开了桌面应用
  856. U.MD.D.click(this, obj);
  857. }, [_lotechTeacherDeskIconInfo[i]]),
  858. "onclick": U.UF.C.closure(function (obj) {
  859. //防止拖动图标即打开了桌面应用
  860. U.MD.D.click(this, obj);
  861. }, [_lotechTeacherDeskIconInfo[i]])
  862. }, _frag); //
  863. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  864. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lotechTeacherDeskIconInfo[i].style }, _iconcontent);
  865. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lotechTeacherDeskIconInfo[i].Name }, _iconcontent);
  866. }
  867. }else if ((_type == 1 || _type == 4) && (_oid == "4c686762-1d0a-11ed-8c78-005056b86db5")) {
  868. for (i = 0; i < _siesTeacherDeskIconInfo.length; i++) {
  869. _content = $$("div", {
  870. className: "U_MD_D_KO",
  871. "onmousedown": U.UF.C.closure(function (obj) {
  872. //防止拖动图标即打开了桌面应用
  873. U.MD.D.click(this, obj);
  874. }, [_siesTeacherDeskIconInfo[i]]),
  875. "onclick": U.UF.C.closure(function (obj) {
  876. //防止拖动图标即打开了桌面应用
  877. U.MD.D.click(this, obj);
  878. }, [_siesTeacherDeskIconInfo[i]])
  879. }, _frag); //
  880. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  881. $$("div", { className: "U_MD_D_KOS U_Img", "style": _siesTeacherDeskIconInfo[i].style }, _iconcontent);
  882. $$("div", { className: "U_MD_D_KOX", "innerHTML": _siesTeacherDeskIconInfo[i].Name }, _iconcontent);
  883. }
  884. }else if ((_type == 1 || _type == 4) && (_oid == "ea2a8c65-f38c-11ed-91d8-005056b86db5")) {
  885. for (i = 0; i < _longhuaTeacherDeskIconInfo.length; i++) {
  886. _content = $$("div", {
  887. className: "U_MD_D_KO",
  888. "onmousedown": U.UF.C.closure(function (obj) {
  889. //防止拖动图标即打开了桌面应用
  890. U.MD.D.click(this, obj);
  891. }, [_longhuaTeacherDeskIconInfo[i]]),
  892. "onclick": U.UF.C.closure(function (obj) {
  893. //防止拖动图标即打开了桌面应用
  894. U.MD.D.click(this, obj);
  895. }, [_longhuaTeacherDeskIconInfo[i]])
  896. }, _frag); //
  897. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  898. $$("div", { className: "U_MD_D_KOS U_Img", "style": _longhuaTeacherDeskIconInfo[i].style }, _iconcontent);
  899. $$("div", { className: "U_MD_D_KOX", "innerHTML": _longhuaTeacherDeskIconInfo[i].Name }, _iconcontent);
  900. }
  901. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 1) {
  902. for (i = 0; i < _gdjgAdminDeskIconInfo.length; i++) {
  903. _content = $$("div", {
  904. className: "U_MD_D_KO",
  905. "onmousedown": U.UF.C.closure(function (obj) {
  906. //防止拖动图标即打开了桌面应用
  907. U.MD.D.click(this, obj);
  908. }, [_gdjgAdminDeskIconInfo[i]]),
  909. "onclick": U.UF.C.closure(function (obj) {
  910. //防止拖动图标即打开了桌面应用
  911. U.MD.D.click(this, obj);
  912. }, [_gdjgAdminDeskIconInfo[i]])
  913. }, _frag); //
  914. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  915. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgAdminDeskIconInfo[i].style }, _iconcontent);
  916. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgAdminDeskIconInfo[i].Name }, _iconcontent);
  917. }
  918. }else if ((_type == 1 || _type == 4) && (_org == "e632b86c-f89d-11ed-91d8-005056b86db5") && _role == 0) {
  919. for (i = 0; i < _gdjgTeacherDeskIconInfo.length; i++) {
  920. _content = $$("div", {
  921. className: "U_MD_D_KO",
  922. "onmousedown": U.UF.C.closure(function (obj) {
  923. //防止拖动图标即打开了桌面应用
  924. U.MD.D.click(this, obj);
  925. }, [_gdjgTeacherDeskIconInfo[i]]),
  926. "onclick": U.UF.C.closure(function (obj) {
  927. //防止拖动图标即打开了桌面应用
  928. U.MD.D.click(this, obj);
  929. }, [_gdjgTeacherDeskIconInfo[i]])
  930. }, _frag); //
  931. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  932. $$("div", { className: "U_MD_D_KOS U_Img", "style": _gdjgTeacherDeskIconInfo[i].style }, _iconcontent);
  933. $$("div", { className: "U_MD_D_KOX", "innerHTML": _gdjgTeacherDeskIconInfo[i].Name }, _iconcontent);
  934. }
  935. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 1) {
  936. for (i = 0; i < _futianAdminDeskIconInfo.length; i++) {
  937. _content = $$("div", {
  938. className: "U_MD_D_KO",
  939. "onmousedown": U.UF.C.closure(function (obj) {
  940. //防止拖动图标即打开了桌面应用
  941. U.MD.D.click(this, obj);
  942. }, [_futianAdminDeskIconInfo[i]]),
  943. "onclick": U.UF.C.closure(function (obj) {
  944. //防止拖动图标即打开了桌面应用
  945. U.MD.D.click(this, obj);
  946. }, [_futianAdminDeskIconInfo[i]])
  947. }, _frag); //
  948. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  949. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianAdminDeskIconInfo[i].style }, _iconcontent);
  950. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianAdminDeskIconInfo[i].Name }, _iconcontent);
  951. }
  952. }else if ((_type == 1 || _type == 4) && (_org == "ec0af97a-7c10-4259-a7eb-db9cc8174cdc") && _role == 0) {
  953. for (i = 0; i < _futianTeacherDeskIconInfo.length; i++) {
  954. _content = $$("div", {
  955. className: "U_MD_D_KO",
  956. "onmousedown": U.UF.C.closure(function (obj) {
  957. //防止拖动图标即打开了桌面应用
  958. U.MD.D.click(this, obj);
  959. }, [_futianTeacherDeskIconInfo[i]]),
  960. "onclick": U.UF.C.closure(function (obj) {
  961. //防止拖动图标即打开了桌面应用
  962. U.MD.D.click(this, obj);
  963. }, [_futianTeacherDeskIconInfo[i]])
  964. }, _frag); //
  965. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  966. $$("div", { className: "U_MD_D_KOS U_Img", "style": _futianTeacherDeskIconInfo[i].style }, _iconcontent);
  967. $$("div", { className: "U_MD_D_KOX", "innerHTML": _futianTeacherDeskIconInfo[i].Name }, _iconcontent);
  968. }
  969. }else if ((_type == 1 || _type == 4) && (_oid == "91305d49-01ba-11ed-8c78-005056b86db4")) {
  970. for (i = 0; i < _MingdeTeacherDeskIcon.length; i++) {
  971. _content = $$("div", {
  972. className: "U_MD_D_KO",
  973. "onmousedown": U.UF.C.closure(function (obj) {
  974. //防止拖动图标即打开了桌面应用
  975. U.MD.D.click(this, obj);
  976. }, [_MingdeTeacherDeskIcon[i]]),
  977. "onclick": U.UF.C.closure(function (obj) {
  978. //防止拖动图标即打开了桌面应用
  979. U.MD.D.click(this, obj);
  980. }, [_MingdeTeacherDeskIcon[i]])
  981. }, _frag); //
  982. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  983. $$("div", { className: "U_MD_D_KOS U_Img", "style": _MingdeTeacherDeskIcon[i].style }, _iconcontent);
  984. $$("div", { className: "U_MD_D_KOX", "innerHTML": _MingdeTeacherDeskIcon[i].Name }, _iconcontent);
  985. }
  986. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 1) {
  987. for (i = 0; i < _lhsAdminDesktopIconInfo.length; i++) {
  988. _content = $$("div", {
  989. className: "U_MD_D_KO",
  990. "onmousedown": U.UF.C.closure(function (obj) {
  991. //防止拖动图标即打开了桌面应用
  992. U.MD.D.click(this, obj);
  993. }, [_lhsAdminDesktopIconInfo[i]]),
  994. "onclick": U.UF.C.closure(function (obj) {
  995. //防止拖动图标即打开了桌面应用
  996. U.MD.D.click(this, obj);
  997. }, [_lhsAdminDesktopIconInfo[i]])
  998. }, _frag); //
  999. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1000. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsAdminDesktopIconInfo[i].style }, _iconcontent);
  1001. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsAdminDesktopIconInfo[i].Name }, _iconcontent);
  1002. }
  1003. } else if ((_type == 1 || _type == 4) && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5") && _role == 0) {
  1004. for (i = 0; i < _lhsteacherDesktopIconInfo.length; i++) {
  1005. _content = $$("div", {
  1006. className: "U_MD_D_KO",
  1007. "onmousedown": U.UF.C.closure(function (obj) {
  1008. //防止拖动图标即打开了桌面应用
  1009. U.MD.D.click(this, obj);
  1010. }, [_lhsteacherDesktopIconInfo[i]]),
  1011. "onclick": U.UF.C.closure(function (obj) {
  1012. //防止拖动图标即打开了桌面应用
  1013. U.MD.D.click(this, obj);
  1014. }, [_lhsteacherDesktopIconInfo[i]])
  1015. }, _frag); //
  1016. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1017. $$("div", { className: "U_MD_D_KOS U_Img", "style": _lhsteacherDesktopIconInfo[i].style }, _iconcontent);
  1018. $$("div", { className: "U_MD_D_KOX", "innerHTML": _lhsteacherDesktopIconInfo[i].Name }, _iconcontent);
  1019. }
  1020. } else if ((_type == 1 || _type == 4) && (_org == "97c4ee8b-d010-4042-986d-e9d3c217264f")) {
  1021. for (i = 0; i < _zhoujiateacherDesktopIconInfo.length; i++) {
  1022. _content = $$("div", {
  1023. className: "U_MD_D_KO",
  1024. "onmousedown": U.UF.C.closure(function (obj) {
  1025. //防止拖动图标即打开了桌面应用
  1026. U.MD.D.click(this, obj);
  1027. }, [_zhoujiateacherDesktopIconInfo[i]]),
  1028. "onclick": U.UF.C.closure(function (obj) {
  1029. //防止拖动图标即打开了桌面应用
  1030. U.MD.D.click(this, obj);
  1031. }, [_zhoujiateacherDesktopIconInfo[i]])
  1032. }, _frag); //
  1033. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1034. $$("div", { className: "U_MD_D_KOS U_Img", "style": _zhoujiateacherDesktopIconInfo[i].style }, _iconcontent);
  1035. $$("div", { className: "U_MD_D_KOX", "innerHTML": _zhoujiateacherDesktopIconInfo[i].Name }, _iconcontent);
  1036. }
  1037. } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
  1038. for (i = 0; i < _hanDeskIcon.length; i++) {
  1039. _content = $$("div", {
  1040. className: "U_MD_D_KO",
  1041. "onmousedown": U.UF.C.closure(function (obj) {
  1042. //防止拖动图标即打开了桌面应用
  1043. U.MD.D.click(this, obj);
  1044. }, [_hanDeskIcon[i]]),
  1045. "onclick": U.UF.C.closure(function (obj) {
  1046. //防止拖动图标即打开了桌面应用
  1047. U.MD.D.click(this, obj);
  1048. }, [_hanDeskIcon[i]])
  1049. }, _frag); //
  1050. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1051. $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
  1052. $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
  1053. }
  1054. } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
  1055. for (i = 0; i < _orgStemDeskIcon.length; i++) {
  1056. _content = $$("div", {
  1057. className: "U_MD_D_KO",
  1058. "onmousedown": U.UF.C.closure(function (obj) {
  1059. //防止拖动图标即打开了桌面应用
  1060. U.MD.D.click(this, obj);
  1061. }, [_orgStemDeskIcon[i]]),
  1062. "onclick": U.UF.C.closure(function (obj) {
  1063. //防止拖动图标即打开了桌面应用
  1064. U.MD.D.click(this, obj);
  1065. }, [_orgStemDeskIcon[i]])
  1066. }, _frag); //
  1067. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1068. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
  1069. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
  1070. }
  1071. } else if ((_type == 1 || _type == 4) && _org == "383f207d-4ced-4eeb-a15a-7b0a2f3abe7b") {
  1072. for (i = 0; i < _szulsDeskIcon.length; i++) {
  1073. _content = $$("div", {
  1074. className: "U_MD_D_KO",
  1075. "onmousedown": U.UF.C.closure(function (obj) {
  1076. //防止拖动图标即打开了桌面应用
  1077. U.MD.D.click(this, obj);
  1078. }, [_szulsDeskIcon[i]]),
  1079. "onclick": U.UF.C.closure(function (obj) {
  1080. //防止拖动图标即打开了桌面应用
  1081. U.MD.D.click(this, obj);
  1082. }, [_szulsDeskIcon[i]])
  1083. }, _frag); //
  1084. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1085. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szulsDeskIcon[i].style }, _iconcontent);
  1086. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szulsDeskIcon[i].Name }, _iconcontent);
  1087. }
  1088. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
  1089. for (i = 0; i < _orgDesktopIconInfo.length; i++) {
  1090. _content = $$("div", {
  1091. className: "U_MD_D_KO",
  1092. "onmousedown": U.UF.C.closure(function (obj) {
  1093. //防止拖动图标即打开了桌面应用
  1094. U.MD.D.click(this, obj);
  1095. }, [_orgDesktopIconInfo[i]]),
  1096. "onclick": U.UF.C.closure(function (obj) {
  1097. //防止拖动图标即打开了桌面应用
  1098. U.MD.D.click(this, obj);
  1099. }, [_orgDesktopIconInfo[i]])
  1100. }, _frag); //
  1101. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1102. $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
  1103. $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
  1104. }
  1105. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  1106. for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
  1107. _content = $$("div", {
  1108. className: "U_MD_D_KO",
  1109. "onmousedown": U.UF.C.closure(function (obj) {
  1110. //防止拖动图标即打开了桌面应用
  1111. U.MD.D.click(this, obj);
  1112. }, [_schoolDesktopIconInfo[i]]),
  1113. "onclick": U.UF.C.closure(function (obj) {
  1114. //防止拖动图标即打开了桌面应用
  1115. U.MD.D.click(this, obj);
  1116. }, [_schoolDesktopIconInfo[i]])
  1117. }, _frag); //
  1118. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1119. $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
  1120. $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
  1121. }
  1122. } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1123. for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
  1124. _content = $$("div", {
  1125. className: "U_MD_D_KO",
  1126. "onmousedown": U.UF.C.closure(function (obj) {
  1127. //防止拖动图标即打开了桌面应用
  1128. U.MD.D.click(this, obj);
  1129. }, [_GMteacherDesktopIconInfo[i]]),
  1130. "onclick": U.UF.C.closure(function (obj) {
  1131. //防止拖动图标即打开了桌面应用
  1132. U.MD.D.click(this, obj);
  1133. }, [_GMteacherDesktopIconInfo[i]])
  1134. }, _frag); //
  1135. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1136. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
  1137. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
  1138. }
  1139. } else if ((_type == 1 || _type == 4) && _oid == "9f888eae-7558-11ed-8c78-005056b86db5") {
  1140. for (i = 0; i < _SONGteacherDesktopIconInfo.length; i++) {
  1141. _content = $$("div", {
  1142. className: "U_MD_D_KO",
  1143. "onmousedown": U.UF.C.closure(function (obj) {
  1144. //防止拖动图标即打开了桌面应用
  1145. U.MD.D.click(this, obj);
  1146. }, [_SONGteacherDesktopIconInfo[i]]),
  1147. "onclick": U.UF.C.closure(function (obj) {
  1148. //防止拖动图标即打开了桌面应用
  1149. U.MD.D.click(this, obj);
  1150. }, [_SONGteacherDesktopIconInfo[i]])
  1151. }, _frag); //
  1152. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1153. $$("div", { className: "U_MD_D_KOS U_Img", "style": _SONGteacherDesktopIconInfo[i].style }, _iconcontent);
  1154. $$("div", { className: "U_MD_D_KOX", "innerHTML": _SONGteacherDesktopIconInfo[i].Name }, _iconcontent);
  1155. }
  1156. } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
  1157. for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
  1158. _content = $$("div", {
  1159. className: "U_MD_D_KO",
  1160. "onmousedown": U.UF.C.closure(function (obj) {
  1161. //防止拖动图标即打开了桌面应用
  1162. U.MD.D.click(this, obj);
  1163. }, [_GMstudentDesktopIconInfo[i]]),
  1164. "onclick": U.UF.C.closure(function (obj) {
  1165. //防止拖动图标即打开了桌面应用
  1166. U.MD.D.click(this, obj);
  1167. }, [_GMstudentDesktopIconInfo[i]])
  1168. }, _frag); //
  1169. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1170. $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
  1171. $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
  1172. }
  1173. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role == 0) {
  1174. for (i = 0; i < _tcTeacherDeskIconInfo.length; i++) {
  1175. _content = $$("div", {
  1176. className: "U_MD_D_KO",
  1177. "onmousedown": U.UF.C.closure(function (obj) {
  1178. //防止拖动图标即打开了桌面应用
  1179. U.MD.D.click(this, obj);
  1180. }, [_tcTeacherDeskIconInfo[i]]),
  1181. "onclick": U.UF.C.closure(function (obj) {
  1182. //防止拖动图标即打开了桌面应用
  1183. U.MD.D.click(this, obj);
  1184. }, [_tcTeacherDeskIconInfo[i]])
  1185. }, _frag); //
  1186. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1187. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcTeacherDeskIconInfo[i].style }, _iconcontent);
  1188. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcTeacherDeskIconInfo[i].Name }, _iconcontent);
  1189. }
  1190. } else if ((_type == 1 || _type == 4) && _org == "150e3120-9195-11ed-b13d-005056b86db5" && _role === 1) {
  1191. for (i = 0; i < _tcOrganizerDeskIconInfo.length; i++) {
  1192. _content = $$("div", {
  1193. className: "U_MD_D_KO",
  1194. "onmousedown": U.UF.C.closure(function (obj) {
  1195. //防止拖动图标即打开了桌面应用
  1196. U.MD.D.click(this, obj);
  1197. }, [_tcOrganizerDeskIconInfo[i]]),
  1198. "onclick": U.UF.C.closure(function (obj) {
  1199. //防止拖动图标即打开了桌面应用
  1200. U.MD.D.click(this, obj);
  1201. }, [_tcOrganizerDeskIconInfo[i]])
  1202. }, _frag); //
  1203. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1204. $$("div", { className: "U_MD_D_KOS U_Img", "style": _tcOrganizerDeskIconInfo[i].style }, _iconcontent);
  1205. $$("div", { className: "U_MD_D_KOX", "innerHTML": _tcOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1206. }
  1207. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role == 0) {
  1208. for (i = 0; i < _szscTeacherDeskIconInfo.length; i++) {
  1209. _content = $$("div", {
  1210. className: "U_MD_D_KO",
  1211. "onmousedown": U.UF.C.closure(function (obj) {
  1212. //防止拖动图标即打开了桌面应用
  1213. U.MD.D.click(this, obj);
  1214. }, [_szscTeacherDeskIconInfo[i]]),
  1215. "onclick": U.UF.C.closure(function (obj) {
  1216. //防止拖动图标即打开了桌面应用
  1217. U.MD.D.click(this, obj);
  1218. }, [_szscTeacherDeskIconInfo[i]])
  1219. }, _frag); //
  1220. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1221. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscTeacherDeskIconInfo[i].style }, _iconcontent);
  1222. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscTeacherDeskIconInfo[i].Name }, _iconcontent);
  1223. }
  1224. } else if ((_type == 1 || _type == 4) && _org == "ee40e8e3-e36c-4872-8105-cf395481012s" && _role === 1) {
  1225. for (i = 0; i < _szscOrganizerDeskIconInfo.length; i++) {
  1226. _content = $$("div", {
  1227. className: "U_MD_D_KO",
  1228. "onmousedown": U.UF.C.closure(function (obj) {
  1229. //防止拖动图标即打开了桌面应用
  1230. U.MD.D.click(this, obj);
  1231. }, [_szscOrganizerDeskIconInfo[i]]),
  1232. "onclick": U.UF.C.closure(function (obj) {
  1233. //防止拖动图标即打开了桌面应用
  1234. U.MD.D.click(this, obj);
  1235. }, [_szscOrganizerDeskIconInfo[i]])
  1236. }, _frag); //
  1237. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1238. $$("div", { className: "U_MD_D_KOS U_Img", "style": _szscOrganizerDeskIconInfo[i].style }, _iconcontent);
  1239. $$("div", { className: "U_MD_D_KOX", "innerHTML": _szscOrganizerDeskIconInfo[i].Name }, _iconcontent);
  1240. }
  1241. } else {
  1242. for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
  1243. _content = $$("div", {
  1244. className: "U_MD_D_KO",
  1245. "onmousedown": U.UF.C.closure(function (obj) {
  1246. //防止拖动图标即打开了桌面应用
  1247. U.MD.D.click(this, obj);
  1248. }, [_teacherDesktopIconInfo[i]]),
  1249. "onclick": U.UF.C.closure(function (obj) {
  1250. //防止拖动图标即打开了桌面应用
  1251. U.MD.D.click(this, obj);
  1252. }, [_teacherDesktopIconInfo[i]])
  1253. }, _frag); //
  1254. _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
  1255. $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
  1256. $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
  1257. }
  1258. }
  1259. } else {
  1260. for (i = 0; i < _easyDesktopIconInfo.length; i++) {
  1261. _content = $$("div", {
  1262. className: "U_MD_D_KO",
  1263. style: { 'width': '124px', 'height': '145px' },
  1264. "onmousedown": U.UF.C.closure(function (obj) {
  1265. //防止拖动图标即打开了桌面应用
  1266. U.MD.D.click(this, obj);
  1267. }, [_easyDesktopIconInfo[i]]),
  1268. "onclick": U.UF.C.closure(function (obj) {
  1269. //防止拖动图标即打开了桌面应用
  1270. U.MD.D.click(this, obj);
  1271. }, [_easyDesktopIconInfo[i]])
  1272. }, _frag); //
  1273. _iconcontent = $$("div", { className: "U_MD_D_KOA", style: { width: '114px' } }, _content);
  1274. $$("div", { className: "U_MD_D_KOS U_Img", "style": _easyDesktopIconInfo[i].style }, _iconcontent);
  1275. $$("div", { className: "U_MD_D_KOX", "innerHTML": _easyDesktopIconInfo[i].Name, "style": { 'fontSize': '18px', width: '114px', height: '18px' } }, _iconcontent);
  1276. }
  1277. }
  1278. if (type == 1) {
  1279. //加载好后给图标定位
  1280. U.MD.D.iconPostion($(_frag).Child());
  1281. } else {
  1282. //加载好后给图标定位
  1283. U.MD.D.iconPostion2($(_frag).Child());
  1284. }
  1285. //把图标加载到页面
  1286. el.appendChild(_frag);
  1287. }
  1288. /**
  1289. * 显示任务栏
  1290. *
  1291. * @param {element} 桌面元素
  1292. */
  1293. U.MD.D.I.displayTaskbar = function (el) {
  1294. //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
  1295. if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
  1296. //任务栏位置变化
  1297. U.selectEl(el).css({ "bottom": "0px" });
  1298. //桌面位置变话
  1299. // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
  1300. }
  1301. }
  1302. //#region 桌面图标拖动逻辑
  1303. /**
  1304. * 桌面排列图标
  1305. *
  1306. * @param {element} 桌面元素
  1307. * @param {object} 上下相距的距离
  1308. * @param {object} 左右相距的距离
  1309. * @return {object} 命名空间
  1310. */
  1311. U.MD.D.iconPostion = function (childs, top, left) {
  1312. var i; //用于循环处理
  1313. top = top || 15; //如果没有设置元素的间距处理默认上间距为15
  1314. left = left || 20; //如果没有设置元素的间距处理默认左间距为15
  1315. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1316. for (i = 0; i < childs.length; i++) {
  1317. //如果竖排top超过了范围处理
  1318. if (top + 95 > US.height - 10) {
  1319. //left超过了页面范围处理,则向上重叠打印处理
  1320. if ((left + 180) > US.width) {
  1321. top -= 110;
  1322. left -= 90;
  1323. }
  1324. //没有超过范围,那么left+90添加到下一个竖排打印
  1325. else {
  1326. left += 90;
  1327. top = 15;
  1328. };
  1329. }
  1330. //给图标的位置赋值
  1331. U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
  1332. if (i < childs.length - 1) {
  1333. //页面图标每次向下加95
  1334. top += 95;
  1335. }
  1336. }
  1337. //返回最后调用的图标的位置
  1338. return [top, left];
  1339. }
  1340. /**
  1341. * 桌面排列图标
  1342. *
  1343. * @param {element} 桌面元素
  1344. * @param {object} 上下相距的距离
  1345. * @param {object} 左右相距的距离
  1346. * @return {object} 命名空间
  1347. */
  1348. U.MD.D.iconPostion2 = function (childs, top, left) {
  1349. var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
  1350. top = top || 70; //如果没有设置元素的间距处理默认上间距为15
  1351. left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
  1352. //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
  1353. for (i = 0; i < childs.length; i++) {
  1354. //如果竖排top超过了范围处理
  1355. if (left + 150 > US.width - 10) {
  1356. //left超过了页面范围处理,则向上重叠打印处理
  1357. if ((top + 180) > US.Height) {
  1358. top -= 150;
  1359. left -= 150;
  1360. }
  1361. //没有超过范围,那么left+90添加到下一个竖排打印
  1362. else {
  1363. top += 150;
  1364. left = ol;
  1365. };
  1366. }
  1367. //给图标的位置赋值
  1368. U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px", top: 'unset' });
  1369. if (i < childs.length - 1) {
  1370. //页面图标每次向下加95
  1371. left += 150;
  1372. }
  1373. }
  1374. //返回最后调用的图标的位置
  1375. return [top, left];
  1376. }
  1377. /**
  1378. * 桌面点击事件逻辑
  1379. *
  1380. * @param {element} 桌面元素
  1381. * @param {object} 上下相距的距离
  1382. * @param {object} 左右相距的距离
  1383. * @return {object} 命名空间
  1384. */
  1385. U.MD.D.click = function (el, obj) {
  1386. var _buttonnumber = event.button; //点击的按钮的事件值
  1387. var _userinfo = US.userInfo;
  1388. U.UF.EV.stopBubble(); //阻止向上冒泡
  1389. //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
  1390. if (_buttonnumber < 2) {
  1391. //如果是click事件的处理
  1392. if (event.type == "click") {
  1393. //如果元素在mousemove事件中没有移动则出发click事件
  1394. if (!U.MD.D.I.IsDrag) {
  1395. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1396. U.alert("请先登录您的账号!");
  1397. setTimeout(() => {
  1398. U.MD.U.L.login();
  1399. }, 2000);
  1400. } else {
  1401. //打开应用处理
  1402. U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
  1403. }
  1404. }
  1405. }
  1406. //如果是mouse事件的处理
  1407. else {
  1408. if (US.Config.type == '1') {
  1409. //拖动处理,添加拖动和拖动结束事件
  1410. U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
  1411. }
  1412. }
  1413. U.MD.D.I.IsDrag = false;
  1414. }
  1415. }
  1416. /**
  1417. * 拖动的处理
  1418. *
  1419. */
  1420. U.MD.D.iconMove = function () {
  1421. //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
  1422. U.MD.D.I.IsDrag = true;
  1423. }
  1424. /**
  1425. * 拖动结束后,这里是定位处理,以网状的形式定位
  1426. *
  1427. * @param {element} 拖动的元素
  1428. * @return {object} 命名空间
  1429. */
  1430. U.MD.D.iconUp = function (el) {
  1431. var _top = 15,
  1432. _left = 20,
  1433. _margin,
  1434. _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
  1435. _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
  1436. if (_positioninfo["OT"] > 15) {
  1437. //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
  1438. _margin = ((_positioninfo["OT"] - 15) % 95 > 55 && _positioninfo["OT"] + 95 < US.height) ? 1 : 0;
  1439. _top = (Math.floor((_positioninfo["OT"] - 15) / 95) + _margin) * 95 + 15;
  1440. }
  1441. if (_positioninfo["OL"] > 20) {
  1442. //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
  1443. _margin = ((_positioninfo["OL"] - 20) % 90 > 45 && _positioninfo["OL"] + 90 < US.width) ? 1 : 0;
  1444. _left = (Math.floor((_positioninfo["OL"] - 20) / 90) + _margin) * 90 + 20
  1445. }
  1446. //while循环判断么一个重叠的元素
  1447. do {
  1448. _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
  1449. _top = _positioninfo[0] + 95; //得到定位后的top
  1450. _left = _positioninfo[1]; //得到定位后的left
  1451. } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
  1452. }
  1453. /**
  1454. * 判断拖动后图标是否重叠
  1455. *
  1456. * @param {element} 拖动的元素
  1457. * @param {element} 桌面所有的元素
  1458. * @param {array} 拖动元素的位置
  1459. ----------[0] 上 top
  1460. ----------[1] 左 left
  1461. * @return {object} 命名空间
  1462. */
  1463. U.MD.D.isOverlap = function (el, childs, postionarray) {
  1464. //循环所有的图标
  1465. for (var i = 0; i < childs.length; i++) {
  1466. //判断有没有和该图标诶子重叠的元素
  1467. if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
  1468. return childs[i]; //如果有返回
  1469. }
  1470. }
  1471. }
  1472. //#endregion
  1473. //#endregion
  1474. //#region 桌面应用
  1475. /**
  1476. * 打开应用
  1477. *
  1478. * @param {string} 类型
  1479. -----------------Disk 网盘系统
  1480. -----------------PDisk 学习系统网盘
  1481. -----------------Poto 图片
  1482. -----------------Video 视频
  1483. -----------------Music 音乐
  1484. -----------------Word word
  1485. -----------------Excel excel
  1486. -----------------Txt 记事本
  1487. -----------------PB 学习系统
  1488. -----------------Blog 朋友圈系统
  1489. -----------------FTP ftp系统
  1490. -----------------Group 好友群
  1491. -----------------SY 首页系统
  1492. -----------------Set 个人设置
  1493. -----------------XSet 系统设置
  1494. -----------------App 我们所有的app
  1495. -----------------BC c.1473.cn 平台
  1496. -----------------CWeb d.1473.cn 变成平台
  1497. -----------------其他的外联系统 我们统一用iframe打开
  1498. * @param {array} 类型
  1499. 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
  1500. 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
  1501. 如果第一个参数为"blog"或者"PDisk"。建议删除。
  1502. 如果第一个参数为其他,则无第二个参数
  1503. * @returns {array}
  1504. */
  1505. window.addEventListener('message', function (e) { // 监听 message 事件
  1506. // alert(e.data.type);
  1507. if (e.data.screenType && e.data.screenType == "2") { //课程管理传入
  1508. U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
  1509. //3是展示全部阶段 2学生 1老师 4专家
  1510. } else if (e.data.screenType && e.data.screenType == "2s") { //课程管理传入
  1511. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, e.data.screenType, 4)
  1512. //3是展示全部阶段 2学生 1老师 4专家
  1513. } else if (e.data.screenType && e.data.screenType == "2studio") { //课程管理传入
  1514. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, e.data.screenType, 4)
  1515. //3是展示全部阶段 2学生 1老师 4专家
  1516. } else if (e.data.screenType && e.data.screenType == "3") { //课程管理传入
  1517. U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
  1518. } else if (e.data.screenType && e.data.screenType == "3NT") { //课程管理传入
  1519. U.MD.D.I.openInApplication("studyDetailNT", e.data.cid, 2, 1)
  1520. } else if (e.data.screenType && e.data.screenType == "3s") { //课程管理传入
  1521. U.MD.D.I.openInApplication("studyDetailS", e.data.cid, 2, 1)
  1522. } else if (e.data.screenType && e.data.screenType == "3studio") { //课程管理传入
  1523. U.MD.D.I.openInApplication("studyDetailStudio", e.data.cid, 2, 1)
  1524. } else if (e.data.screenType && e.data.screenType == "3s2") { //课程管理传入
  1525. U.MD.D.I.openInApplication("studyDetailS5", e.data.cid, 2, 5)
  1526. } else if (e.data.screenType && e.data.screenType == "2gm") { //课程管理传入
  1527. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
  1528. //3是展示全部阶段 2学生 1老师 4专家
  1529. } else if (e.data.screenType && e.data.screenType == "3gm") { //课程管理传入
  1530. U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
  1531. } else if (e.data.close && e.data.close == "1") { //更新用户信息
  1532. U.MD.D.I.selectUser();
  1533. } else if (e.data.allScreen && e.data.allScreen == "1") {
  1534. var _formel = document.getElementById("study");
  1535. U.UF.F.windowZooming(_formel);
  1536. } else if (e.data.allScreen && e.data.allScreen == "2") {
  1537. var _formel = document.getElementById("studyDetail");
  1538. U.UF.F.windowZooming(_formel);
  1539. } else if (e.data.allScreen && e.data.allScreen == "2gm") {
  1540. var _formel = document.getElementById("studyDetail");
  1541. U.UF.F.windowZooming(_formel);
  1542. } else if (e.data.allScreen && e.data.allScreen == "3") {
  1543. var _formel = document.getElementById("studentStudy");
  1544. U.UF.F.windowZooming(_formel);
  1545. } else if (e.data.allScreen && e.data.allScreen == "6") {
  1546. // var _formel = document.getElementById("study");
  1547. //如果最大化了,那么就把他缩小
  1548. // if (_formel.ismaximize) {
  1549. // return;
  1550. // }
  1551. // U.UF.F.windowZooming(_formel);
  1552. // U.UF.F.topWindow(_formel);
  1553. } else if (e.data.allScreen && e.data.allScreen == "4") {
  1554. // var _formel = document.getElementById("studyDetail");
  1555. //如果最大化了,那么就把他缩小
  1556. // if (_formel.ismaximize) {
  1557. // return;
  1558. // }
  1559. // U.UF.F.windowZooming(_formel);
  1560. // U.UF.F.topWindow(_formel);
  1561. } else if (e.data.allScreen && e.data.allScreen == "5") {
  1562. // var _formel = document.getElementById("studentStudy");
  1563. // if (_formel.ismaximize) {
  1564. // return;
  1565. // }
  1566. // U.UF.F.windowZooming(_formel);
  1567. // U.UF.F.topWindow(_formel);
  1568. } else if (e.data.allScreen && e.data.allScreen == "5gm") {
  1569. var _formel = document.getElementById("study");
  1570. // if (_formel.ismaximize) {
  1571. // return;
  1572. // }
  1573. // U.UF.F.windowZooming(_formel);
  1574. U.UF.F.topWindow(_formel);
  1575. } else if (e.data.allScreen && e.data.allScreen == "1s") {
  1576. var _formel = document.getElementById("studentIndex");
  1577. U.UF.F.windowZooming(_formel);
  1578. } else if (e.data.allScreen && e.data.allScreen == "2s") {
  1579. var _formel = document.getElementById("studyDetailS");
  1580. U.UF.F.windowZooming(_formel);
  1581. } else if (e.data.allScreen && e.data.allScreen == "1studio") {
  1582. var _formel = document.getElementById("studioIndex");
  1583. U.UF.F.windowZooming(_formel);
  1584. } else if (e.data.allScreen && e.data.allScreen == "2studio") {
  1585. var _formel = document.getElementById("studyDetailStudio");
  1586. U.UF.F.windowZooming(_formel);
  1587. } else if (e.data.allScreen && e.data.allScreen == "2studiostudio") {
  1588. var _formel = document.getElementById("studyDetailStudio");
  1589. U.UF.F.windowZooming(_formel);
  1590. } else if (e.data.allScreen && e.data.allScreen == "2NT") {
  1591. var _formel = document.getElementById("studyDetailNT");
  1592. U.UF.F.windowZooming(_formel);
  1593. } else if (e.data.allScreen && e.data.allScreen == "2ss") {
  1594. var _formel = document.getElementById("studyDetailS");
  1595. U.UF.F.windowZooming(_formel);
  1596. } else if (e.data.allScreen && e.data.allScreen == "4s") {
  1597. var _formel = document.getElementById("studyDetailS");
  1598. U.UF.F.topWindow(_formel);
  1599. } else if (e.data.tools && e.data.tools == "1") {
  1600. // U.MD.D.I.openApplication("whiteboard")
  1601. U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1602. } else if (e.data.tools && e.data.tools == "2") {
  1603. U.MD.D.I.openApplication("note")
  1604. } else if (e.data.tools && e.data.tools == "3") {
  1605. // U.MD.D.I.openApplication("mind")
  1606. U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1607. } else if (e.data.tools && e.data.tools == "4") {
  1608. U.MD.D.I.openApplication("investigation")
  1609. } else if (e.data.tools && e.data.tools == "6") {
  1610. // U.MD.D.I.openApplication("doc")
  1611. U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1612. } else if (e.data.tools && e.data.tools == "7") {
  1613. // U.MD.D.I.openApplication("mindNetwork")
  1614. U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1615. } else if (e.data.tools && e.data.tools == "8") {
  1616. U.MD.D.I.openApplication("library")
  1617. } else if (e.data.tools && e.data.tools == "17") {
  1618. U.MD.D.I.openApplication("stuLibrary")
  1619. } else if (e.data.tools && e.data.tools == "18") {
  1620. U.MD.D.I.openApplication("train")
  1621. } else if (e.data.tools && e.data.tools == "21") {
  1622. U.MD.D.I.openApplication("program")
  1623. } else if (e.data.tools && e.data.tools == "22") {
  1624. U.MD.D.I.openApplication("AIprogram2")
  1625. } else if (e.data.tools && e.data.tools == "23") {
  1626. U.MD.D.I.openApplication("Pythonprogram")
  1627. } else if (e.data.tools && e.data.tools == "24") {
  1628. U.MD.D.I.openApplication("AIprogram")
  1629. } else if (e.data.tools && e.data.tools == "25") {
  1630. U.MD.D.I.openApplication("sys")
  1631. } else if (e.data.tools && e.data.tools == "26") {
  1632. // U.MD.D.I.openApplication("courseDesign")
  1633. U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1634. } else if (e.data.tools && e.data.tools == "31") {
  1635. U.MD.D.I.openApplication("netWorkPanel")
  1636. } else if (e.data.tools && e.data.tools == "32") {
  1637. U.MD.D.I.openApplication("codeEdit")
  1638. } else if (e.data.tools && e.data.tools == "57") {
  1639. U.MD.D.I.openApplication("CocoPi")
  1640. } else if (e.data.tools && e.data.tools == "63") {
  1641. U.MD.D.I.openApplication("Wood")
  1642. } else if (e.data.tools && e.data.tools == "58") {
  1643. U.MD.D.I.openApplication("car")
  1644. } else if (e.data.tools && e.data.tools == "59") {
  1645. U.MD.D.I.openApplication("lineSearch")
  1646. } else if (e.data.tools && e.data.tools == "60") {
  1647. U.MD.D.I.openApplication("deepLearning")
  1648. } else if (e.data.tools && e.data.tools == "61") {
  1649. U.MD.D.I.openApplication("allHistory")
  1650. } else if (e.data.tools && e.data.tools == "28") {
  1651. U.MD.D.I.openApplication("translation")
  1652. } else if (e.data.tools && e.data.tools == "37") {
  1653. U.MD.D.I.openApplication("mohe")
  1654. } else if (e.data.tools && e.data.tools == "38") {
  1655. U.MD.D.I.openApplication("24game")
  1656. } else if (e.data.tools && e.data.tools == "39") {
  1657. U.MD.D.I.openApplication("GeoGebra")
  1658. } else if (e.data.tools && e.data.tools == "43") {
  1659. U.MD.D.I.openApplication("studentEvaluate")
  1660. } else if (e.data.tools && e.data.tools == "44") {
  1661. U.MD.D.I.openInApplication("hanUrl", '', '', '')
  1662. } else if (e.data.tools && e.data.tools == "46") {
  1663. U.MD.D.I.openApplication("project")
  1664. } else if (e.data.tools && e.data.tools == "1s") {
  1665. U.MD.D.I.openApplicationJieS("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1666. } else if (e.data.tools && e.data.tools == "3s") {
  1667. U.MD.D.I.openApplicationJieS("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1668. } else if (e.data.tools && e.data.tools == "6s") {
  1669. U.MD.D.I.openApplicationJieS("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1670. } else if (e.data.tools && e.data.tools == "1studio") {
  1671. U.MD.D.I.openApplicationJieStudio("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1672. } else if (e.data.tools && e.data.tools == "3studio") {
  1673. U.MD.D.I.openApplicationJieStudio("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1674. } else if (e.data.tools && e.data.tools == "6studio") {
  1675. U.MD.D.I.openApplicationJieStudio("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1676. } else if (e.data.tools && e.data.tools == "3y") {
  1677. U.MD.D.I.openApplicationYu("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1678. } else if (e.data.tools && e.data.tools == "1y") {
  1679. U.MD.D.I.openApplicationYu("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1680. } else if (e.data.tools && e.data.tools == "inviteLogin") {
  1681. U.MD.D.getuser2(e.data.userid, e.data.courseId)
  1682. } else if (e.data.tools && e.data.tools == "AIAnalyse") {
  1683. U.MD.D.I.openApplication("AIAnalyse")
  1684. } else if (e.data.tools && e.data.tools == "1teacher") {
  1685. U.MD.D.I.openApplicationJieTeacher("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1686. } else if (e.data.tools && e.data.tools == "3teacher") {
  1687. U.MD.D.I.openApplicationJieTeacher("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1688. } else if (e.data.tools && e.data.tools == "7teacher") {
  1689. U.MD.D.I.openApplicationJieTeacher("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1690. } else if (e.data.tools && e.data.tools == "1teacherE") {
  1691. U.MD.D.I.openApplicationJieTeacherE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1692. } else if (e.data.tools && e.data.tools == "3teacherE") {
  1693. U.MD.D.I.openApplicationJieTeacherE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool, e.data.student)
  1694. } else if (e.data.tools && e.data.tools == "1E") {
  1695. U.MD.D.I.openApplicationJieE("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1696. } else if (e.data.tools && e.data.tools == "3E") {
  1697. U.MD.D.I.openApplicationJieE("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
  1698. }
  1699. });
  1700. U.MD.D.I.selectUser = function () {
  1701. U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
  1702. if (res.value[0].length > 0) {
  1703. US.userInfo = res.value[0][0];
  1704. $(".userName")[0].innerHTML = US.userInfo.username;
  1705. }
  1706. }, [], { "type": "GET", "withCredentials": true });
  1707. }
  1708. U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
  1709. var _userinfo = US.userInfo, //登录用户信息
  1710. _userid = US.userInfo.userid, //登录用户id
  1711. _oid = _userinfo.organizeid,
  1712. _type = US.userInfo.type,
  1713. _org = US.userInfo.org,
  1714. _role = US.userInfo.role,
  1715. _classId = US.userInfo.classid;
  1716. if (_type == 4) {
  1717. tType = 4
  1718. }
  1719. switch (str) {
  1720. case "studyDetailNT"://无终端模式
  1721. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1722. setTimeout(() => {
  1723. U.MD.U.L.login();
  1724. }, 2000);
  1725. } else {
  1726. _formdiv = new U.UF.UI.form(
  1727. "课程详情",
  1728. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1729. "id": "studyDetailNT",
  1730. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1731. "onresize": function () { }
  1732. }, {
  1733. closecallback: function () { }
  1734. }, { "style": { "height": "36px" } }).form; //创建窗体
  1735. _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); } }
  1736. break;
  1737. }
  1738. case "studyDetail":
  1739. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1740. setTimeout(() => {
  1741. U.MD.U.L.login();
  1742. }, 2000);
  1743. } else {
  1744. _formdiv = new U.UF.UI.form(
  1745. "课程详情",
  1746. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1747. "id": "studyDetail",
  1748. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1749. "onresize": function () { }
  1750. }, {
  1751. closecallback: function () { }
  1752. }, { "style": { "height": "36px" } }).form; //创建窗体
  1753. _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); } }
  1754. break;
  1755. }
  1756. case "studyDetailS":
  1757. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1758. setTimeout(() => {
  1759. U.MD.U.L.login();
  1760. }, 2000);
  1761. } else {
  1762. _formdiv = new U.UF.UI.form(
  1763. "项目详情",
  1764. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1765. "id": "studyDetailS",
  1766. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1767. "onresize": function () { }
  1768. }, {
  1769. closecallback: function () { }
  1770. }, { "style": { "height": "36px" } }).form; //创建窗体
  1771. _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); } }
  1772. break;
  1773. }
  1774. case "studyDetailStudio":
  1775. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1776. setTimeout(() => {
  1777. U.MD.U.L.login();
  1778. }, 2000);
  1779. } else {
  1780. _formdiv = new U.UF.UI.form(
  1781. "工作详情",
  1782. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1783. "id": "studyDetailStudio",
  1784. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1785. "onresize": function () { }
  1786. }, {
  1787. closecallback: function () { }
  1788. }, { "style": { "height": "36px" } }).form; //创建窗体
  1789. _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); } }
  1790. break;
  1791. }
  1792. case "studyDetailS5":
  1793. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1794. setTimeout(() => {
  1795. U.MD.U.L.login();
  1796. }, 2000);
  1797. } else {
  1798. _formdiv = new U.UF.UI.form(
  1799. "项目详情",
  1800. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1801. "id": "studyDetailS",
  1802. "style": { "width": "95%", "height": "95%", "overflow": 'hidden' },
  1803. "onresize": function () { }
  1804. }, {
  1805. closecallback: function () { }
  1806. }, { "style": { "height": "36px" } }).form; //创建窗体
  1807. _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); } }
  1808. break;
  1809. }
  1810. case "studyDetailGM":
  1811. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1812. setTimeout(() => {
  1813. U.MD.U.L.login();
  1814. }, 2000);
  1815. } else {
  1816. _formdiv = new U.UF.UI.form(
  1817. "课程详情",
  1818. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  1819. "id": "studyDetail",
  1820. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  1821. "onresize": function () { }
  1822. }, {
  1823. closecallback: function () { }
  1824. }, { "style": { "height": "36px" } }).form; //创建窗体
  1825. _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); } }
  1826. break;
  1827. }
  1828. case "hanUrl":
  1829. if (!_userinfo || Object.keys(_userinfo).length === 0) {
  1830. setTimeout(() => {
  1831. U.MD.U.L.login();
  1832. }, 2000);
  1833. } else {
  1834. _formdiv = new U.UF.UI.form(
  1835. "汉字宫",
  1836. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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" }), {
  1837. "id": "hanUrl",
  1838. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1839. "onresize": function () { }
  1840. }, {
  1841. closecallback: function () { }
  1842. }, { "style": { "height": "36px" } }).form; //创建窗体
  1843. _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); } }
  1844. break;
  1845. }
  1846. }
  1847. }
  1848. U.MD.D.I.openApplication = function (str, obj, info) {
  1849. obj = obj || {};
  1850. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  1851. _formdiv, //创建任务栏时同时弹出的窗体元素。
  1852. _userinfo = US.userInfo, //登录用户信息
  1853. _userid = obj.userid || US.userInfo.userid, //登录用户id
  1854. _oid = obj.organizeid || _userinfo.organizeid,
  1855. _type = US.userInfo.type,
  1856. _org = US.userInfo.org,
  1857. _role = US.userInfo.role,
  1858. _classId = US.userInfo.classid,
  1859. _TscreenType = 1
  1860. _screenType = 2,
  1861. _SscreenType = 3;
  1862. if (str == 'my' && _type == 2 && (_oid == "69893dca-1d47-11ed-8c78-005056b86db5" || _oid == "05b62310-8cda-11ed-b13d-005056b86db5")) {
  1863. return;
  1864. }
  1865. if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  1866. switch (str) {
  1867. case "studnetProject": //好友打开
  1868. _formdiv = new U.UF.UI.form(
  1869. "我的项目",
  1870. $$("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 }), {
  1871. "id": "studnetProject",
  1872. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1873. "onresize": function () { }
  1874. }, {
  1875. closecallback: function () { }
  1876. }, { "style": { "height": "36px" } }).form; //创建窗体
  1877. _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); } }
  1878. break;
  1879. case "studentEvaluate": //好友打开
  1880. _formdiv = new U.UF.UI.form(
  1881. "我的评价",
  1882. $$("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 }), {
  1883. "id": "studentEvaluate",
  1884. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1885. "onresize": function () { }
  1886. }, {
  1887. closecallback: function () { }
  1888. }, { "style": { "height": "36px" } }).form; //创建窗体
  1889. _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); } }
  1890. break;
  1891. case "my":
  1892. _formdiv = new U.UF.UI.form(
  1893. "我的资料",
  1894. $$("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 }), {
  1895. "id": "my",
  1896. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  1897. "onresize": function () { }
  1898. }, {
  1899. closecallback: function () { }
  1900. }, { "style": { "height": "36px" } }).form; //创建窗体
  1901. _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); } }
  1902. break;
  1903. case "program":
  1904. _formdiv = new U.UF.UI.form(
  1905. "编程平台",
  1906. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  1907. "id": "program",
  1908. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  1909. "onresize": function () { }
  1910. }, {
  1911. closecallback: function () { }
  1912. }, { "style": { "height": "36px" } }).form; //创建窗体
  1913. _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); } }
  1914. break;
  1915. case "library":
  1916. _formdiv = new U.UF.UI.form(
  1917. "素材库",
  1918. $$("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 }), {
  1919. "id": "library",
  1920. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1921. "onresize": function () { }
  1922. }, {
  1923. closecallback: function () { }
  1924. }, { "style": { "height": "36px" } }).form; //创建窗体
  1925. _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); } }
  1926. break;
  1927. case "whiteboard":
  1928. _formdiv = new U.UF.UI.form(
  1929. "电子白板",
  1930. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  1931. "id": "whiteboard",
  1932. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1933. "onresize": function () { }
  1934. }, {
  1935. closecallback: function () { }
  1936. }, { "style": { "height": "36px" } }).form; //创建窗体
  1937. _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); } }
  1938. break;
  1939. case "investigation":
  1940. _formdiv = new U.UF.UI.form(
  1941. "问卷调查",
  1942. $$("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 }), {
  1943. "id": "investigation",
  1944. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1945. "onresize": function () { }
  1946. }, {
  1947. closecallback: function () { }
  1948. }, { "style": { "height": "36px" } }).form; //创建窗体
  1949. _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); } }
  1950. break;
  1951. case "note":
  1952. _formdiv = new U.UF.UI.form(
  1953. "便签分类",
  1954. $$("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 }), {
  1955. "id": "note",
  1956. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  1957. "onresize": function () { }
  1958. }, {
  1959. closecallback: function () { }
  1960. }, { "style": { "height": "36px" } }).form; //创建窗体
  1961. _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); } }
  1962. break;
  1963. // case "score":
  1964. // _formdiv = new U.UF.UI.form(
  1965. // "量规评分",
  1966. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  1967. // "id": "score",
  1968. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1969. // "onresize": function() {}
  1970. // }, {
  1971. // closecallback: function() {}
  1972. // }, { "style": { "height": "36px" } }).form; //创建窗体
  1973. // _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); } }
  1974. // break;
  1975. case "mind":
  1976. _formdiv = new U.UF.UI.form(
  1977. "思维导图",
  1978. $$("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"
  1979. "id": "mind",
  1980. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1981. "onresize": function () { }
  1982. }, {
  1983. closecallback: function () { }
  1984. }, { "style": { "height": "36px" } }).form; //创建窗体
  1985. _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); } }
  1986. break;
  1987. case "doc":
  1988. // U.MD.D.I.isRoom();
  1989. _formdiv = new U.UF.UI.form(
  1990. "协同文档",
  1991. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
  1992. "id": "doc",
  1993. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  1994. "onresize": function () { }
  1995. }, {
  1996. closecallback: function () { }
  1997. }, { "style": { "height": "36px" } }).form; //创建窗体
  1998. // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  1999. // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2000. // })
  2001. _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); } }
  2002. break;
  2003. case "studentStudy":
  2004. _formdiv = new U.UF.UI.form(
  2005. "课程中心",
  2006. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2007. "id": "studentStudy",
  2008. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2009. "onresize": function () { }
  2010. }, {
  2011. closecallback: function () { }
  2012. }, { "style": { "height": "36px" } }).form; //创建窗体
  2013. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2014. break;
  2015. case "train": //好友打开
  2016. _formdiv = new U.UF.UI.form(
  2017. "训练平台",
  2018. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2019. "id": "train",
  2020. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2021. "onresize": function () { }
  2022. }, {
  2023. closecallback: function () { }
  2024. }, { "style": { "height": "36px" } }).form; //创建窗体
  2025. _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); } }
  2026. break;
  2027. case "mindNetwork": //好友打开
  2028. _formdiv = new U.UF.UI.form(
  2029. "思维网格",
  2030. $$("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 }), {
  2031. "id": "mindNetwork",
  2032. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2033. "onresize": function () { }
  2034. }, {
  2035. closecallback: function () { }
  2036. }, { "style": { "height": "36px" } }).form; //创建窗体
  2037. _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); } }
  2038. break;
  2039. case "studentClassRoom": //好友打开
  2040. _formdiv = new U.UF.UI.form(
  2041. "实时课堂",
  2042. $$("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 }), {
  2043. "id": "studentClassRoom",
  2044. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2045. "onresize": function () { }
  2046. }, {
  2047. closecallback: function () { }
  2048. }, { "style": { "height": "36px" } }).form; //创建窗体
  2049. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/classRoom.png)" }, "name": "实时课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2050. setTimeout(() => {
  2051. U.UF.F.windowZooming(_formdiv)
  2052. }, 0);
  2053. break;
  2054. }
  2055. } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2056. switch (str) {
  2057. case "studnetProject": //好友打开
  2058. _formdiv = new U.UF.UI.form(
  2059. "我的项目",
  2060. $$("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 }), {
  2061. "id": "studnetProject",
  2062. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2063. "onresize": function () { }
  2064. }, {
  2065. closecallback: function () { }
  2066. }, { "style": { "height": "36px" } }).form; //创建窗体
  2067. _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); } }
  2068. break;
  2069. case "studentEvaluate": //好友打开
  2070. _formdiv = new U.UF.UI.form(
  2071. "我的评价",
  2072. $$("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 }), {
  2073. "id": "studentEvaluate",
  2074. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2075. "onresize": function () { }
  2076. }, {
  2077. closecallback: function () { }
  2078. }, { "style": { "height": "36px" } }).form; //创建窗体
  2079. _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); } }
  2080. break;
  2081. case "my":
  2082. _formdiv = new U.UF.UI.form(
  2083. "我的资料",
  2084. $$("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 }), {
  2085. "id": "my",
  2086. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2087. "onresize": function () { }
  2088. }, {
  2089. closecallback: function () { }
  2090. }, { "style": { "height": "36px" } }).form; //创建窗体
  2091. _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); } }
  2092. break;
  2093. case "program":
  2094. _formdiv = new U.UF.UI.form(
  2095. "编程平台",
  2096. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2097. "id": "program",
  2098. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2099. "onresize": function () { }
  2100. }, {
  2101. closecallback: function () { }
  2102. }, { "style": { "height": "36px" } }).form; //创建窗体
  2103. _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); } }
  2104. break;
  2105. case "library":
  2106. _formdiv = new U.UF.UI.form(
  2107. "素材库",
  2108. $$("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 }), {
  2109. "id": "library",
  2110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2111. "onresize": function () { }
  2112. }, {
  2113. closecallback: function () { }
  2114. }, { "style": { "height": "36px" } }).form; //创建窗体
  2115. _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); } }
  2116. break;
  2117. case "whiteboard":
  2118. _formdiv = new U.UF.UI.form(
  2119. "电子白板",
  2120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2121. "id": "whiteboard",
  2122. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2123. "onresize": function () { }
  2124. }, {
  2125. closecallback: function () { }
  2126. }, { "style": { "height": "36px" } }).form; //创建窗体
  2127. _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); } }
  2128. break;
  2129. case "investigation":
  2130. _formdiv = new U.UF.UI.form(
  2131. "问卷调查",
  2132. $$("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 }), {
  2133. "id": "investigation",
  2134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2135. "onresize": function () { }
  2136. }, {
  2137. closecallback: function () { }
  2138. }, { "style": { "height": "36px" } }).form; //创建窗体
  2139. _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); } }
  2140. break;
  2141. case "note":
  2142. _formdiv = new U.UF.UI.form(
  2143. "便签分类",
  2144. $$("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 }), {
  2145. "id": "note",
  2146. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2147. "onresize": function () { }
  2148. }, {
  2149. closecallback: function () { }
  2150. }, { "style": { "height": "36px" } }).form; //创建窗体
  2151. _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); } }
  2152. break;
  2153. // case "score":
  2154. // _formdiv = new U.UF.UI.form(
  2155. // "量规评分",
  2156. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2157. // "id": "score",
  2158. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2159. // "onresize": function() {}
  2160. // }, {
  2161. // closecallback: function() {}
  2162. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2163. // _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); } }
  2164. // break;
  2165. case "mind":
  2166. _formdiv = new U.UF.UI.form(
  2167. "思维导图",
  2168. $$("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"
  2169. "id": "mind",
  2170. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2171. "onresize": function () { }
  2172. }, {
  2173. closecallback: function () { }
  2174. }, { "style": { "height": "36px" } }).form; //创建窗体
  2175. _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); } }
  2176. break;
  2177. case "doc":
  2178. // U.MD.D.I.isRoom();
  2179. _formdiv = new U.UF.UI.form(
  2180. "协同文档",
  2181. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2182. "id": "doc",
  2183. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2184. "onresize": function () { }
  2185. }, {
  2186. closecallback: function () { }
  2187. }, { "style": { "height": "36px" } }).form; //创建窗体
  2188. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2189. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2190. })
  2191. _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); } }
  2192. break;
  2193. case "train": //好友打开
  2194. _formdiv = new U.UF.UI.form(
  2195. "训练平台",
  2196. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2197. "id": "train",
  2198. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2199. "onresize": function () { }
  2200. }, {
  2201. closecallback: function () { }
  2202. }, { "style": { "height": "36px" } }).form; //创建窗体
  2203. _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); } }
  2204. break;
  2205. case "studentStudy":
  2206. _formdiv = new U.UF.UI.form(
  2207. "课程中心",
  2208. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2209. "id": "studentStudy",
  2210. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2211. "onresize": function () { }
  2212. }, {
  2213. closecallback: function () { }
  2214. }, { "style": { "height": "36px" } }).form; //创建窗体
  2215. _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); } }
  2216. break;
  2217. case "mindNetwork": //好友打开
  2218. _formdiv = new U.UF.UI.form(
  2219. "思维网格",
  2220. $$("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 }), {
  2221. "id": "mindNetwork",
  2222. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2223. "onresize": function () { }
  2224. }, {
  2225. closecallback: function () { }
  2226. }, { "style": { "height": "36px" } }).form; //创建窗体
  2227. _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); } }
  2228. break;
  2229. case "studentClassRoom": //好友打开
  2230. _formdiv = new U.UF.UI.form(
  2231. "实时课堂",
  2232. $$("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 }), {
  2233. "id": "studentClassRoom",
  2234. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2235. "onresize": function () { }
  2236. }, {
  2237. closecallback: function () { }
  2238. }, { "style": { "height": "36px" } }).form; //创建窗体
  2239. _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); } }
  2240. setTimeout(() => {
  2241. U.UF.F.windowZooming(_formdiv)
  2242. }, 0);
  2243. break;
  2244. }
  2245. } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
  2246. //选择应用处理
  2247. switch (str) {
  2248. case "project": //好友打开
  2249. _formdiv = new U.UF.UI.form(
  2250. _org == '97c4ee8b-d010-4042-986d-e9d3c217264f' ? '工作项目':"课程管理",
  2251. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2252. "id": "project",
  2253. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2254. "onresize": function () { }
  2255. }, {
  2256. closecallback: function () { }
  2257. }, { "style": { "height": "36px" } }).form; //创建窗体
  2258. _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); } }
  2259. break;
  2260. case "student":
  2261. _formdiv = new U.UF.UI.form(
  2262. "学生管理",
  2263. $$("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 }), {
  2264. "id": "student",
  2265. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2266. "onresize": function () { }
  2267. }, {
  2268. closecallback: function () { }
  2269. }, { "style": { "height": "36px" } }).form; //创建窗体
  2270. _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); } }
  2271. break;
  2272. case "evaluate":
  2273. _formdiv = new U.UF.UI.form(
  2274. "学生评价",
  2275. $$("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 }), {
  2276. "id": "evaluate",
  2277. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2278. "onresize": function () { }
  2279. }, {
  2280. closecallback: function () { }
  2281. }, { "style": { "height": "36px" } }).form; //创建窗体
  2282. _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); } }
  2283. break;
  2284. case "sys":
  2285. _formdiv = new U.UF.UI.form(
  2286. "目标管理",
  2287. $$("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 }), {
  2288. "id": "sys",
  2289. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2290. "onresize": function () { }
  2291. }, {
  2292. closecallback: function () { }
  2293. }, { "style": { "height": "36px" } }).form; //创建窗体
  2294. _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); } }
  2295. break;
  2296. case "courseDesign":
  2297. _formdiv = new U.UF.UI.form(
  2298. "项目设计",
  2299. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2300. "id": "courseDesign",
  2301. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2302. "onresize": function () { }
  2303. }, {
  2304. closecallback: function () { }
  2305. }, { "style": { "height": "36px" } }).form; //创建窗体
  2306. _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); } }
  2307. break;
  2308. case "program":
  2309. _formdiv = new U.UF.UI.form(
  2310. "编程平台",
  2311. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2312. "id": "program",
  2313. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2314. "onresize": function () { }
  2315. }, {
  2316. closecallback: function () { }
  2317. }, { "style": { "height": "36px" } }).form; //创建窗体
  2318. _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); } }
  2319. break;
  2320. case "class":
  2321. _formdiv = new U.UF.UI.form(
  2322. "班级管理",
  2323. $$("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 }), {
  2324. "id": "class",
  2325. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2326. "onresize": function () { }
  2327. }, {
  2328. closecallback: function () { }
  2329. }, { "style": { "height": "36px" } }).form; //创建窗体
  2330. _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); } }
  2331. break;
  2332. case "my":
  2333. _formdiv = new U.UF.UI.form(
  2334. "我的资料",
  2335. $$("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 }), {
  2336. "id": "my",
  2337. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  2338. "onresize": function () { }
  2339. }, {
  2340. closecallback: function () { }
  2341. }, { "style": { "height": "36px" } }).form; //创建窗体
  2342. _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); } }
  2343. break;
  2344. case "notice":
  2345. _formdiv = new U.UF.UI.form(
  2346. "通知公告",
  2347. $$("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 }), {
  2348. "id": "notice",
  2349. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2350. "onresize": function () { }
  2351. }, {
  2352. closecallback: function () { }
  2353. }, { "style": { "height": "36px" } }).form; //创建窗体
  2354. _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); } }
  2355. break;
  2356. case "library":
  2357. _formdiv = new U.UF.UI.form(
  2358. "素材库",
  2359. $$("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 }), {
  2360. "id": "library",
  2361. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2362. "onresize": function () { }
  2363. }, {
  2364. closecallback: function () { }
  2365. }, { "style": { "height": "36px" } }).form; //创建窗体
  2366. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/library.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2367. break;
  2368. case "whiteboard":
  2369. _formdiv = new U.UF.UI.form(
  2370. "电子白板",
  2371. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2372. "id": "whiteboard",
  2373. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2374. "onresize": function () { }
  2375. }, {
  2376. closecallback: function () { }
  2377. }, { "style": { "height": "36px" } }).form; //创建窗体
  2378. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2379. break;
  2380. case "investigation":
  2381. _formdiv = new U.UF.UI.form(
  2382. "问卷调查",
  2383. $$("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 }), {
  2384. "id": "investigation",
  2385. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2386. "onresize": function () { }
  2387. }, {
  2388. closecallback: function () { }
  2389. }, { "style": { "height": "36px" } }).form; //创建窗体
  2390. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2391. break;
  2392. case "note":
  2393. _formdiv = new U.UF.UI.form(
  2394. "便签分类",
  2395. $$("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 }), {
  2396. "id": "note",
  2397. "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
  2398. "onresize": function () { }
  2399. }, {
  2400. closecallback: function () { }
  2401. }, { "style": { "height": "36px" } }).form; //创建窗体
  2402. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/note.png)" }, "name": "便签分类", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2403. break;
  2404. // case "score":
  2405. // _formdiv = new U.UF.UI.form(
  2406. // "量规评分",
  2407. // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
  2408. // "id": "score",
  2409. // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2410. // "onresize": function() {}
  2411. // }, {
  2412. // closecallback: function() {}
  2413. // }, { "style": { "height": "36px" } }).form; //创建窗体
  2414. // _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); } }
  2415. // break;
  2416. case "mind":
  2417. _formdiv = new U.UF.UI.form(
  2418. "思维导图",
  2419. $$("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"
  2420. "id": "mind",
  2421. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2422. "onresize": function () { }
  2423. }, {
  2424. closecallback: function () { }
  2425. }, { "style": { "height": "36px" } }).form; //创建窗体
  2426. _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); } }
  2427. break;
  2428. case "doc":
  2429. // U.MD.D.I.isRoom();
  2430. _formdiv = new U.UF.UI.form(
  2431. "协同文档",
  2432. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2433. "id": "doc",
  2434. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2435. "onresize": function () { }
  2436. }, {
  2437. closecallback: function () { }
  2438. }, { "style": { "height": "36px" } }).form; //创建窗体
  2439. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2440. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2441. })
  2442. _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); } }
  2443. break;
  2444. case "study":
  2445. _formdiv = new U.UF.UI.form(
  2446. "课程中心",
  2447. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2448. "id": "study",
  2449. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2450. "onresize": function () { }
  2451. }, {
  2452. closecallback: function () { }
  2453. }, { "style": { "height": "36px" } }).form; //创建窗体
  2454. _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); } }
  2455. break;
  2456. case "mindNetwork": //好友打开
  2457. _formdiv = new U.UF.UI.form(
  2458. "思维网格",
  2459. $$("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 }), {
  2460. "id": "mindNetwork",
  2461. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2462. "onresize": function () { }
  2463. }, {
  2464. closecallback: function () { }
  2465. }, { "style": { "height": "36px" } }).form; //创建窗体
  2466. _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); } }
  2467. break;
  2468. case "train": //好友打开
  2469. _formdiv = new U.UF.UI.form(
  2470. "训练平台",
  2471. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2472. "id": "mindNetwork",
  2473. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2474. "onresize": function () { }
  2475. }, {
  2476. closecallback: function () { }
  2477. }, { "style": { "height": "36px" } }).form; //创建窗体
  2478. _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); } }
  2479. break;
  2480. case "teacherClassRoom": //好友打开
  2481. _formdiv = new U.UF.UI.form(
  2482. "实时课堂",
  2483. $$("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 }), {
  2484. "id": "teacherClassRoom",
  2485. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2486. "onresize": function () { }
  2487. }, {
  2488. closecallback: function () { }
  2489. }, { "style": { "height": "36px" } }).form; //创建窗体
  2490. _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); } }
  2491. setTimeout(() => {
  2492. U.UF.F.windowZooming(_formdiv)
  2493. }, 0);
  2494. break;
  2495. }
  2496. } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
  2497. switch (str) {
  2498. case "project": //好友打开
  2499. _formdiv = new U.UF.UI.form(
  2500. "课程管理",
  2501. $$("iframe", { "allow": "camera *; microphone *;display-capture;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 }), {
  2502. "id": "project",
  2503. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2504. "onresize": function () { }
  2505. }, {
  2506. closecallback: function () { }
  2507. }, { "style": { "height": "36px" } }).form; //创建窗体
  2508. _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); } }
  2509. break;
  2510. case "evaluate":
  2511. _formdiv = new U.UF.UI.form(
  2512. "学生评价",
  2513. $$("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 }), {
  2514. "id": "evaluate",
  2515. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2516. "onresize": function () { }
  2517. }, {
  2518. closecallback: function () { }
  2519. }, { "style": { "height": "36px" } }).form; //创建窗体
  2520. _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); } }
  2521. break;
  2522. case "notice":
  2523. _formdiv = new U.UF.UI.form(
  2524. "通知公告",
  2525. $$("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 }), {
  2526. "id": "notice",
  2527. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2528. "onresize": function () { }
  2529. }, {
  2530. closecallback: function () { }
  2531. }, { "style": { "height": "36px" } }).form; //创建窗体
  2532. _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); } }
  2533. break;
  2534. case "stuLibrary":
  2535. _formdiv = new U.UF.UI.form(
  2536. "学习资料",
  2537. $$("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 }), {
  2538. "id": "stuLibrary",
  2539. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2540. "onresize": function () { }
  2541. }, {
  2542. closecallback: function () { }
  2543. }, { "style": { "height": "36px" } }).form; //创建窗体
  2544. _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); } }
  2545. break;
  2546. case "program":
  2547. _formdiv = new U.UF.UI.form(
  2548. "编程平台",
  2549. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
  2550. "id": "program",
  2551. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2552. "onresize": function () { }
  2553. }, {
  2554. closecallback: function () { }
  2555. }, { "style": { "height": "36px" } }).form; //创建窗体
  2556. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/myMessage.png)" }, "name": "编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2557. break;
  2558. case "whiteboard":
  2559. _formdiv = new U.UF.UI.form(
  2560. "电子白板",
  2561. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
  2562. "id": "whiteboard",
  2563. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2564. "onresize": function () { }
  2565. }, {
  2566. closecallback: function () { }
  2567. }, { "style": { "height": "36px" } }).form; //创建窗体
  2568. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/whiteBoard.png)" }, "name": "电子白板", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2569. break;
  2570. case "investigation":
  2571. _formdiv = new U.UF.UI.form(
  2572. "问卷调查",
  2573. $$("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 }), {
  2574. "id": "investigation",
  2575. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2576. "onresize": function () { }
  2577. }, {
  2578. closecallback: function () { }
  2579. }, { "style": { "height": "36px" } }).form; //创建窗体
  2580. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/ask.png)" }, "name": "问卷调查", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2581. break;
  2582. case "mind":
  2583. _formdiv = new U.UF.UI.form(
  2584. "思维导图",
  2585. $$("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"
  2586. "id": "mind",
  2587. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2588. "onresize": function () { }
  2589. }, {
  2590. closecallback: function () { }
  2591. }, { "style": { "height": "36px" } }).form; //创建窗体
  2592. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindMapping.png)" }, "name": "思维导图", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2593. break;
  2594. case "doc":
  2595. // U.MD.D.I.isRoom();
  2596. _formdiv = new U.UF.UI.form(
  2597. "协同文档",
  2598. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
  2599. "id": "doc",
  2600. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2601. "onresize": function () { }
  2602. }, {
  2603. closecallback: function () { }
  2604. }, { "style": { "height": "36px" } }).form; //创建窗体
  2605. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  2606. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
  2607. })
  2608. _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); } }
  2609. break;
  2610. case "study":
  2611. _formdiv = new U.UF.UI.form(
  2612. "课程中心",
  2613. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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
  2614. "id": "study",
  2615. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  2616. "onresize": function () { }
  2617. }, {
  2618. closecallback: function () { }
  2619. }, { "style": { "height": "36px" } }).form; //创建窗体
  2620. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/study.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2621. break;
  2622. case "mindNetwork": //好友打开
  2623. _formdiv = new U.UF.UI.form(
  2624. "思维网格",
  2625. $$("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 }), {
  2626. "id": "mindNetwork",
  2627. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2628. "onresize": function () { }
  2629. }, {
  2630. closecallback: function () { }
  2631. }, { "style": { "height": "36px" } }).form; //创建窗体
  2632. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/mindNetwork.png)" }, "name": "思维网格", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2633. break;
  2634. case "train": //好友打开
  2635. _formdiv = new U.UF.UI.form(
  2636. "训练平台",
  2637. $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
  2638. "id": "train",
  2639. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2640. "onresize": function () { }
  2641. }, {
  2642. closecallback: function () { }
  2643. }, { "style": { "height": "36px" } }).form; //创建窗体
  2644. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/trainPlatform.png)" }, "name": "训练平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2645. break;
  2646. case "sys":
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/evaluation?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  2650. "id": "sys",
  2651. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2652. "onresize": function () { }
  2653. }, {
  2654. closecallback: function () { }
  2655. }, { "style": { "height": "36px" } }).form; //创建窗体
  2656. _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); } }
  2657. break;
  2658. case "courseDesign":
  2659. _formdiv = new U.UF.UI.form(
  2660. "项目设计",
  2661. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
  2662. "id": "courseDesign",
  2663. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2664. "onresize": function () { }
  2665. }, {
  2666. closecallback: function () { }
  2667. }, { "style": { "height": "36px" } }).form; //创建窗体
  2668. _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); } }
  2669. break;
  2670. }
  2671. } else if (!_type) {
  2672. switch (str) {
  2673. case "my":
  2674. _formdiv = new U.UF.UI.form(
  2675. "我的资料",
  2676. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/data?userid=" + _userid + "&org=" + _org }), {
  2677. "id": "my",
  2678. "style": { "width": "42%", "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/myMessage.png)" }, "name": "我的资料", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2684. break;
  2685. }
  2686. }
  2687. switch (str) {
  2688. // AIprogram2 AI体验 aihub.cocorobo.cn
  2689. // Pythonprogram Python编程 python-blockly.cocorobo.cn
  2690. // AIprogram AI编程 ai-blockly.cocorobo.cn
  2691. case "AIprogram2": //AI体验
  2692. _formdiv = new U.UF.UI.form(
  2693. "AI体验",
  2694. $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
  2695. "id": "AIprogram2",
  2696. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2697. "onresize": function () { }
  2698. }, {
  2699. closecallback: function () { }
  2700. }, { "style": { "height": "36px" } }).form; //创建窗体
  2701. _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); } }
  2702. break;
  2703. case "Pythonprogram": //python编程
  2704. _formdiv = new U.UF.UI.form(
  2705. "Python编程",
  2706. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
  2707. "id": "Pythonprogram",
  2708. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  2709. "onresize": function () { }
  2710. }, {
  2711. closecallback: function () { }
  2712. }, { "style": { "height": "36px" } }).form; //创建窗体
  2713. _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); } }
  2714. break;
  2715. case "AIprogram": //ai编程
  2716. _formdiv = new U.UF.UI.form(
  2717. "AI编程平台",
  2718. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
  2719. "id": "AIprogram",
  2720. "style": { "width": "70%", "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/AIprogram.png)" }, "name": "AI编程平台", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2726. break;
  2727. case "CocoPi": //CocoPi
  2728. _formdiv = new U.UF.UI.form(
  2729. "CocoPi",
  2730. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://v.cocorobo.cn" }), {
  2731. "id": "CocoPi",
  2732. "style": { "width": "70%", "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/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2738. break;
  2739. case "Wood": //Wood
  2740. _formdiv = new U.UF.UI.form(
  2741. "海龟编程",
  2742. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
  2743. "id": "Wood",
  2744. "style": { "width": "70%", "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/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2750. break;
  2751. case "car": //模拟驾驶
  2752. _formdiv = new U.UF.UI.form(
  2753. "模拟驾驶",
  2754. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://slowroads.io/" }), {
  2755. "id": "car",
  2756. "style": { "width": "70%", "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/car.png)" }, "name": "模拟驾驶", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2762. break;
  2763. case "lineSearch": //路径搜索
  2764. _formdiv = new U.UF.UI.form(
  2765. "路径搜索",
  2766. $$("iframe", { "allow": "camera *; microphone *;display-capture;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/" }), {
  2767. "id": "lineSearch",
  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/lineSearch.png)" }, "name": "路径搜索", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2774. break;
  2775. case "deepLearning": //深度学习
  2776. _formdiv = new U.UF.UI.form(
  2777. "深度学习",
  2778. $$("iframe", { "allow": "camera *; microphone *;display-capture;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/#" }), {
  2779. "id": "deepLearning",
  2780. "style": { "width": "70%", "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/deepLearning.png)" }, "name": "深度学习", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2786. break;
  2787. case "allHistory": //深度学习
  2788. _formdiv = new U.UF.UI.form(
  2789. "全历史",
  2790. $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.allhistory.com/" }), {
  2791. "id": "allHistory",
  2792. "style": { "width": "70%", "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/allHistory.png)" }, "name": "全历史", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2798. break;
  2799. case "chatPDF": //ai编程
  2800. _formdiv = new U.UF.UI.form(
  2801. "chatPDF",
  2802. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://www.chatpdf.com" }), {
  2803. "id": "chatPDF",
  2804. "style": { "width": "70%", "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/chatPDF.png)" }, "name": "chatPDF", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2810. break;
  2811. case "resources": //国家教育
  2812. _formdiv = new U.UF.UI.form(
  2813. "国家教育",
  2814. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
  2815. "id": "resources",
  2816. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2817. "onresize": function () { }
  2818. }, {
  2819. closecallback: function () { }
  2820. }, { "style": { "height": "36px" } }).form; //创建窗体
  2821. _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); } }
  2822. break;
  2823. case "codeEdit": //源码编辑
  2824. _formdiv = new U.UF.UI.form(
  2825. "源码编辑",
  2826. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
  2827. "id": "codeEdit",
  2828. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2829. "onresize": function () { }
  2830. }, {
  2831. closecallback: function () { }
  2832. }, { "style": { "height": "36px" } }).form; //创建窗体
  2833. _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); } }
  2834. break; //
  2835. case "MindMap": //MindMap
  2836. _formdiv = new U.UF.UI.form(
  2837. "MindMap",
  2838. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
  2839. "id": "MindMap",
  2840. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2841. "onresize": function () { }
  2842. }, {
  2843. closecallback: function () { }
  2844. }, { "style": { "height": "36px" } }).form; //创建窗体
  2845. _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); } }
  2846. break;
  2847. case "netWorkPanel": //netWorkPanel
  2848. _formdiv = new U.UF.UI.form(
  2849. "netWorkPanel",
  2850. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
  2851. "id": "netWorkPanel",
  2852. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2853. "onresize": function () { }
  2854. }, {
  2855. closecallback: function () { }
  2856. }, { "style": { "height": "36px" } }).form; //创建窗体
  2857. _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); } }
  2858. break;
  2859. case "GeoGebra": //GeoGebra
  2860. _formdiv = new U.UF.UI.form(
  2861. "GeoGebra",
  2862. $$("iframe", { "allow": "camera *; microphone *;display-capture", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
  2863. "id": "GeoGebra",
  2864. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2865. "onresize": function () { }
  2866. }, {
  2867. closecallback: function () { }
  2868. }, { "style": { "height": "36px" } }).form; //创建窗体
  2869. _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); } }
  2870. break;
  2871. case "translation": //翻译
  2872. _formdiv = new U.UF.UI.form(
  2873. "翻译",
  2874. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
  2875. "id": "translation",
  2876. "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
  2877. "onresize": function () { }
  2878. }, {
  2879. closecallback: function () { }
  2880. }, { "style": { "height": "36px" } }).form; //创建窗体
  2881. _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); } }
  2882. break;
  2883. case "mohe": //魔盒
  2884. _formdiv = new U.UF.UI.form(
  2885. "魔盒识字",
  2886. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
  2887. "id": "mohe",
  2888. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2889. "onresize": function () { }
  2890. }, {
  2891. closecallback: function () { }
  2892. }, { "style": { "height": "36px" } }).form; //创建窗体
  2893. _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); } }
  2894. break;
  2895. case "24game": //24点
  2896. _formdiv = new U.UF.UI.form(
  2897. "24点",
  2898. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
  2899. "id": "24game",
  2900. "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
  2901. "onresize": function () { }
  2902. }, {
  2903. closecallback: function () { }
  2904. }, { "style": { "height": "36px" } }).form; //创建窗体
  2905. _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); } }
  2906. break;
  2907. case "case":
  2908. _formdiv = new U.UF.UI.form(
  2909. "课程进展",
  2910. $$("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 }), {
  2911. "id": "case",
  2912. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2913. "onresize": function () { }
  2914. }, {
  2915. closecallback: function () { }
  2916. }, { "style": { "height": "36px" } }).form; //创建窗体
  2917. _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); } }
  2918. break;
  2919. case "snf":
  2920. _formdiv = new U.UF.UI.form(
  2921. "赛诺梵",
  2922. $$("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" }), {
  2923. "id": "snf",
  2924. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2925. "onresize": function () { }
  2926. }, {
  2927. closecallback: function () { }
  2928. }, { "style": { "height": "36px" } }).form; //创建窗体
  2929. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/snf.png)" }, "name": "赛诺梵", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2930. break;
  2931. case "hanFamily":
  2932. _formdiv = new U.UF.UI.form(
  2933. "汉字家族",
  2934. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
  2935. "id": "hanFamily",
  2936. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2937. "onresize": function () { }
  2938. }, {
  2939. closecallback: function () { }
  2940. }, { "style": { "height": "36px" } }).form; //创建窗体
  2941. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanFamily.png)" }, "name": "汉字家族", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2942. break;
  2943. case "hanClassics":
  2944. _formdiv = new U.UF.UI.form(
  2945. "国学经典",
  2946. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
  2947. "id": "hanClassics",
  2948. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2949. "onresize": function () { }
  2950. }, {
  2951. closecallback: function () { }
  2952. }, { "style": { "height": "36px" } }).form; //创建窗体
  2953. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClassics.png)" }, "name": "国学经典", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2954. break;
  2955. case "hanTraining":
  2956. _formdiv = new U.UF.UI.form(
  2957. "笔画训练",
  2958. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
  2959. "id": "hanTraining",
  2960. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2961. "onresize": function () { }
  2962. }, {
  2963. closecallback: function () { }
  2964. }, { "style": { "height": "36px" } }).form; //创建窗体
  2965. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanTraining.png)" }, "name": "笔画训练", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2966. break;
  2967. case "hanClass":
  2968. _formdiv = new U.UF.UI.form(
  2969. "书法课堂",
  2970. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
  2971. "id": "hanClass",
  2972. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2973. "onresize": function () { }
  2974. }, {
  2975. closecallback: function () { }
  2976. }, { "style": { "height": "36px" } }).form; //创建窗体
  2977. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/hanClass.png)" }, "name": "书法课堂", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2978. break;
  2979. case "han":
  2980. _formdiv = new U.UF.UI.form(
  2981. "汉字宫",
  2982. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
  2983. "id": "han",
  2984. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2985. "onresize": function () { }
  2986. }, {
  2987. closecallback: function () { }
  2988. }, { "style": { "height": "36px" } }).form; //创建窗体
  2989. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/han.png)" }, "name": "汉字宫", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  2990. break;
  2991. case "projectGM": //课程管理
  2992. _formdiv = new U.UF.UI.form(
  2993. "课程管理",
  2994. $$("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 }), {
  2995. "id": "projectGM",
  2996. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  2997. "onresize": function () { }
  2998. }, {
  2999. closecallback: function () { }
  3000. }, { "style": { "height": "36px" } }).form; //创建窗体
  3001. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/courseMange.png)" }, "name": "课程管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3002. break;
  3003. case "studyGM"://课程中心
  3004. _formdiv = new U.UF.UI.form(
  3005. "课程中心",
  3006. $$("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
  3007. "id": "study",
  3008. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3009. "onresize": function () { }
  3010. }, {
  3011. closecallback: function () { }
  3012. }, { "style": { "height": "36px" } }).form; //创建窗体
  3013. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/learning.png)" }, "name": "课程中心", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3014. break;
  3015. // studentGM
  3016. case "studentGM"://学生管理
  3017. _formdiv = new U.UF.UI.form(
  3018. "学生管理",
  3019. $$("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 }), {
  3020. "id": "studentGM",
  3021. "style": { "width": "90%", "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/gm/student.png)" }, "name": "学生管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3027. break;
  3028. case "evaluateGM"://学生评价
  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": US.Config.bpbl + "/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3032. "id": "evaluateGM",
  3033. "style": { "width": "90%", "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/gm/evaluate.png)" }, "name": "学生评价", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3039. break;
  3040. // classGM
  3041. case "classGM"://班级管理
  3042. _formdiv = new U.UF.UI.form(
  3043. "班级管理",
  3044. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
  3045. "id": "classGM",
  3046. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3047. "onresize": function () { }
  3048. }, {
  3049. closecallback: function () { }
  3050. }, { "style": { "height": "36px" } }).form; //创建窗体
  3051. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/class.png)" }, "name": "班级管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3052. break;
  3053. // dataGM
  3054. case "dataGM":
  3055. _formdiv = new U.UF.UI.form(
  3056. "我的资料",
  3057. $$("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 }), {
  3058. "id": "dataGM",
  3059. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3060. "onresize": function () { }
  3061. }, {
  3062. closecallback: function () { }
  3063. }, { "style": { "height": "36px" } }).form; //创建窗体
  3064. _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); } }
  3065. break;
  3066. // caseGM
  3067. case "caseGM"://课程进展
  3068. _formdiv = new U.UF.UI.form(
  3069. "课程进展",
  3070. $$("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 }), {
  3071. "id": "caseGM",
  3072. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3073. "onresize": function () { }
  3074. }, {
  3075. closecallback: function () { }
  3076. }, { "style": { "height": "36px" } }).form; //创建窗体
  3077. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/case.png)" }, "name": "课程进展", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3078. break;
  3079. // meterialGM
  3080. case "meterialGM"://素材库
  3081. _formdiv = new U.UF.UI.form(
  3082. "素材库",
  3083. $$("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 }), {
  3084. "id": "meterialGM",
  3085. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3086. "onresize": function () { }
  3087. }, {
  3088. closecallback: function () { }
  3089. }, { "style": { "height": "36px" } }).form; //创建窗体
  3090. _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/material.png)" }, "name": "素材库", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
  3091. break;
  3092. // evaluateSGM
  3093. case "evaluateSGM": //我的评价
  3094. _formdiv = new U.UF.UI.form(
  3095. "我的评价",
  3096. $$("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 }), {
  3097. "id": "evaluateSGM",
  3098. "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
  3099. "onresize": function () { }
  3100. }, {
  3101. closecallback: function () { }
  3102. }, { "style": { "height": "36px" } }).form; //创建窗体
  3103. _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); } }
  3104. break;
  3105. case "jupyter": //jupyter
  3106. _formdiv = new U.UF.UI.form(
  3107. "jupyter",
  3108. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://jupyter.cocorobo.cn/" }), {
  3109. "id": "jupyter",
  3110. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3111. "onresize": function () { }
  3112. }, {
  3113. closecallback: function () { }
  3114. }, { "style": { "height": "36px" } }).form; //创建窗体
  3115. _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); } }
  3116. break;
  3117. case "number": //数字实验室
  3118. _formdiv = new U.UF.UI.form(
  3119. "数字实验室",
  3120. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cocorobo.cn/cloud/iot/events" }), {
  3121. "id": "number",
  3122. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3123. "onresize": function () { }
  3124. }, {
  3125. closecallback: function () { }
  3126. }, { "style": { "height": "36px" } }).form; //创建窗体
  3127. _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); } }
  3128. break;
  3129. case "studentCourse": //项目管理 学生
  3130. _formdiv = new U.UF.UI.form(
  3131. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3132. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3133. "id": "studentCourse",
  3134. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3135. "onresize": function () { }
  3136. }, {
  3137. closecallback: function () { }
  3138. }, { "style": { "height": "36px" } }).form; //创建窗体
  3139. _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); } }
  3140. break;
  3141. case "studentCourseS": //项目管理 老师
  3142. _formdiv = new U.UF.UI.form(
  3143. (_org == "150e3120-9195-11ed-b13d-005056b86db5") ? "师生项目" : "项目管理",
  3144. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3145. "id": "studentCourseS",
  3146. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3147. "onresize": function () { }
  3148. }, {
  3149. closecallback: function () { }
  3150. }, { "style": { "height": "36px" } }).form; //创建窗体
  3151. _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); } }
  3152. break;
  3153. case "studentIndex": //项目中心
  3154. _formdiv = new U.UF.UI.form(
  3155. "项目中心",
  3156. $$("iframe", { "allow": "camera *; microphone *;display-capture", "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 }), {
  3157. "id": "studentIndex",
  3158. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3159. "onresize": function () { }
  3160. }, {
  3161. closecallback: function () { }
  3162. }, { "style": { "height": "36px" } }).form; //创建窗体
  3163. _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); } }
  3164. break;
  3165. case "CaseDesignS":
  3166. _formdiv = new U.UF.UI.form(
  3167. "项目进展",
  3168. $$("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 }), {
  3169. "id": "case",
  3170. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3171. "onresize": function () { }
  3172. }, {
  3173. closecallback: function () { }
  3174. }, { "style": { "height": "36px" } }).form; //创建窗体
  3175. _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); } }
  3176. break;
  3177. case "tcStudent": //腾讯学生管理
  3178. _formdiv = new U.UF.UI.form(
  3179. "学生管理",
  3180. $$("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 }), {
  3181. "id": "tcStudent",
  3182. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3183. "onresize": function () { }
  3184. }, {
  3185. closecallback: function () { }
  3186. }, { "style": { "height": "36px" } }).form; //创建窗体
  3187. _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); } }
  3188. break;
  3189. case "tcSchool": //腾讯学校管理
  3190. _formdiv = new U.UF.UI.form(
  3191. "学校管理",
  3192. $$("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 }), {
  3193. "id": "tcSchool",
  3194. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3195. "onresize": function () { }
  3196. }, {
  3197. closecallback: function () { }
  3198. }, { "style": { "height": "36px" } }).form; //创建窗体
  3199. _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); } }
  3200. break;
  3201. case "tcTeacher": //腾讯学校管理
  3202. _formdiv = new U.UF.UI.form(
  3203. "教师管理",
  3204. $$("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 }), {
  3205. "id": "tcTeacher",
  3206. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3207. "onresize": function () { }
  3208. }, {
  3209. closecallback: function () { }
  3210. }, { "style": { "height": "36px" } }).form; //创建窗体
  3211. _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); } }
  3212. break;
  3213. case "tcData": //腾讯我的资料
  3214. _formdiv = new U.UF.UI.form(
  3215. "我的资料",
  3216. $$("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 }), {
  3217. "id": "tcData",
  3218. "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
  3219. "onresize": function () { }
  3220. }, {
  3221. closecallback: function () { }
  3222. }, { "style": { "height": "36px" } }).form; //创建窗体
  3223. _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); } }
  3224. break;
  3225. case "tcNotice": //腾讯消息通知
  3226. _formdiv = new U.UF.UI.form(
  3227. "消息通知",
  3228. $$("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 }), {
  3229. "id": "tcNotice",
  3230. "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
  3231. "onresize": function () { }
  3232. }, {
  3233. closecallback: function () { }
  3234. }, { "style": { "height": "36px" } }).form; //创建窗体
  3235. _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); } }
  3236. break;
  3237. case "myReport": //好友打开
  3238. _formdiv = new U.UF.UI.form(
  3239. "我的评价",
  3240. $$("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 }), {
  3241. "id": "myReport",
  3242. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3243. "onresize": function () { }
  3244. }, {
  3245. closecallback: function () { }
  3246. }, { "style": { "height": "36px" } }).form; //创建窗体
  3247. _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); } }
  3248. break;
  3249. case "learnAna": //好友打开
  3250. _formdiv = new U.UF.UI.form(
  3251. "学习分析",
  3252. $$("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 }), {
  3253. "id": "learnAna",
  3254. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3255. "onresize": function () { }
  3256. }, {
  3257. closecallback: function () { }
  3258. }, { "style": { "height": "36px" } }).form; //创建窗体
  3259. _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); } }
  3260. break;
  3261. case "AIChat": //AI共创
  3262. _formdiv = new U.UF.UI.form(
  3263. "AI共创",
  3264. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/aichat/" }), {
  3265. "id": "AIChat",
  3266. "style": { "width": "550px", "height": "550px", "bottom": "30px", "right": "30px", "overflow": 'hidden' },
  3267. "onresize": function () { }
  3268. }, {
  3269. istop: true,
  3270. closecallback: function () { $("#aichat_icon").remove(); },
  3271. narrowcallback: function () {
  3272. if (!$("#aichat_icon")[0]) {
  3273. $$("div", { "id": "aichat_icon", "className": "U_MD_D_KO_AI", "onclick": function () { U.UF.F.topWindow(_formdiv); } }, $("#U_MD_D")[0])
  3274. }
  3275. },
  3276. }, { "style": { "height": "36px" } }).form; //创建窗体
  3277. _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); } }
  3278. break;
  3279. case "AIAnalyse": //AI共创
  3280. _formdiv = new U.UF.UI.form(
  3281. "AI分析",
  3282. $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://cloud.cocorobo.cn/ai/" }), {
  3283. "id": "AIAnalyse",
  3284. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3285. "onresize": function () { }
  3286. }, {
  3287. closecallback: function () { }
  3288. }, { "style": { "height": "36px" } }).form; //创建窗体
  3289. _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); } }
  3290. break;
  3291. case "studioCourse": //AI共创
  3292. _formdiv = new U.UF.UI.form(
  3293. "工作管理",
  3294. $$("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 }), {
  3295. "id": "studioCourse",
  3296. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3297. "onresize": function () { }
  3298. }, {
  3299. closecallback: function () { }
  3300. }, { "style": { "height": "36px" } }).form; //创建窗体
  3301. _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); } }
  3302. break;
  3303. case "studioIndex": //AI共创
  3304. _formdiv = new U.UF.UI.form(
  3305. "工作中心",
  3306. $$("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 }), {
  3307. "id": "studioIndex",
  3308. "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
  3309. "onresize": function () { }
  3310. }, {
  3311. closecallback: function () { }
  3312. }, { "style": { "height": "36px" } }).form; //创建窗体
  3313. _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); } }
  3314. break;
  3315. case "source":
  3316. _formdiv = new U.UF.UI.form(
  3317. "教学资源",
  3318. $$("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 }), {
  3319. "id": "source",
  3320. "style": { "width": "80%", "height": "80%", "overflow": 'hidden' },
  3321. "onresize": function () { }
  3322. }, {
  3323. closecallback: function () { }
  3324. }, { "style": { "height": "36px" } }).form; //创建窗体
  3325. _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); } }
  3326. break;
  3327. }
  3328. //U.MD.D.I.openClick(str);
  3329. //如果有任务栏信息
  3330. if (_taskbar) {
  3331. U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3332. }
  3333. }
  3334. // U.MD.D.I.openClick = function(str){
  3335. // var click = '';
  3336. // switch(str){
  3337. // case 'friend':
  3338. // click = '我的好友';
  3339. // break;
  3340. // case 'domain':
  3341. // click = '域名管理';
  3342. // break;
  3343. // case 'disk':
  3344. // click = '我的云盘';
  3345. // break;
  3346. // case 'word':
  3347. // click = 'Word';
  3348. // break;
  3349. // case 'excel':
  3350. // click = 'Execl';
  3351. // break;
  3352. // case 'txt':
  3353. // click = '文本文件';
  3354. // break;
  3355. // case 'lookupFriend':
  3356. // click = '查找好友';
  3357. // break;
  3358. // case 'ftp':
  3359. // click = 'FTP';
  3360. // break;
  3361. // case 'group':
  3362. // click = '群组';
  3363. // break;
  3364. // case 'set':
  3365. // click = '我的设置';
  3366. // break;
  3367. // case 'systemSet':
  3368. // click = '系统设置';
  3369. // break;
  3370. // case 'boomYun':
  3371. // click = '互联办公';
  3372. // break;
  3373. // case 'xz':
  3374. // click = '云端下载';
  3375. // break;
  3376. // case 'client':
  3377. // click = '有思浏览器';
  3378. // break;
  3379. // case 'backEndProgramming':
  3380. // click = '在线后台编程';
  3381. // break;
  3382. // case 'frontEndProgramming':
  3383. // click = '在线前端编程';
  3384. // break;
  3385. // default: break;
  3386. // }
  3387. // if(U.MD.D.I.Ip && click){
  3388. // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
  3389. // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
  3390. // })
  3391. // }
  3392. // }
  3393. /**
  3394. *函数作用:ajax简易函数,使用post格式
  3395. *@param url {data} 后台地址
  3396. *@param data {data} 参数json
  3397. *@param fn {data} 回调函数
  3398. *
  3399. */
  3400. // U.MD.D.I.Mysqlrequest = function(url,fn){
  3401. // var xhr = new XMLHttpRequest();
  3402. // xhr.open("GET",url,true);
  3403. // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  3404. // xhr.onreadystatechange = function(){
  3405. // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
  3406. // fn.call(this,xhr.responseText);
  3407. // }
  3408. // };
  3409. // xhr.send();
  3410. // }
  3411. /*判断是否是内网IP*/
  3412. // U.MD.D.I.isInnerIPFn = function(str){
  3413. // var curPageUrl = str;
  3414. // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
  3415. // curPageUrl =curPageUrl.replace(reg1,'');
  3416. // // console.log('curPageUrl-1 '+curPageUrl);
  3417. // var reg2 = /\:+/g;//替换冒号为一点
  3418. // curPageUrl =curPageUrl.replace(reg2,'.');
  3419. // // console.log('curPageUrl-2 '+curPageUrl);
  3420. // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
  3421. // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
  3422. // if(curPageUrl[2] != '16'){
  3423. // return ipAddress;
  3424. // }else{
  3425. // return false;
  3426. // }
  3427. // }
  3428. // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
  3429. // //compatibility for firefox and chrome
  3430. // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
  3431. // var pc = new myPeerConnection({
  3432. // iceServers: []
  3433. // }),
  3434. // noop = function() {},
  3435. // localIPs = {},
  3436. // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
  3437. // key;
  3438. // function iterateIP(ip) {
  3439. // if (!localIPs[ip]) onNewIP(ip);
  3440. // localIPs[ip] = true;
  3441. // }
  3442. // //create a bogus data channel
  3443. // pc.createDataChannel("");
  3444. // // create offer and set local description
  3445. // pc.createOffer().then(function(sdp) {
  3446. // sdp.sdp.split('\n').forEach(function(line) {
  3447. // if (line.indexOf('candidate') < 0) return;
  3448. // line.match(ipRegex).forEach(iterateIP);
  3449. // });
  3450. // pc.setLocalDescription(sdp, noop, noop);
  3451. // }).catch(function(reason) {
  3452. // // An error occurred, so handle the failure to connect
  3453. // });
  3454. // //sten for candidate events
  3455. // pc.onicecandidate = function(ice) {
  3456. // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
  3457. // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
  3458. // };
  3459. // }
  3460. // U.MD.D.I.getUserIpBool = function(callback){
  3461. // U.MD.D.I.getUserIP(function(ip){
  3462. // alert("Got IP! :" + ip);
  3463. // });
  3464. //}
  3465. //#endregion
  3466. U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
  3467. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3468. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3469. _userinfo = US.userInfo, //登录用户信息
  3470. _userid = US.userInfo.userid //登录用户id
  3471. let _iframe;
  3472. let _cid = cid,
  3473. _stage = stage,
  3474. _task = task,
  3475. _tool = tool;
  3476. var _jie = $$("div", {
  3477. "style": {
  3478. "position": "absolute",
  3479. "bottom": "50px",
  3480. "right": "50px",
  3481. "zIndex": "9999",
  3482. "backgroundColor": "#2268bc",
  3483. "color": "#fff",
  3484. "padding": "12px 20px",
  3485. "cursor": "pointer",
  3486. "borderRadius": "4px",
  3487. },
  3488. "innerHTML": "提交作业"
  3489. })
  3490. let aTool = ''
  3491. let _loading = document.createElement('div')
  3492. _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;"
  3493. // _loading.id = "";
  3494. let _lchild = document.createElement('div')
  3495. let _limg = document.createElement('img')
  3496. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3497. _limg.style = "width: 26px;margin-right: 10px;"
  3498. _lchild.appendChild(_limg)
  3499. let _lspan = document.createElement('span')
  3500. _lspan.innerHTML = "上传中..."
  3501. _lchild.appendChild(_lspan)
  3502. _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%);"
  3503. _loading.appendChild(_lchild)
  3504. var _box = $$('div', {
  3505. "style": {
  3506. "position": "relative",
  3507. "width": "100%",
  3508. "height": "100%",
  3509. },
  3510. })
  3511. _box.appendChild(_loading)
  3512. _box.id = str + '_loadLi'
  3513. switch (str) {
  3514. case "whiteboard":
  3515. aTool = 1;
  3516. _iframe = $$("iframe", {
  3517. "frameborder": "no",
  3518. "border": "0",
  3519. "scrolling ": "no",
  3520. "style": {
  3521. "cssText": "border:0;width:100%;height:100%"
  3522. },
  3523. "src": "https://iwb.cocorobo.cn/"
  3524. })
  3525. _box.appendChild(_iframe);
  3526. _box.appendChild(_jie);
  3527. _formdiv = new U.UF.UI.form(
  3528. "电子白板",
  3529. _box, {
  3530. "id": "whiteboard" + cid + stage + task + tool,
  3531. "style": {
  3532. "width": "90%",
  3533. "height": "90%",
  3534. "overflow": 'hidden'
  3535. },
  3536. "onresize": function () { }
  3537. }, {
  3538. closecallback: function () { }
  3539. }, {
  3540. "style": {
  3541. "height": "36px"
  3542. }
  3543. }).form; //创建窗体
  3544. _taskbar = {
  3545. "id": str + _formdiv.id,
  3546. "style": {
  3547. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  3548. },
  3549. "name": "电子白板",
  3550. "forms": _formdiv,
  3551. "click": function () {
  3552. U.MD.D.I.openApplication(str, obj, info);
  3553. }
  3554. }
  3555. break;
  3556. case "mind":
  3557. aTool = 3;
  3558. _iframe = $$("iframe", {
  3559. "frameborder": "no",
  3560. "border": "0",
  3561. "scrolling ": "no",
  3562. "style": {
  3563. "cssText": "border:0;width:100%;height:100%"
  3564. },
  3565. "src": "/kityminder-editor/dist/index.html"
  3566. })
  3567. _box.appendChild(_iframe);
  3568. _box.appendChild(_jie);
  3569. _formdiv = new U.UF.UI.form(
  3570. "思维导图",
  3571. _box, { //"/jsmind/example/demo.html"
  3572. "id": "mind" + cid + stage + task + tool,
  3573. "style": {
  3574. "width": "90%",
  3575. "height": "90%",
  3576. "overflow": 'hidden'
  3577. },
  3578. "onresize": function () { }
  3579. }, {
  3580. closecallback: function () { }
  3581. }, {
  3582. "style": {
  3583. "height": "36px"
  3584. }
  3585. }).form; //创建窗体
  3586. _taskbar = {
  3587. "id": str + _formdiv.id,
  3588. "style": {
  3589. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3590. },
  3591. "name": "思维导图",
  3592. "forms": _formdiv,
  3593. "click": function () {
  3594. U.MD.D.I.openApplication(str, obj, info);
  3595. }
  3596. }
  3597. break;
  3598. case "MindMap":
  3599. aTool = 3;
  3600. _iframe = $$("iframe", {
  3601. "frameborder": "no",
  3602. "border": "0",
  3603. "scrolling ": "no",
  3604. "style": {
  3605. "cssText": "border:0;width:100%;height:100%"
  3606. },
  3607. "src": "//cloud.cocorobo.cn/mind/"
  3608. })
  3609. _box.appendChild(_iframe);
  3610. _box.appendChild(_jie);
  3611. _formdiv = new U.UF.UI.form(
  3612. "思维导图",
  3613. _box, { //"/jsmind/example/demo.html"
  3614. "id": "mind" + cid + stage + task + tool,
  3615. "style": {
  3616. "width": "90%",
  3617. "height": "90%",
  3618. "overflow": 'hidden'
  3619. },
  3620. "onresize": function () { }
  3621. }, {
  3622. closecallback: function () { }
  3623. }, {
  3624. "style": {
  3625. "height": "36px"
  3626. }
  3627. }).form; //创建窗体
  3628. _taskbar = {
  3629. "id": str + _formdiv.id,
  3630. "style": {
  3631. "backgroundImage": "url(/img/icon/mindMapping.png)"
  3632. },
  3633. "name": "思维导图",
  3634. "forms": _formdiv,
  3635. "click": function () {
  3636. U.MD.D.I.openApplication(str, obj, info);
  3637. }
  3638. }
  3639. break;
  3640. case "doc":
  3641. aTool = 6;
  3642. _iframe = $$("iframe", {
  3643. "frameborder": "no",
  3644. "border": "0",
  3645. "scrolling ": "no",
  3646. "style": {
  3647. "cssText": "border:0;width:100%;height:100%"
  3648. },
  3649. "src": "/Office/Word/WordEditArea.htm"
  3650. })
  3651. _box.appendChild(_iframe);
  3652. _box.appendChild(_jie);
  3653. _formdiv = new U.UF.UI.form(
  3654. "协同文档",
  3655. _box, {
  3656. "id": "doc" + cid + stage + task + tool,
  3657. "style": {
  3658. "width": "90%",
  3659. "height": "90%",
  3660. "overflow": 'hidden'
  3661. },
  3662. "onresize": function () { }
  3663. }, {
  3664. closecallback: function () { }
  3665. }, {
  3666. "style": {
  3667. "height": "36px"
  3668. }
  3669. }).form; //创建窗体
  3670. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  3671. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3672. })
  3673. _taskbar = {
  3674. "id": str + _formdiv.id,
  3675. "style": {
  3676. "backgroundImage": "url(/img/icon/doc.png)"
  3677. },
  3678. "name": "协同文档",
  3679. "forms": _formdiv,
  3680. "click": function () {
  3681. U.MD.D.I.openApplication(str, obj, info);
  3682. }
  3683. }
  3684. break;
  3685. case "mindNetwork": //好友打开
  3686. aTool = 7;
  3687. _iframe = $$("iframe", {
  3688. "webkitallowfullscreen": "",
  3689. "mozallowfullscreen": "",
  3690. "allowfullscreen": "",
  3691. "frameborder": "no",
  3692. "border": "0",
  3693. "scrolling ": "no",
  3694. "style": {
  3695. "cssText": "border:0; width:100%; height:100%;"
  3696. },
  3697. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  3698. })
  3699. _box.appendChild(_iframe);
  3700. _box.appendChild(_jie);
  3701. _formdiv = new U.UF.UI.form(
  3702. "思维网格",
  3703. _box, {
  3704. "id": "mindNetwork" + cid + stage + task + tool,
  3705. "style": {
  3706. "width": "90%",
  3707. "height": "90%",
  3708. "overflow": 'hidden'
  3709. },
  3710. "onresize": function () { }
  3711. }, {
  3712. closecallback: function () { }
  3713. }, {
  3714. "style": {
  3715. "height": "36px"
  3716. }
  3717. }).form; //创建窗体
  3718. _taskbar = {
  3719. "id": str + _formdiv.id,
  3720. "style": {
  3721. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  3722. },
  3723. "name": "思维网格",
  3724. "forms": _formdiv,
  3725. "click": function () {
  3726. U.MD.D.I.openApplication(str, obj, info);
  3727. }
  3728. }
  3729. break;
  3730. case "courseDesign":
  3731. _iframe = $$("iframe", {
  3732. "webkitallowfullscreen": "",
  3733. "mozallowfullscreen": "",
  3734. "allowfullscreen": "",
  3735. "frameborder": "no",
  3736. "border": "0",
  3737. "scrolling ": "no",
  3738. "style": {
  3739. "cssText": "border:0; width:100%; height:100%;"
  3740. },
  3741. "src": "/course-design-vue"
  3742. })
  3743. _box.appendChild(_iframe);
  3744. _box.appendChild(_jie);
  3745. _formdiv = new U.UF.UI.form(
  3746. "项目设计",
  3747. _box, {
  3748. "id": "courseDesign" + cid + stage + task + tool,
  3749. "style": {
  3750. "width": "90%",
  3751. "height": "90%",
  3752. "overflow": 'hidden'
  3753. },
  3754. "onresize": function () { }
  3755. }, {
  3756. closecallback: function () { }
  3757. }, {
  3758. "style": {
  3759. "height": "36px"
  3760. }
  3761. }).form; //创建窗体
  3762. _taskbar = {
  3763. "id": str + _formdiv.id,
  3764. "style": {
  3765. "backgroundImage": "url(/img/icon/courseDesign.png)"
  3766. },
  3767. "name": "项目设计",
  3768. "forms": _formdiv,
  3769. "click": function () {
  3770. U.MD.D.I.openApplication(str, obj, info);
  3771. }
  3772. }
  3773. break;
  3774. }
  3775. const script1 = document.createElement("script");
  3776. script1.type = "text/javascript";
  3777. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  3778. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  3779. const script2 = document.createElement("script");
  3780. script2.type = "text/javascript";
  3781. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  3782. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  3783. const script3 = document.createElement("script");
  3784. script3.type = "text/javascript";
  3785. script3.charset = "UTF-8";
  3786. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  3787. const script4 = document.createElement("script");
  3788. script4.type = "text/javascript";
  3789. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  3790. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  3791. if (_iframe) {
  3792. if (str == 'doc') {
  3793. _iframe = _formdiv.querySelector('iframe')
  3794. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3795. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  3796. _iframe.contentWindow.document.body.appendChild(script1);
  3797. _iframe.contentWindow.document.body.appendChild(script2);
  3798. // _iframe.contentWindow.document.body.appendChild(script3);
  3799. _iframe.contentWindow.document.body.appendChild(script4);
  3800. })
  3801. if (onloadListener) {
  3802. _iframe.contentDocument.location.reload()
  3803. } else {
  3804. _iframe.contentDocument.location.reload()
  3805. }
  3806. } else if (str == 'courseDesign') {
  3807. U.UF.DL.iframeLoad(_iframe, function () {
  3808. // _iframe.contentWindow.U.MD.O.W.load();
  3809. // _iframe.contentWindow.document.body.appendChild(script1);
  3810. _iframe.contentWindow.document.body.appendChild(script2);
  3811. _iframe.contentWindow.document.body.appendChild(script4);
  3812. })
  3813. } else if (str == 'mind') {
  3814. _iframe = _formdiv.querySelector('iframe')
  3815. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  3816. //
  3817. _iframe.contentWindow.document.body.appendChild(script1);
  3818. _iframe.contentWindow.document.body.appendChild(script2);
  3819. _iframe.contentWindow.document.body.appendChild(script4);
  3820. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  3821. })
  3822. if (onloadListener) {
  3823. _iframe.contentDocument.location.reload()
  3824. } else {
  3825. _iframe.contentDocument.location.reload()
  3826. }
  3827. } else if (str == 'whiteboard') {
  3828. _iframe = _formdiv.querySelector('iframe')
  3829. let onloadListener = _iframe.onload = () => {
  3830. _iframe.contentWindow.document.body.appendChild(script1);
  3831. _iframe.contentWindow.document.body.appendChild(script2);
  3832. _iframe.contentWindow.document.body.appendChild(script4);
  3833. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  3834. };
  3835. if (onloadListener) {
  3836. _iframe.contentDocument.location.reload()
  3837. } else {
  3838. _iframe.contentDocument.location.reload()
  3839. }
  3840. } else {
  3841. _iframe.onload = () => {
  3842. _iframe.contentWindow.document.body.appendChild(script1);
  3843. _iframe.contentWindow.document.body.appendChild(script2);
  3844. // _iframe.contentWindow.document.body.appendChild(script3);
  3845. _iframe.contentWindow.document.body.appendChild(script4);
  3846. };
  3847. }
  3848. _jie.onclick = async () => {
  3849. let text = ''
  3850. if (aTool == 1) {
  3851. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  3852. } else if (aTool == 6) {
  3853. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  3854. } else if (aTool == 3) {
  3855. text = await U.MD.D.I.getEditorContent(_iframe);
  3856. }
  3857. _loading.style.display = 'flex'
  3858. console.log(_loading);
  3859. var _ajs = _iframe.contentWindow.document.createElement("script");
  3860. _ajs.type = "text/javascript";
  3861. _ajs.innerHTML =
  3862. // 'console.log(' + _loading + ');\n' +
  3863. 'var _js = document.createElement("script");\n' +
  3864. '_js.type="text/javascript";\n' +
  3865. '_js.charset="UTF-8";\n' +
  3866. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  3867. "_js.onload = function(){\n" +
  3868. ' var a = document.getElementsByTagName("img")\n' +
  3869. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  3870. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  3871. '  var base64Url = canvas.toDataURL("image/png");\n' +
  3872. 'var base64 = "<img src=" + base64Url + " />"\n' +
  3873. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  3874. "beforeUpload_shishi(file," +
  3875. "'" +
  3876. _userid +
  3877. "'" +
  3878. ", " +
  3879. "'" +
  3880. _cid +
  3881. "'" +
  3882. ", " +
  3883. "'" +
  3884. _stage +
  3885. "'" +
  3886. ", " +
  3887. "'" +
  3888. _task +
  3889. "'" +
  3890. ", " +
  3891. "'" +
  3892. _tool +
  3893. "'" +
  3894. ", " +
  3895. "'" +
  3896. str + '_loadLi' +
  3897. "'" +
  3898. ", " +
  3899. "'" +
  3900. aTool +
  3901. "'" +
  3902. ", " +
  3903. "`" +
  3904. text +
  3905. "`" +
  3906. ")\n" +
  3907. " });\n" +
  3908. "}\n" +
  3909. "document.head.appendChild(_js);\n";
  3910. _iframe.contentWindow.document.head.appendChild(_ajs);
  3911. }
  3912. }
  3913. //U.MD.D.I.openClick(str);
  3914. //如果有任务栏信息
  3915. // if (_taskbar) {
  3916. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  3917. // }
  3918. }
  3919. U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
  3920. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  3921. _formdiv, //创建任务栏时同时弹出的窗体元素。
  3922. _userinfo = US.userInfo, //登录用户信息
  3923. _userid = US.userInfo.userid //登录用户id
  3924. let _iframe;
  3925. let _cid = cid,
  3926. _stage = stage,
  3927. _task = task,
  3928. _tool = tool;
  3929. var _jie = $$("div", {
  3930. "style": {
  3931. "position": "absolute",
  3932. "bottom": "50px",
  3933. "right": "50px",
  3934. "zIndex": "9999",
  3935. "backgroundColor": "#2268bc",
  3936. "color": "#fff",
  3937. "padding": "12px 20px",
  3938. "cursor": "pointer",
  3939. "borderRadius": "4px",
  3940. },
  3941. "innerHTML": "提交作业"
  3942. })
  3943. let aTool = ''
  3944. let _loading = document.createElement('div')
  3945. _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;"
  3946. // _loading.id = "";
  3947. let _lchild = document.createElement('div')
  3948. let _limg = document.createElement('img')
  3949. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  3950. _limg.style = "width: 26px;margin-right: 10px;"
  3951. _lchild.appendChild(_limg)
  3952. let _lspan = document.createElement('span')
  3953. _lspan.innerHTML = "上传中..."
  3954. _lchild.appendChild(_lspan)
  3955. _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%);"
  3956. _loading.appendChild(_lchild)
  3957. var _box = $$('div', {
  3958. "style": {
  3959. "position": "relative",
  3960. "width": "100%",
  3961. "height": "100%",
  3962. },
  3963. })
  3964. _box.appendChild(_loading)
  3965. _box.id = str + '_loadLi'
  3966. switch (str) {
  3967. case "whiteboard":
  3968. aTool = 1;
  3969. _iframe = $$("iframe", {
  3970. "frameborder": "no",
  3971. "border": "0",
  3972. "scrolling ": "no",
  3973. "style": {
  3974. "cssText": "border:0;width:100%;height:100%"
  3975. },
  3976. "src": "https://iwb.cocorobo.cn/"
  3977. })
  3978. _box.appendChild(_iframe);
  3979. _box.appendChild(_jie);
  3980. _formdiv = new U.UF.UI.form(
  3981. "电子白板",
  3982. _box, {
  3983. "id": "whiteboard" + cid + stage + task + tool,
  3984. "style": {
  3985. "width": "90%",
  3986. "height": "90%",
  3987. "overflow": 'hidden'
  3988. },
  3989. "onresize": function () { }
  3990. }, {
  3991. closecallback: function () { }
  3992. }, {
  3993. "style": {
  3994. "height": "36px"
  3995. }
  3996. }).form; //创建窗体
  3997. _taskbar = {
  3998. "id": str + _formdiv.id,
  3999. "style": {
  4000. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4001. },
  4002. "name": "电子白板",
  4003. "forms": _formdiv,
  4004. "click": function () {
  4005. U.MD.D.I.openApplication(str, obj, info);
  4006. }
  4007. }
  4008. break;
  4009. case "mind":
  4010. aTool = 3;
  4011. _iframe = $$("iframe", {
  4012. "frameborder": "no",
  4013. "border": "0",
  4014. "scrolling ": "no",
  4015. "style": {
  4016. "cssText": "border:0;width:100%;height:100%"
  4017. },
  4018. "src": "/kityminder-editor/dist/index.html"
  4019. })
  4020. _box.appendChild(_iframe);
  4021. _box.appendChild(_jie);
  4022. _formdiv = new U.UF.UI.form(
  4023. "思维导图",
  4024. _box, { //"/jsmind/example/demo.html"
  4025. "id": "mind" + cid + stage + task + tool,
  4026. "style": {
  4027. "width": "90%",
  4028. "height": "90%",
  4029. "overflow": 'hidden'
  4030. },
  4031. "onresize": function () { }
  4032. }, {
  4033. closecallback: function () { }
  4034. }, {
  4035. "style": {
  4036. "height": "36px"
  4037. }
  4038. }).form; //创建窗体
  4039. _taskbar = {
  4040. "id": str + _formdiv.id,
  4041. "style": {
  4042. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4043. },
  4044. "name": "思维导图",
  4045. "forms": _formdiv,
  4046. "click": function () {
  4047. U.MD.D.I.openApplication(str, obj, info);
  4048. }
  4049. }
  4050. break;
  4051. case "MindMap":
  4052. aTool = 3;
  4053. _iframe = $$("iframe", {
  4054. "frameborder": "no",
  4055. "border": "0",
  4056. "scrolling ": "no",
  4057. "style": {
  4058. "cssText": "border:0;width:100%;height:100%"
  4059. },
  4060. "src": "//cloud.cocorobo.cn/mind/"
  4061. })
  4062. _box.appendChild(_iframe);
  4063. _box.appendChild(_jie);
  4064. _formdiv = new U.UF.UI.form(
  4065. "思维导图",
  4066. _box, { //"/jsmind/example/demo.html"
  4067. "id": "mind" + cid + stage + task + tool,
  4068. "style": {
  4069. "width": "90%",
  4070. "height": "90%",
  4071. "overflow": 'hidden'
  4072. },
  4073. "onresize": function () { }
  4074. }, {
  4075. closecallback: function () { }
  4076. }, {
  4077. "style": {
  4078. "height": "36px"
  4079. }
  4080. }).form; //创建窗体
  4081. _taskbar = {
  4082. "id": str + _formdiv.id,
  4083. "style": {
  4084. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4085. },
  4086. "name": "思维导图",
  4087. "forms": _formdiv,
  4088. "click": function () {
  4089. U.MD.D.I.openApplication(str, obj, info);
  4090. }
  4091. }
  4092. break;
  4093. case "doc":
  4094. aTool = 6;
  4095. _iframe = $$("iframe", {
  4096. "frameborder": "no",
  4097. "border": "0",
  4098. "scrolling ": "no",
  4099. "style": {
  4100. "cssText": "border:0;width:100%;height:100%"
  4101. },
  4102. "src": "/Office/Word/WordEditArea.htm"
  4103. })
  4104. _box.appendChild(_iframe);
  4105. _box.appendChild(_jie);
  4106. _formdiv = new U.UF.UI.form(
  4107. "协同文档",
  4108. _box, {
  4109. "id": "doc" + cid + stage + task + tool,
  4110. "style": {
  4111. "width": "90%",
  4112. "height": "90%",
  4113. "overflow": 'hidden'
  4114. },
  4115. "onresize": function () { }
  4116. }, {
  4117. closecallback: function () { }
  4118. }, {
  4119. "style": {
  4120. "height": "36px"
  4121. }
  4122. }).form; //创建窗体
  4123. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4124. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4125. })
  4126. _taskbar = {
  4127. "id": str + _formdiv.id,
  4128. "style": {
  4129. "backgroundImage": "url(/img/icon/doc.png)"
  4130. },
  4131. "name": "协同文档",
  4132. "forms": _formdiv,
  4133. "click": function () {
  4134. U.MD.D.I.openApplication(str, obj, info);
  4135. }
  4136. }
  4137. break;
  4138. case "mindNetwork": //好友打开
  4139. aTool = 7;
  4140. _iframe = $$("iframe", {
  4141. "webkitallowfullscreen": "",
  4142. "mozallowfullscreen": "",
  4143. "allowfullscreen": "",
  4144. "frameborder": "no",
  4145. "border": "0",
  4146. "scrolling ": "no",
  4147. "style": {
  4148. "cssText": "border:0; width:100%; height:100%;"
  4149. },
  4150. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4151. })
  4152. _box.appendChild(_iframe);
  4153. _box.appendChild(_jie);
  4154. _formdiv = new U.UF.UI.form(
  4155. "思维网格",
  4156. _box, {
  4157. "id": "mindNetwork" + cid + stage + task + tool,
  4158. "style": {
  4159. "width": "90%",
  4160. "height": "90%",
  4161. "overflow": 'hidden'
  4162. },
  4163. "onresize": function () { }
  4164. }, {
  4165. closecallback: function () { }
  4166. }, {
  4167. "style": {
  4168. "height": "36px"
  4169. }
  4170. }).form; //创建窗体
  4171. _taskbar = {
  4172. "id": str + _formdiv.id,
  4173. "style": {
  4174. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4175. },
  4176. "name": "思维网格",
  4177. "forms": _formdiv,
  4178. "click": function () {
  4179. U.MD.D.I.openApplication(str, obj, info);
  4180. }
  4181. }
  4182. break;
  4183. case "courseDesign":
  4184. _iframe = $$("iframe", {
  4185. "webkitallowfullscreen": "",
  4186. "mozallowfullscreen": "",
  4187. "allowfullscreen": "",
  4188. "frameborder": "no",
  4189. "border": "0",
  4190. "scrolling ": "no",
  4191. "style": {
  4192. "cssText": "border:0; width:100%; height:100%;"
  4193. },
  4194. "src": "/course-design-vue"
  4195. })
  4196. _box.appendChild(_iframe);
  4197. _box.appendChild(_jie);
  4198. _formdiv = new U.UF.UI.form(
  4199. "项目设计",
  4200. _box, {
  4201. "id": "courseDesign" + cid + stage + task + tool,
  4202. "style": {
  4203. "width": "90%",
  4204. "height": "90%",
  4205. "overflow": 'hidden'
  4206. },
  4207. "onresize": function () { }
  4208. }, {
  4209. closecallback: function () { }
  4210. }, {
  4211. "style": {
  4212. "height": "36px"
  4213. }
  4214. }).form; //创建窗体
  4215. _taskbar = {
  4216. "id": str + _formdiv.id,
  4217. "style": {
  4218. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4219. },
  4220. "name": "项目设计",
  4221. "forms": _formdiv,
  4222. "click": function () {
  4223. U.MD.D.I.openApplication(str, obj, info);
  4224. }
  4225. }
  4226. break;
  4227. }
  4228. const script1 = document.createElement("script");
  4229. script1.type = "text/javascript";
  4230. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4231. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4232. const script2 = document.createElement("script");
  4233. script2.type = "text/javascript";
  4234. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4235. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4236. const script3 = document.createElement("script");
  4237. script3.type = "text/javascript";
  4238. script3.charset = "UTF-8";
  4239. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4240. const script4 = document.createElement("script");
  4241. script4.type = "text/javascript";
  4242. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4243. script4.src = window.origin + "/js/Common/jietu2E.js";
  4244. if (_iframe) {
  4245. if (str == 'doc') {
  4246. _iframe = _formdiv.querySelector('iframe')
  4247. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4248. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4249. _iframe.contentWindow.document.body.appendChild(script1);
  4250. _iframe.contentWindow.document.body.appendChild(script2);
  4251. // _iframe.contentWindow.document.body.appendChild(script3);
  4252. _iframe.contentWindow.document.body.appendChild(script4);
  4253. })
  4254. if (onloadListener) {
  4255. _iframe.contentDocument.location.reload()
  4256. } else {
  4257. _iframe.contentDocument.location.reload()
  4258. }
  4259. } else if (str == 'courseDesign') {
  4260. U.UF.DL.iframeLoad(_iframe, function () {
  4261. // _iframe.contentWindow.U.MD.O.W.load();
  4262. // _iframe.contentWindow.document.body.appendChild(script1);
  4263. _iframe.contentWindow.document.body.appendChild(script2);
  4264. _iframe.contentWindow.document.body.appendChild(script4);
  4265. })
  4266. } else if (str == 'mind') {
  4267. _iframe = _formdiv.querySelector('iframe')
  4268. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4269. //
  4270. _iframe.contentWindow.document.body.appendChild(script1);
  4271. _iframe.contentWindow.document.body.appendChild(script2);
  4272. _iframe.contentWindow.document.body.appendChild(script4);
  4273. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4274. })
  4275. if (onloadListener) {
  4276. _iframe.contentDocument.location.reload()
  4277. } else {
  4278. _iframe.contentDocument.location.reload()
  4279. }
  4280. } else if (str == 'whiteboard') {
  4281. _iframe = _formdiv.querySelector('iframe')
  4282. let onloadListener = _iframe.onload = () => {
  4283. _iframe.contentWindow.document.body.appendChild(script1);
  4284. _iframe.contentWindow.document.body.appendChild(script2);
  4285. _iframe.contentWindow.document.body.appendChild(script4);
  4286. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4287. };
  4288. if (onloadListener) {
  4289. _iframe.contentDocument.location.reload()
  4290. } else {
  4291. _iframe.contentDocument.location.reload()
  4292. }
  4293. } else {
  4294. _iframe.onload = () => {
  4295. _iframe.contentWindow.document.body.appendChild(script1);
  4296. _iframe.contentWindow.document.body.appendChild(script2);
  4297. // _iframe.contentWindow.document.body.appendChild(script3);
  4298. _iframe.contentWindow.document.body.appendChild(script4);
  4299. };
  4300. }
  4301. _jie.onclick = async () => {
  4302. let text = ''
  4303. if (aTool == 1) {
  4304. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4305. } else if (aTool == 6) {
  4306. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4307. } else if (aTool == 3) {
  4308. text = await U.MD.D.I.getEditorContent(_iframe);
  4309. }
  4310. _loading.style.display = 'flex'
  4311. console.log(_loading);
  4312. var _ajs = _iframe.contentWindow.document.createElement("script");
  4313. _ajs.type = "text/javascript";
  4314. _ajs.innerHTML =
  4315. // 'console.log(' + _loading + ');\n' +
  4316. 'var _js = document.createElement("script");\n' +
  4317. '_js.type="text/javascript";\n' +
  4318. '_js.charset="UTF-8";\n' +
  4319. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4320. "_js.onload = function(){\n" +
  4321. ' var a = document.getElementsByTagName("img")\n' +
  4322. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4323. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4324. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4325. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4326. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4327. "beforeUpload_shishi(file," +
  4328. "'" +
  4329. _userid +
  4330. "'" +
  4331. ", " +
  4332. "'" +
  4333. _cid +
  4334. "'" +
  4335. ", " +
  4336. "'" +
  4337. _stage +
  4338. "'" +
  4339. ", " +
  4340. "'" +
  4341. _task +
  4342. "'" +
  4343. ", " +
  4344. "'" +
  4345. _tool +
  4346. "'" +
  4347. ", " +
  4348. "'" +
  4349. str + '_loadLi' +
  4350. "'" +
  4351. ", " +
  4352. "'" +
  4353. aTool +
  4354. "'" +
  4355. ", " +
  4356. "`" +
  4357. text +
  4358. "`" +
  4359. ")\n" +
  4360. " });\n" +
  4361. "}\n" +
  4362. "document.head.appendChild(_js);\n";
  4363. _iframe.contentWindow.document.head.appendChild(_ajs);
  4364. }
  4365. }
  4366. //U.MD.D.I.openClick(str);
  4367. //如果有任务栏信息
  4368. // if (_taskbar) {
  4369. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  4370. // }
  4371. }
  4372. U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
  4373. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4374. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4375. _userid = student.userid, //登录用户id
  4376. _username = student.student //用户名字
  4377. let _iframe;
  4378. let _cid = cid,
  4379. _stage = stage,
  4380. _task = task,
  4381. _tool = tool;
  4382. var _jie = $$("div", {
  4383. "style": {
  4384. "position": "absolute",
  4385. "bottom": "50px",
  4386. "right": "50px",
  4387. "zIndex": "9999",
  4388. "backgroundColor": "#2268bc",
  4389. "color": "#fff",
  4390. "padding": "12px 20px",
  4391. "cursor": "pointer",
  4392. "borderRadius": "4px",
  4393. },
  4394. "innerHTML": "提交作业"
  4395. })
  4396. let aTool = ''
  4397. let _loading = document.createElement('div')
  4398. _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;"
  4399. // _loading.id = "";
  4400. let _lchild = document.createElement('div')
  4401. let _limg = document.createElement('img')
  4402. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4403. _limg.style = "width: 26px;margin-right: 10px;"
  4404. _lchild.appendChild(_limg)
  4405. let _lspan = document.createElement('span')
  4406. _lspan.innerHTML = "上传中..."
  4407. _lchild.appendChild(_lspan)
  4408. _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%);"
  4409. _loading.appendChild(_lchild)
  4410. var _box = $$('div', {
  4411. "style": {
  4412. "position": "relative",
  4413. "width": "100%",
  4414. "height": "100%",
  4415. },
  4416. })
  4417. _box.appendChild(_loading)
  4418. _box.id = str + '_loadLi' + _userid
  4419. switch (str) {
  4420. case "whiteboard":
  4421. aTool = 1;
  4422. _iframe = $$("iframe", {
  4423. "frameborder": "no",
  4424. "border": "0",
  4425. "scrolling ": "no",
  4426. "style": {
  4427. "cssText": "border:0;width:100%;height:100%"
  4428. },
  4429. "src": "https://iwb.cocorobo.cn/"
  4430. })
  4431. _box.appendChild(_iframe);
  4432. _box.appendChild(_jie);
  4433. _formdiv = new U.UF.UI.form(
  4434. "电子白板-" + _username,
  4435. _box, {
  4436. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4437. "style": {
  4438. "width": "90%",
  4439. "height": "90%",
  4440. "overflow": 'hidden'
  4441. },
  4442. "onresize": function () { }
  4443. }, {
  4444. closecallback: function () { }
  4445. }, {
  4446. "style": {
  4447. "height": "36px"
  4448. }
  4449. }).form; //创建窗体
  4450. _taskbar = {
  4451. "id": str + _formdiv.id,
  4452. "style": {
  4453. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4454. },
  4455. "name": "电子白板",
  4456. "forms": _formdiv,
  4457. "click": function () {
  4458. U.MD.D.I.openApplication(str, obj, info);
  4459. }
  4460. }
  4461. break;
  4462. case "mind":
  4463. aTool = 3;
  4464. _iframe = $$("iframe", {
  4465. "frameborder": "no",
  4466. "border": "0",
  4467. "scrolling ": "no",
  4468. "style": {
  4469. "cssText": "border:0;width:100%;height:100%"
  4470. },
  4471. "src": "/kityminder-editor/dist/index.html"
  4472. })
  4473. _box.appendChild(_iframe);
  4474. _box.appendChild(_jie);
  4475. _formdiv = new U.UF.UI.form(
  4476. "思维导图-" + _username,
  4477. _box, { //"/jsmind/example/demo.html"
  4478. "id": "mind" + cid + stage + task + tool + _userid,
  4479. "style": {
  4480. "width": "90%",
  4481. "height": "90%",
  4482. "overflow": 'hidden'
  4483. },
  4484. "onresize": function () { }
  4485. }, {
  4486. closecallback: function () { }
  4487. }, {
  4488. "style": {
  4489. "height": "36px"
  4490. }
  4491. }).form; //创建窗体
  4492. _taskbar = {
  4493. "id": str + _formdiv.id,
  4494. "style": {
  4495. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4496. },
  4497. "name": "思维导图",
  4498. "forms": _formdiv,
  4499. "click": function () {
  4500. U.MD.D.I.openApplication(str, obj, info);
  4501. }
  4502. }
  4503. break;
  4504. case "MindMap":
  4505. aTool = 3;
  4506. _iframe = $$("iframe", {
  4507. "frameborder": "no",
  4508. "border": "0",
  4509. "scrolling ": "no",
  4510. "style": {
  4511. "cssText": "border:0;width:100%;height:100%"
  4512. },
  4513. "src": "//cloud.cocorobo.cn/mind/"
  4514. })
  4515. _box.appendChild(_iframe);
  4516. _box.appendChild(_jie);
  4517. _formdiv = new U.UF.UI.form(
  4518. "思维导图-" + _username,
  4519. _box, { //"/jsmind/example/demo.html"
  4520. "id": "mind" + cid + stage + task + tool + _userid,
  4521. "style": {
  4522. "width": "90%",
  4523. "height": "90%",
  4524. "overflow": 'hidden'
  4525. },
  4526. "onresize": function () { }
  4527. }, {
  4528. closecallback: function () { }
  4529. }, {
  4530. "style": {
  4531. "height": "36px"
  4532. }
  4533. }).form; //创建窗体
  4534. _taskbar = {
  4535. "id": str + _formdiv.id,
  4536. "style": {
  4537. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4538. },
  4539. "name": "思维导图",
  4540. "forms": _formdiv,
  4541. "click": function () {
  4542. U.MD.D.I.openApplication(str, obj, info);
  4543. }
  4544. }
  4545. break;
  4546. case "doc":
  4547. aTool = 6;
  4548. _iframe = $$("iframe", {
  4549. "frameborder": "no",
  4550. "border": "0",
  4551. "scrolling ": "no",
  4552. "style": {
  4553. "cssText": "border:0;width:100%;height:100%"
  4554. },
  4555. "src": "/Office/Word/WordEditArea.htm"
  4556. })
  4557. _box.appendChild(_iframe);
  4558. _box.appendChild(_jie);
  4559. _formdiv = new U.UF.UI.form(
  4560. "协同文档-" + _username,
  4561. _box, {
  4562. "id": "doc" + cid + stage + task + tool + _userid,
  4563. "style": {
  4564. "width": "90%",
  4565. "height": "90%",
  4566. "overflow": 'hidden'
  4567. },
  4568. "onresize": function () { }
  4569. }, {
  4570. closecallback: function () { }
  4571. }, {
  4572. "style": {
  4573. "height": "36px"
  4574. }
  4575. }).form; //创建窗体
  4576. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  4577. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4578. })
  4579. _taskbar = {
  4580. "id": str + _formdiv.id,
  4581. "style": {
  4582. "backgroundImage": "url(/img/icon/doc.png)"
  4583. },
  4584. "name": "协同文档",
  4585. "forms": _formdiv,
  4586. "click": function () {
  4587. U.MD.D.I.openApplication(str, obj, info);
  4588. }
  4589. }
  4590. break;
  4591. case "mindNetwork": //好友打开
  4592. aTool = 7;
  4593. _iframe = $$("iframe", {
  4594. "webkitallowfullscreen": "",
  4595. "mozallowfullscreen": "",
  4596. "allowfullscreen": "",
  4597. "frameborder": "no",
  4598. "border": "0",
  4599. "scrolling ": "no",
  4600. "style": {
  4601. "cssText": "border:0; width:100%; height:100%;"
  4602. },
  4603. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  4604. })
  4605. _box.appendChild(_iframe);
  4606. _box.appendChild(_jie);
  4607. _formdiv = new U.UF.UI.form(
  4608. "思维网格-" + _username,
  4609. _box, {
  4610. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  4611. "style": {
  4612. "width": "90%",
  4613. "height": "90%",
  4614. "overflow": 'hidden'
  4615. },
  4616. "onresize": function () { }
  4617. }, {
  4618. closecallback: function () { }
  4619. }, {
  4620. "style": {
  4621. "height": "36px"
  4622. }
  4623. }).form; //创建窗体
  4624. _taskbar = {
  4625. "id": str + _formdiv.id,
  4626. "style": {
  4627. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  4628. },
  4629. "name": "思维网格",
  4630. "forms": _formdiv,
  4631. "click": function () {
  4632. U.MD.D.I.openApplication(str, obj, info);
  4633. }
  4634. }
  4635. break;
  4636. case "courseDesign":
  4637. _iframe = $$("iframe", {
  4638. "webkitallowfullscreen": "",
  4639. "mozallowfullscreen": "",
  4640. "allowfullscreen": "",
  4641. "frameborder": "no",
  4642. "border": "0",
  4643. "scrolling ": "no",
  4644. "style": {
  4645. "cssText": "border:0; width:100%; height:100%;"
  4646. },
  4647. "src": "/course-design-vue"
  4648. })
  4649. _box.appendChild(_iframe);
  4650. _box.appendChild(_jie);
  4651. _formdiv = new U.UF.UI.form(
  4652. "项目设计-" + _username,
  4653. _box, {
  4654. "id": "courseDesign" + cid + stage + task + tool + _userid,
  4655. "style": {
  4656. "width": "90%",
  4657. "height": "90%",
  4658. "overflow": 'hidden'
  4659. },
  4660. "onresize": function () { }
  4661. }, {
  4662. closecallback: function () { }
  4663. }, {
  4664. "style": {
  4665. "height": "36px"
  4666. }
  4667. }).form; //创建窗体
  4668. _taskbar = {
  4669. "id": str + _formdiv.id,
  4670. "style": {
  4671. "backgroundImage": "url(/img/icon/courseDesign.png)"
  4672. },
  4673. "name": "项目设计",
  4674. "forms": _formdiv,
  4675. "click": function () {
  4676. U.MD.D.I.openApplication(str, obj, info);
  4677. }
  4678. }
  4679. break;
  4680. }
  4681. const script1 = document.createElement("script");
  4682. script1.type = "text/javascript";
  4683. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  4684. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  4685. const script2 = document.createElement("script");
  4686. script2.type = "text/javascript";
  4687. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  4688. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  4689. const script3 = document.createElement("script");
  4690. script3.type = "text/javascript";
  4691. script3.charset = "UTF-8";
  4692. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  4693. const script4 = document.createElement("script");
  4694. script4.type = "text/javascript";
  4695. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  4696. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
  4697. if (_iframe) {
  4698. if (str == 'doc') {
  4699. _iframe = _formdiv.querySelector('iframe')
  4700. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4701. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  4702. _iframe.contentWindow.document.body.appendChild(script1);
  4703. _iframe.contentWindow.document.body.appendChild(script2);
  4704. // _iframe.contentWindow.document.body.appendChild(script3);
  4705. _iframe.contentWindow.document.body.appendChild(script4);
  4706. })
  4707. if (onloadListener) {
  4708. _iframe.contentDocument.location.reload()
  4709. } else {
  4710. _iframe.contentDocument.location.reload()
  4711. }
  4712. } else if (str == 'courseDesign') {
  4713. U.UF.DL.iframeLoad(_iframe, function () {
  4714. // _iframe.contentWindow.U.MD.O.W.load();
  4715. // _iframe.contentWindow.document.body.appendChild(script1);
  4716. _iframe.contentWindow.document.body.appendChild(script2);
  4717. _iframe.contentWindow.document.body.appendChild(script4);
  4718. })
  4719. } else if (str == 'mind') {
  4720. _iframe = _formdiv.querySelector('iframe')
  4721. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  4722. //
  4723. _iframe.contentWindow.document.body.appendChild(script1);
  4724. _iframe.contentWindow.document.body.appendChild(script2);
  4725. _iframe.contentWindow.document.body.appendChild(script4);
  4726. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  4727. })
  4728. if (onloadListener) {
  4729. _iframe.contentDocument.location.reload()
  4730. } else {
  4731. _iframe.contentDocument.location.reload()
  4732. }
  4733. } else if (str == 'whiteboard') {
  4734. _iframe = _formdiv.querySelector('iframe')
  4735. let onloadListener = _iframe.onload = () => {
  4736. _iframe.contentWindow.document.body.appendChild(script1);
  4737. _iframe.contentWindow.document.body.appendChild(script2);
  4738. _iframe.contentWindow.document.body.appendChild(script4);
  4739. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  4740. };
  4741. if (onloadListener) {
  4742. _iframe.contentDocument.location.reload()
  4743. } else {
  4744. _iframe.contentDocument.location.reload()
  4745. }
  4746. } else {
  4747. _iframe.onload = () => {
  4748. _iframe.contentWindow.document.body.appendChild(script1);
  4749. _iframe.contentWindow.document.body.appendChild(script2);
  4750. // _iframe.contentWindow.document.body.appendChild(script3);
  4751. _iframe.contentWindow.document.body.appendChild(script4);
  4752. };
  4753. }
  4754. _jie.onclick = async () => {
  4755. let text = ''
  4756. if (aTool == 1) {
  4757. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  4758. } else if (aTool == 6) {
  4759. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  4760. } else if (aTool == 3) {
  4761. text = await U.MD.D.I.getEditorContent(_iframe);
  4762. }
  4763. _loading.style.display = 'flex'
  4764. console.log(_loading);
  4765. var _ajs = _iframe.contentWindow.document.createElement("script");
  4766. _ajs.type = "text/javascript";
  4767. _ajs.innerHTML =
  4768. // 'console.log(' + _loading + ');\n' +
  4769. 'var _js = document.createElement("script");\n' +
  4770. '_js.type="text/javascript";\n' +
  4771. '_js.charset="UTF-8";\n' +
  4772. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  4773. "_js.onload = function(){\n" +
  4774. ' var a = document.getElementsByTagName("img")\n' +
  4775. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  4776. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  4777. '  var base64Url = canvas.toDataURL("image/png");\n' +
  4778. 'var base64 = "<img src=" + base64Url + " />"\n' +
  4779. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  4780. "beforeUpload_shishi(file," +
  4781. "'" +
  4782. _userid +
  4783. "'" +
  4784. ", " +
  4785. "'" +
  4786. _cid +
  4787. "'" +
  4788. ", " +
  4789. "'" +
  4790. _stage +
  4791. "'" +
  4792. ", " +
  4793. "'" +
  4794. _task +
  4795. "'" +
  4796. ", " +
  4797. "'" +
  4798. _tool +
  4799. "'" +
  4800. ", " +
  4801. "'" +
  4802. str + '_loadLi' + _userid +
  4803. "'" +
  4804. ", " +
  4805. "'" +
  4806. aTool +
  4807. "'" +
  4808. ", " +
  4809. "`" +
  4810. text +
  4811. "`" +
  4812. ")\n" +
  4813. " });\n" +
  4814. "}\n" +
  4815. "document.head.appendChild(_js);\n";
  4816. _iframe.contentWindow.document.head.appendChild(_ajs);
  4817. }
  4818. }
  4819. }
  4820. U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
  4821. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  4822. _formdiv, //创建任务栏时同时弹出的窗体元素。
  4823. _userid = student.userid, //登录用户id
  4824. _username = student.student //用户名字
  4825. let _iframe;
  4826. let _cid = cid,
  4827. _stage = stage,
  4828. _task = task,
  4829. _tool = tool;
  4830. var _jie = $$("div", {
  4831. "style": {
  4832. "position": "absolute",
  4833. "bottom": "50px",
  4834. "right": "50px",
  4835. "zIndex": "9999",
  4836. "backgroundColor": "#2268bc",
  4837. "color": "#fff",
  4838. "padding": "12px 20px",
  4839. "cursor": "pointer",
  4840. "borderRadius": "4px",
  4841. },
  4842. "innerHTML": "提交作业"
  4843. })
  4844. let aTool = ''
  4845. let _loading = document.createElement('div')
  4846. _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;"
  4847. // _loading.id = "";
  4848. let _lchild = document.createElement('div')
  4849. let _limg = document.createElement('img')
  4850. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  4851. _limg.style = "width: 26px;margin-right: 10px;"
  4852. _lchild.appendChild(_limg)
  4853. let _lspan = document.createElement('span')
  4854. _lspan.innerHTML = "上传中..."
  4855. _lchild.appendChild(_lspan)
  4856. _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%);"
  4857. _loading.appendChild(_lchild)
  4858. var _box = $$('div', {
  4859. "style": {
  4860. "position": "relative",
  4861. "width": "100%",
  4862. "height": "100%",
  4863. },
  4864. })
  4865. _box.appendChild(_loading)
  4866. _box.id = str + '_loadLi' + _userid
  4867. switch (str) {
  4868. case "whiteboard":
  4869. aTool = 1;
  4870. _iframe = $$("iframe", {
  4871. "frameborder": "no",
  4872. "border": "0",
  4873. "scrolling ": "no",
  4874. "style": {
  4875. "cssText": "border:0;width:100%;height:100%"
  4876. },
  4877. "src": "https://iwb.cocorobo.cn/"
  4878. })
  4879. _box.appendChild(_iframe);
  4880. _box.appendChild(_jie);
  4881. _formdiv = new U.UF.UI.form(
  4882. "电子白板-" + _username,
  4883. _box, {
  4884. "id": "whiteboard" + cid + stage + task + tool + _userid,
  4885. "style": {
  4886. "width": "90%",
  4887. "height": "90%",
  4888. "overflow": 'hidden'
  4889. },
  4890. "onresize": function () { }
  4891. }, {
  4892. closecallback: function () { }
  4893. }, {
  4894. "style": {
  4895. "height": "36px"
  4896. }
  4897. }).form; //创建窗体
  4898. _taskbar = {
  4899. "id": str + _formdiv.id,
  4900. "style": {
  4901. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  4902. },
  4903. "name": "电子白板",
  4904. "forms": _formdiv,
  4905. "click": function () {
  4906. U.MD.D.I.openApplication(str, obj, info);
  4907. }
  4908. }
  4909. break;
  4910. case "mind":
  4911. aTool = 3;
  4912. _iframe = $$("iframe", {
  4913. "frameborder": "no",
  4914. "border": "0",
  4915. "scrolling ": "no",
  4916. "style": {
  4917. "cssText": "border:0;width:100%;height:100%"
  4918. },
  4919. "src": "/kityminder-editor/dist/index.html"
  4920. })
  4921. _box.appendChild(_iframe);
  4922. _box.appendChild(_jie);
  4923. _formdiv = new U.UF.UI.form(
  4924. "思维导图-" + _username,
  4925. _box, { //"/jsmind/example/demo.html"
  4926. "id": "mind" + cid + stage + task + tool + _userid,
  4927. "style": {
  4928. "width": "90%",
  4929. "height": "90%",
  4930. "overflow": 'hidden'
  4931. },
  4932. "onresize": function () { }
  4933. }, {
  4934. closecallback: function () { }
  4935. }, {
  4936. "style": {
  4937. "height": "36px"
  4938. }
  4939. }).form; //创建窗体
  4940. _taskbar = {
  4941. "id": str + _formdiv.id,
  4942. "style": {
  4943. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4944. },
  4945. "name": "思维导图",
  4946. "forms": _formdiv,
  4947. "click": function () {
  4948. U.MD.D.I.openApplication(str, obj, info);
  4949. }
  4950. }
  4951. break;
  4952. case "MindMap":
  4953. aTool = 3;
  4954. _iframe = $$("iframe", {
  4955. "frameborder": "no",
  4956. "border": "0",
  4957. "scrolling ": "no",
  4958. "style": {
  4959. "cssText": "border:0;width:100%;height:100%"
  4960. },
  4961. "src": "//cloud.cocorobo.cn/mind/"
  4962. })
  4963. _box.appendChild(_iframe);
  4964. _box.appendChild(_jie);
  4965. _formdiv = new U.UF.UI.form(
  4966. "思维导图-" + _username,
  4967. _box, { //"/jsmind/example/demo.html"
  4968. "id": "mind" + cid + stage + task + tool + _userid,
  4969. "style": {
  4970. "width": "90%",
  4971. "height": "90%",
  4972. "overflow": 'hidden'
  4973. },
  4974. "onresize": function () { }
  4975. }, {
  4976. closecallback: function () { }
  4977. }, {
  4978. "style": {
  4979. "height": "36px"
  4980. }
  4981. }).form; //创建窗体
  4982. _taskbar = {
  4983. "id": str + _formdiv.id,
  4984. "style": {
  4985. "backgroundImage": "url(/img/icon/mindMapping.png)"
  4986. },
  4987. "name": "思维导图",
  4988. "forms": _formdiv,
  4989. "click": function () {
  4990. U.MD.D.I.openApplication(str, obj, info);
  4991. }
  4992. }
  4993. break;
  4994. case "doc":
  4995. aTool = 6;
  4996. _iframe = $$("iframe", {
  4997. "frameborder": "no",
  4998. "border": "0",
  4999. "scrolling ": "no",
  5000. "style": {
  5001. "cssText": "border:0;width:100%;height:100%"
  5002. },
  5003. "src": "/Office/Word/WordEditArea.htm"
  5004. })
  5005. _box.appendChild(_iframe);
  5006. _box.appendChild(_jie);
  5007. _formdiv = new U.UF.UI.form(
  5008. "协同文档-" + _username,
  5009. _box, {
  5010. "id": "doc" + cid + stage + task + tool + _userid,
  5011. "style": {
  5012. "width": "90%",
  5013. "height": "90%",
  5014. "overflow": 'hidden'
  5015. },
  5016. "onresize": function () { }
  5017. }, {
  5018. closecallback: function () { }
  5019. }, {
  5020. "style": {
  5021. "height": "36px"
  5022. }
  5023. }).form; //创建窗体
  5024. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5025. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5026. })
  5027. _taskbar = {
  5028. "id": str + _formdiv.id,
  5029. "style": {
  5030. "backgroundImage": "url(/img/icon/doc.png)"
  5031. },
  5032. "name": "协同文档",
  5033. "forms": _formdiv,
  5034. "click": function () {
  5035. U.MD.D.I.openApplication(str, obj, info);
  5036. }
  5037. }
  5038. break;
  5039. case "mindNetwork": //好友打开
  5040. aTool = 7;
  5041. _iframe = $$("iframe", {
  5042. "webkitallowfullscreen": "",
  5043. "mozallowfullscreen": "",
  5044. "allowfullscreen": "",
  5045. "frameborder": "no",
  5046. "border": "0",
  5047. "scrolling ": "no",
  5048. "style": {
  5049. "cssText": "border:0; width:100%; height:100%;"
  5050. },
  5051. "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/Grid?userid=" + _userid
  5052. })
  5053. _box.appendChild(_iframe);
  5054. _box.appendChild(_jie);
  5055. _formdiv = new U.UF.UI.form(
  5056. "思维网格-" + _username,
  5057. _box, {
  5058. "id": "mindNetwork" + cid + stage + task + tool + _userid,
  5059. "style": {
  5060. "width": "90%",
  5061. "height": "90%",
  5062. "overflow": 'hidden'
  5063. },
  5064. "onresize": function () { }
  5065. }, {
  5066. closecallback: function () { }
  5067. }, {
  5068. "style": {
  5069. "height": "36px"
  5070. }
  5071. }).form; //创建窗体
  5072. _taskbar = {
  5073. "id": str + _formdiv.id,
  5074. "style": {
  5075. "backgroundImage": "url(/img/icon/mindNetwork.png)"
  5076. },
  5077. "name": "思维网格",
  5078. "forms": _formdiv,
  5079. "click": function () {
  5080. U.MD.D.I.openApplication(str, obj, info);
  5081. }
  5082. }
  5083. break;
  5084. case "courseDesign":
  5085. _iframe = $$("iframe", {
  5086. "webkitallowfullscreen": "",
  5087. "mozallowfullscreen": "",
  5088. "allowfullscreen": "",
  5089. "frameborder": "no",
  5090. "border": "0",
  5091. "scrolling ": "no",
  5092. "style": {
  5093. "cssText": "border:0; width:100%; height:100%;"
  5094. },
  5095. "src": "/course-design-vue"
  5096. })
  5097. _box.appendChild(_iframe);
  5098. _box.appendChild(_jie);
  5099. _formdiv = new U.UF.UI.form(
  5100. "项目设计-" + _username,
  5101. _box, {
  5102. "id": "courseDesign" + cid + stage + task + tool + _userid,
  5103. "style": {
  5104. "width": "90%",
  5105. "height": "90%",
  5106. "overflow": 'hidden'
  5107. },
  5108. "onresize": function () { }
  5109. }, {
  5110. closecallback: function () { }
  5111. }, {
  5112. "style": {
  5113. "height": "36px"
  5114. }
  5115. }).form; //创建窗体
  5116. _taskbar = {
  5117. "id": str + _formdiv.id,
  5118. "style": {
  5119. "backgroundImage": "url(/img/icon/courseDesign.png)"
  5120. },
  5121. "name": "项目设计",
  5122. "forms": _formdiv,
  5123. "click": function () {
  5124. U.MD.D.I.openApplication(str, obj, info);
  5125. }
  5126. }
  5127. break;
  5128. }
  5129. const script1 = document.createElement("script");
  5130. script1.type = "text/javascript";
  5131. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5132. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5133. const script2 = document.createElement("script");
  5134. script2.type = "text/javascript";
  5135. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5136. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5137. const script3 = document.createElement("script");
  5138. script3.type = "text/javascript";
  5139. script3.charset = "UTF-8";
  5140. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5141. const script4 = document.createElement("script");
  5142. script4.type = "text/javascript";
  5143. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
  5144. script4.src = window.origin + "/js/Common/jietu2E.js";
  5145. if (_iframe) {
  5146. if (str == 'doc') {
  5147. _iframe = _formdiv.querySelector('iframe')
  5148. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5149. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
  5150. _iframe.contentWindow.document.body.appendChild(script1);
  5151. _iframe.contentWindow.document.body.appendChild(script2);
  5152. // _iframe.contentWindow.document.body.appendChild(script3);
  5153. _iframe.contentWindow.document.body.appendChild(script4);
  5154. })
  5155. if (onloadListener) {
  5156. _iframe.contentDocument.location.reload()
  5157. } else {
  5158. _iframe.contentDocument.location.reload()
  5159. }
  5160. } else if (str == 'courseDesign') {
  5161. U.UF.DL.iframeLoad(_iframe, function () {
  5162. // _iframe.contentWindow.U.MD.O.W.load();
  5163. // _iframe.contentWindow.document.body.appendChild(script1);
  5164. _iframe.contentWindow.document.body.appendChild(script2);
  5165. _iframe.contentWindow.document.body.appendChild(script4);
  5166. })
  5167. } else if (str == 'mind') {
  5168. _iframe = _formdiv.querySelector('iframe')
  5169. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5170. //
  5171. _iframe.contentWindow.document.body.appendChild(script1);
  5172. _iframe.contentWindow.document.body.appendChild(script2);
  5173. _iframe.contentWindow.document.body.appendChild(script4);
  5174. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
  5175. })
  5176. if (onloadListener) {
  5177. _iframe.contentDocument.location.reload()
  5178. } else {
  5179. _iframe.contentDocument.location.reload()
  5180. }
  5181. } else if (str == 'whiteboard') {
  5182. _iframe = _formdiv.querySelector('iframe')
  5183. let onloadListener = _iframe.onload = () => {
  5184. _iframe.contentWindow.document.body.appendChild(script1);
  5185. _iframe.contentWindow.document.body.appendChild(script2);
  5186. _iframe.contentWindow.document.body.appendChild(script4);
  5187. U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
  5188. };
  5189. if (onloadListener) {
  5190. _iframe.contentDocument.location.reload()
  5191. } else {
  5192. _iframe.contentDocument.location.reload()
  5193. }
  5194. } else {
  5195. _iframe.onload = () => {
  5196. _iframe.contentWindow.document.body.appendChild(script1);
  5197. _iframe.contentWindow.document.body.appendChild(script2);
  5198. // _iframe.contentWindow.document.body.appendChild(script3);
  5199. _iframe.contentWindow.document.body.appendChild(script4);
  5200. };
  5201. }
  5202. _jie.onclick = async () => {
  5203. let text = ''
  5204. if (aTool == 1) {
  5205. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  5206. } else if (aTool == 6) {
  5207. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5208. } else if (aTool == 3) {
  5209. text = await U.MD.D.I.getEditorContent(_iframe);
  5210. }
  5211. _loading.style.display = 'flex'
  5212. console.log(_loading);
  5213. var _ajs = _iframe.contentWindow.document.createElement("script");
  5214. _ajs.type = "text/javascript";
  5215. _ajs.innerHTML =
  5216. // 'console.log(' + _loading + ');\n' +
  5217. 'var _js = document.createElement("script");\n' +
  5218. '_js.type="text/javascript";\n' +
  5219. '_js.charset="UTF-8";\n' +
  5220. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5221. "_js.onload = function(){\n" +
  5222. ' var a = document.getElementsByTagName("img")\n' +
  5223. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5224. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5225. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5226. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5227. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5228. "beforeUpload_shishi(file," +
  5229. "'" +
  5230. _userid +
  5231. "'" +
  5232. ", " +
  5233. "'" +
  5234. _cid +
  5235. "'" +
  5236. ", " +
  5237. "'" +
  5238. _stage +
  5239. "'" +
  5240. ", " +
  5241. "'" +
  5242. _task +
  5243. "'" +
  5244. ", " +
  5245. "'" +
  5246. _tool +
  5247. "'" +
  5248. ", " +
  5249. "'" +
  5250. str + '_loadLi' + _userid +
  5251. "'" +
  5252. ", " +
  5253. "'" +
  5254. aTool +
  5255. "'" +
  5256. ", " +
  5257. "`" +
  5258. text +
  5259. "`" +
  5260. ")\n" +
  5261. " });\n" +
  5262. "}\n" +
  5263. "document.head.appendChild(_js);\n";
  5264. _iframe.contentWindow.document.head.appendChild(_ajs);
  5265. }
  5266. }
  5267. }
  5268. U.MD.D.I.getEditorContent = function (iframe) {
  5269. return new Promise((resolve, reject) => {
  5270. iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
  5271. console.log(content);
  5272. resolve(content)
  5273. });
  5274. });
  5275. }
  5276. U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
  5277. // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
  5278. // if (res.value[0].length > 0) {
  5279. // // resolve(res.value[0][0].text);
  5280. // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
  5281. // $(fileInput).val('');
  5282. // });
  5283. // }
  5284. // }, [], { "type": "GET", "withCredentials": true });
  5285. var xmlhttp;
  5286. var Mac, Sn, DeviceId
  5287. if (window.XMLHttpRequest) {
  5288. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  5289. xmlhttp = new XMLHttpRequest();
  5290. }
  5291. else {
  5292. // IE6, IE5 浏览器执行代码
  5293. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  5294. }
  5295. xmlhttp.onreadystatechange = function () {
  5296. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  5297. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  5298. // resolve(res.value[0][0].text);
  5299. if (type == '2') {
  5300. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  5301. $(fileInput).val('');
  5302. });
  5303. } else if (type == '3') {
  5304. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  5305. }
  5306. } else {
  5307. U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
  5308. }
  5309. }
  5310. }
  5311. xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  5312. xmlhttp.send();
  5313. }
  5314. U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
  5315. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5316. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5317. _userinfo = US.userInfo, //登录用户信息
  5318. _userid = US.userInfo.userid //登录用户id
  5319. let _iframe;
  5320. let _cid = cid,
  5321. _stage = stage,
  5322. _task = task,
  5323. _tool = tool;
  5324. var _jie = $$("div", {
  5325. "style": {
  5326. "position": "absolute",
  5327. "bottom": "50px",
  5328. "right": "50px",
  5329. "zIndex": "9999",
  5330. "backgroundColor": "#2268bc",
  5331. "color": "#fff",
  5332. "padding": "12px 20px",
  5333. "cursor": "pointer",
  5334. "borderRadius": "4px",
  5335. },
  5336. "innerHTML": "确认并提交"
  5337. })
  5338. let aTool = ''
  5339. let _loading = document.createElement('div')
  5340. _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;"
  5341. // _loading.id = "";
  5342. let _lchild = document.createElement('div')
  5343. let _limg = document.createElement('img')
  5344. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5345. _limg.style = "width: 26px;margin-right: 10px;"
  5346. _lchild.appendChild(_limg)
  5347. let _lspan = document.createElement('span')
  5348. _lspan.innerHTML = "上传中..."
  5349. _lchild.appendChild(_lspan)
  5350. _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%);"
  5351. _loading.appendChild(_lchild)
  5352. var _box = $$('div', {
  5353. "style": {
  5354. "position": "relative",
  5355. "width": "100%",
  5356. "height": "100%",
  5357. },
  5358. })
  5359. _box.appendChild(_loading)
  5360. _box.id = str + '_loadLi'
  5361. switch (str) {
  5362. case "whiteboard":
  5363. aTool = 1;
  5364. _iframe = $$("iframe", {
  5365. "frameborder": "no",
  5366. "border": "0",
  5367. "scrolling ": "no",
  5368. "style": {
  5369. "cssText": "border:0;width:100%;height:100%"
  5370. },
  5371. "src": "https://iwb.cocorobo.cn/"
  5372. })
  5373. _box.appendChild(_iframe);
  5374. _box.appendChild(_jie);
  5375. _formdiv = new U.UF.UI.form(
  5376. "电子白板",
  5377. _box, {
  5378. "id": "whiteboards" + cid + stage + task + tool,
  5379. "style": {
  5380. "width": "90%",
  5381. "height": "90%",
  5382. "overflow": 'hidden'
  5383. },
  5384. "onresize": function () { }
  5385. }, {
  5386. closecallback: function () { }
  5387. }, {
  5388. "style": {
  5389. "height": "36px"
  5390. }
  5391. }).form; //创建窗体
  5392. _taskbar = {
  5393. "id": str + _formdiv.id,
  5394. "style": {
  5395. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5396. },
  5397. "name": "电子白板",
  5398. "forms": _formdiv,
  5399. "click": function () {
  5400. U.MD.D.I.openApplication(str, obj, info);
  5401. }
  5402. }
  5403. break;
  5404. case "mind":
  5405. aTool = 3;
  5406. _iframe = $$("iframe", {
  5407. "frameborder": "no",
  5408. "border": "0",
  5409. "scrolling ": "no",
  5410. "style": {
  5411. "cssText": "border:0;width:100%;height:100%"
  5412. },
  5413. "src": "/kityminder-editor/dist/index.html"
  5414. });
  5415. _box.appendChild(_iframe);
  5416. _box.appendChild(_jie);
  5417. _formdiv = new U.UF.UI.form(
  5418. "思维导图",
  5419. _box, { //"/jsmind/example/demo.html"
  5420. "id": "minds" + cid + stage + task + tool,
  5421. "style": {
  5422. "width": "90%",
  5423. "height": "90%",
  5424. "overflow": 'hidden'
  5425. },
  5426. "onresize": function () { }
  5427. }, {
  5428. closecallback: function () { }
  5429. }, {
  5430. "style": {
  5431. "height": "36px"
  5432. }
  5433. }).form; //创建窗体
  5434. _taskbar = {
  5435. "id": str + _formdiv.id,
  5436. "style": {
  5437. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5438. },
  5439. "name": "思维导图",
  5440. "forms": _formdiv,
  5441. "click": function () {
  5442. U.MD.D.I.openApplication(str, obj, info);
  5443. }
  5444. }
  5445. break;
  5446. case "doc":
  5447. aTool = 6;
  5448. _iframe = $$("iframe", {
  5449. "frameborder": "no",
  5450. "border": "0",
  5451. "scrolling ": "no",
  5452. "style": {
  5453. "cssText": "border:0;width:100%;height:100%"
  5454. },
  5455. "src": "/Office/Word/WordEditArea.htm"
  5456. })
  5457. _box.appendChild(_iframe);
  5458. _box.appendChild(_jie);
  5459. _formdiv = new U.UF.UI.form(
  5460. "协同文档",
  5461. _box, {
  5462. "id": "docs" + cid + stage + task + tool,
  5463. "style": {
  5464. "width": "90%",
  5465. "height": "90%",
  5466. "overflow": 'hidden'
  5467. },
  5468. "onresize": function () { }
  5469. }, {
  5470. closecallback: function () { }
  5471. }, {
  5472. "style": {
  5473. "height": "36px"
  5474. }
  5475. }).form; //创建窗体
  5476. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5477. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5478. })
  5479. _taskbar = {
  5480. "id": str + _formdiv.id,
  5481. "style": {
  5482. "backgroundImage": "url(/img/icon/doc.png)"
  5483. },
  5484. "name": "协同文档",
  5485. "forms": _formdiv,
  5486. "click": function () {
  5487. U.MD.D.I.openApplication(str, obj, info);
  5488. }
  5489. }
  5490. break;
  5491. }
  5492. const script1 = document.createElement("script");
  5493. script1.type = "text/javascript";
  5494. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5495. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5496. const script2 = document.createElement("script");
  5497. script2.type = "text/javascript";
  5498. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5499. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5500. const script3 = document.createElement("script");
  5501. script3.type = "text/javascript";
  5502. script3.charset = "UTF-8";
  5503. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5504. const script4 = document.createElement("script");
  5505. script4.type = "text/javascript";
  5506. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5507. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
  5508. if (_iframe) {
  5509. if (str == 'doc') {
  5510. _iframe = _formdiv.querySelector('iframe')
  5511. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5512. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5513. _iframe.contentWindow.document.body.appendChild(script1);
  5514. _iframe.contentWindow.document.body.appendChild(script2);
  5515. // _iframe.contentWindow.document.body.appendChild(script3);
  5516. _iframe.contentWindow.document.body.appendChild(script4);
  5517. })
  5518. if (onloadListener) {
  5519. _iframe.contentDocument.location.reload()
  5520. } else {
  5521. _iframe.contentDocument.location.reload()
  5522. }
  5523. } else if (str == 'mind') {
  5524. _iframe = _formdiv.querySelector('iframe')
  5525. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5526. _iframe.contentWindow.document.body.appendChild(script1);
  5527. _iframe.contentWindow.document.body.appendChild(script2);
  5528. _iframe.contentWindow.document.body.appendChild(script4);
  5529. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5530. })
  5531. if (onloadListener) {
  5532. _iframe.contentDocument.location.reload()
  5533. } else {
  5534. _iframe.contentDocument.location.reload()
  5535. }
  5536. } else {
  5537. _iframe.onload = () => {
  5538. _iframe.contentWindow.document.body.appendChild(script1);
  5539. _iframe.contentWindow.document.body.appendChild(script2);
  5540. // _iframe.contentWindow.document.body.appendChild(script3);
  5541. _iframe.contentWindow.document.body.appendChild(script4);
  5542. };
  5543. }
  5544. _jie.onclick = async () => {
  5545. let text = ''
  5546. if (aTool == 6) {
  5547. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5548. } else if (aTool == 3) {
  5549. text = await U.MD.D.I.getEditorContent(_iframe);
  5550. }
  5551. _loading.style.display = 'flex'
  5552. console.log(_loading);
  5553. var _ajs = _iframe.contentWindow.document.createElement("script");
  5554. _ajs.type = "text/javascript";
  5555. _ajs.innerHTML =
  5556. // 'console.log(' + _loading + ');\n' +
  5557. 'var _js = document.createElement("script");\n' +
  5558. '_js.type="text/javascript";\n' +
  5559. '_js.charset="UTF-8";\n' +
  5560. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5561. "_js.onload = function(){\n" +
  5562. ' var a = document.getElementsByTagName("img")\n' +
  5563. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5564. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5565. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5566. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5567. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5568. "beforeUpload_shishi(file," +
  5569. "'" +
  5570. _userid +
  5571. "'" +
  5572. ", " +
  5573. "'" +
  5574. _cid +
  5575. "'" +
  5576. ", " +
  5577. "'" +
  5578. _stage +
  5579. "'" +
  5580. ", " +
  5581. "'" +
  5582. _task +
  5583. "'" +
  5584. ", " +
  5585. "'" +
  5586. _tool +
  5587. "'" +
  5588. ", " +
  5589. "'" +
  5590. str + '_loadLi' +
  5591. "'" +
  5592. ", " +
  5593. "'" +
  5594. aTool +
  5595. "'" +
  5596. ", " +
  5597. "`" +
  5598. text +
  5599. "`" +
  5600. ")\n" +
  5601. " });\n" +
  5602. "}\n" +
  5603. "document.head.appendChild(_js);\n";
  5604. _iframe.contentWindow.document.head.appendChild(_ajs);
  5605. }
  5606. }
  5607. //U.MD.D.I.openClick(str);
  5608. //如果有任务栏信息
  5609. // if (_taskbar) {
  5610. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5611. // }
  5612. }
  5613. U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
  5614. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5615. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5616. _userinfo = US.userInfo, //登录用户信息
  5617. _userid = US.userInfo.userid //登录用户id
  5618. let _iframe;
  5619. let _cid = cid,
  5620. _stage = stage,
  5621. _task = task,
  5622. _tool = tool;
  5623. var _jie = $$("div", {
  5624. "style": {
  5625. "position": "absolute",
  5626. "bottom": "50px",
  5627. "right": "50px",
  5628. "zIndex": "9999",
  5629. "backgroundColor": "#2268bc",
  5630. "color": "#fff",
  5631. "padding": "12px 20px",
  5632. "cursor": "pointer",
  5633. "borderRadius": "4px",
  5634. },
  5635. "innerHTML": "确认并提交"
  5636. })
  5637. let aTool = ''
  5638. let _loading = document.createElement('div')
  5639. _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;"
  5640. // _loading.id = "";
  5641. let _lchild = document.createElement('div')
  5642. let _limg = document.createElement('img')
  5643. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5644. _limg.style = "width: 26px;margin-right: 10px;"
  5645. _lchild.appendChild(_limg)
  5646. let _lspan = document.createElement('span')
  5647. _lspan.innerHTML = "上传中..."
  5648. _lchild.appendChild(_lspan)
  5649. _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%);"
  5650. _loading.appendChild(_lchild)
  5651. var _box = $$('div', {
  5652. "style": {
  5653. "position": "relative",
  5654. "width": "100%",
  5655. "height": "100%",
  5656. },
  5657. })
  5658. _box.appendChild(_loading)
  5659. _box.id = str + '_loadLi'
  5660. switch (str) {
  5661. case "whiteboard":
  5662. aTool = 1;
  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": "https://iwb.cocorobo.cn/"
  5671. })
  5672. _box.appendChild(_iframe);
  5673. _box.appendChild(_jie);
  5674. _formdiv = new U.UF.UI.form(
  5675. "电子白板",
  5676. _box, {
  5677. "id": "whiteboards" + 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. _taskbar = {
  5692. "id": str + _formdiv.id,
  5693. "style": {
  5694. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5695. },
  5696. "name": "电子白板",
  5697. "forms": _formdiv,
  5698. "click": function () {
  5699. U.MD.D.I.openApplication(str, obj, info);
  5700. }
  5701. }
  5702. break;
  5703. case "mind":
  5704. aTool = 3;
  5705. _iframe = $$("iframe", {
  5706. "frameborder": "no",
  5707. "border": "0",
  5708. "scrolling ": "no",
  5709. "style": {
  5710. "cssText": "border:0;width:100%;height:100%"
  5711. },
  5712. "src": "/kityminder-editor/dist/index.html"
  5713. });
  5714. _box.appendChild(_iframe);
  5715. _box.appendChild(_jie);
  5716. _formdiv = new U.UF.UI.form(
  5717. "思维导图",
  5718. _box, { //"/jsmind/example/demo.html"
  5719. "id": "minds" + cid + stage + task + tool,
  5720. "style": {
  5721. "width": "90%",
  5722. "height": "90%",
  5723. "overflow": 'hidden'
  5724. },
  5725. "onresize": function () { }
  5726. }, {
  5727. closecallback: function () { }
  5728. }, {
  5729. "style": {
  5730. "height": "36px"
  5731. }
  5732. }).form; //创建窗体
  5733. _taskbar = {
  5734. "id": str + _formdiv.id,
  5735. "style": {
  5736. "backgroundImage": "url(/img/icon/mindMapping.png)"
  5737. },
  5738. "name": "思维导图",
  5739. "forms": _formdiv,
  5740. "click": function () {
  5741. U.MD.D.I.openApplication(str, obj, info);
  5742. }
  5743. }
  5744. break;
  5745. case "doc":
  5746. aTool = 6;
  5747. _iframe = $$("iframe", {
  5748. "frameborder": "no",
  5749. "border": "0",
  5750. "scrolling ": "no",
  5751. "style": {
  5752. "cssText": "border:0;width:100%;height:100%"
  5753. },
  5754. "src": "/Office/Word/WordEditArea.htm"
  5755. })
  5756. _box.appendChild(_iframe);
  5757. _box.appendChild(_jie);
  5758. _formdiv = new U.UF.UI.form(
  5759. "协同文档",
  5760. _box, {
  5761. "id": "docs" + cid + stage + task + tool,
  5762. "style": {
  5763. "width": "90%",
  5764. "height": "90%",
  5765. "overflow": 'hidden'
  5766. },
  5767. "onresize": function () { }
  5768. }, {
  5769. closecallback: function () { }
  5770. }, {
  5771. "style": {
  5772. "height": "36px"
  5773. }
  5774. }).form; //创建窗体
  5775. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  5776. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5777. })
  5778. _taskbar = {
  5779. "id": str + _formdiv.id,
  5780. "style": {
  5781. "backgroundImage": "url(/img/icon/doc.png)"
  5782. },
  5783. "name": "协同文档",
  5784. "forms": _formdiv,
  5785. "click": function () {
  5786. U.MD.D.I.openApplication(str, obj, info);
  5787. }
  5788. }
  5789. break;
  5790. }
  5791. const script1 = document.createElement("script");
  5792. script1.type = "text/javascript";
  5793. // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
  5794. script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
  5795. const script2 = document.createElement("script");
  5796. script2.type = "text/javascript";
  5797. // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
  5798. script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
  5799. const script3 = document.createElement("script");
  5800. script3.type = "text/javascript";
  5801. script3.charset = "UTF-8";
  5802. script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
  5803. const script4 = document.createElement("script");
  5804. script4.type = "text/javascript";
  5805. // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
  5806. script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
  5807. if (_iframe) {
  5808. if (str == 'doc') {
  5809. _iframe = _formdiv.querySelector('iframe')
  5810. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5811. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  5812. _iframe.contentWindow.document.body.appendChild(script1);
  5813. _iframe.contentWindow.document.body.appendChild(script2);
  5814. // _iframe.contentWindow.document.body.appendChild(script3);
  5815. _iframe.contentWindow.document.body.appendChild(script4);
  5816. })
  5817. if (onloadListener) {
  5818. _iframe.contentDocument.location.reload()
  5819. } else {
  5820. _iframe.contentDocument.location.reload()
  5821. }
  5822. } else if (str == 'mind') {
  5823. _iframe = _formdiv.querySelector('iframe')
  5824. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  5825. _iframe.contentWindow.document.body.appendChild(script1);
  5826. _iframe.contentWindow.document.body.appendChild(script2);
  5827. _iframe.contentWindow.document.body.appendChild(script4);
  5828. U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
  5829. })
  5830. if (onloadListener) {
  5831. _iframe.contentDocument.location.reload()
  5832. } else {
  5833. _iframe.contentDocument.location.reload()
  5834. }
  5835. } else {
  5836. _iframe.onload = () => {
  5837. _iframe.contentWindow.document.body.appendChild(script1);
  5838. _iframe.contentWindow.document.body.appendChild(script2);
  5839. // _iframe.contentWindow.document.body.appendChild(script3);
  5840. _iframe.contentWindow.document.body.appendChild(script4);
  5841. };
  5842. }
  5843. _jie.onclick = async () => {
  5844. let text = ''
  5845. if (aTool == 6) {
  5846. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  5847. } else if (aTool == 3) {
  5848. text = await U.MD.D.I.getEditorContent(_iframe);
  5849. }
  5850. _loading.style.display = 'flex'
  5851. console.log(_loading);
  5852. var _ajs = _iframe.contentWindow.document.createElement("script");
  5853. _ajs.type = "text/javascript";
  5854. _ajs.innerHTML =
  5855. // 'console.log(' + _loading + ');\n' +
  5856. 'var _js = document.createElement("script");\n' +
  5857. '_js.type="text/javascript";\n' +
  5858. '_js.charset="UTF-8";\n' +
  5859. '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
  5860. "_js.onload = function(){\n" +
  5861. ' var a = document.getElementsByTagName("img")\n' +
  5862. ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
  5863. " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
  5864. '  var base64Url = canvas.toDataURL("image/png");\n' +
  5865. 'var base64 = "<img src=" + base64Url + " />"\n' +
  5866. 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
  5867. "beforeUpload_shishi(file," +
  5868. "'" +
  5869. _userid +
  5870. "'" +
  5871. ", " +
  5872. "'" +
  5873. _cid +
  5874. "'" +
  5875. ", " +
  5876. "'" +
  5877. _stage +
  5878. "'" +
  5879. ", " +
  5880. "'" +
  5881. _task +
  5882. "'" +
  5883. ", " +
  5884. "'" +
  5885. _tool +
  5886. "'" +
  5887. ", " +
  5888. "'" +
  5889. str + '_loadLi' +
  5890. "'" +
  5891. ", " +
  5892. "'" +
  5893. aTool +
  5894. "'" +
  5895. ", " +
  5896. "`" +
  5897. text +
  5898. "`" +
  5899. ")\n" +
  5900. " });\n" +
  5901. "}\n" +
  5902. "document.head.appendChild(_js);\n";
  5903. _iframe.contentWindow.document.head.appendChild(_ajs);
  5904. }
  5905. }
  5906. //U.MD.D.I.openClick(str);
  5907. //如果有任务栏信息
  5908. // if (_taskbar) {
  5909. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  5910. // }
  5911. }
  5912. U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
  5913. var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
  5914. _formdiv, //创建任务栏时同时弹出的窗体元素。
  5915. _userinfo = US.userInfo, //登录用户信息
  5916. _userid = US.userInfo.userid //登录用户id
  5917. let _iframe;
  5918. let _cid = cid,
  5919. _stage = stage,
  5920. _task = task,
  5921. _tool = tool;
  5922. var _jie = $$("div", {
  5923. "style": {
  5924. "position": "absolute",
  5925. "bottom": "50px",
  5926. "right": "50px",
  5927. "zIndex": "9999",
  5928. "backgroundColor": "#2268bc",
  5929. "color": "#fff",
  5930. "padding": "12px 20px",
  5931. "cursor": "pointer",
  5932. "borderRadius": "4px",
  5933. },
  5934. "innerHTML": "上传模板"
  5935. })
  5936. let aTool = ''
  5937. let _loading = document.createElement('div')
  5938. _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;"
  5939. // _loading.id = "";
  5940. let _lchild = document.createElement('div')
  5941. let _limg = document.createElement('img')
  5942. _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
  5943. _limg.style = "width: 26px;margin-right: 10px;"
  5944. _lchild.appendChild(_limg)
  5945. let _lspan = document.createElement('span')
  5946. _lspan.innerHTML = "上传中..."
  5947. _lchild.appendChild(_lspan)
  5948. _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%);"
  5949. _loading.appendChild(_lchild)
  5950. var _box = $$('div', {
  5951. "style": {
  5952. "position": "relative",
  5953. "width": "100%",
  5954. "height": "100%",
  5955. },
  5956. })
  5957. _box.appendChild(_loading)
  5958. _box.id = str + '_loadLi'
  5959. switch (str) {
  5960. case "whiteboard":
  5961. aTool = 1;
  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": "https://iwb.cocorobo.cn/"
  5970. })
  5971. _box.appendChild(_iframe);
  5972. _box.appendChild(_jie);
  5973. _formdiv = new U.UF.UI.form(
  5974. "电子白板",
  5975. _box, {
  5976. "id": "whiteboards" + 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. _taskbar = {
  5991. "id": str + _formdiv.id,
  5992. "style": {
  5993. "backgroundImage": "url(/img/icon/whiteBoard.png)"
  5994. },
  5995. "name": "电子白板",
  5996. "forms": _formdiv,
  5997. "click": function () {
  5998. U.MD.D.I.openApplication(str, obj, info);
  5999. }
  6000. }
  6001. break;
  6002. case "mind":
  6003. aTool = 3;
  6004. _iframe = $$("iframe", {
  6005. "frameborder": "no",
  6006. "border": "0",
  6007. "scrolling ": "no",
  6008. "style": {
  6009. "cssText": "border:0;width:100%;height:100%"
  6010. },
  6011. "src": "/kityminder-editor/dist/index.html"
  6012. });
  6013. _box.appendChild(_iframe);
  6014. _box.appendChild(_jie);
  6015. _formdiv = new U.UF.UI.form(
  6016. "思维导图",
  6017. _box, { //"/jsmind/example/demo.html"
  6018. "id": "minds" + cid + stage + task + tool,
  6019. "style": {
  6020. "width": "90%",
  6021. "height": "90%",
  6022. "overflow": 'hidden'
  6023. },
  6024. "onresize": function () { }
  6025. }, {
  6026. closecallback: function () { }
  6027. }, {
  6028. "style": {
  6029. "height": "36px"
  6030. }
  6031. }).form; //创建窗体
  6032. _taskbar = {
  6033. "id": str + _formdiv.id,
  6034. "style": {
  6035. "backgroundImage": "url(/img/icon/mindMapping.png)"
  6036. },
  6037. "name": "思维导图",
  6038. "forms": _formdiv,
  6039. "click": function () {
  6040. U.MD.D.I.openApplication(str, obj, info);
  6041. }
  6042. }
  6043. break;
  6044. case "doc":
  6045. aTool = 6;
  6046. _iframe = $$("iframe", {
  6047. "frameborder": "no",
  6048. "border": "0",
  6049. "scrolling ": "no",
  6050. "style": {
  6051. "cssText": "border:0;width:100%;height:100%"
  6052. },
  6053. "src": "/Office/Word/WordEditArea.htm"
  6054. })
  6055. _box.appendChild(_iframe);
  6056. _box.appendChild(_jie);
  6057. _formdiv = new U.UF.UI.form(
  6058. "协同文档",
  6059. _box, {
  6060. "id": "docs" + cid + stage + task + tool,
  6061. "style": {
  6062. "width": "90%",
  6063. "height": "90%",
  6064. "overflow": 'hidden'
  6065. },
  6066. "onresize": function () { }
  6067. }, {
  6068. closecallback: function () { }
  6069. }, {
  6070. "style": {
  6071. "height": "36px"
  6072. }
  6073. }).form; //创建窗体
  6074. U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
  6075. $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6076. })
  6077. _taskbar = {
  6078. "id": str + _formdiv.id,
  6079. "style": {
  6080. "backgroundImage": "url(/img/icon/doc.png)"
  6081. },
  6082. "name": "协同文档",
  6083. "forms": _formdiv,
  6084. "click": function () {
  6085. U.MD.D.I.openApplication(str, obj, info);
  6086. }
  6087. }
  6088. break;
  6089. }
  6090. if (_iframe) {
  6091. if (str == 'doc') {
  6092. _iframe = _formdiv.querySelector('iframe')
  6093. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6094. _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
  6095. })
  6096. if (onloadListener) {
  6097. _iframe.contentDocument.location.reload()
  6098. } else {
  6099. _iframe.contentDocument.location.reload()
  6100. }
  6101. } else if (str == 'mind') {
  6102. _iframe = _formdiv.querySelector('iframe')
  6103. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6104. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
  6105. })
  6106. if (onloadListener) {
  6107. _iframe.contentDocument.location.reload()
  6108. } else {
  6109. _iframe.contentDocument.location.reload()
  6110. }
  6111. } else if (str == 'whiteboard') {
  6112. _iframe = _formdiv.querySelector('iframe')
  6113. let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
  6114. U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
  6115. })
  6116. if (onloadListener) {
  6117. _iframe.contentDocument.location.reload()
  6118. } else {
  6119. _iframe.contentDocument.location.reload()
  6120. }
  6121. } else {
  6122. _iframe.onload = () => {
  6123. };
  6124. }
  6125. _jie.onclick = async () => {
  6126. let text = ''
  6127. let type = '2'
  6128. if (aTool == 1) {
  6129. text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
  6130. type = '3'
  6131. } else if (aTool == 6) {
  6132. text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
  6133. type = '1'
  6134. } else if (aTool == 3) {
  6135. text = await U.MD.D.I.getEditorContent(_iframe);
  6136. type = '2'
  6137. }
  6138. _loading.style.display = 'flex'
  6139. U.MD.D.I.setContents(cid, stage, task, tool, _userid, type, text, _loading, _lspan)
  6140. }
  6141. }
  6142. //U.MD.D.I.openClick(str);
  6143. //如果有任务栏信息
  6144. // if (_taskbar) {
  6145. // U.MD.D.T.taskbar(_taskbar); //创建任务处理
  6146. // }
  6147. }
  6148. U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
  6149. var xmlhttp;
  6150. var Mac, Sn, DeviceId
  6151. if (window.XMLHttpRequest) {
  6152. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6153. xmlhttp = new XMLHttpRequest();
  6154. }
  6155. else {
  6156. // IE6, IE5 浏览器执行代码
  6157. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6158. }
  6159. xmlhttp.onreadystatechange = function () {
  6160. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6161. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6162. // resolve(res.value[0][0].text);
  6163. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6164. $(fileInput).val('');
  6165. });
  6166. }
  6167. }
  6168. }
  6169. xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6170. xmlhttp.send();
  6171. }
  6172. U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
  6173. var xmlhttp;
  6174. var Mac, Sn, DeviceId
  6175. if (window.XMLHttpRequest) {
  6176. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6177. xmlhttp = new XMLHttpRequest();
  6178. }
  6179. else {
  6180. // IE6, IE5 浏览器执行代码
  6181. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6182. }
  6183. xmlhttp.onreadystatechange = function () {
  6184. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6185. if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
  6186. // resolve(res.value[0][0].text);
  6187. if (type == '2') {
  6188. iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6189. $(fileInput).val('');
  6190. });
  6191. } else if (type == '3') {
  6192. iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
  6193. }
  6194. } else {
  6195. iframe.contentWindow.h.app.updateScene({ elements: [] })
  6196. }
  6197. }
  6198. }
  6199. xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
  6200. xmlhttp.send();
  6201. }
  6202. U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
  6203. var xmlhttp;
  6204. var Mac, Sn, DeviceId
  6205. if (window.XMLHttpRequest) {
  6206. // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
  6207. xmlhttp = new XMLHttpRequest();
  6208. }
  6209. else {
  6210. // IE6, IE5 浏览器执行代码
  6211. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  6212. }
  6213. xmlhttp.onreadystatechange = function () {
  6214. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  6215. if (xmlhttp.response) {
  6216. // resolve(res.value[0][0].text);
  6217. // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
  6218. // $(fileInput).val('');
  6219. // });
  6220. span.innerHTML = '上传成功'
  6221. setTimeout(() => {
  6222. loading.style.display = 'none'
  6223. }, 1000);
  6224. }
  6225. }
  6226. }
  6227. // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
  6228. xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
  6229. // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
  6230. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  6231. // 设置请求头,表示请求体的编码格式
  6232. xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
  6233. // 设置请求体,使用url-encoded格式的数据
  6234. }