123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484 |
- /*
- 此处为桌面系统启动应用区域
- */
- Namespace.register("U.MD.D.I"); //桌面应用处理
- //判断图片是否在拖拽,如果是拖拽图标的过程是不会打开图片的
- U.MD.D.I.IsDrag;
- U.MD.D.I.Ip;
- //教师桌面图标的全局变量
- U.MD.D.I.teacherDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "班级管理", "Url": "class", "style": { "cssText": "background-image:url(/img/icon/class.png)" } },
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
- { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
- // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "实时课堂", "Url": "teacherClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
- { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
- { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
- { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
- { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
- { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
- { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
- { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- { "Name": "赛诺梵", "Url": "snf", "style": { "cssText": "background-image:url(/img/icon/snf.png)" } },
- { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
- ];
- U.MD.D.I.studentDeskIcon = [
- // { "Name": "我的项目", "Url": "studnetProject", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "studentStudy", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- // { "Name": "我的评价", "Url": "studentEvaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- // { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- // { "Name": "素材库", "Url": "library", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- // { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- // { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- // { "Name": "便签分类", "Url": "note", "style": { "cssText": "background-image:url(/img/icon/note.png)" } },
- // { "Name": "量规评分", "Url": "score", "style": { "cssText": "background-image:url(/img/icon/score.png)" } },
- // { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- // { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- // { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "实时课堂", "Url": "studentClassRoom", "style": { "cssText": "background-image:url(/img/icon/classRoom.png)" } },
- // { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- // { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- // { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- // { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- // { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
- // { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- // { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- // { "Name": "翻译", "Url": "translation", "style": { "cssText": "background-image:url(/img/icon/translation.png)" } },
- // { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
- // { "Name": "24点", "Url": "24game", "style": { "cssText": "background-image:url(/img/icon/24game.png)" } },
- // { "Name": "数学画板", "Url": "netWorkPanel", "style": { "cssText": "background-image:url(/img/icon/networkPanel.png)" } },
- // { "Name": "GeoGebra", "Url": "GeoGebra", "style": { "cssText": "background-image:url(/img/icon/GeoGebra.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
- ];
- U.MD.D.I.schoolDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/project.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/study.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/evaluation.png)" } },
- { "Name": "通知公告", "Url": "notice", "style": { "cssText": "background-image:url(/img/icon/news.png)" } },
- { "Name": "学习资料", "Url": "stuLibrary", "style": { "cssText": "background-image:url(/img/icon/library.png)" } },
- { "Name": "电子白板", "Url": "whiteboard", "style": { "cssText": "background-image:url(/img/icon/whiteBoard.png)" } },
- { "Name": "问卷调查", "Url": "investigation", "style": { "cssText": "background-image:url(/img/icon/ask.png)" } },
- { "Name": "思维导图", "Url": "mind", "style": { "cssText": "background-image:url(/img/icon/mindMapping.png)" } },
- { "Name": "协同文档", "Url": "doc", "style": { "cssText": "background-image:url(/img/icon/doc.png)" } },
- { "Name": "思维网格", "Url": "mindNetwork", "style": { "cssText": "background-image:url(/img/icon/mindNetwork.png)" } },
- { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
- { "Name": "训练平台", "Url": "train", "style": { "cssText": "background-image:url(/img/icon/trainPlatform.png)" } },
- { "Name": "编程平台", "Url": "program", "style": { "cssText": "background-image:url(/img/icon/program.png)" } },
- { "Name": "AI体验", "Url": "AIprogram2", "style": { "cssText": "background-image:url(/img/icon/AIprogram2.png)" } },
- { "Name": "Python", "Url": "Pythonprogram", "style": { "cssText": "background-image:url(/img/icon/Pythonprogram.png)" } },
- { "Name": "AI编程", "Url": "AIprogram", "style": { "cssText": "background-image:url(/img/icon/AIprogram.png)" } },
- { "Name": "源码编辑", "Url": "codeEdit", "style": { "cssText": "background-image:url(/img/icon/code.png)" } },
- { "Name": "MindMap", "Url": "MindMap", "style": { "cssText": "background-image:url(/img/icon/MIndMap.png)" } },
- // { "Name": "国家教育", "Url": "resources", "style": { "cssText": "background-image:url(/img/icon/resources.png)" } },
- ];
- U.MD.D.I.orgDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
- { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgCase.png)" } },
- ];
- U.MD.D.I.orgStemDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
- { "Name": "学生管理", "Url": "student", "style": { "cssText": "background-image:url(/img/icon/student.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
- { "Name": "我的资料", "Url": "my", "style": { "cssText": "background-image:url(/img/icon/myMessage.png)" } },
- { "Name": "目标管理", "Url": "sys", "style": { "cssText": "background-image:url(/img/icon/evalua.png)" } },
- { "Name": "课程设计", "Url": "courseDesign", "style": { "cssText": "background-image:url(/img/icon/courseDesign.png)" } },
- { "Name": "项目进展", "Url": "case", "style": { "cssText": "background-image:url(/img/icon/case.png)" } },
- ];
- U.MD.D.I.hanDeskIcon = [
- { "Name": "项目管理", "Url": "project", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgProject.png)" } },
- { "Name": "学习中心", "Url": "study", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgStudy.png)" } },
- { "Name": "学生评价", "Url": "evaluate", "style": { "cssText": "background-image:url(/img/icon/orgIcon/orgEva.png)" } },
- { "Name": "汉字家族", "Url": "hanFamily", "style": { "cssText": "background-image:url(/img/icon/hanFamily.png)" } },
- { "Name": "国学经典", "Url": "hanClassics", "style": { "cssText": "background-image:url(/img/icon/hanClassics.png)" } },
- { "Name": "笔画训练", "Url": "hanTraining", "style": { "cssText": "background-image:url(/img/icon/hanTraining.png)" } },
- { "Name": "书法课堂", "Url": "hanClass", "style": { "cssText": "background-image:url(/img/icon/hanClass.png)" } },
- { "Name": "汉字宫", "Url": "han", "style": { "cssText": "background-image:url(/img/icon/han.png)" } },
- { "Name": " 魔盒识字", "Url": "mohe", "style": { "cssText": "background-image:url(/img/icon/mohe.png)" } },
- ];
- U.MD.D.I.GMteacherDeskIcon = [
- { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
- { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
- { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
- { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
- { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
- // { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
- { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
- // { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
- { "Name": "案例征集", "Url": "gpbl", "style": { "cssText": "background-image:url(/img/icon/gpbl2.png)" } },
- ];
- U.MD.D.I.GMorganizerDeskIcon = [
- { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
- { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
- { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
- { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
- // { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
- { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
- { "Name": "学校管理", "Url": "schoolGM", "style": { "cssText": "background-image:url(/img/icon/gm/school.png)" } },
- { "Name": "教师管理", "Url": "teacherGM", "style": { "cssText": "background-image:url(/img/icon/gm/teacher.png)" } },
- // { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
- { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
- { "Name": "项目审核", "Url": "examineGM", "style": { "cssText": "background-image:url(/img/icon/gm/examine.png)" } },
- // { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
- { "Name": "案例征集", "Url": "gpbl", "style": { "cssText": "background-image:url(/img/icon/gpbl2.png)" } },
- ];
- U.MD.D.I.GMstudentDeskIcon = [
- { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
- { "Name": "我的评价", "Url": "evaluateSGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
- // { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
- { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
- // { "Name": "消息通知", "Url": "messageGM", "style": { "cssText": "background-image:url(/img/icon/gm/message.png)" } },
- ];
- U.MD.D.I.teacherDeskIcon = [
- { "Name": "项目管理", "Url": "projectGM", "style": { "cssText": "background-image:url(/img/icon/gm/courseMange.png)" } },
- { "Name": "学习中心", "Url": "studyGM", "style": { "cssText": "background-image:url(/img/icon/gm/learning.png)" } },
- { "Name": "学生管理", "Url": "studentGM", "style": { "cssText": "background-image:url(/img/icon/gm/student.png)" } },
- { "Name": "学生评价", "Url": "evaluateGM", "style": { "cssText": "background-image:url(/img/icon/gm/evaluate.png)" } },
- { "Name": "班级管理", "Url": "classGM", "style": { "cssText": "background-image:url(/img/icon/gm/class.png)" } },
- { "Name": "我的资料", "Url": "dataGM", "style": { "cssText": "background-image:url(/img/icon/gm/data.png)" } },
- { "Name": "项目进展", "Url": "caseGM", "style": { "cssText": "background-image:url(/img/icon/gm/case.png)" } },
- { "Name": "素材库", "Url": "meterialGM", "style": { "cssText": "background-image:url(/img/icon/gm/material.png)" } },
- ];
- //#region 桌面初始化a
- /**
- * 初始化桌面的起始函数
- *
- */
- U.MD.D.I.init = function () {
- if ($("#U_MD_D_K")[0]) {
- //初始化桌面图标
- U.MD.D.I.initDesktopIcons($("#U_MD_D_K")[0]);
- // var clickUrl = ':12588/requestIp.php';
- // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
- // U.MD.D.I.Ip = data;
- // var AccessUrl = ':12588/useAccess.php?ip=' + U.MD.D.I.Ip;
- // U.MD.D.I.Mysqlrequest(AccessUrl,function(data){
- // U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
- // })
- // //初始化任务栏,因为是静态的,所以直接改变样式即可.
- // })
- }
- }
- /**
- * 隐藏任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.hiddenTaskbar = function (el) {
- //任务栏位置变小
- U.selectEl(el).parentElement(3).css({ "bottom": "-60px" });
- //桌面的位置变大
- // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
- }
- /**
- * 隐藏任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.hiddenTaskbarout = function (el) {
- //任务栏位置变小
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el)) {
- //任务栏位置变化
- U.selectEl(el).css({ "bottom": "-60px" });
- //桌面的位置变大
- // U.selectEl("#U_MD_D_K").css({ "left": "5px" });
- }
- }
- /**
- * 初始化打印桌面图标
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.initDesktopIcons = function (el) {
- var i, //用于循环
- _content, //桌面图标元素
- _iconcontent, //桌面图标元素
- _frag = $$("frag"), //定义一个碎片元素
- _type = US.userInfo.type,
- _org = US.userInfo.org,
- _oid = US.userInfo.organizeid,
- _role = US.userInfo.role,
- _teacherDesktopIconInfo = U.MD.D.I.teacherDeskIcon, //获取教师端桌面图标
- _studentDesktopIconInfo = U.MD.D.I.studentDeskIcon, //获取学生端桌面图标
- _orgDesktopIconInfo = U.MD.D.I.orgDeskIcon, //获取组织桌面图标
- _orgStemDeskIcon = U.MD.D.I.orgStemDeskIcon,
- _hanDeskIcon = U.MD.D.I.hanDeskIcon,
- _schoolDesktopIconInfo = U.MD.D.I.schoolDeskIcon, //获取测试学校桌面图标
- _GMteacherDesktopIconInfo = U.MD.D.I.GMteacherDeskIcon, //获取光明学校桌面图标
- _GMstudentDesktopIconInfo = U.MD.D.I.GMstudentDeskIcon; //获取光明学校桌面图标
- _GMorganizerDesktopIconInfo = U.MD.D.I.GMorganizerDeskIcon; //获取光明学校桌面图标
- //清楚桌面图标
- el.innerHTML = "";
- //循环创建桌面图标
- if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5" && _org != "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
- for (i = 0; i < _studentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _oid == "d9db3320-503a-11ed-8c78-005056b86db5") {
- for (i = 0; i < _hanDeskIcon.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_hanDeskIcon[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_hanDeskIcon[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _hanDeskIcon[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _hanDeskIcon[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _org == "7ada499f-4ec7-11ed-8c78-005056b86db5") {
- for (i = 0; i < _orgStemDeskIcon.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_orgStemDeskIcon[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_orgStemDeskIcon[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgStemDeskIcon[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgStemDeskIcon[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d" && _role == 0) {
- for (i = 0; i < _orgDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_orgDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_orgDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _orgDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _orgDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217" && _role === 1) {
- for (i = 0; i < _GMorganizerDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMorganizerDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMorganizerDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMorganizerDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMorganizerDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _schoolDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_schoolDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_schoolDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _schoolDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _schoolDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- for (i = 0; i < _studentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_studentDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _studentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _studentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if ((_type == 1 || _type == 4) && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
- for (i = 0; i < _GMteacherDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMteacherDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMteacherDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMteacherDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMteacherDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else if (_type == 2 && _org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217") {
- for (i = 0; i < _GMstudentDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMstudentDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_GMstudentDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _GMstudentDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _GMstudentDesktopIconInfo[i].Name }, _iconcontent);
- }
- } else {
- for (i = 0; i < _teacherDesktopIconInfo.length; i++) {
- _content = $$("div", {
- className: "U_MD_D_KO",
- "onmousedown": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]]),
- "onclick": U.UF.C.closure(function (obj) {
- //防止拖动图标即打开了桌面应用
- U.MD.D.click(this, obj);
- }, [_teacherDesktopIconInfo[i]])
- }, _frag); //
- _iconcontent = $$("div", { className: "U_MD_D_KOA" }, _content);
- $$("div", { className: "U_MD_D_KOS U_Img", "style": _teacherDesktopIconInfo[i].style }, _iconcontent);
- $$("div", { className: "U_MD_D_KOX", "innerHTML": _teacherDesktopIconInfo[i].Name }, _iconcontent);
- }
- }
- //加载好后给图标定位
- U.MD.D.iconPostion($(_frag).Child());
- //把图标加载到页面
- el.appendChild(_frag);
- }
- /**
- * 显示任务栏
- *
- * @param {element} 桌面元素
- */
- U.MD.D.I.displayTaskbar = function (el) {
- //判断是否需要形式任务栏,由于用了mouseover事件会冒泡响应多次,这里做了过滤
- if (!U.UF.EV.stopBubbleMouseOutOrOver(el) && U.selectEl(el).css("bottom") != "0px") {
- //任务栏位置变化
- U.selectEl(el).css({ "bottom": "0px" });
- //桌面位置变话
- // U.selectEl("#U_MD_D_K").css({ "left": "70px" });
- }
- }
- //#region 桌面图标拖动逻辑
- /**
- * 桌面排列图标
- *
- * @param {element} 桌面元素
- * @param {object} 上下相距的距离
- * @param {object} 左右相距的距离
- * @return {object} 命名空间
- */
- U.MD.D.iconPostion = function (childs, top, left) {
- var i, ol = (US.width - (Math.floor(US.width / 150) * 150)) / 2; //用于循环处理
- top = top || 70; //如果没有设置元素的间距处理默认上间距为15
- left = (US.width - (Math.min(Math.floor(US.width / 150), childs.length) * 150)) / 2; //left || 20; //如果没有设置元素的间距处理默认左间距为15
- //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
- for (i = 0; i < childs.length; i++) {
- //如果竖排top超过了范围处理
- if (left + 150 > US.width - 10) {
- //left超过了页面范围处理,则向上重叠打印处理
- if ((top + 180) > US.Height) {
- top -= 150;
- left -= 150;
- }
- //没有超过范围,那么left+90添加到下一个竖排打印
- else {
- top += 150;
- left = ol;
- };
- }
- //给图标的位置赋值
- U.selectEl(childs[i]).css({ bottom: top + "px", left: left + "px" });
- if (i < childs.length - 1) {
- //页面图标每次向下加95
- left += 150;
- }
- }
- //返回最后调用的图标的位置
- return [top, left];
- }
- /**
- * 桌面点击事件逻辑
- *
- * @param {element} 桌面元素
- * @param {object} 上下相距的距离
- * @param {object} 左右相距的距离
- * @return {object} 命名空间
- */
- U.MD.D.click = function (el, obj) {
- var _buttonnumber = event.button; //点击的按钮的事件值
- var _userinfo = US.userInfo;
- U.UF.EV.stopBubble(); //阻止向上冒泡
- //onmousedown 包含了左键和右键 这里大于2是为了兼容 所有浏览器的右键处理
- if (_buttonnumber < 2) {
- //如果是click事件的处理
- if (event.type == "click") {
- //如果元素在mousemove事件中没有移动则出发click事件
- if (!U.MD.D.I.IsDrag) {
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- U.alert("请先登录您的账号!");
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- //打开应用处理
- U.MD.D.I.openApplication(obj.Url, { "userid": US.userInfo.userid, "directoryid": US.FTPFOLDERID });
- }
- }
- }
- //如果是mouse事件的处理
- else {
- //拖动处理,添加拖动和拖动结束事件
- //U.UF.F.drag(el, U.MD.D.iconMove, U.MD.D.iconUp);
- }
- U.MD.D.I.IsDrag = false;
- }
- }
- /**
- * 拖动的处理
- *
- */
- U.MD.D.iconMove = function () {
- //如果当前位置点击初始化的位置出现了变化,则设置是否拖动的属性 U.MD.D.I.IsDrag为true
- //U.MD.D.I.IsDrag = true;
- U.MD.D.I.IsDrag = false;
- }
- /**
- * 拖动结束后,这里是定位处理,以网状的形式定位
- *
- * @param {element} 拖动的元素
- * @return {object} 命名空间
- */
- U.MD.D.iconUp = function (el) {
- var _top = 20,
- _left = 20,
- _margin,
- _childs = U.selectEl("#U_MD_D_K").Child(), //桌面所有的图标
- _positioninfo = U.UF.EL.getElementInfo(el); //获取拖动结束的元素的位置
- if (_positioninfo["OT"] > 20) {
- //网状的形式定位,如果差超过了55,那么向下定位,否则向上定位
- _margin = ((_positioninfo["OT"] - 20) % 150 > 55 && _positioninfo["OT"] + 150 < US.height) ? 1 : 0;
- _top = (Math.floor((_positioninfo["OT"] - 20) / 150) + _margin) * 150 + 20;
- }
- if (_positioninfo["OL"] > 20) {
- //网状的形式定位,如果差超过了90,那么向右定位,否则向左定位
- _margin = ((_positioninfo["OL"] - 20) % 150 > 45 && _positioninfo["OL"] + 150 < US.width) ? 1 : 0;
- _left = (Math.floor((_positioninfo["OL"] - 20) / 150) + _margin) * 150 + 20
- }
- //while循环判断么一个重叠的元素
- do {
- _positioninfo = U.MD.D.iconPostion([el], _top, _left); //给重叠的元素向下定位
- _top = _positioninfo[0] + 150; //得到定位后的top
- _left = _positioninfo[1]; //得到定位后的left
- } while (el = U.MD.D.isOverlap(el, _childs, _positioninfo))
- }
- /**
- * 判断拖动后图标是否重叠
- *
- * @param {element} 拖动的元素
- * @param {element} 桌面所有的元素
- * @param {array} 拖动元素的位置
- ----------[0] 上 top
- ----------[1] 左 left
- * @return {object} 命名空间
- */
- U.MD.D.isOverlap = function (el, childs, postionarray) {
- //循环所有的图标
- for (var i = 0; i < childs.length; i++) {
- //判断有没有和该图标诶子重叠的元素
- if (el != childs[i] && (childs[i].offsetTop == postionarray[0] && childs[i].offsetLeft == postionarray[1])) {
- return childs[i]; //如果有返回
- }
- }
- }
- //#endregion
- //#endregion
- //#region 桌面应用
- /**
- * 打开应用
- *
- * @param {string} 类型
- -----------------Disk 网盘系统
- -----------------PDisk 学习系统网盘
- -----------------Poto 图片
- -----------------Video 视频
- -----------------Music 音乐
- -----------------Word word
- -----------------Excel excel
- -----------------Txt 记事本
- -----------------PB 学习系统
- -----------------Blog 朋友圈系统
- -----------------FTP ftp系统
- -----------------Group 好友群
- -----------------SY 首页系统
- -----------------Set 个人设置
- -----------------XSet 系统设置
- -----------------App 我们所有的app
- -----------------BC c.1473.cn 平台
- -----------------CWeb d.1473.cn 变成平台
- -----------------其他的外联系统 我们统一用iframe打开
- * @param {array} 类型
- 如果第一个参数为"disk",则第二个参数为object,里面包含了用户id和目录id{userid:"",directoryid:""}
- 如果第一个参数为"word"或者"excel","txt",则第二个参数为文件信息fileinfo。
- 如果第一个参数为"blog"或者"PDisk"。建议删除。
- 如果第一个参数为其他,则无第二个参数
- * @returns {array}
- */
- window.addEventListener('message', function (e) { // 监听 message 事件
- // alert(e.data.type);
- if (e.data.screenType && e.data.screenType == "2") { //项目管理传入
- U.MD.D.I.openInApplication("studyDetail", e.data.cid, e.data.screenType, 4)
- //3是展示全部阶段 2学生 1老师 4专家
- } else if (e.data.screenType && e.data.screenType == "3") { //项目管理传入
- U.MD.D.I.openInApplication("studyDetail", e.data.cid, 2, 1)
- } else if (e.data.screenType && e.data.screenType == "2gm") { //项目管理传入
- U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, e.data.screenType, 4)
- //3是展示全部阶段 2学生 1老师 4专家
- } else if (e.data.screenType && e.data.screenType == "3gm") { //项目管理传入
- U.MD.D.I.openInApplication("studyDetailGM", e.data.cid, 2, 1)
- } else if (e.data.close && e.data.close == "1") { //更新用户信息
- U.MD.D.I.selectUser();
- } else if (e.data.allScreen && e.data.allScreen == "1") {
- var _formel = document.getElementById("study");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "2") {
- var _formel = document.getElementById("studyDetail");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "2gm") {
- var _formel = document.getElementById("studyDetail");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "3") {
- var _formel = document.getElementById("studentStudy");
- U.UF.F.windowZooming(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "6") {
- var _formel = document.getElementById("study");
- //如果最大化了,那么就把他缩小
- // if (_formel.ismaximize) {
- // return;
- // }
- // U.UF.F.windowZooming(_formel);
- U.UF.F.topWindow(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "4") {
- var _formel = document.getElementById("studyDetail");
- //如果最大化了,那么就把他缩小
- // if (_formel.ismaximize) {
- // return;
- // }
- // U.UF.F.windowZooming(_formel);
- U.UF.F.topWindow(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "5") {
- var _formel = document.getElementById("studentStudy");
- // if (_formel.ismaximize) {
- // return;
- // }
- // U.UF.F.windowZooming(_formel);
- U.UF.F.topWindow(_formel);
- } else if (e.data.allScreen && e.data.allScreen == "5gm") {
- var _formel = document.getElementById("study");
- // if (_formel.ismaximize) {
- // return;
- // }
- // U.UF.F.windowZooming(_formel);
- U.UF.F.topWindow(_formel);
- } else if (e.data.tools && e.data.tools == "1") {
- // U.MD.D.I.openApplication("whiteboard")
- U.MD.D.I.openApplicationJie("whiteboard", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "2") {
- U.MD.D.I.openApplication("note")
- } else if (e.data.tools && e.data.tools == "3") {
- // U.MD.D.I.openApplication("mind")
- U.MD.D.I.openApplicationJie("mind", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "4") {
- U.MD.D.I.openApplication("investigation")
- } else if (e.data.tools && e.data.tools == "6") {
- // U.MD.D.I.openApplication("doc")
- U.MD.D.I.openApplicationJie("doc", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "7") {
- // U.MD.D.I.openApplication("mindNetwork")
- U.MD.D.I.openApplicationJie("mindNetwork", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "8") {
- U.MD.D.I.openApplication("library")
- } else if (e.data.tools && e.data.tools == "17") {
- U.MD.D.I.openApplication("stuLibrary")
- } else if (e.data.tools && e.data.tools == "18") {
- U.MD.D.I.openApplication("train")
- } else if (e.data.tools && e.data.tools == "21") {
- U.MD.D.I.openApplication("program")
- } else if (e.data.tools && e.data.tools == "22") {
- U.MD.D.I.openApplication("AIprogram2")
- } else if (e.data.tools && e.data.tools == "23") {
- U.MD.D.I.openApplication("Pythonprogram")
- } else if (e.data.tools && e.data.tools == "24") {
- U.MD.D.I.openApplication("AIprogram")
- } else if (e.data.tools && e.data.tools == "25") {
- U.MD.D.I.openApplication("sys")
- } else if (e.data.tools && e.data.tools == "26") {
- // U.MD.D.I.openApplication("courseDesign")
- U.MD.D.I.openApplicationJie("courseDesign", e.data.cid, e.data.stage, e.data.task, e.data.tool)
- } else if (e.data.tools && e.data.tools == "31") {
- U.MD.D.I.openApplication("netWorkPanel")
- } else if (e.data.tools && e.data.tools == "32") {
- U.MD.D.I.openApplication("codeEdit")
- } else if (e.data.tools && e.data.tools == "28") {
- U.MD.D.I.openApplication("translation")
- } else if (e.data.tools && e.data.tools == "37") {
- U.MD.D.I.openApplication("mohe")
- } else if (e.data.tools && e.data.tools == "38") {
- U.MD.D.I.openApplication("24game")
- } else if (e.data.tools && e.data.tools == "39") {
- U.MD.D.I.openApplication("GeoGebra")
- } else if (e.data.tools && e.data.tools == "43") {
- U.MD.D.I.openApplication("studentEvaluate")
- } else if (e.data.tools && e.data.tools == "44") {
- U.MD.D.I.openInApplication("hanUrl", '', '', '')
- } else if (e.data.tools && e.data.tools == "46") {
- U.MD.D.I.openApplication("project")
- }
- });
- U.MD.D.I.selectUser = function () {
- U.A.Request(US.Config.pbl + "selectUser?userid=" + US.userInfo.userid, [], function (res) { //US.userInfo.userid
- if (res.value[0].length > 0) {
- US.userInfo = res.value[0][0];
- $(".userName")[0].innerHTML = US.userInfo.username;
- }
- }, [], { "type": "GET", "withCredentials": true });
- }
- U.MD.D.I.openInApplication = function (str, data, screenType, tType) {
- var _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid, //登录用户id
- _oid = _userinfo.organizeid,
- _type = US.userInfo.type,
- _org = US.userInfo.org,
- _classId = US.userInfo.classid;
- if (_type == 4) {
- tType = 4
- }
- switch (str) {
- case "studyDetail":
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- _formdiv = new U.UF.UI.form(
- "项目详情",
- $$("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 }), {
- "id": "studyDetail",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- }
- case "studyDetailGM":
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- _formdiv = new U.UF.UI.form(
- "项目详情",
- $$("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 }), {
- "id": "studyDetail",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-student-table/dist/#/courseDetailGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&courseId=" + data + "&tType=" + tType + "&cid=" + _classId + "&screenType=" + screenType, "学习中心", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- }
- case "hanUrl":
- if (!_userinfo || Object.keys(_userinfo).length === 0) {
- setTimeout(() => {
- U.MD.U.L.login();
- }, 2000);
- } else {
- _formdiv = new U.UF.UI.form(
- "汉字宫",
- $$("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" }), {
- "id": "hanUrl",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- }
- }
- }
- U.MD.D.I.openApplication = function (str, obj, info) {
- obj = obj || {};
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = obj.userid || US.userInfo.userid, //登录用户id
- _oid = obj.organizeid || _userinfo.organizeid,
- _type = US.userInfo.type,
- _org = US.userInfo.org,
- _role = US.userInfo.role,
- _classId = US.userInfo.classid,
- _TscreenType = 1
- _screenType = 2,
- _SscreenType = 3;
- if (_type == 2 && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "studnetProject": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的项目",
- $$("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 }), {
- "id": "studnetProject",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "studentEvaluate": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("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 }), {
- "id": "studentEvaluate",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("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 }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "program":
- _formdiv = new U.UF.UI.form(
- "编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
- "id": "program",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("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 }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("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 }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("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 }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _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); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("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"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), { //"/Office/Word/WordEditArea.htm"
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- // $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- // })
- _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); } }
- break;
- case "studentStudy":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("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://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "studentStudy",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("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 }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "studentClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("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 }), {
- "id": "studentClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if (_type == 2 && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "studnetProject": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的项目",
- $$("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 }), {
- "id": "studnetProject",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "studentEvaluate": //好友打开
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("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 }), {
- "id": "studentEvaluate",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("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 }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "program":
- _formdiv = new U.UF.UI.form(
- "编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
- "id": "program",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("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 }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("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 }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("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 }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _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); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("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"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _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); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "studentStudy":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("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://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "studentStudy",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("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 }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "studentClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("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 }), {
- "id": "studentClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if ((_type == 1 || _type == 4) && _oid != "91305d49-01ba-11ed-8c78-005056b86db5") {
- //选择应用处理
- switch (str) {
- case "project": //好友打开
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "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 }), {
- "id": "project",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "student":
- _formdiv = new U.UF.UI.form(
- "学生管理",
- $$("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 }), {
- "id": "student",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "evaluate":
- _formdiv = new U.UF.UI.form(
- "学生评价",
- $$("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 }), {
- "id": "evaluate",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "sys":
- _formdiv = new U.UF.UI.form(
- "目标管理",
- $$("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 }), {
- "id": "sys",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "courseDesign":
- _formdiv = new U.UF.UI.form(
- "课程设计",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
- "id": "courseDesign",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "program":
- _formdiv = new U.UF.UI.form(
- "编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
- "id": "program",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "class":
- _formdiv = new U.UF.UI.form(
- "班级管理",
- $$("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 }), {
- "id": "class",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("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 }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "notice":
- _formdiv = new U.UF.UI.form(
- "通知公告",
- $$("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 }), {
- "id": "notice",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "library":
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("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 }), {
- "id": "library",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("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 }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "note":
- _formdiv = new U.UF.UI.form(
- "便签分类",
- $$("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 }), {
- "id": "note",
- "style": { "width": "20%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- // case "score":
- // _formdiv = new U.UF.UI.form(
- // "量规评分",
- // $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "" }), {
- // "id": "score",
- // "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- // "onresize": function() {}
- // }, {
- // closecallback: function() {}
- // }, { "style": { "height": "36px" } }).form; //创建窗体
- // _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); } }
- // break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("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"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _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); } }
- break;
- case "study":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("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://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "study",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("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 }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "teacherClassRoom": //好友打开
- _formdiv = new U.UF.UI.form(
- "实时课堂",
- $$("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 }), {
- "id": "teacherClassRoom",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- setTimeout(() => {
- U.UF.F.windowZooming(_formdiv)
- }, 0);
- break;
- }
- } else if ((_type == 1 || _type == 4) && _oid == "91305d49-01ba-11ed-8c78-005056b86db5") {
- switch (str) {
- case "project": //好友打开
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "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 }), {
- "id": "project",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "evaluate":
- _formdiv = new U.UF.UI.form(
- "学生评价",
- $$("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 }), {
- "id": "evaluate",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "notice":
- _formdiv = new U.UF.UI.form(
- "通知公告",
- $$("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 }), {
- "id": "notice",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "stuLibrary":
- _formdiv = new U.UF.UI.form(
- "学习资料",
- $$("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 }), {
- "id": "stuLibrary",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "program":
- _formdiv = new U.UF.UI.form(
- "编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://x.cocorobo.cn" }), {
- "id": "program",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "whiteboard":
- _formdiv = new U.UF.UI.form(
- "电子白板",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://iwb.cocorobo.cn/" }), {
- "id": "whiteboard",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "investigation":
- _formdiv = new U.UF.UI.form(
- "问卷调查",
- $$("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 }), {
- "id": "investigation",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mind":
- _formdiv = new U.UF.UI.form(
- "思维导图",
- $$("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"
- "id": "mind",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "doc":
- // U.MD.D.I.isRoom();
- _formdiv = new U.UF.UI.form(
- "协同文档",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/Office/Word/WordEditArea.htm" }), {
- "id": "doc",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
- })
- _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); } }
- break;
- case "study":
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("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://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "study",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mindNetwork": //好友打开
- _formdiv = new U.UF.UI.form(
- "思维网格",
- $$("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 }), {
- "id": "mindNetwork",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "train": //好友打开
- _formdiv = new U.UF.UI.form(
- "训练平台",
- $$("iframe", { "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0; width:100%; height:100%;" }, "src": "https://xunlian.cocorobo.cn/" }), {
- "id": "train",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "sys":
- _formdiv = new U.UF.UI.form(
- "目标管理",
- $$("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 }), {
- "id": "sys",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "courseDesign":
- _formdiv = new U.UF.UI.form(
- "课程设计",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "/course-design-vue" }), {
- "id": "courseDesign",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- }
- } else if (!_type) {
- switch (str) {
- case "my":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("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 }), {
- "id": "my",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- }
- }
- switch (str) {
- // AIprogram2 AI体验 aihub.cocorobo.cn
- // Pythonprogram Python编程 python-blockly.cocorobo.cn
- // AIprogram AI编程 ai-blockly.cocorobo.cn
- case "AIprogram2": //AI体验
- _formdiv = new U.UF.UI.form(
- "AI体验",
- $$("iframe", { "frameborder": "no", "allow": "camera", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://aihub.cocorobo.cn/" }), {
- "id": "AIprogram2",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "Pythonprogram": //python编程
- _formdiv = new U.UF.UI.form(
- "Python编程",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://python-blockly.cocorobo.cn/" }), {
- "id": "Pythonprogram",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "AIprogram": //ai编程
- _formdiv = new U.UF.UI.form(
- "AI编程平台",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://ai-blockly.cocorobo.cn/?lang=zh-hans" }), {
- "id": "AIprogram",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "resources": //国家教育
- _formdiv = new U.UF.UI.form(
- "国家教育",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://so.eduyun.cn/synResource" }), {
- "id": "resources",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "codeEdit": //源码编辑
- _formdiv = new U.UF.UI.form(
- "源码编辑",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://kitten.codemao.cn/" }), {
- "id": "codeEdit",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break; //
- case "MindMap": //MindMap
- _formdiv = new U.UF.UI.form(
- "MindMap",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//cloud.cocorobo.cn/mind/" }), {
- "id": "MindMap",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "netWorkPanel": //netWorkPanel
- _formdiv = new U.UF.UI.form(
- "netWorkPanel",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.netpad.net.cn/svg.html" }), {
- "id": "netWorkPanel",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "GeoGebra": //GeoGebra
- _formdiv = new U.UF.UI.form(
- "GeoGebra",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//www.geogebra.org/calculator" }), {
- "id": "GeoGebra",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "translation": //翻译
- _formdiv = new U.UF.UI.form(
- "翻译",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//dict.youdao.com/" }), {
- "id": "translation",
- "style": { "width": "80%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "mohe": //魔盒
- _formdiv = new U.UF.UI.form(
- "魔盒识字",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//games.cocorobo.cn/view/index.html#/" }), {
- "id": "mohe",
- "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "24game": //24点
- _formdiv = new U.UF.UI.form(
- "24点",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "//24.cocorobo.cn/#/index" }), {
- "id": "24game",
- "style": { "width": "375px", "height": "667px", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "case":
- _formdiv = new U.UF.UI.form(
- "项目进展",
- $$("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 }), {
- "id": "case",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "snf":
- _formdiv = new U.UF.UI.form(
- "赛诺梵",
- $$("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" }), {
- "id": "snf",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "hanFamily":
- _formdiv = new U.UF.UI.form(
- "汉字家族",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/hzjz" }), {
- "id": "hanFamily",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "hanClassics":
- _formdiv = new U.UF.UI.form(
- "国学经典",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/gxjd" }), {
- "id": "hanClassics",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "hanTraining":
- _formdiv = new U.UF.UI.form(
- "笔画训练",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/bhxl" }), {
- "id": "hanTraining",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "hanClass":
- _formdiv = new U.UF.UI.form(
- "书法课堂",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/sfkt" }), {
- "id": "hanClass",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "han":
- _formdiv = new U.UF.UI.form(
- "汉字宫",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://school.hanzigon.cn/?appid=734714090237947#/home" }), {
- "id": "han",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- break;
- case "projectGM": //项目管理
- _formdiv = new U.UF.UI.form(
- "项目管理",
- $$("iframe", { "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 }), {
- "id": "projectGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/courseGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "studyGM"://学习中心
- _formdiv = new U.UF.UI.form(
- "学习中心",
- $$("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/#/index?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType }), { //https://pbl.cocorobo.cn/pbl-student-table/dist/#/index
- "id": "study",
- "style": { "width": "100%", "height": "100%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-student-table/dist/#/indexGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&tType=" + _type + "&cid=" + _classId + "&screenType=" + _TscreenType, "学习中心", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // studentGM
- case "studentGM"://学生管理
- _formdiv = new U.UF.UI.form(
- "学生管理",
- $$("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 }), {
- "id": "studentGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/studentGM?userid=" + _userid + "&oid=" + _oid + "&cid=" + _classId + "&org=" + _org, "学生管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "evaluateGM"://学生评价
- _formdiv = new U.UF.UI.form(
- "学生评价",
- $$("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 }), {
- "id": "evaluateGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "学生评价", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // classGM
- case "classGM"://班级管理
- _formdiv = new U.UF.UI.form(
- "班级管理",
- $$("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 }), {
- "id": "classGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/classGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "班级管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // dataGM
- case "dataGM":
- _formdiv = new U.UF.UI.form(
- "我的资料",
- $$("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 }), {
- "id": "dataGM",
- "style": { "width": "42%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/dataGM?userid=" + _userid + "&org=" + _org, "我的资料", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // caseGM
- case "caseGM"://项目进展
- _formdiv = new U.UF.UI.form(
- "项目进展",
- $$("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 }), {
- "id": "caseGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/CaseDesignGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目进展", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // meterialGM
- case "meterialGM"://素材库
- _formdiv = new U.UF.UI.form(
- "素材库",
- $$("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 }), {
- "id": "meterialGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/libraryGM?userid=" + _userid + "&org=" + _org, "素材库", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- // evaluateSGM
- case "evaluateSGM": //我的评价
- _formdiv = new U.UF.UI.form(
- "我的评价",
- $$("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 }), {
- "id": "evaluateSGM",
- "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _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); } }
- // window.open(US.Config.bpbl + "/pbl-student-table/dist/#/worksGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "我的评价", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "schoolGM": //学校管理
- _formdiv = new U.UF.UI.form(
- "学校管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/schoolGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
- "id": "schoolGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/school.png)" }, "name": "学校管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/schoolGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "学校管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "teacherGM": //教师管理
- _formdiv = new U.UF.UI.form(
- "教师管理",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
- "id": "teacherGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/teacher.png)" }, "name": "教师管理", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/teacherGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "教师管理", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "examineGM": //教师管理
- _formdiv = new U.UF.UI.form(
- "项目审核",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/examineGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org }), {
- "id": "examineGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/examine.png)" }, "name": "项目审核", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/examineGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org, "项目审核", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "messageGM": //消息通知
- _formdiv = new U.UF.UI.form(
- "消息通知",
- $$("iframe", { "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": US.Config.bpbl + "/pbl-teacher-table/dist/#/noticeGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
- "id": "messageGM",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gm/examine.png)" }, "name": "消息通知", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- // window.open(US.Config.bpbl + "/pbl-teacher-table/dist/#/noticeGM?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role, "消息通知", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- case "gpbl": //消息通知
- _formdiv = new U.UF.UI.form(
- "案例征集",
- $$("iframe", { "allow": "camera *; microphone *;display-capture;midi;encrypted-media;", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "","frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://pblgm.cocorobo.cn/#/login?userid=" + _userid + "&oid=" + _oid + "&org=" + _org + "&role=" + _role }), {
- "id": "gpbl",
- "style": { "width": "90%", "height": "90%", "overflow": 'hidden' },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, { "style": { "height": "36px" } }).form; //创建窗体
- _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/gpbl2.png)" }, "name": "案例征集", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
- // window.open("https://gdpbl.cocorobo.cn/#/login", "案例征集", "height=" + US.height + ", width=" + US.width + ", top=100, left=100, toolbar=no, menubar=0, resizable=0, location=0, status=no");
- break;
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- if (_taskbar) {
- U.MD.D.T.taskbar(_taskbar); //创建任务处理
- }
- }
- // U.MD.D.I.openClick = function(str){
- // var click = '';
- // switch(str){
- // case 'friend':
- // click = '我的好友';
- // break;
- // case 'domain':
- // click = '域名管理';
- // break;
- // case 'disk':
- // click = '我的云盘';
- // break;
- // case 'word':
- // click = 'Word';
- // break;
- // case 'excel':
- // click = 'Execl';
- // break;
- // case 'txt':
- // click = '文本文件';
- // break;
- // case 'lookupFriend':
- // click = '查找好友';
- // break;
- // case 'ftp':
- // click = 'FTP';
- // break;
- // case 'group':
- // click = '群组';
- // break;
- // case 'set':
- // click = '我的设置';
- // break;
- // case 'systemSet':
- // click = '系统设置';
- // break;
- // case 'boomYun':
- // click = '互联办公';
- // break;
- // case 'xz':
- // click = '云端下载';
- // break;
- // case 'client':
- // click = '有思浏览器';
- // break;
- // case 'backEndProgramming':
- // click = '在线后台编程';
- // break;
- // case 'frontEndProgramming':
- // click = '在线前端编程';
- // break;
- // default: break;
- // }
- // if(U.MD.D.I.Ip && click){
- // var clickUrl = ':12588/useClick.php?name=' + click + '&ip=' + U.MD.D.I.Ip;
- // U.MD.D.I.Mysqlrequest(clickUrl,function(data){
- // })
- // }
- // }
- /**
- *函数作用:ajax简易函数,使用post格式
- *@param url {data} 后台地址
- *@param data {data} 参数json
- *@param fn {data} 回调函数
- *
- */
- // U.MD.D.I.Mysqlrequest = function(url,fn){
- // var xhr = new XMLHttpRequest();
- // xhr.open("GET",url,true);
- // xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- // xhr.onreadystatechange = function(){
- // if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)){
- // fn.call(this,xhr.responseText);
- // }
- // };
- // xhr.send();
- // }
- /*判断是否是内网IP*/
- // U.MD.D.I.isInnerIPFn = function(str){
- // var curPageUrl = str;
- // var reg1 = /(http|ftp|https|www):\/\//g;//去掉前缀
- // curPageUrl =curPageUrl.replace(reg1,'');
- // // console.log('curPageUrl-1 '+curPageUrl);
- // var reg2 = /\:+/g;//替换冒号为一点
- // curPageUrl =curPageUrl.replace(reg2,'.');
- // // console.log('curPageUrl-2 '+curPageUrl);
- // curPageUrl = curPageUrl.split('.');//通过一点来划分数组
- // var ipAddress = curPageUrl[0]+'.'+curPageUrl[1]+'.'+curPageUrl[2]+'.'+curPageUrl[3];
- // if(curPageUrl[2] != '16'){
- // return ipAddress;
- // }else{
- // return false;
- // }
- // }
- // U.MD.D.I.getUserIP = function(onNewIP) { // onNewIp - your listener function for new IPs
- // //compatibility for firefox and chrome
- // var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
- // var pc = new myPeerConnection({
- // iceServers: []
- // }),
- // noop = function() {},
- // localIPs = {},
- // ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
- // key;
- // function iterateIP(ip) {
- // if (!localIPs[ip]) onNewIP(ip);
- // localIPs[ip] = true;
- // }
- // //create a bogus data channel
- // pc.createDataChannel("");
- // // create offer and set local description
- // pc.createOffer().then(function(sdp) {
- // sdp.sdp.split('\n').forEach(function(line) {
- // if (line.indexOf('candidate') < 0) return;
- // line.match(ipRegex).forEach(iterateIP);
- // });
- // pc.setLocalDescription(sdp, noop, noop);
- // }).catch(function(reason) {
- // // An error occurred, so handle the failure to connect
- // });
- // //sten for candidate events
- // pc.onicecandidate = function(ice) {
- // if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
- // ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
- // };
- // }
- // U.MD.D.I.getUserIpBool = function(callback){
- // U.MD.D.I.getUserIP(function(ip){
- // alert("Got IP! :" + ip);
- // });
- //}
- //#endregion
- U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_Jie' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboard" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "MindMap":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "//cloud.cocorobo.cn/mind/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "doc" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- })
- _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);
- }
- }
- break;
- case "mindNetwork": //好友打开
- aTool = 7;
- _iframe = $$("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
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维网格",
- _box, {
- "id": "mindNetwork" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "courseDesign":
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "/course-design-vue"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "项目设计",
- _box, {
- "id": "courseDesign" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
- script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'courseDesign') {
- U.UF.DL.iframeLoad(_iframe, function () {
- // _iframe.contentWindow.U.MD.O.W.load();
- // _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- //
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'whiteboard') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
- };
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 1) {
- text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
- } else if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_Jie' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- // if (_taskbar) {
- // U.MD.D.T.taskbar(_taskbar); //创建任务处理
- // }
- }
- U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_JieE' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboard" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "MindMap":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "//cloud.cocorobo.cn/mind/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "doc" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- })
- _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);
- }
- }
- break;
- case "mindNetwork": //好友打开
- aTool = 7;
- _iframe = $$("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
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维网格",
- _box, {
- "id": "mindNetwork" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "courseDesign":
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "/course-design-vue"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "项目设计",
- _box, {
- "id": "courseDesign" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
- script4.src = window.origin + "/js/Common/jietu2E.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'courseDesign') {
- U.UF.DL.iframeLoad(_iframe, function () {
- // _iframe.contentWindow.U.MD.O.W.load();
- // _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- //
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'whiteboard') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
- };
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 1) {
- text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
- } else if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_JieE' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- // if (_taskbar) {
- // U.MD.D.T.taskbar(_taskbar); //创建任务处理
- // }
- }
- U.MD.D.I.openApplicationJieTeacher = function (str, cid, stage, task, tool, student) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userid = student.userid, //登录用户id
- _username = student.student //用户名字
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板-" + _username,
- _box, {
- "id": "whiteboard" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图-" + _username,
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "MindMap":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "//cloud.cocorobo.cn/mind/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图-" + _username,
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档-" + _username,
- _box, {
- "id": "doc" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- })
- _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);
- }
- }
- break;
- case "mindNetwork": //好友打开
- aTool = 7;
- _iframe = $$("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
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维网格-" + _username,
- _box, {
- "id": "mindNetwork" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "courseDesign":
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "/course-design-vue"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "项目设计-" + _username,
- _box, {
- "id": "courseDesign" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
- script4.src = "https://cloud.cocorobo.cn/js/Common/jietu2.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'courseDesign') {
- U.UF.DL.iframeLoad(_iframe, function () {
- // _iframe.contentWindow.U.MD.O.W.load();
- // _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- //
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'whiteboard') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
- };
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 1) {
- text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
- } else if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_JieTeacher' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- }
- U.MD.D.I.openApplicationJieTeacherE = function (str, cid, stage, task, tool, student) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userid = student.userid, //登录用户id
- _username = student.student //用户名字
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板-" + _username,
- _box, {
- "id": "whiteboard" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图-" + _username,
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "MindMap":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "//cloud.cocorobo.cn/mind/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图-" + _username,
- _box, { //"/jsmind/example/demo.html"
- "id": "mind" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档-" + _username,
- _box, {
- "id": "doc" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- })
- _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);
- }
- }
- break;
- case "mindNetwork": //好友打开
- aTool = 7;
- _iframe = $$("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
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维网格-" + _username,
- _box, {
- "id": "mindNetwork" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "courseDesign":
- _iframe = $$("iframe", {
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "allowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0; width:100%; height:100%;"
- },
- "src": "/course-design-vue"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "项目设计-" + _username,
- _box, {
- "id": "courseDesign" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu2.js";
- script4.src = window.origin + "/js/Common/jietu2E.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool);
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'courseDesign') {
- U.UF.DL.iframeLoad(_iframe, function () {
- // _iframe.contentWindow.U.MD.O.W.load();
- // _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- //
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'whiteboard') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
- };
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 1) {
- text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
- } else if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_JieTeacherE' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- }
- U.MD.D.I.getEditorContent = function (iframe) {
- return new Promise((resolve, reject) => {
- iframe.contentWindow.editor.minder.exportData('json').then(function (content) {
- console.log(content);
- resolve(content)
- });
- });
- }
- U.MD.D.I.getContent = function (cid, s, task, t, uid, type, iframe) {
- // U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
- // if (res.value[0].length > 0) {
- // // resolve(res.value[0][0].text);
- // iframe.contentWindow.editor.minder.importData('json', res.value[0][0].text).then(function (data) {
- // $(fileInput).val('');
- // });
- // }
- // }, [], { "type": "GET", "withCredentials": true });
- var xmlhttp;
- var Mac, Sn, DeviceId
- if (window.XMLHttpRequest) {
- // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
- xmlhttp = new XMLHttpRequest();
- } else {
- // IE6, IE5 浏览器执行代码
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function () {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
- // resolve(res.value[0][0].text);
- if (type == '2') {
- iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
- } else if (type == '3') {
- iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
- }
- } else {
- U.MD.D.I.getContents2(cid, s, task, t, uid, type, iframe)
- }
- }
- }
- xmlhttp.open("GET", US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
- xmlhttp.send();
- }
- U.MD.D.I.openApplicationJieS = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "确认并提交"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_JieS' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboards" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- });
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "minds" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "docs" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- })
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
- script4.src = "https://cloud.cocorobo.cn/js/Common/jietu4.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_JieS' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- // if (_taskbar) {
- // U.MD.D.T.taskbar(_taskbar); //创建任务处理
- // }
- }
- U.MD.D.I.openApplicationJieStudio = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "确认并提交"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboards" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- });
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "minds" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "docs" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- })
- _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);
- }
- }
- break;
- }
- const script1 = document.createElement("script");
- script1.type = "text/javascript";
- // script1.src = US.Config.bpbl + "/pbl-student-table/dist/js/jquery-3.6.0.min.js";
- script1.src = "https://cloud.cocorobo.cn/js/Common/jquery-3.6.0.min.js";
- const script2 = document.createElement("script");
- script2.type = "text/javascript";
- // script2.src = US.Config.bpbl + "/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
- script2.src = "https://cloud.cocorobo.cn/js/Common/aws-sdk-2.235.1.min.js";
- const script3 = document.createElement("script");
- script3.type = "text/javascript";
- script3.charset = "UTF-8";
- script3.src = "https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";
- const script4 = document.createElement("script");
- script4.type = "text/javascript";
- // script4.src = US.Config.bpbl + "/pbl-student-table/dist/js/jietu4.js";
- script4.src = "https://cloud.cocorobo.cn/js/Common/jietu5.js";
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- _iframe.contentWindow.document.body.appendChild(script4);
- U.MD.D.I.getContents(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => {
- _iframe.contentWindow.document.body.appendChild(script1);
- _iframe.contentWindow.document.body.appendChild(script2);
- // _iframe.contentWindow.document.body.appendChild(script3);
- _iframe.contentWindow.document.body.appendChild(script4);
- };
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- var _ajs = _iframe.contentWindow.document.createElement("script");
- _ajs.type = "text/javascript";
- _ajs.innerHTML =
- // 'console.log(' + _loading + ');\n' +
- 'var _js = document.createElement("script");\n' +
- '_js.type="text/javascript";\n' +
- '_js.charset="UTF-8";\n' +
- '_js.src="https://cloud.cocorobo.cn/js/Common/html2canvas.min.js";\n' +
- "_js.onload = function(){\n" +
- ' var a = document.getElementsByTagName("img")\n' +
- ' for(var i = 0;i<a.length;i++){a[i].crossOrigin="anonymous"}\n' +
- " html2canvas(document.body,{allowTaint: true,useCORS: true,height: document.body.scrollHeight,windowHeight: document.body.scrollHeight}).then(canvas => {\n" +
- ' var base64Url = canvas.toDataURL("image/png");\n' +
- 'var base64 = "<img src=" + base64Url + " />"\n' +
- 'var file = dataURLtoFile_shishi(base64Url, "截图")\n' +
- "beforeUpload_shishi(file," +
- "'" +
- _userid +
- "'" +
- ", " +
- "'" +
- _cid +
- "'" +
- ", " +
- "'" +
- _stage +
- "'" +
- ", " +
- "'" +
- _task +
- "'" +
- ", " +
- "'" +
- _tool +
- "'" +
- ", " +
- "'" +
- (str + '_loadLi_JieStudio' + cid + stage + task + tool + _userid) +
- "'" +
- ", " +
- "'" +
- aTool +
- "'" +
- ", " +
- "`" +
- text +
- "`" +
- ")\n" +
- " });\n" +
- "}\n" +
- "document.head.appendChild(_js);\n";
- _iframe.contentWindow.document.head.appendChild(_ajs);
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- // if (_taskbar) {
- // U.MD.D.T.taskbar(_taskbar); //创建任务处理
- // }
- }
- U.MD.D.I.openApplicationYu = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "上传模板"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_Yu' + cid + stage + task + tool + _userid
- switch (str) {
- case "whiteboard":
- aTool = 1;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://iwb.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "电子白板",
- _box, {
- "id": "whiteboards_Yu" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "mind":
- aTool = 3;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/kityminder-editor/dist/index.html"
- });
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "思维导图",
- _box, { //"/jsmind/example/demo.html"
- "id": "minds_Yu" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- case "doc":
- aTool = 6;
- _iframe = $$("iframe", {
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "/Office/Word/WordEditArea.htm"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "协同文档",
- _box, {
- "id": "docs_Yu" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function () {
- $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- })
- _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);
- }
- }
- break;
- case "CocoPi":
- aTool = 57;
- _iframe = $$("iframe", {
- "allowpaymentrequest": "allowpaymentrequest",
- "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://pi.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "CocoPi",
- _box, {
- "id": "CocoPi_Yu" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- if (_iframe) {
- if (str == 'doc') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- _iframe.contentWindow.U.MD.O.W.load(cid, stage, task, tool, '2');
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'mind') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '2', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'whiteboard') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '3', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else if (str == 'CocoPi') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- U.MD.D.I.getContents2(cid, stage, task, tool, _userid, '4', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- } else {
- _iframe.onload = () => { };
- }
- _jie.onclick = async () => {
- let text = ''
- let type = '2'
- if (aTool == 1) {
- text = JSON.stringify(_iframe.contentWindow.h.app.scene.elements)
- type = '3'
- } else if (aTool == 6) {
- text = _iframe.contentWindow.$("#U_MD_O_H_wordEditor")[0].innerHTML.escapeQuotes()
- type = '1'
- } else if (aTool == 3) {
- text = await U.MD.D.I.getEditorContent(_iframe);
- type = '2'
- } else if (aTool == 57) {
- text = encodeURIComponent(_iframe.contentWindow.getLoadXmlStr())
- type = '4'
- }
- _loading.style.display = 'flex'
- U.MD.D.I.setContents(_cid, _stage, _task, _tool, _userid, type, text, _loading, _lspan)
- }
- }
- //U.MD.D.I.openClick(str);
- //如果有任务栏信息
- // if (_taskbar) {
- // U.MD.D.T.taskbar(_taskbar); //创建任务处理
- // }
- }
- U.MD.D.I.getContents = function (cid, s, task, t, uid, type, iframe) {
- var xmlhttp;
- var Mac, Sn, DeviceId
- if (window.XMLHttpRequest) {
- // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
- xmlhttp = new XMLHttpRequest();
- } else {
- // IE6, IE5 浏览器执行代码
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function () {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
- // resolve(res.value[0][0].text);
- iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
- }
- }
- }
- xmlhttp.open("GET", US.Config.pbl + "selectWords?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
- xmlhttp.send();
- }
- U.MD.D.I.getContents2 = function (cid, s, task, t, uid, type, iframe) {
- var xmlhttp;
- var Mac, Sn, DeviceId
- if (window.XMLHttpRequest) {
- // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
- xmlhttp = new XMLHttpRequest();
- } else {
- // IE6, IE5 浏览器执行代码
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function () {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- if (xmlhttp.response && JSON.parse(xmlhttp.response)[0].length > 0) {
- // resolve(res.value[0][0].text);
- if (type == '2') {
- iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text)
- } else if (type == '3') {
- iframe.contentWindow.h.app.updateScene({ elements: JSON.parse(JSON.parse(xmlhttp.response)[0][0].text) })
- } else if (type == '4') {
- iframe.contentWindow.loadingXml(JSON.parse(xmlhttp.response)[0][0].text)
- }
- } else {
- if (type == '2') {
- iframe.contentWindow.editor.minder.importData('json', '')
- } else if (type == '3') {
- iframe.contentWindow.h.app.updateScene({ elements: [] })
- } else if (type == '4') {
- iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
- }
- }
- }
- }
- xmlhttp.open("GET", US.Config.pbl + "selectWordsY?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, true);
- xmlhttp.send();
- }
- U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span) {
- var xmlhttp;
- var Mac, Sn, DeviceId
- if (window.XMLHttpRequest) {
- // IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
- xmlhttp = new XMLHttpRequest();
- } else {
- // IE6, IE5 浏览器执行代码
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function () {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- if (xmlhttp.response) {
- // resolve(res.value[0][0].text);
- // iframe.contentWindow.editor.minder.importData('json', JSON.parse(xmlhttp.response)[0][0].text).then(function (data) {
- // $(fileInput).val('');
- // });
- span.innerHTML = '上传成功'
- setTimeout(() => {
- loading.style.display = 'none'
- }, 1000);
- }
- }
- }
- // xmlhttp.open("GET", US.Config.pbl + "insertWord2y?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t+ "&text=" + text + "&type=" + type, true);
- xmlhttp.open("POST", US.Config.pbl + "insertWord2y", true);
- // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
- xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- // 设置请求头,表示请求体的编码格式
- xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
- // 设置请求体,使用url-encoded格式的数据
- }
- U.MD.D.I.openApplicationUpload = function (str, cid, stage, task, tool) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userinfo = US.userInfo, //登录用户信息
- _userid = US.userInfo.userid //登录用户id
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_Upload' + cid + stage + task + tool + _userid
- switch (str) {
- case "CocoPi":
- aTool = 57;
- _iframe = $$("iframe", {
- "allowpaymentrequest": "allowpaymentrequest",
- "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://pi.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "CocoPi",
- _box, {
- "id": "CocoPi_Upload" + cid + stage + task + tool,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- if (_iframe) {
- if (str == 'CocoPi') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 57) {
- text = _iframe.contentWindow.getLoadXmlStr()
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
- _loading.style.display = 'none'
- let _div = document.createElement('div')
- _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
- let _inner = document.createElement('div')
- _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
- _inner.innerHTML = "上传成功"
- _div.appendChild(_inner)
- _iframe.contentWindow.window.document.body.appendChild(_div)
- _div.onclick = () => {
- _iframe.contentWindow.window.document.body.removeChild(_div)
- }
- setTimeout(() => {
- _iframe.contentWindow.window.document.body.removeChild(_div)
- }, 1000);
- }, [], { "type": "POST", "withCredentials": true });
- }
- }
- }
- U.MD.D.I.openApplicationTeacherUpload = function (str, cid, stage, task, tool, student) {
- var _taskbar, //_taskbar 作为任务栏显示的元素,包含图标和名字
- _formdiv, //创建任务栏时同时弹出的窗体元素。
- _userid = student.userid, //登录用户id
- _username = student.student //用户名字
- let _iframe;
- let _cid = cid,
- _stage = stage,
- _task = task,
- _tool = tool;
- var _jie = $$("div", {
- "style": {
- "position": "absolute",
- "bottom": "50px",
- "right": "50px",
- "zIndex": "9999",
- "backgroundColor": "#2268bc",
- "color": "#fff",
- "padding": "12px 20px",
- "cursor": "pointer",
- "borderRadius": "4px",
- },
- "innerHTML": "提交作业"
- })
- let aTool = ''
- let _loading = document.createElement('div')
- _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;"
- // _loading.id = "";
- let _lchild = document.createElement('div')
- let _limg = document.createElement('img')
- _limg.src = US.Config.bpbl + '/pbl-student-table/dist/js/loading.gif'
- _limg.style = "width: 26px;margin-right: 10px;"
- _lchild.appendChild(_limg)
- let _lspan = document.createElement('span')
- _lspan.innerHTML = "上传中..."
- _lchild.appendChild(_lspan)
- _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%);"
- _loading.appendChild(_lchild)
- var _box = $$('div', {
- "style": {
- "position": "relative",
- "width": "100%",
- "height": "100%",
- },
- })
- _box.appendChild(_loading)
- _box.id = str + '_loadLi_TeacherUpload' + cid + stage + task + tool + _userid
- switch (str) {
- case "CocoPi":
- aTool = 57;
- _iframe = $$("iframe", {
- "allowpaymentrequest": "allowpaymentrequest",
- "allow": "camera *; microphone *;display-capture;midi;encrypted-media;usb",
- "webkitallowfullscreen": "",
- "mozallowfullscreen": "",
- "frameborder": "no",
- "border": "0",
- "scrolling ": "no",
- "style": {
- "cssText": "border:0;width:100%;height:100%"
- },
- "src": "https://pi.cocorobo.cn/"
- })
- _box.appendChild(_iframe);
- _box.appendChild(_jie);
- _formdiv = new U.UF.UI.form(
- "CocoPi-" + _username,
- _box, {
- "id": "CocoPi_TeacherUpload" + cid + stage + task + tool + _userid,
- "style": {
- "width": "90%",
- "height": "90%",
- "overflow": 'hidden'
- },
- "onresize": function () { }
- }, {
- closecallback: function () { }
- }, {
- "style": {
- "height": "36px"
- }
- }).form; //创建窗体
- _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);
- }
- }
- break;
- }
- if (_iframe) {
- if (str == 'CocoPi') {
- _iframe = _formdiv.querySelector('iframe')
- let onloadListener = U.UF.DL.iframeLoad(_iframe, function () {
- U.MD.D.I.getUploadContent(cid, stage, task, tool, _userid, aTool, '15', _iframe)
- })
- if (onloadListener) {
- _iframe.contentDocument.location.reload()
- } else {
- _iframe.contentDocument.location.reload()
- }
- }
- _jie.onclick = async () => {
- let text = ''
- if (aTool == 57) {
- text = _iframe.contentWindow.getLoadXmlStr()
- }
- _loading.style.display = 'flex'
- console.log(_loading);
- U.A.Request(US.Config.pbl + "addCourseWorks4-u", [_userid, _cid, _stage, _task, _tool, text.replaceAll(/%/g, "%25"), 15, aTool, text], function (res) {
- _loading.style.display = 'none'
- let _div = document.createElement('div')
- _div.style = "width:100%;height:100%;background:#0000008f;position:fixed;top:0;left:0;z-index:99999999999999;display: flex;justify-content: center;align-items: center;"
- let _inner = document.createElement('div')
- _inner.style = "color: #fff;padding: 15px;background: #00000070;border-radius: 5px;font-size: 18px;"
- _inner.innerHTML = "上传成功"
- _div.appendChild(_inner)
- _iframe.contentWindow.window.document.body.appendChild(_div)
- _div.onclick = () => {
- _iframe.contentWindow.window.document.body.removeChild(_div)
- }
- setTimeout(() => {
- _iframe.contentWindow.window.document.body.removeChild(_div)
- }, 1000);
- }, [], { "type": "POST", "withCredentials": true });
- }
- }
- }
- U.MD.D.I.getUploadContent = function (cid, s, task, t, uid, atool, type, iframe) {
- U.A.Request(US.Config.pbl + "selectWorksDetail2u", [uid, cid, s, task, t, type, atool], function (res) {
- if (res.value[0].length > 0) {
- if (atool == 57) {
- iframe.contentWindow.loadingXml(res.value[0][0].content)
- }
- } else {
- if (atool == 57) {
- U.MD.D.I.getContents2(cid, s, task, t, uid, '4', iframe)
- // iframe.contentWindow.window.blockpy.components.editor.blockly.clear();
- }
- }
- }, [], { "type": "POST", "withCredentials": true });
- }
|