studyStudent.vue 498 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <img src="../../assets/icon/learn/screen.png" @click="allScrell" />
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetailNT?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div>第{{ stageIndex + 1 }}阶段</div>
  55. <div>{{ item.dyName }}</div>
  56. </div>
  57. <div class="twoChild" :class="{ navActive: item.isOpen }">
  58. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  59. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  60. openTaskActive:
  61. navIndex == taskCount &&
  62. nav.id == navId &&
  63. stageIndex == courseType,
  64. }">
  65. <div class="vedioNav" :class="{
  66. isClick:
  67. navIndex == taskCount &&
  68. nav.id == navId &&
  69. stageIndex == courseType,
  70. }" style="margin: 0">
  71. 任务{{ navIndex + 1 }}
  72. </div>
  73. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  74. <div :style="{
  75. width:
  76. IsLookOpen && !nav.isLook
  77. ? 'calc(100% - 75px)'
  78. : 'auto',
  79. }">
  80. {{ nav.taskName }}
  81. </div>
  82. </el-tooltip>
  83. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  91. <div class="new_top" style="
  92. position: fixed;
  93. top: 0;
  94. left: 20.7%;
  95. width: 80%;
  96. z-index: 999;
  97. box-shadow: 0px 9px 0 0 #f2f2f2;
  98. " :class="{ navLeftCss: !mlDialog }">
  99. <div class="courseIndex">
  100. <div>第{{ courseType - 0 + 1 }}阶段</div>
  101. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  102. <div>{{ chapInfoList[courseType].dyName }}</div>
  103. </el-tooltip>
  104. <div>任务{{ taskCount + 1 }}</div>
  105. </div>
  106. <div class="btnAll">
  107. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  108. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  109. <div class="returnBtn" @click="allScrell">全屏</div>
  110. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  111. 开始录制
  112. </div>
  113. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  114. style="background: #ee5255">
  115. 下载录制
  116. </div>
  117. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  118. 权限
  119. </div> -->
  120. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  121. '/courseDetailNT?userid=' +
  122. userid +
  123. '&oid=' +
  124. oid +
  125. '&org=' +
  126. org +
  127. '&cid=' +
  128. classId +
  129. '&courseId=' +
  130. id +
  131. '&tType=' +
  132. tType +
  133. '&screenType=' +
  134. screenType
  135. )
  136. ">
  137. 返回
  138. </div>
  139. </div>
  140. </div>
  141. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  142. .taskJson"
  143. :key="index"-->
  144. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  145. .chapterData.length == 0 &&
  146. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  147. .toolChoose[0].tool.length == 0 &&
  148. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .taskDetail == '' &&
  151. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  152. ">
  153. <img src="../../assets/icon/isNoMessage.png" alt />
  154. </div>
  155. <div class="study_top" :class="{ pzClass: pzDialog }">
  156. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  158. .taskDetail != '' ||
  159. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  160. .chapterData.length > 0
  161. ">
  162. <div class="checkbox">
  163. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  164. ">
  165. 学一学
  166. </div>
  167. </div>
  168. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  169. textList[taskCount].length > 0 ||
  170. lineList[taskCount].length > 0 ||
  171. file[taskCount].length > 0 ||
  172. fileC[taskCount].length > 0 ||
  173. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  174. .taskDetail != ''
  175. ">
  176. <div class="taskBox">
  177. <div style="
  178. display: flex;
  179. flex-wrap: nowrap;
  180. flex-direction: column;
  181. position: relative;
  182. ">
  183. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  184. taskCount
  185. ].taskDetail != ''
  186. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  187. taskCount
  188. ].taskDetail
  189. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  190. taskCount
  191. ].taskDetail
  192. : '暂无描述'
  193. "></div>
  194. </div>
  195. </div>
  196. <div class="vedioTaskBox">
  197. <div :class="contentDialog == false
  198. ? 'box_course isContentCss'
  199. : 'box_course'
  200. " v-if="vedio[taskCount].length > 0 ||
  201. textList[taskCount].length > 0 ||
  202. lineList[taskCount].length > 0 ||
  203. file[taskCount].length > 0
  204. ">
  205. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  206. vedio[taskCount] &&
  207. vedio[taskCount].length > 0 &&
  208. showType == 0
  209. ">
  210. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  211. <video-player class="video-player vjs-custom-skin"
  212. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  213. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  214. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  215. </div>
  216. </div>
  217. <div class="wheel" v-if="showType == 1" style="
  218. box-shadow: 0 0 6px 1px #f2f2f2;
  219. width: 95%;
  220. margin: 0 auto;
  221. background: #f1f1f1;
  222. ">
  223. <div class="title">查看文档</div>
  224. <el-form class="textBox">
  225. <el-form-item class="textTitle">
  226. <div style="font-size: 22px">
  227. {{ text.name }}
  228. </div>
  229. </el-form-item>
  230. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  231. <div v-html="text.url" class="textContent cont"></div>
  232. </el-form>
  233. </div>
  234. <div class="wheel"
  235. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  236. style="width: 95%; margin: 0 auto">
  237. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  238. </div>
  239. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  240. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  241. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  242. :src="pptImgUrl1"></iframe>
  243. </div>
  244. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  245. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  246. </div>
  247. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  248. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  249. </div>
  250. </div>
  251. <div class="pButton" style="
  252. position: absolute;
  253. right: 20px;
  254. top: 0;
  255. background: #205cc6;
  256. z-index: 998;
  257. opacity: .8;
  258. " v-if="!contentDialog" @click="setContent(true)">
  259. <!-- 批 -->
  260. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  261. </div>
  262. <div v-if="contentDialog == true" :style="{
  263. width: (!vedio[taskCount].length > 0 &&
  264. !textList[taskCount].length > 0 &&
  265. !lineList[taskCount].length > 0 &&
  266. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  267. !textList[taskCount].length > 0 &&
  268. !lineList[taskCount].length > 0 &&
  269. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  270. }">
  271. <div class="vedioList" v-if="(vedio.length &&
  272. vedio[taskCount] &&
  273. vedio[taskCount].length > 0) ||
  274. (textList.length &&
  275. textList[taskCount] &&
  276. textList[taskCount].length > 0) ||
  277. (lineList.length &&
  278. lineList[taskCount] &&
  279. lineList[taskCount].length > 0) ||
  280. (file.length &&
  281. file[taskCount] &&
  282. file[taskCount].length > 0) ||
  283. (fileC.length &&
  284. fileC[taskCount] &&
  285. fileC[taskCount].length > 0)
  286. " style="height: 650px">
  287. <div class="navCorOpenBox">
  288. <div class="navTitile">内容列表:</div>
  289. <div class="navCorOpen" @click="setContent(false)">
  290. <img src="../../assets/navBtn2.png" alt="" />
  291. </div>
  292. </div>
  293. <div class="navBox">
  294. <div v-show="vedio.length &&
  295. vedio[taskCount] &&
  296. vedio[taskCount].length > 0
  297. ">
  298. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  299. @click="lookVedio(media.url, vedioIndex)">
  300. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  301. ? 'isClickNav'
  302. : ''
  303. ">
  304. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  305. </div>
  306. </div>
  307. </div>
  308. <div v-show="textList.length &&
  309. textList[taskCount] &&
  310. textList[taskCount].length > 0
  311. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  312. @click="lookText(taskCount, textIndex)">
  313. <div style="width: calc(100% - 0px)">
  314. <div class="navText" :class="isClickNav == 'text' + textIndex
  315. ? 'isClickNav'
  316. : ''
  317. ">
  318. {{
  319. textList[taskCount].length > 0 ? text.name : ""
  320. }}.doc
  321. </div>
  322. </div>
  323. </div>
  324. <div v-show="lineList.length &&
  325. lineList[taskCount] &&
  326. lineList[taskCount].length > 0
  327. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  328. @click="doUrl(lines.url, lineIndex)">
  329. <div style="width: calc(100% - 0px)">
  330. <div class="navText" :class="isClickNav == 'line' + lineIndex
  331. ? 'isClickNav'
  332. : ''
  333. ">
  334. {{ lines.title ? lines.title : lines.url }}
  335. </div>
  336. </div>
  337. </div>
  338. <div class="newNav" v-show="file.length &&
  339. file[taskCount] &&
  340. file[taskCount].length > 0
  341. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  342. <div style="width: calc(100% - 0px)">
  343. <div class="navText" :class="isClickNav == 'word' + fileIndex
  344. ? 'isClickNav'
  345. : ''
  346. ">
  347. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  348. </div>
  349. </div>
  350. </div>
  351. <div class="newNav" v-show="fileC.length &&
  352. fileC[taskCount] &&
  353. fileC[taskCount].length > 0
  354. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  355. <div style="width: calc(100% - 0px)">
  356. <div class="navText">
  357. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. <div style="width: 81%">
  366. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  367. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  368. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  369. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  370. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  371. </el-button>
  372. </div>
  373. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  374. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="student_body" v-resize="resize">
  380. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .toolChoose[0].tool &&
  382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  383. .toolChoose[0].tool.length &&
  384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  385. .toolChoose[0].tool.length > 0
  386. ">
  387. <div class="queTop" style="
  388. font-size: 25px;
  389. padding: 15px 0 15px 30px;
  390. font-weight: bold;
  391. ">
  392. 任务发布区
  393. </div>
  394. <div class="toolHeng2" style="position: relative">
  395. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px"
  396. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose.length">
  397. <div class="choiceBox">
  398. <div class="bzChild" style="margin-right:20px;">
  399. <span>步骤选择:</span>
  400. </div>
  401. <div class="bzTypeBox">
  402. <div class="bzChild"
  403. v-for="(bz, bzIndex) in chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose"
  404. :key="bzIndex" :class="{active:toolIndex == bzIndex}" @click="checkBz(bzIndex)">
  405. <span>步骤{{ bzIndex + 1 }}</span>
  406. </div>
  407. </div>
  408. </div>
  409. <div class="bzBox">
  410. <div></div>
  411. <div>步骤{{ toolIndex + 1 }}</div>
  412. </div>
  413. <div class="toolBox">
  414. <div class="toolBoxSteps" @click="nextToolindex('last')"><img src="../../assets/icon/leftIcon.png" />
  415. </div>
  416. <div class="toolBoxSteps" @click="nextToolindex('next')"><img src="../../assets/icon/rightIcon.png" />
  417. </div>
  418. <div>
  419. <div class="noiframeBox">
  420. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  421. <div v-if="tooC == 1">
  422. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt
  423. @click="addTools(tooC, toolIndex, taskCount)" />
  424. <div style="margin: 5px 0">电子白板</div>
  425. </div>
  426. <div v-if="tooC == 3">
  427. <img src="../../assets/icon/secondToolList/mindMapping.png" alt
  428. @click="addTools(tooC, toolIndex, taskCount)" />
  429. <div style="margin: 5px 0">思维导图</div>
  430. </div>
  431. <div v-if="tooC == 6">
  432. <img src="../../assets/icon/secondToolList/doc.png" alt
  433. @click="addTools(tooC, toolIndex, taskCount)" />
  434. <div style="margin: 5px 0">协同文档</div>
  435. </div>
  436. <div v-if="tooC == 7">
  437. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt
  438. @click="addTools(tooC, toolIndex, taskCount)" />
  439. <div style="margin: 5px 0">思维网格</div>
  440. </div>
  441. <div v-if="tooC == 8">
  442. <img src="../../assets/icon/secondToolList/library.png" alt
  443. @click="addTools(tooC, toolIndex, taskCount)" />
  444. <div style="margin: 5px 0">素材库</div>
  445. </div>
  446. <div v-if="tooC == 17">
  447. <img src="../../assets/icon/secondToolList/library.png" alt
  448. @click="addTools(tooC, toolIndex, taskCount)" />
  449. <div style="margin: 5px 0">学习资料</div>
  450. </div>
  451. <div v-if="tooC == 2">
  452. <img @click="addTools(tooC, toolIndex, taskCount)"
  453. src="../../assets/icon/secondToolList/note.png" alt />
  454. <div style="margin: 5px 0">便签</div>
  455. </div>
  456. <div v-if="tooC == 4">
  457. <img @click="addTools(tooC, toolIndex, taskCount)"
  458. src="../../assets/icon/thirdToolList/ask.png" alt />
  459. <div style="margin: 5px 0">问卷调查</div>
  460. </div>
  461. <div v-if="tooC == 45">
  462. <img @click="addTools(tooC, toolIndex, taskCount)"
  463. src="../../assets/icon/thirdToolList/choose.png" alt />
  464. <div style="margin: 5px 0">选择题</div>
  465. </div>
  466. <!-- <div v-if="tooC == 5">
  467. <img
  468. @click="addTools(tooC, toolIndex, taskCount)"
  469. src="../../assets/icon/thirdToolList/score.png"
  470. alt
  471. />
  472. <div style="margin: 5px 0">量规评分</div>
  473. </div> -->
  474. <div v-if="tooC == 10">
  475. <img @click="addTools(tooC, toolIndex, taskCount)"
  476. src="../../assets/icon/thirdToolList/time.png" alt />
  477. <div style="margin: 5px 0">倒计时</div>
  478. </div>
  479. <div v-if="tooC == 15">
  480. <img @click="addTools(tooC, toolIndex, taskCount)"
  481. src="../../assets/icon/thirdToolList/answer.png" alt />
  482. <div style="margin: 5px 0">问答工具</div>
  483. </div>
  484. <div v-if="tooC == 26">
  485. <img @click="addTools(tooC, toolIndex, taskCount)"
  486. src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  487. <div style="margin: 5px 0">课程设计</div>
  488. </div>
  489. <div v-if="tooC == 18">
  490. <img @click="addTools(tooC, toolIndex, taskCount)"
  491. src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  492. <div style="margin: 5px 0">训练服务器</div>
  493. </div>
  494. <div v-if="tooC == 16">
  495. <img @click="addTools(tooC, toolIndex, taskCount)"
  496. src="../../assets/icon/thirdToolList/work.png" alt />
  497. <div style="margin: 5px 0">作业提交</div>
  498. </div>
  499. <div v-if="tooC == 50">
  500. <img @click="addTools(tooC, toolIndex, taskCount)"
  501. src="../../assets/icon/thirdToolList/plwork.png" alt />
  502. <div style="margin: 5px 0">批量上传</div>
  503. </div>
  504. <div v-if="tooC == 21">
  505. <img @click="addTools(tooC, toolIndex, taskCount)"
  506. src="../../assets/icon/fourthToolList/program.png" alt />
  507. <div style="margin: 5px 0">编程平台</div>
  508. </div>
  509. <div v-if="tooC == 22">
  510. <img @click="addTools(tooC, toolIndex, taskCount)"
  511. src="../../assets/icon/fourthToolList/program.png" alt />
  512. <div style="margin: 5px 0">AI体验</div>
  513. </div>
  514. <div v-if="tooC == 23">
  515. <img @click="addTools(tooC, toolIndex, taskCount)"
  516. src="../../assets/icon/fourthToolList/program.png" alt />
  517. <div style="margin: 5px 0">Python</div>
  518. </div>
  519. <div v-if="tooC == 24">
  520. <img @click="addTools(tooC, toolIndex, taskCount)"
  521. src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  522. <div style="margin: 5px 0">AI平台</div>
  523. </div>
  524. <div v-if="tooC == 25">
  525. <img @click="addTools(tooC, toolIndex, taskCount)"
  526. src="../../assets/icon/thirdToolList/evalua.png" alt />
  527. <div style="margin: 5px 0">目标管理</div>
  528. </div>
  529. <div v-if="tooC == 31">
  530. <img @click="addTools(tooC, toolIndex, taskCount)"
  531. src="../../assets/icon/secondToolList/networkPanel.png" alt />
  532. <div style="margin: 5px 0">数学画板</div>
  533. </div>
  534. <div v-if="tooC == 28">
  535. <img @click="addTools(tooC, toolIndex, taskCount)"
  536. src="../../assets/icon/secondToolList/translation.png" alt />
  537. <div style="margin: 5px 0">翻译</div>
  538. </div>
  539. <div v-if="tooC == 37">
  540. <img @click="addTools(tooC, toolIndex, taskCount)"
  541. src="../../assets/icon/secondToolList/mohe.png" alt />
  542. <div style="margin: 5px 0">魔盒识字</div>
  543. </div>
  544. <div v-if="tooC == 38">
  545. <img @click="addTools(tooC, toolIndex, taskCount)"
  546. src="../../assets/icon/secondToolList/24game.png" alt />
  547. <div style="margin: 5px 0">24点</div>
  548. </div>
  549. <div v-if="tooC == 39">
  550. <img @click="addTools(tooC, toolIndex, taskCount)"
  551. src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  552. <div style="margin: 5px 0">GeoGebra</div>
  553. </div>
  554. <div v-if="tooC == 32">
  555. <img @click="addTools(tooC, toolIndex, taskCount)"
  556. src="../../assets/icon/thirdToolList/code.png" alt />
  557. <div style="margin: 5px 0">源码编辑</div>
  558. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  559. style="position: absolute;left: 110px;bottom: 30px;">
  560. 上传文件
  561. <input type="file" accept="*" style="display: none"
  562. @change="beforeUpload1($event, 7, toolIndex)" />
  563. </div> -->
  564. </div>
  565. <div v-if="tooC == 40">
  566. <img @click="addTools(tooC, toolIndex, taskCount)"
  567. src="../../assets/icon/secondToolList/eval.png" alt />
  568. <div style="margin: 5px 0">个人评价</div>
  569. </div>
  570. <div v-if="tooC == 41">
  571. <img @click="addTools(tooC, toolIndex, taskCount)"
  572. src="../../assets/icon/thirdToolList/select.png" alt />
  573. <div style="margin: 5px 0">选择填空</div>
  574. </div>
  575. <div v-if="tooC == 44">
  576. <img @click="addTools(tooC, toolIndex, taskCount)"
  577. src="../../assets/icon/thirdToolList/hanClass.png" alt />
  578. <div style="margin: 5px 0">汉字宫</div>
  579. </div>
  580. <div v-if="tooC == 47">
  581. <img @click="addTools(tooC, toolIndex, taskCount)"
  582. src="../../assets/icon/fourthToolList/conSentences.png" alt />
  583. <div style="margin: 5px 0">连词成句</div>
  584. </div>
  585. <div v-if="tooC == 48">
  586. <img @click="addTools(tooC, toolIndex, taskCount)"
  587. src="../../assets/icon/fourthToolList/table.png" alt />
  588. <div style="margin: 5px 0">表格</div>
  589. </div>
  590. <div v-if="tooC == 52">
  591. <img @click="addTools(tooC, toolIndex, taskCount)"
  592. src="../../assets/icon/fourthToolList/text.png" alt />
  593. <div style="margin: 5px 0">文档</div>
  594. </div>
  595. <div v-if="tooC == 49">
  596. <img @click="addTools(tooC, toolIndex, taskCount)"
  597. src="../../assets/icon/fourthToolList/group.png" alt />
  598. <div style="margin: 5px 0">学生分组</div>
  599. </div>
  600. <div v-if="tooC == 57">
  601. <img @click="addTools(tooC, toolIndex, taskCount)"
  602. src="../../assets/icon/fourthToolList/cocopi.png" alt />
  603. <div style="margin: 5px 0">CocoPi</div>
  604. </div>
  605. <div v-if="tooC == 58">
  606. <img @click="addTools(tooC, toolIndex, taskCount)"
  607. src="../../assets/icon/fourthToolList/car.png" alt />
  608. <div style="margin: 5px 0">模拟驾驶</div>
  609. </div>
  610. <div v-if="tooC == 59">
  611. <img @click="addTools(tooC, toolIndex, taskCount)"
  612. src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  613. <div style="margin: 5px 0">路径搜索</div>
  614. </div>
  615. <div v-if="tooC == 60">
  616. <img @click="addTools(tooC, toolIndex, taskCount)"
  617. src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  618. <div style="margin: 5px 0">深度学习</div>
  619. </div>
  620. <div v-if="tooC == 61">
  621. <img @click="addTools(tooC, toolIndex, taskCount)"
  622. src="../../assets/icon/fourthToolList/allHistory.png" alt />
  623. <div style="margin: 5px 0">全历史</div>
  624. </div>
  625. </div>
  626. </div>
  627. </div>
  628. <div class="tooldetail">
  629. <!-- <div class="toolTitle">工具描述</div> -->
  630. <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
  631. </div>
  632. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  633. position: absolute;
  634. right: 30px;
  635. transform: translateY(-130%);
  636. " @click="addImg($event)">上传作业<input type="file" accept="*"
  637. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  638. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  639. position: absolute;
  640. right: 30px;
  641. transform: translateY(-130%);
  642. " @click="addImg($event)">上传作业<input type="file" accept="*"
  643. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  644. </div>
  645. </div>
  646. </div>
  647. </div>
  648. <div class="vedioBox"
  649. v-if="arrayToArray(tool.tool, isWorkTool).length && worksTeacher.length && worksTeacher[toolIndex].length">
  650. <div class="queTop" style="
  651. font-size: 25px;
  652. padding: 15px 0 15px 30px;
  653. font-weight: bold;
  654. ">
  655. 教师工作区
  656. </div>
  657. <div class="tool_work_box">
  658. <div v-if="tType &&
  659. ((tType == 2 && sIsOpen == true) ||
  660. tType == 1 ||
  661. tType == 4) &&
  662. tool.tool.indexOf(16) != -1
  663. " class="worksBox">
  664. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  665. worksTeacher[toolIndex].length > 0
  666. ">
  667. <div class="worksTop">
  668. <div>作业预览</div>
  669. </div>
  670. </div>
  671. <div class="worksDetailBox" v-if="worksTeacher.length &&
  672. worksTeacher[toolIndex].length > 0
  673. ">
  674. <div class="works" style="
  675. width: 200px;
  676. height: 140px;
  677. margin: 10px 10px 10px 0;
  678. border-radius: 15px;
  679. box-shadow: 0 0 6px 1px #dfdada;
  680. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  681. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  682. <div class="workImg" v-if="w.type == 0">
  683. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  684. <img :src="w.works" @click="previewImg(w.works)" alt />
  685. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  686. rightW:
  687. w.userid == userid ||
  688. tType == 1 ||
  689. tType == 4 ||
  690. w.ateacher == userid,
  691. }">
  692. {{ JSON.parse(w.score).wScore }}分
  693. </div>
  694. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  695. :class="{
  696. rightW:
  697. w.userid == userid ||
  698. tType == 1 ||
  699. tType == 4 ||
  700. w.ateacher == userid,
  701. }">
  702. 评分
  703. </div>
  704. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  705. " @click.stop="deleteWorks(w.wid)" alt />
  706. </div>
  707. <div class="workImg" v-if="w.type == 1">
  708. <img :src="word" @click="openFile(w.works)" alt />
  709. <!-- @click="openFile(w.works)" -->
  710. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  711. rightW:
  712. w.userid == userid ||
  713. tType == 1 ||
  714. tType == 4 ||
  715. w.ateacher == userid,
  716. }">
  717. {{ JSON.parse(w.score).wScore }}分
  718. </div>
  719. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  720. :class="{
  721. rightW:
  722. w.userid == userid ||
  723. tType == 1 ||
  724. tType == 4 ||
  725. w.ateacher == userid,
  726. }">
  727. 评分
  728. </div>
  729. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  730. " @click.stop="deleteWorks(w.wid)" alt />
  731. </div>
  732. <div class="workImg" v-if="w.type == 3">
  733. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  734. <!-- @click="openVideo(w.works)" -->
  735. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  736. rightW:
  737. w.userid == userid ||
  738. tType == 1 ||
  739. tType == 4 ||
  740. w.ateacher == userid,
  741. }">
  742. {{ JSON.parse(w.score).wScore }}分
  743. </div>
  744. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  745. :class="{
  746. rightW:
  747. w.userid == userid ||
  748. tType == 1 ||
  749. tType == 4 ||
  750. w.ateacher == userid,
  751. }">
  752. 评分
  753. </div>
  754. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  755. " @click.stop="deleteWorks(w.wid)" alt />
  756. </div>
  757. <div class="workImg" v-if="w.type == 12">
  758. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  759. <!-- @click="openVideo(w.works)" -->
  760. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  761. rightW:
  762. w.userid == userid ||
  763. tType == 1 ||
  764. tType == 4 ||
  765. w.ateacher == userid,
  766. }">
  767. {{ JSON.parse(w.score).wScore }}分
  768. </div>
  769. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  770. :class="{
  771. rightW:
  772. w.userid == userid ||
  773. tType == 1 ||
  774. tType == 4 ||
  775. w.ateacher == userid,
  776. }">
  777. 评分
  778. </div>
  779. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  780. " @click.stop="deleteWorks(w.wid)" alt />
  781. </div>
  782. <div class="comment" style="min-width: 200px">
  783. <div class="worksName">
  784. <div>{{ w.sName }}</div>
  785. </div>
  786. <div class="commentList">
  787. <div class="commentList">
  788. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  789. ">
  790. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  791. </div>
  792. <div>{{ w.likesCount }}</div>
  793. </div>
  794. <div class="commentList" style="margin-right: 15px">
  795. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  796. <img src="../../assets/icon/comment/comment.png" alt="" />
  797. </div>
  798. <div>{{ w.commentCount }}</div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. <div v-if="tType &&
  806. ((tType == 2 && sIsOpen == true) ||
  807. tType == 1 ||
  808. tType == 4) &&
  809. tool.tool.indexOf(32) != -1
  810. " class="worksBox">
  811. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  812. worksTeacher[toolIndex].length > 0
  813. ">
  814. <div class="worksTop">
  815. <div>作业预览</div>
  816. </div>
  817. </div>
  818. <div class="worksDetailBox" v-if="worksTeacher.length &&
  819. worksTeacher[toolIndex].length > 0
  820. ">
  821. <div class="works" style="
  822. width: 200px;
  823. height: 140px;
  824. margin: 10px 10px 10px 0;
  825. border-radius: 15px;
  826. box-shadow: 0 0 6px 1px #dfdada;
  827. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  828. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  829. <div class="workImg">
  830. <img :src="word2" @click="downloadFile(w.works)" alt />
  831. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  832. rightW:
  833. w.userid == userid ||
  834. tType == 1 ||
  835. tType == 4 ||
  836. w.ateacher == userid,
  837. }">
  838. {{ JSON.parse(w.score).wScore }}分
  839. </div>
  840. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  841. :class="{
  842. rightW:
  843. w.userid == userid ||
  844. tType == 1 ||
  845. tType == 4 ||
  846. w.ateacher == userid,
  847. }">
  848. 评分
  849. </div>
  850. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  851. " @click.stop="deleteWorks(w.wid)" alt />
  852. </div>
  853. <div class="comment" style="min-width: 200px">
  854. <div class="worksName">
  855. <div>{{ w.sName }}</div>
  856. </div>
  857. <div class="commentList">
  858. <div class="commentList">
  859. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  860. ">
  861. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  862. </div>
  863. <div>{{ w.likesCount }}</div>
  864. </div>
  865. <div class="commentList" style="margin-right: 15px">
  866. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  867. <img src="../../assets/icon/comment/comment.png" alt="" />
  868. </div>
  869. <div>{{ w.commentCount }}</div>
  870. </div>
  871. </div>
  872. </div>
  873. </div>
  874. </div>
  875. </div>
  876. <div v-if="tType &&
  877. ((tType == 2 && sIsOpen == true) ||
  878. tType == 1 ||
  879. tType == 4) &&
  880. tool.tool.indexOf(57) != -1
  881. " class="worksBox">
  882. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  883. worksTeacher[toolIndex].length > 0
  884. ">
  885. <div class="worksTop">
  886. <div>作业预览</div>
  887. </div>
  888. </div>
  889. <div class="worksDetailBox" v-if="worksTeacher.length &&
  890. worksTeacher[toolIndex].length > 0
  891. ">
  892. <div class="works" style="
  893. width: 200px;
  894. height: 140px;
  895. margin: 10px 10px 10px 0;
  896. border-radius: 15px;
  897. box-shadow: 0 0 6px 1px #dfdada;
  898. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  899. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  900. <div class="workImg">
  901. <img :src="word2" @click="downloadFile(w.works)" alt />
  902. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  903. rightW:
  904. w.userid == userid ||
  905. tType == 1 ||
  906. tType == 4 ||
  907. w.ateacher == userid,
  908. }">
  909. {{ JSON.parse(w.score).wScore }}分
  910. </div>
  911. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  912. :class="{
  913. rightW:
  914. w.userid == userid ||
  915. tType == 1 ||
  916. tType == 4 ||
  917. w.ateacher == userid,
  918. }">
  919. 评分
  920. </div>
  921. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  922. " @click.stop="deleteWorks(w.wid)" alt />
  923. </div>
  924. <div class="comment" style="min-width: 200px">
  925. <div class="worksName">
  926. <div>{{ w.sName }}</div>
  927. </div>
  928. <div class="commentList">
  929. <div class="commentList">
  930. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  931. ">
  932. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  933. </div>
  934. <div>{{ w.likesCount }}</div>
  935. </div>
  936. <div class="commentList" style="margin-right: 15px">
  937. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  938. <img src="../../assets/icon/comment/comment.png" alt="" />
  939. </div>
  940. <div>{{ w.commentCount }}</div>
  941. </div>
  942. </div>
  943. </div>
  944. </div>
  945. </div>
  946. </div>
  947. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  948. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  949. worksTeacher[toolIndex].length > 0
  950. ">
  951. <span>作业预览</span>
  952. </div>
  953. <div class="worksDetailBox" v-if="worksTeacher.length &&
  954. worksTeacher[toolIndex].length > 0
  955. ">
  956. <div class="works" style="
  957. width: 200px;
  958. height: 140px;
  959. margin: 10px 10px 10px 0;
  960. border-radius: 15px;
  961. box-shadow: 0 0 6px 1px #dfdada;
  962. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  963. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  964. <div class="workImg" v-if="w.type == 0">
  965. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  966. <img :src="w.works" @click="previewImg(w.works)" alt />
  967. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  968. rightW:
  969. w.userid == userid ||
  970. tType == 1 ||
  971. tType == 4 ||
  972. w.ateacher == userid,
  973. }">
  974. {{ JSON.parse(w.score).wScore }}分
  975. </div>
  976. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  977. :class="{
  978. rightW:
  979. w.userid == userid ||
  980. tType == 1 ||
  981. tType == 4 ||
  982. w.ateacher == userid,
  983. }">
  984. 评分
  985. </div>
  986. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  987. " @click.stop="deleteWorks(w.wid)" alt />
  988. </div>
  989. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  990. <img :src="word" @click="openFile(w.works)" alt />
  991. <!-- @click="openFile(w.works)" -->
  992. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  993. rightW:
  994. w.userid == userid ||
  995. tType == 1 ||
  996. tType == 4 ||
  997. w.ateacher == userid,
  998. }">
  999. {{ JSON.parse(w.score).wScore }}分
  1000. </div>
  1001. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1002. :class="{
  1003. rightW:
  1004. w.userid == userid ||
  1005. tType == 1 ||
  1006. tType == 4 ||
  1007. w.ateacher == userid,
  1008. }">
  1009. 评分
  1010. </div>
  1011. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1012. " @click.stop="deleteWorks(w.wid)" alt />
  1013. </div>
  1014. <div class="workImg" v-if="w.type == 3">
  1015. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1016. <!-- @click="openVideo(w.works)" -->
  1017. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1018. rightW:
  1019. w.userid == userid ||
  1020. tType == 1 ||
  1021. tType == 4 ||
  1022. w.ateacher == userid,
  1023. }">
  1024. {{ JSON.parse(w.score).wScore }}分
  1025. </div>
  1026. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1027. :class="{
  1028. rightW:
  1029. w.userid == userid ||
  1030. tType == 1 ||
  1031. tType == 4 ||
  1032. w.ateacher == userid,
  1033. }">
  1034. 评分
  1035. </div>
  1036. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1037. " @click.stop="deleteWorks(w.wid)" alt />
  1038. </div>
  1039. <div class="comment" style="min-width: 200px">
  1040. <div class="worksName">
  1041. <div style="cursor: pointer" @click="openSname(w.sName, w.wid,toolIndex)">
  1042. {{ w.sName }}
  1043. </div>
  1044. </div>
  1045. <div class="commentList">
  1046. <div class="commentList">
  1047. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1048. ">
  1049. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1050. </div>
  1051. <div>{{ w.likesCount }}</div>
  1052. </div>
  1053. <div class="commentList" style="margin-right: 15px">
  1054. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1055. <img src="../../assets/icon/comment/comment.png" alt="" />
  1056. </div>
  1057. <div>{{ w.commentCount }}</div>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <div v-if="tType &&
  1065. ((tType == 2 && sIsOpen == true) ||
  1066. tType == 1 ||
  1067. tType == 4) &&
  1068. tool.tool.indexOf(4) != -1
  1069. " class="worksBox">
  1070. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1071. worksTeacher[toolIndex].length > 0
  1072. ">
  1073. <div class="worksTop">
  1074. <div>作业预览</div>
  1075. </div>
  1076. </div>
  1077. <div>
  1078. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1079. worksTeacher[toolIndex].length > 0
  1080. ">
  1081. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  1082. ">
  1083. {{ w.sName }}
  1084. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1085. " @click.stop="deleteWorks(w.wid)" alt />
  1086. </div>
  1087. </div>
  1088. </div>
  1089. </div>
  1090. <div v-if="tType &&
  1091. ((tType == 2 && sIsOpen == true) ||
  1092. tType == 1 ||
  1093. tType == 4) &&
  1094. tool.tool.indexOf(45) != -1
  1095. " class="worksBox">
  1096. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1097. worksTeacher[toolIndex].length > 0
  1098. ">
  1099. <div class="worksTop">
  1100. <div>作业预览</div>
  1101. </div>
  1102. </div>
  1103. <div>
  1104. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1105. worksTeacher[toolIndex].length > 0
  1106. ">
  1107. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(
  1108. 45,
  1109. toolIndex,
  1110. taskCount,
  1111. w.works,
  1112. w.sName
  1113. )
  1114. ">
  1115. {{ w.sName }}
  1116. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1117. " @click.stop="deleteWorks(w.wid)" alt />
  1118. </div>
  1119. </div>
  1120. </div>
  1121. </div>
  1122. <div v-if="tType &&
  1123. ((tType == 2 && sIsOpen == true) ||
  1124. tType == 1 ||
  1125. tType == 4) &&
  1126. tool.tool.indexOf(15) != -1
  1127. " class="worksBox">
  1128. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1129. worksTeacher[toolIndex].length > 0
  1130. ">
  1131. <div class="worksTop">
  1132. <div>作业预览</div>
  1133. </div>
  1134. </div>
  1135. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1136. worksTeacher[toolIndex].length > 0
  1137. ">
  1138. <div class="works" v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex">
  1139. <div class="workImg" style="
  1140. border-radius: 15px;
  1141. box-shadow: #eee 0px 0px 5px 5px;
  1142. ">
  1143. <!-- <img
  1144. src="../../assets/icon/works/noImg.png"
  1145. @click="openTools(15, toolIndex, taskCount, w.works)"
  1146. alt=""
  1147. />-->
  1148. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1149. @click="commentOther(w, toolIndex, wIndex)">
  1150. <!-- <div>{{ w.sName }}</div> -->
  1151. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  1152. placement="top">
  1153. <div class="answerContent">
  1154. {{ JSON.parse(w.works)[0].answer }}
  1155. </div>
  1156. </el-tooltip>
  1157. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1158. rightW:
  1159. w.userid == userid ||
  1160. tType == 1 ||
  1161. tType == 4,
  1162. }">
  1163. {{ JSON.parse(w.score).wScore }}分
  1164. </div>
  1165. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1166. :class="{
  1167. rightW:
  1168. w.userid == userid ||
  1169. tType == 1 ||
  1170. tType == 4,
  1171. }">
  1172. 评分
  1173. </div>
  1174. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1175. " @click.stop="deleteWorks(w.wid)" alt />
  1176. </div>
  1177. <div class="comment">
  1178. <div class="worksName">
  1179. <div>{{ w.sName }}</div>
  1180. </div>
  1181. <div class="commentList">
  1182. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1183. ">
  1184. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1185. </div>
  1186. <div>{{ w.likesCount }}</div>
  1187. </div>
  1188. <div class="commentList" style="margin-right: 15px">
  1189. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1190. <img src="../../assets/icon/comment/comment.png" alt="" />
  1191. </div>
  1192. <div>{{ w.commentCount }}</div>
  1193. </div>
  1194. </div>
  1195. </div>
  1196. </div>
  1197. </div>
  1198. </div>
  1199. <div v-if="tType &&
  1200. ((tType == 2 && sIsOpen == true) ||
  1201. tType == 1 ||
  1202. tType == 4) &&
  1203. tool.tool.indexOf(1) != -1
  1204. " class="worksBox">
  1205. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1206. worksTeacher[toolIndex].length > 0
  1207. ">
  1208. <div class="worksTop">
  1209. <div>作业预览</div>
  1210. </div>
  1211. </div>
  1212. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1213. worksTeacher[toolIndex].length > 0
  1214. ">
  1215. <div class="works" style="
  1216. width: 200px;
  1217. height: 140px;
  1218. margin: 10px 10px 10px 0;
  1219. border-radius: 15px;
  1220. box-shadow: 0 0 6px 1px #dfdada;
  1221. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1222. :key="wIndex">
  1223. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1224. <div class="workImg">
  1225. <img :src="w.works" @click="previewImg(w.works)" alt />
  1226. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1227. rightW:
  1228. w.userid == userid || tType == 1 || tType == 4,
  1229. }">
  1230. {{ JSON.parse(w.score).wScore }}分
  1231. </div>
  1232. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1233. :class="{
  1234. rightW:
  1235. w.userid == userid || tType == 1 || tType == 4,
  1236. }">
  1237. 评分
  1238. </div>
  1239. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1240. " @click.stop="deleteWorks(w.wid)" alt />
  1241. </div>
  1242. <div class="comment" style="min-width: 200px">
  1243. <div class="worksName">
  1244. <div>{{ w.sName }}</div>
  1245. </div>
  1246. <div class="commentList">
  1247. <div class="commentList">
  1248. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1249. ">
  1250. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1251. </div>
  1252. <div>{{ w.likesCount }}</div>
  1253. </div>
  1254. <div class="commentList" style="margin-right: 15px">
  1255. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1256. <img src="../../assets/icon/comment/comment.png" alt="" />
  1257. </div>
  1258. <div>{{ w.commentCount }}</div>
  1259. </div>
  1260. </div>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. <div v-if="tType &&
  1266. ((tType == 2 && sIsOpen == true) ||
  1267. tType == 1 ||
  1268. tType == 4) &&
  1269. tool.tool.indexOf(3) != -1
  1270. " class="worksBox">
  1271. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1272. worksTeacher[toolIndex].length > 0
  1273. ">
  1274. <div class="worksTop">
  1275. <div>作业预览</div>
  1276. </div>
  1277. </div>
  1278. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1279. worksTeacher[toolIndex].length > 0
  1280. ">
  1281. <div class="works" style="
  1282. width: 200px;
  1283. height: 140px;
  1284. margin: 10px 10px 10px 0;
  1285. border-radius: 15px;
  1286. box-shadow: 0 0 6px 1px #dfdada;
  1287. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1288. :key="wIndex">
  1289. <!-- @click="previewImg(w.works)" -->
  1290. <div class="workImg">
  1291. <img :src="w.works" @click="previewImg(w.works)" alt />
  1292. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1293. rightW:
  1294. w.userid == userid || tType == 1 || tType == 4,
  1295. }">
  1296. {{ JSON.parse(w.score).wScore }}分
  1297. </div>
  1298. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1299. :class="{
  1300. rightW:
  1301. w.userid == userid || tType == 1 || tType == 4,
  1302. }">
  1303. 评分
  1304. </div>
  1305. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1306. " @click.stop="deleteWorks(w.wid)" alt />
  1307. </div>
  1308. <div class="comment" style="min-width: 200px">
  1309. <div class="worksName">
  1310. <div>{{ w.sName }}</div>
  1311. </div>
  1312. <div class="commentList">
  1313. <div class="commentList">
  1314. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1315. ">
  1316. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1317. </div>
  1318. <div>{{ w.likesCount }}</div>
  1319. </div>
  1320. <div class="commentList" style="margin-right: 15px">
  1321. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1322. <img src="../../assets/icon/comment/comment.png" alt="" />
  1323. </div>
  1324. <div>{{ w.commentCount }}</div>
  1325. </div>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. <div v-if="tType &&
  1332. ((tType == 2 && sIsOpen == true) ||
  1333. tType == 1 ||
  1334. tType == 4) &&
  1335. tool.tool.indexOf(6) != -1
  1336. " class="worksBox">
  1337. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1338. worksTeacher[toolIndex].length > 0
  1339. ">
  1340. <div class="worksTop">
  1341. <div>作业预览</div>
  1342. </div>
  1343. </div>
  1344. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1345. worksTeacher[toolIndex].length > 0
  1346. ">
  1347. <div class="works" style="
  1348. width: 200px;
  1349. height: 140px;
  1350. margin: 10px 10px 10px 0;
  1351. border-radius: 15px;
  1352. box-shadow: 0 0 6px 1px #dfdada;
  1353. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1354. :key="wIndex">
  1355. <!-- @click="previewImg(w.works)" -->
  1356. <div class="workImg">
  1357. <img :src="w.works" @click="previewImg(w.works)" alt />
  1358. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1359. rightW:
  1360. w.userid == userid || tType == 1 || tType == 4,
  1361. }">
  1362. {{ JSON.parse(w.score).wScore }}分
  1363. </div>
  1364. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1365. :class="{
  1366. rightW:
  1367. w.userid == userid || tType == 1 || tType == 4,
  1368. }">
  1369. 评分
  1370. </div>
  1371. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1372. " @click.stop="deleteWorks(w.wid)" alt />
  1373. </div>
  1374. <div class="comment" style="min-width: 200px">
  1375. <div class="worksName">
  1376. <div>{{ w.sName }}</div>
  1377. </div>
  1378. <div class="commentList">
  1379. <div class="commentList">
  1380. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1381. ">
  1382. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1383. </div>
  1384. <div>{{ w.likesCount }}</div>
  1385. </div>
  1386. <div class="commentList" style="margin-right: 15px">
  1387. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1388. <img src="../../assets/icon/comment/comment.png" alt="" />
  1389. </div>
  1390. <div>{{ w.commentCount }}</div>
  1391. </div>
  1392. </div>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. <div v-if="tType &&
  1398. ((tType == 2 && sIsOpen == true) ||
  1399. tType == 1 ||
  1400. tType == 4) &&
  1401. tool.tool.indexOf(7) != -1
  1402. " class="worksBox">
  1403. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1404. worksTeacher[toolIndex].length > 0
  1405. ">
  1406. <div class="worksTop">
  1407. <div>作业预览</div>
  1408. </div>
  1409. </div>
  1410. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1411. worksTeacher[toolIndex].length > 0
  1412. ">
  1413. <div class="works" style="
  1414. width: 200px;
  1415. height: 140px;
  1416. margin: 10px 10px 10px 0;
  1417. border-radius: 15px;
  1418. box-shadow: 0 0 6px 1px #dfdada;
  1419. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1420. :key="wIndex">
  1421. <!-- @click="previewImg(w.works)" -->
  1422. <div class="workImg">
  1423. <img :src="w.works" @click="previewImg(w.works)" alt />
  1424. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1425. rightW:
  1426. w.userid == userid || tType == 1 || tType == 4,
  1427. }">
  1428. {{ JSON.parse(w.score).wScore }}分
  1429. </div>
  1430. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1431. :class="{
  1432. rightW:
  1433. w.userid == userid || tType == 1 || tType == 4,
  1434. }">
  1435. 评分
  1436. </div>
  1437. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1438. " @click.stop="deleteWorks(w.wid)" alt />
  1439. </div>
  1440. <div class="comment" style="min-width: 200px">
  1441. <div class="worksName">
  1442. <div>{{ w.sName }}</div>
  1443. </div>
  1444. <div class="commentList">
  1445. <div class="commentList">
  1446. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1447. ">
  1448. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1449. </div>
  1450. <div>{{ w.likesCount }}</div>
  1451. </div>
  1452. <div class="commentList" style="margin-right: 15px">
  1453. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1454. <img src="../../assets/icon/comment/comment.png" alt="" />
  1455. </div>
  1456. <div>{{ w.commentCount }}</div>
  1457. </div>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. <div v-if="tType &&
  1464. ((tType == 2 && sIsOpen == true) ||
  1465. tType == 1 ||
  1466. tType == 4) &&
  1467. tool.tool.indexOf(26) != -1
  1468. " class="worksBox">
  1469. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1470. worksTeacher[toolIndex].length > 0
  1471. ">
  1472. <div class="worksTop">
  1473. <div>作业预览</div>
  1474. </div>
  1475. </div>
  1476. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1477. worksTeacher[toolIndex].length > 0
  1478. ">
  1479. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1480. v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex"
  1481. :class="w.type == 1 ? 'isTypeOne' : ''">
  1482. <div class="workImg" v-if="w.type == 0">
  1483. <img :src="w.works" @click="previewImg(w.works)" alt />
  1484. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1485. " @click.stop="deleteWorks(w.wid)" alt />
  1486. </div>
  1487. <div class="workImg" v-if="w.type == 1">
  1488. <img :src="word" @click="openFile(w.works)" alt />
  1489. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1490. " @click.stop="deleteWorks(w.wid)" alt />
  1491. </div>
  1492. <div class="worksName">
  1493. <div>{{ w.sName }}</div>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. </div>
  1498. <div v-if="tType &&
  1499. ((tType == 2 && sIsOpen == true) ||
  1500. tType == 1 ||
  1501. tType == 4) &&
  1502. tool.tool.indexOf(40) != -1
  1503. " class="worksBox">
  1504. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1505. worksTeacher[toolIndex].length > 0
  1506. ">
  1507. <div class="worksTop">
  1508. <div>作业预览</div>
  1509. </div>
  1510. </div>
  1511. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1512. worksTeacher[toolIndex].length > 0
  1513. ">
  1514. <div class="works" style="
  1515. width: 200px;
  1516. height: 140px;
  1517. margin: 10px 10px 10px 0;
  1518. border-radius: 15px;
  1519. box-shadow: 0 0 6px 1px #dfdada;
  1520. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1521. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1522. <div class="workImg">
  1523. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1524. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1525. " @click.stop="deleteWorks(w.wid)" alt />
  1526. </div>
  1527. <div class="comment" style="min-width: 200px">
  1528. <div class="worksName">
  1529. <div>{{ w.sName }}</div>
  1530. </div>
  1531. <div class="commentList">
  1532. <div class="commentList">
  1533. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1534. ">
  1535. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1536. </div>
  1537. <div>{{ w.likesCount }}</div>
  1538. </div>
  1539. <div class="commentList" style="margin-right: 15px">
  1540. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1541. <img src="../../assets/icon/comment/comment.png" alt="" />
  1542. </div>
  1543. <div>{{ w.commentCount }}</div>
  1544. </div>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. <div v-if="tType &&
  1551. ((tType == 2 && sIsOpen == true) ||
  1552. tType == 1 ||
  1553. tType == 4) &&
  1554. tool.tool.indexOf(41) != -1
  1555. " class="worksBox">
  1556. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1557. worksTeacher[toolIndex].length > 0
  1558. ">
  1559. <div class="worksTop">
  1560. <div>作业预览</div>
  1561. </div>
  1562. </div>
  1563. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1564. worksTeacher[toolIndex].length > 0
  1565. ">
  1566. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1567. @click="openXz(w, toolIndex)">
  1568. {{ w.sName }}
  1569. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1570. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div v-if="tType &&
  1575. ((tType == 2 && sIsOpen == true) ||
  1576. tType == 1 ||
  1577. tType == 4) &&
  1578. tool.tool.indexOf(47) != -1
  1579. " class="worksBox">
  1580. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1581. worksTeacher[toolIndex].length > 0
  1582. ">
  1583. <div class="worksTop">
  1584. <div>作业预览</div>
  1585. </div>
  1586. </div>
  1587. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1588. worksTeacher[toolIndex].length > 0
  1589. ">
  1590. <!-- @click="openXz(w, toolIndex)" -->
  1591. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1592. @click="openSen(w, toolIndex)">
  1593. {{ w.sName }}
  1594. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1595. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1596. </div>
  1597. </div>
  1598. </div>
  1599. <div v-if="tType &&
  1600. ((tType == 2 && sIsOpen == true) ||
  1601. tType == 1 ||
  1602. tType == 4) &&
  1603. tool.tool.indexOf(48) != -1
  1604. " class="worksBox">
  1605. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1606. worksTeacher[toolIndex].length > 0
  1607. ">
  1608. <div class="worksTop">
  1609. <div>作业预览</div>
  1610. </div>
  1611. </div>
  1612. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1613. worksTeacher[toolIndex].length > 0
  1614. ">
  1615. <div class="works" style="
  1616. width: 200px;
  1617. height: 140px;
  1618. margin: 10px 10px 10px 0;
  1619. border-radius: 15px;
  1620. box-shadow: 0 0 6px 1px #dfdada;
  1621. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1622. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1623. <div class="workImg">
  1624. <img :src="word" @click="openTable(w)" alt />
  1625. <!-- @click="openFile(w.works)" -->
  1626. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1627. rightW:
  1628. w.userid == userid ||
  1629. tType == 1 ||
  1630. tType == 4 ||
  1631. w.ateacher == userid,
  1632. }">
  1633. {{ JSON.parse(w.score).wScore }}分
  1634. </div>
  1635. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1636. :class="{
  1637. rightW:
  1638. w.userid == userid ||
  1639. tType == 1 ||
  1640. tType == 4 ||
  1641. w.ateacher == userid,
  1642. }">
  1643. 评分
  1644. </div>
  1645. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1646. " @click.stop="deleteWorks(w.wid)" alt />
  1647. </div>
  1648. <div class="comment" style="min-width: 200px">
  1649. <div class="worksName">
  1650. <div>{{ w.sName }}</div>
  1651. </div>
  1652. <div class="commentList">
  1653. <div class="commentList">
  1654. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1655. ">
  1656. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1657. </div>
  1658. <div>{{ w.likesCount }}</div>
  1659. </div>
  1660. <div class="commentList" style="margin-right: 15px">
  1661. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1662. <img src="../../assets/icon/comment/comment.png" alt="" />
  1663. </div>
  1664. <div>{{ w.commentCount }}</div>
  1665. </div>
  1666. </div>
  1667. </div>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. <div v-if="tType &&
  1672. ((tType == 2 && sIsOpen == true) ||
  1673. tType == 1 ||
  1674. tType == 4) &&
  1675. tool.tool.indexOf(52) != -1
  1676. " class="worksBox">
  1677. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1678. worksTeacher[toolIndex].length > 0
  1679. ">
  1680. <div class="worksTop">
  1681. <div>作业预览</div>
  1682. </div>
  1683. </div>
  1684. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1685. worksTeacher[toolIndex].length > 0
  1686. ">
  1687. <div class="works" style="
  1688. width: 200px;
  1689. height: 140px;
  1690. margin: 10px 10px 10px 0;
  1691. border-radius: 15px;
  1692. box-shadow: 0 0 6px 1px #dfdada;
  1693. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1694. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1695. <div class="workImg">
  1696. <img :src="word" @click="openTable(w)" alt />
  1697. <!-- @click="openFile(w.works)" -->
  1698. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1699. rightW:
  1700. w.userid == userid ||
  1701. tType == 1 ||
  1702. tType == 4 ||
  1703. w.ateacher == userid,
  1704. }">
  1705. {{ JSON.parse(w.score).wScore }}分
  1706. </div>
  1707. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1708. :class="{
  1709. rightW:
  1710. w.userid == userid ||
  1711. tType == 1 ||
  1712. tType == 4 ||
  1713. w.ateacher == userid,
  1714. }">
  1715. 评分
  1716. </div>
  1717. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1718. " @click.stop="deleteWorks(w.wid)" alt />
  1719. </div>
  1720. <div class="comment" style="min-width: 200px">
  1721. <div class="worksName">
  1722. <div>{{ w.sName }}</div>
  1723. </div>
  1724. <div class="commentList">
  1725. <div class="commentList">
  1726. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1727. ">
  1728. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1729. </div>
  1730. <div>{{ w.likesCount }}</div>
  1731. </div>
  1732. <div class="commentList" style="margin-right: 15px">
  1733. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1734. <img src="../../assets/icon/comment/comment.png" alt="" />
  1735. </div>
  1736. <div>{{ w.commentCount }}</div>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. <div class="vedioBox">
  1746. <div v-if="tType &&
  1747. ((tType == 2 && sIsOpen == true) ||
  1748. tType == 1 ||
  1749. tType == 4) &&
  1750. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1751. worksStudent[toolIndex].length &&
  1752. (tool.askJson[0].answer ||
  1753. tool.askJson[0].answer === 0) &&
  1754. checkJson[toolIndex].length
  1755. " class="xuan_right_box">
  1756. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1757. <div>
  1758. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1759. </div>
  1760. <div class="right_box_xuan">
  1761. <span>正确率</span>
  1762. <span>{{
  1763. (checkJson[toolIndex][index].right
  1764. ? checkJson[toolIndex][index].right
  1765. : 0) + "%"
  1766. }}</span>
  1767. </div>
  1768. </div>
  1769. </div>
  1770. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1771. ((tType == 2 && sIsOpen == true) ||
  1772. tType == 1 ||
  1773. tType == 4) &&
  1774. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1775. worksStudent[toolIndex].length
  1776. ">
  1777. <AskStatic v-if="worksStudent.length &&
  1778. worksStudent[toolIndex].length > 0
  1779. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1780. </div>
  1781. <div v-if="tType &&
  1782. ((tType == 2 && sIsOpen == true) ||
  1783. tType == 1 ||
  1784. tType == 4) &&
  1785. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1786. worksStudent[toolIndex].length &&
  1787. (tool.testJson.testJson[0].answer ||
  1788. tool.testJson.testJson[0].answer === 0) &&
  1789. checkJson[toolIndex].length
  1790. " class="xuan_right_box">
  1791. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1792. <div>
  1793. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1794. </div>
  1795. <div class="right_box_xuan">
  1796. <span>正确率</span>
  1797. <span>{{
  1798. (checkJson[toolIndex][index].right
  1799. ? checkJson[toolIndex][index].right
  1800. : 0) + "%"
  1801. }}</span>
  1802. </div>
  1803. </div>
  1804. </div>
  1805. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1806. ((tType == 2 && sIsOpen == true) ||
  1807. tType == 1 ||
  1808. tType == 4) &&
  1809. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1810. worksStudent[toolIndex].length
  1811. ">
  1812. <AskStatic2 v-if="worksStudent.length &&
  1813. worksStudent[toolIndex].length > 0
  1814. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1815. </div>
  1816. <div v-if="tType &&
  1817. ((tType == 2 && sIsOpen == true) ||
  1818. tType == 1 ||
  1819. tType == 4) &&
  1820. tool.tool.indexOf(41) != -1
  1821. ">
  1822. <AnswerData2 v-if="worksStudent.length &&
  1823. worksStudent[toolIndex].length > 0
  1824. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1825. </div>
  1826. <div v-if="tType &&
  1827. ((tType == 2 && sIsOpen == true) ||
  1828. tType == 1 ||
  1829. tType == 4) &&
  1830. tool.tool.indexOf(47) != -1
  1831. ">
  1832. <AnswerData v-if="checkJson[toolIndex].length &&
  1833. (tool.sentenceList || tool.sentenceList.length > 0)
  1834. " :people="checkJson[toolIndex]"></AnswerData>
  1835. </div>
  1836. </div>
  1837. <div class="vedioBox" v-if="arrayToArray(tool.tool, isWorkTool).length">
  1838. <div class="queTop" style="
  1839. font-size: 25px;
  1840. padding: 15px 0 15px 30px;
  1841. font-weight: bold;
  1842. ">
  1843. 学生工作区
  1844. </div>
  1845. <div class="tool_work_box">
  1846. <div v-if="tType &&
  1847. ((tType == 2 && sIsOpen == true) ||
  1848. tType == 1 ||
  1849. tType == 4) &&
  1850. tool.tool.indexOf(16) != -1
  1851. " class="worksBox">
  1852. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  1853. worksStudent2[toolIndex].length > 0
  1854. ">
  1855. <div class="worksTop">
  1856. <div>作业预览</div>
  1857. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  1858. isCloseList[toolIndex].isClose == 0
  1859. ">
  1860. 收缩
  1861. </div>
  1862. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1863. 展开
  1864. </div>
  1865. </div>
  1866. </div>
  1867. <div class="worksDetailBox" v-if="worksStudent2.length &&
  1868. worksStudent2[toolIndex].length > 0
  1869. ">
  1870. <div class="works" style="
  1871. width: 200px;
  1872. height: 140px;
  1873. margin: 10px 10px 10px 0;
  1874. border-radius: 15px;
  1875. box-shadow: 0 0 6px 1px #dfdada;
  1876. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1877. 0
  1878. ? worksStudent2[toolIndex]
  1879. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  1880. :class="w.type == 1 ? 'isTypeOne' : ''">
  1881. <div class="workImg" v-if="w.type == 0">
  1882. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1883. <img :src="w.works" @click="previewImg(w.works)" alt />
  1884. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1885. rightW:
  1886. w.userid == userid ||
  1887. tType == 1 ||
  1888. tType == 4 ||
  1889. w.ateacher == userid,
  1890. }">
  1891. {{ JSON.parse(w.score).wScore }}分
  1892. </div>
  1893. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4 ||
  1899. w.ateacher == userid,
  1900. }">
  1901. 评分
  1902. </div>
  1903. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1904. " @click.stop="deleteWorks(w.wid)" alt />
  1905. </div>
  1906. <div class="workImg" v-if="w.type == 1">
  1907. <img :src="word" @click="openFile(w.works)" alt />
  1908. <!-- @click="openFile(w.works)" -->
  1909. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1910. rightW:
  1911. w.userid == userid ||
  1912. tType == 1 ||
  1913. tType == 4 ||
  1914. w.ateacher == userid,
  1915. }">
  1916. {{ JSON.parse(w.score).wScore }}分
  1917. </div>
  1918. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1919. :class="{
  1920. rightW:
  1921. w.userid == userid ||
  1922. tType == 1 ||
  1923. tType == 4 ||
  1924. w.ateacher == userid,
  1925. }">
  1926. 评分
  1927. </div>
  1928. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1929. " @click.stop="deleteWorks(w.wid)" alt />
  1930. </div>
  1931. <div class="workImg" v-if="w.type == 3">
  1932. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1933. <!-- @click="openVideo(w.works)" -->
  1934. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1935. rightW:
  1936. w.userid == userid ||
  1937. tType == 1 ||
  1938. tType == 4 ||
  1939. w.ateacher == userid,
  1940. }">
  1941. {{ JSON.parse(w.score).wScore }}分
  1942. </div>
  1943. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1944. :class="{
  1945. rightW:
  1946. w.userid == userid ||
  1947. tType == 1 ||
  1948. tType == 4 ||
  1949. w.ateacher == userid,
  1950. }">
  1951. 评分
  1952. </div>
  1953. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1954. " @click.stop="deleteWorks(w.wid)" alt />
  1955. </div>
  1956. <div class="workImg" v-if="w.type == 12">
  1957. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1958. <!-- @click="openVideo(w.works)" -->
  1959. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1960. rightW:
  1961. w.userid == userid ||
  1962. tType == 1 ||
  1963. tType == 4 ||
  1964. w.ateacher == userid,
  1965. }">
  1966. {{ JSON.parse(w.score).wScore }}分
  1967. </div>
  1968. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1969. :class="{
  1970. rightW:
  1971. w.userid == userid ||
  1972. tType == 1 ||
  1973. tType == 4 ||
  1974. w.ateacher == userid,
  1975. }">
  1976. 评分
  1977. </div>
  1978. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1979. " @click.stop="deleteWorks(w.wid)" alt />
  1980. </div>
  1981. <div class="comment" style="min-width: 200px">
  1982. <div class="worksName">
  1983. <div>{{ w.sName }}</div>
  1984. </div>
  1985. <div class="commentList">
  1986. <div class="commentList">
  1987. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1988. ">
  1989. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1990. </div>
  1991. <div>{{ w.likesCount }}</div>
  1992. </div>
  1993. <div class="commentList" style="margin-right: 15px">
  1994. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1995. <img src="../../assets/icon/comment/comment.png" alt="" />
  1996. </div>
  1997. <div>{{ w.commentCount }}</div>
  1998. </div>
  1999. </div>
  2000. </div>
  2001. </div>
  2002. </div>
  2003. <div class="noWorksS">
  2004. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2005. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2006. {{ s.student }}
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div v-if="tType &&
  2011. ((tType == 2 && sIsOpen == true) ||
  2012. tType == 1 ||
  2013. tType == 4) &&
  2014. tool.tool.indexOf(32) != -1
  2015. " class="worksBox">
  2016. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2017. worksStudent2[toolIndex].length > 0
  2018. ">
  2019. <div class="worksTop">
  2020. <div>作业预览</div>
  2021. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2022. isCloseList[toolIndex].isClose == 0
  2023. ">
  2024. 收缩
  2025. </div>
  2026. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2027. 展开
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2032. worksStudent2[toolIndex].length > 0
  2033. ">
  2034. <div class="works" style="
  2035. width: 200px;
  2036. height: 140px;
  2037. margin: 10px 10px 10px 0;
  2038. border-radius: 15px;
  2039. box-shadow: 0 0 6px 1px #dfdada;
  2040. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2041. 0
  2042. ? worksStudent2[toolIndex]
  2043. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2044. :class="w.type == 1 ? 'isTypeOne' : ''">
  2045. <div class="workImg">
  2046. <img :src="word2" @click="downloadFile(w.works)" alt />
  2047. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2048. rightW:
  2049. w.userid == userid ||
  2050. tType == 1 ||
  2051. tType == 4 ||
  2052. w.ateacher == userid,
  2053. }">
  2054. {{ JSON.parse(w.score).wScore }}分
  2055. </div>
  2056. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2057. :class="{
  2058. rightW:
  2059. w.userid == userid ||
  2060. tType == 1 ||
  2061. tType == 4 ||
  2062. w.ateacher == userid,
  2063. }">
  2064. 评分
  2065. </div>
  2066. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2067. " @click.stop="deleteWorks(w.wid)" alt />
  2068. </div>
  2069. <div class="comment" style="min-width: 200px">
  2070. <div class="worksName">
  2071. <div>{{ w.sName }}</div>
  2072. </div>
  2073. <div class="commentList">
  2074. <div class="commentList">
  2075. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2076. ">
  2077. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2078. </div>
  2079. <div>{{ w.likesCount }}</div>
  2080. </div>
  2081. <div class="commentList" style="margin-right: 15px">
  2082. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2083. <img src="../../assets/icon/comment/comment.png" alt="" />
  2084. </div>
  2085. <div>{{ w.commentCount }}</div>
  2086. </div>
  2087. </div>
  2088. </div>
  2089. </div>
  2090. </div>
  2091. <div class="noWorksS">
  2092. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2093. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2094. {{ s.student }}
  2095. </div>
  2096. </div>
  2097. </div>
  2098. <div v-if="tType &&
  2099. ((tType == 2 && sIsOpen == true) ||
  2100. tType == 1 ||
  2101. tType == 4) &&
  2102. tool.tool.indexOf(57) != -1
  2103. " class="worksBox">
  2104. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2105. worksStudent2[toolIndex].length > 0
  2106. ">
  2107. <div class="worksTop">
  2108. <div>作业预览</div>
  2109. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2110. isCloseList[toolIndex].isClose == 0
  2111. ">
  2112. 收缩
  2113. </div>
  2114. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2115. 展开
  2116. </div>
  2117. </div>
  2118. </div>
  2119. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2120. worksStudent2[toolIndex].length > 0
  2121. ">
  2122. <div class="works" style="
  2123. width: 200px;
  2124. height: 140px;
  2125. margin: 10px 10px 10px 0;
  2126. border-radius: 15px;
  2127. box-shadow: 0 0 6px 1px #dfdada;
  2128. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2129. 0
  2130. ? worksStudent2[toolIndex]
  2131. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2132. :class="w.type == 1 ? 'isTypeOne' : ''">
  2133. <div class="workImg">
  2134. <img :src="word2" @click="downloadFile(w.works)" alt />
  2135. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2136. rightW:
  2137. w.userid == userid ||
  2138. tType == 1 ||
  2139. tType == 4 ||
  2140. w.ateacher == userid,
  2141. }">
  2142. {{ JSON.parse(w.score).wScore }}分
  2143. </div>
  2144. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2145. :class="{
  2146. rightW:
  2147. w.userid == userid ||
  2148. tType == 1 ||
  2149. tType == 4 ||
  2150. w.ateacher == userid,
  2151. }">
  2152. 评分
  2153. </div>
  2154. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2155. " @click.stop="deleteWorks(w.wid)" alt />
  2156. </div>
  2157. <div class="comment" style="min-width: 200px">
  2158. <div class="worksName">
  2159. <div>{{ w.sName }}</div>
  2160. </div>
  2161. <div class="commentList">
  2162. <div class="commentList">
  2163. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2164. ">
  2165. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2166. </div>
  2167. <div>{{ w.likesCount }}</div>
  2168. </div>
  2169. <div class="commentList" style="margin-right: 15px">
  2170. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2171. <img src="../../assets/icon/comment/comment.png" alt="" />
  2172. </div>
  2173. <div>{{ w.commentCount }}</div>
  2174. </div>
  2175. </div>
  2176. </div>
  2177. </div>
  2178. </div>
  2179. <div class="noWorksS">
  2180. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2181. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2182. {{ s.student }}
  2183. </div>
  2184. </div>
  2185. </div>
  2186. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2187. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2188. worksStudent2[toolIndex].length > 0
  2189. ">
  2190. <span>作业预览</span>
  2191. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2192. isCloseList[toolIndex].isClose == 0
  2193. ">
  2194. 收缩
  2195. </div>
  2196. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2197. 展开
  2198. </div>
  2199. </div>
  2200. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2201. worksStudent2[toolIndex].length > 0
  2202. ">
  2203. <div class="works" style="
  2204. width: 200px;
  2205. height: 140px;
  2206. margin: 10px 10px 10px 0;
  2207. border-radius: 15px;
  2208. box-shadow: 0 0 6px 1px #dfdada;
  2209. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2210. 0
  2211. ? worksStudent2[toolIndex]
  2212. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2213. :class="w.type == 1 ? 'isTypeOne' : ''">
  2214. <div class="workImg" v-if="w.type == 0">
  2215. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2216. <img :src="w.works" @click="previewImg(w.works)" alt />
  2217. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2218. rightW:
  2219. w.userid == userid ||
  2220. tType == 1 ||
  2221. tType == 4 ||
  2222. w.ateacher == userid,
  2223. }">
  2224. {{ JSON.parse(w.score).wScore }}分
  2225. </div>
  2226. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2227. :class="{
  2228. rightW:
  2229. w.userid == userid ||
  2230. tType == 1 ||
  2231. tType == 4 ||
  2232. w.ateacher == userid,
  2233. }">
  2234. 评分
  2235. </div>
  2236. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2237. " @click.stop="deleteWorks(w.wid)" alt />
  2238. </div>
  2239. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  2240. <img :src="word" @click="openFile(w.works)" alt />
  2241. <!-- @click="openFile(w.works)" -->
  2242. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2243. rightW:
  2244. w.userid == userid ||
  2245. tType == 1 ||
  2246. tType == 4 ||
  2247. w.ateacher == userid,
  2248. }">
  2249. {{ JSON.parse(w.score).wScore }}分
  2250. </div>
  2251. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2252. :class="{
  2253. rightW:
  2254. w.userid == userid ||
  2255. tType == 1 ||
  2256. tType == 4 ||
  2257. w.ateacher == userid,
  2258. }">
  2259. 评分
  2260. </div>
  2261. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2262. " @click.stop="deleteWorks(w.wid)" alt />
  2263. </div>
  2264. <div class="workImg" v-if="w.type == 3">
  2265. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2266. <!-- @click="openVideo(w.works)" -->
  2267. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2268. rightW:
  2269. w.userid == userid ||
  2270. tType == 1 ||
  2271. tType == 4 ||
  2272. w.ateacher == userid,
  2273. }">
  2274. {{ JSON.parse(w.score).wScore }}分
  2275. </div>
  2276. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2277. :class="{
  2278. rightW:
  2279. w.userid == userid ||
  2280. tType == 1 ||
  2281. tType == 4 ||
  2282. w.ateacher == userid,
  2283. }">
  2284. 评分
  2285. </div>
  2286. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2287. " @click.stop="deleteWorks(w.wid)" alt />
  2288. </div>
  2289. <div class="comment" style="min-width: 200px">
  2290. <div class="worksName">
  2291. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  2292. {{ w.sName }}
  2293. </div>
  2294. </div>
  2295. <div class="commentList">
  2296. <div class="commentList">
  2297. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2298. ">
  2299. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2300. </div>
  2301. <div>{{ w.likesCount }}</div>
  2302. </div>
  2303. <div class="commentList" style="margin-right: 15px">
  2304. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2305. <img src="../../assets/icon/comment/comment.png" alt="" />
  2306. </div>
  2307. <div>{{ w.commentCount }}</div>
  2308. </div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. <div class="noWorksS">
  2314. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2315. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2316. {{ s.student }}
  2317. </div>
  2318. </div>
  2319. </div>
  2320. <div v-if="tType &&
  2321. ((tType == 2 && sIsOpen == true) ||
  2322. tType == 1 ||
  2323. tType == 4) &&
  2324. tool.tool.indexOf(4) != -1
  2325. " class="worksBox">
  2326. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2327. worksStudent2[toolIndex].length > 0
  2328. ">
  2329. <div class="worksTop">
  2330. <div>作业预览</div>
  2331. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2332. isCloseList[toolIndex].isClose == 0
  2333. ">
  2334. 收缩
  2335. </div>
  2336. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2337. 展开
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <div>
  2342. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2343. worksStudent2[toolIndex].length > 0
  2344. ">
  2345. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2346. .isClose == 0
  2347. ? worksStudent2[toolIndex]
  2348. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  2349. ">
  2350. {{ w.sName }}
  2351. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2352. " @click.stop="deleteWorks(w.wid)" alt />
  2353. </div>
  2354. </div>
  2355. </div>
  2356. <div class="noWorksS">
  2357. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2358. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2359. {{ s.student }}
  2360. </div>
  2361. </div>
  2362. </div>
  2363. <div v-if="tType &&
  2364. ((tType == 2 && sIsOpen == true) ||
  2365. tType == 1 ||
  2366. tType == 4) &&
  2367. tool.tool.indexOf(45) != -1
  2368. " class="worksBox">
  2369. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2370. worksStudent2[toolIndex].length > 0
  2371. ">
  2372. <div class="worksTop">
  2373. <div>作业预览</div>
  2374. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2375. isCloseList[toolIndex].isClose == 0
  2376. ">
  2377. 收缩
  2378. </div>
  2379. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2380. 展开
  2381. </div>
  2382. </div>
  2383. </div>
  2384. <div>
  2385. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2386. worksStudent2[toolIndex].length > 0
  2387. ">
  2388. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2389. .isClose == 0
  2390. ? worksStudent2[toolIndex]
  2391. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(
  2392. 45,
  2393. toolIndex,
  2394. taskCount,
  2395. w.works,
  2396. w.sName
  2397. )
  2398. ">
  2399. {{ w.sName }}
  2400. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2401. " @click.stop="deleteWorks(w.wid)" alt />
  2402. </div>
  2403. </div>
  2404. </div>
  2405. <div class="noWorksS">
  2406. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2407. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2408. {{ s.student }}
  2409. </div>
  2410. </div>
  2411. </div>
  2412. <div v-if="tType &&
  2413. ((tType == 2 && sIsOpen == true) ||
  2414. tType == 1 ||
  2415. tType == 4) &&
  2416. tool.tool.indexOf(15) != -1
  2417. " class="worksBox">
  2418. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2419. worksStudent2[toolIndex].length > 0
  2420. ">
  2421. <div class="worksTop">
  2422. <div>作业预览</div>
  2423. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2424. isCloseList[toolIndex].isClose == 0
  2425. ">
  2426. 收缩
  2427. </div>
  2428. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2429. 展开
  2430. </div>
  2431. </div>
  2432. </div>
  2433. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2434. worksStudent2[toolIndex].length > 0
  2435. ">
  2436. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2437. 0
  2438. ? worksStudent2[toolIndex]
  2439. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2440. <div class="workImg" style="
  2441. border-radius: 15px;
  2442. box-shadow: #eee 0px 0px 5px 5px;
  2443. ">
  2444. <!-- <img
  2445. src="../../assets/icon/works/noImg.png"
  2446. @click="openTools(15, toolIndex, taskCount, w.works)"
  2447. alt=""
  2448. />-->
  2449. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2450. @click="commentOther(w, toolIndex, wIndex)">
  2451. <!-- <div>{{ w.sName }}</div> -->
  2452. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  2453. placement="top">
  2454. <div class="answerContent">
  2455. {{ JSON.parse(w.works)[0].answer }}
  2456. </div>
  2457. </el-tooltip>
  2458. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2459. rightW:
  2460. w.userid == userid ||
  2461. tType == 1 ||
  2462. tType == 4,
  2463. }">
  2464. {{ JSON.parse(w.score).wScore }}分
  2465. </div>
  2466. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2467. :class="{
  2468. rightW:
  2469. w.userid == userid ||
  2470. tType == 1 ||
  2471. tType == 4,
  2472. }">
  2473. 评分
  2474. </div>
  2475. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2476. " @click.stop="deleteWorks(w.wid)" alt />
  2477. </div>
  2478. <div class="comment">
  2479. <div class="worksName">
  2480. <div>{{ w.sName }}</div>
  2481. </div>
  2482. <div class="commentList">
  2483. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2484. ">
  2485. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2486. </div>
  2487. <div>{{ w.likesCount }}</div>
  2488. </div>
  2489. <div class="commentList" style="margin-right: 15px">
  2490. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2491. <img src="../../assets/icon/comment/comment.png" alt="" />
  2492. </div>
  2493. <div>{{ w.commentCount }}</div>
  2494. </div>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. </div>
  2499. <div class="noWorksS">
  2500. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2501. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2502. {{ s.student }}
  2503. </div>
  2504. </div>
  2505. </div>
  2506. <div v-if="tType &&
  2507. ((tType == 2 && sIsOpen == true) ||
  2508. tType == 1 ||
  2509. tType == 4) &&
  2510. tool.tool.indexOf(1) != -1
  2511. " class="worksBox">
  2512. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2513. worksStudent2[toolIndex].length > 0
  2514. ">
  2515. <div class="worksTop">
  2516. <div>作业预览</div>
  2517. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2518. isCloseList[toolIndex].isClose == 0
  2519. ">
  2520. 收缩
  2521. </div>
  2522. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2523. 展开
  2524. </div>
  2525. </div>
  2526. </div>
  2527. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2528. worksStudent2[toolIndex].length > 0
  2529. ">
  2530. <div class="works" style="
  2531. width: 200px;
  2532. height: 140px;
  2533. margin: 10px 10px 10px 0;
  2534. border-radius: 15px;
  2535. box-shadow: 0 0 6px 1px #dfdada;
  2536. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2537. 0
  2538. ? worksStudent2[toolIndex]
  2539. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2540. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2541. <div class="workImg">
  2542. <img :src="w.works" @click="previewImg(w.works)" alt />
  2543. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2544. rightW:
  2545. w.userid == userid || tType == 1 || tType == 4,
  2546. }">
  2547. {{ JSON.parse(w.score).wScore }}分
  2548. </div>
  2549. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2550. :class="{
  2551. rightW:
  2552. w.userid == userid || tType == 1 || tType == 4,
  2553. }">
  2554. 评分
  2555. </div>
  2556. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2557. " @click.stop="deleteWorks(w.wid)" alt />
  2558. </div>
  2559. <div class="comment" style="min-width: 200px">
  2560. <div class="worksName">
  2561. <div>{{ w.sName }}</div>
  2562. </div>
  2563. <div class="commentList">
  2564. <div class="commentList">
  2565. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2566. ">
  2567. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2568. </div>
  2569. <div>{{ w.likesCount }}</div>
  2570. </div>
  2571. <div class="commentList" style="margin-right: 15px">
  2572. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2573. <img src="../../assets/icon/comment/comment.png" alt="" />
  2574. </div>
  2575. <div>{{ w.commentCount }}</div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <div class="noWorksS">
  2582. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2583. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2584. {{ s.student }}
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div v-if="tType &&
  2589. ((tType == 2 && sIsOpen == true) ||
  2590. tType == 1 ||
  2591. tType == 4) &&
  2592. tool.tool.indexOf(3) != -1
  2593. " class="worksBox">
  2594. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2595. worksStudent2[toolIndex].length > 0
  2596. ">
  2597. <div class="worksTop">
  2598. <div>作业预览</div>
  2599. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2600. isCloseList[toolIndex].isClose == 0
  2601. ">
  2602. 收缩
  2603. </div>
  2604. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2605. 展开
  2606. </div>
  2607. </div>
  2608. </div>
  2609. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2610. worksStudent2[toolIndex].length > 0
  2611. ">
  2612. <div class="works" style="
  2613. width: 200px;
  2614. height: 140px;
  2615. margin: 10px 10px 10px 0;
  2616. border-radius: 15px;
  2617. box-shadow: 0 0 6px 1px #dfdada;
  2618. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2619. 0
  2620. ? worksStudent2[toolIndex]
  2621. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2622. <!-- @click="previewImg(w.works)" -->
  2623. <div class="workImg">
  2624. <img :src="w.works" @click="previewImg(w.works)" alt />
  2625. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2626. rightW:
  2627. w.userid == userid || tType == 1 || tType == 4,
  2628. }">
  2629. {{ JSON.parse(w.score).wScore }}分
  2630. </div>
  2631. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2632. :class="{
  2633. rightW:
  2634. w.userid == userid || tType == 1 || tType == 4,
  2635. }">
  2636. 评分
  2637. </div>
  2638. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2639. " @click.stop="deleteWorks(w.wid)" alt />
  2640. </div>
  2641. <div class="comment" style="min-width: 200px">
  2642. <div class="worksName">
  2643. <div>{{ w.sName }}</div>
  2644. </div>
  2645. <div class="commentList">
  2646. <div class="commentList">
  2647. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2648. ">
  2649. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2650. </div>
  2651. <div>{{ w.likesCount }}</div>
  2652. </div>
  2653. <div class="commentList" style="margin-right: 15px">
  2654. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2655. <img src="../../assets/icon/comment/comment.png" alt="" />
  2656. </div>
  2657. <div>{{ w.commentCount }}</div>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. <div class="noWorksS">
  2664. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2665. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2666. {{ s.student }}
  2667. </div>
  2668. </div>
  2669. </div>
  2670. <div v-if="tType &&
  2671. ((tType == 2 && sIsOpen == true) ||
  2672. tType == 1 ||
  2673. tType == 4) &&
  2674. tool.tool.indexOf(6) != -1
  2675. " class="worksBox">
  2676. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2677. worksStudent2[toolIndex].length > 0
  2678. ">
  2679. <div class="worksTop">
  2680. <div>作业预览</div>
  2681. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2682. isCloseList[toolIndex].isClose == 0
  2683. ">
  2684. 收缩
  2685. </div>
  2686. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2687. 展开
  2688. </div>
  2689. </div>
  2690. </div>
  2691. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2692. worksStudent2[toolIndex].length > 0
  2693. ">
  2694. <div class="works" style="
  2695. width: 200px;
  2696. height: 140px;
  2697. margin: 10px 10px 10px 0;
  2698. border-radius: 15px;
  2699. box-shadow: 0 0 6px 1px #dfdada;
  2700. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2701. 0
  2702. ? worksStudent2[toolIndex]
  2703. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2704. <!-- @click="previewImg(w.works)" -->
  2705. <div class="workImg">
  2706. <img :src="w.works" @click="previewImg(w.works)" alt />
  2707. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2708. rightW:
  2709. w.userid == userid || tType == 1 || tType == 4,
  2710. }">
  2711. {{ JSON.parse(w.score).wScore }}分
  2712. </div>
  2713. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid || tType == 1 || tType == 4,
  2717. }">
  2718. 评分
  2719. </div>
  2720. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2721. " @click.stop="deleteWorks(w.wid)" alt />
  2722. </div>
  2723. <div class="comment" style="min-width: 200px">
  2724. <div class="worksName">
  2725. <div>{{ w.sName }}</div>
  2726. </div>
  2727. <div class="commentList">
  2728. <div class="commentList">
  2729. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2730. ">
  2731. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2732. </div>
  2733. <div>{{ w.likesCount }}</div>
  2734. </div>
  2735. <div class="commentList" style="margin-right: 15px">
  2736. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2737. <img src="../../assets/icon/comment/comment.png" alt="" />
  2738. </div>
  2739. <div>{{ w.commentCount }}</div>
  2740. </div>
  2741. </div>
  2742. </div>
  2743. </div>
  2744. </div>
  2745. <div class="noWorksS">
  2746. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2747. {{ s.student }}
  2748. </div>
  2749. </div>
  2750. </div>
  2751. <div v-if="tType &&
  2752. ((tType == 2 && sIsOpen == true) ||
  2753. tType == 1 ||
  2754. tType == 4) &&
  2755. tool.tool.indexOf(7) != -1
  2756. " class="worksBox">
  2757. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2758. worksStudent2[toolIndex].length > 0
  2759. ">
  2760. <div class="worksTop">
  2761. <div>作业预览</div>
  2762. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2763. isCloseList[toolIndex].isClose == 0
  2764. ">
  2765. 收缩
  2766. </div>
  2767. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2768. 展开
  2769. </div>
  2770. </div>
  2771. </div>
  2772. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2773. worksStudent2[toolIndex].length > 0
  2774. ">
  2775. <div class="works" style="
  2776. width: 200px;
  2777. height: 140px;
  2778. margin: 10px 10px 10px 0;
  2779. border-radius: 15px;
  2780. box-shadow: 0 0 6px 1px #dfdada;
  2781. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2782. 0
  2783. ? worksStudent2[toolIndex]
  2784. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2785. <!-- @click="previewImg(w.works)" -->
  2786. <div class="workImg">
  2787. <img :src="w.works" @click="previewImg(w.works)" alt />
  2788. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2789. rightW:
  2790. w.userid == userid || tType == 1 || tType == 4,
  2791. }">
  2792. {{ JSON.parse(w.score).wScore }}分
  2793. </div>
  2794. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2795. :class="{
  2796. rightW:
  2797. w.userid == userid || tType == 1 || tType == 4,
  2798. }">
  2799. 评分
  2800. </div>
  2801. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2802. " @click.stop="deleteWorks(w.wid)" alt />
  2803. </div>
  2804. <div class="comment" style="min-width: 200px">
  2805. <div class="worksName">
  2806. <div>{{ w.sName }}</div>
  2807. </div>
  2808. <div class="commentList">
  2809. <div class="commentList">
  2810. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2811. ">
  2812. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2813. </div>
  2814. <div>{{ w.likesCount }}</div>
  2815. </div>
  2816. <div class="commentList" style="margin-right: 15px">
  2817. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2818. <img src="../../assets/icon/comment/comment.png" alt="" />
  2819. </div>
  2820. <div>{{ w.commentCount }}</div>
  2821. </div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. <div class="noWorksS">
  2827. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2828. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2829. {{ s.student }}
  2830. </div>
  2831. </div>
  2832. </div>
  2833. <div v-if="tType &&
  2834. ((tType == 2 && sIsOpen == true) ||
  2835. tType == 1 ||
  2836. tType == 4) &&
  2837. tool.tool.indexOf(26) != -1
  2838. " class="worksBox">
  2839. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2840. worksStudent2[toolIndex].length > 0
  2841. ">
  2842. <div class="worksTop">
  2843. <div>作业预览</div>
  2844. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2845. isCloseList[toolIndex].isClose == 0
  2846. ">
  2847. 收缩
  2848. </div>
  2849. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2850. 展开
  2851. </div>
  2852. </div>
  2853. </div>
  2854. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2855. worksStudent2[toolIndex].length > 0
  2856. ">
  2857. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2858. 0
  2859. ? worksStudent2[toolIndex]
  2860. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2861. <div class="workImg" v-if="w.type == 0">
  2862. <img :src="w.works" @click="previewImg(w.works)" alt />
  2863. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2864. " @click.stop="deleteWorks(w.wid)" alt />
  2865. </div>
  2866. <div class="workImg" v-if="w.type == 1">
  2867. <img :src="word" @click="openFile(w.works)" alt />
  2868. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2869. " @click.stop="deleteWorks(w.wid)" alt />
  2870. </div>
  2871. <div class="worksName">
  2872. <div>{{ w.sName }}</div>
  2873. </div>
  2874. </div>
  2875. </div>
  2876. <div class="noWorksS">
  2877. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2878. {{ s.student }}
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div v-if="tType &&
  2883. ((tType == 2 && sIsOpen == true) ||
  2884. tType == 1 ||
  2885. tType == 4) &&
  2886. tool.tool.indexOf(40) != -1
  2887. " class="worksBox">
  2888. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2889. worksStudent2[toolIndex].length > 0
  2890. ">
  2891. <div class="worksTop">
  2892. <div>作业预览</div>
  2893. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2894. isCloseList[toolIndex].isClose == 0
  2895. ">
  2896. 收缩
  2897. </div>
  2898. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2899. 展开
  2900. </div>
  2901. </div>
  2902. </div>
  2903. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2904. worksStudent2[toolIndex].length > 0
  2905. ">
  2906. <div class="works" style="
  2907. width: 200px;
  2908. height: 140px;
  2909. margin: 10px 10px 10px 0;
  2910. border-radius: 15px;
  2911. box-shadow: 0 0 6px 1px #dfdada;
  2912. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2913. 0
  2914. ? worksStudent2[toolIndex]
  2915. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2916. :class="w.type == 1 ? 'isTypeOne' : ''">
  2917. <div class="workImg">
  2918. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2919. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2920. " @click.stop="deleteWorks(w.wid)" alt />
  2921. </div>
  2922. <div class="comment" style="min-width: 200px">
  2923. <div class="worksName">
  2924. <div>{{ w.sName }}</div>
  2925. </div>
  2926. <div class="commentList">
  2927. <div class="commentList">
  2928. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2929. ">
  2930. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2931. </div>
  2932. <div>{{ w.likesCount }}</div>
  2933. </div>
  2934. <div class="commentList" style="margin-right: 15px">
  2935. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2936. <img src="../../assets/icon/comment/comment.png" alt="" />
  2937. </div>
  2938. <div>{{ w.commentCount }}</div>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. </div>
  2943. </div>
  2944. <div class="noWorksS">
  2945. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2946. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2947. {{ s.student }}
  2948. </div>
  2949. </div>
  2950. </div>
  2951. <div v-if="tType &&
  2952. ((tType == 2 && sIsOpen == true) ||
  2953. tType == 1 ||
  2954. tType == 4) &&
  2955. tool.tool.indexOf(41) != -1
  2956. " class="worksBox">
  2957. <div class="noWorksS">
  2958. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2959. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2960. {{ s.student }}
  2961. </div>
  2962. </div>
  2963. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2964. worksStudent2[toolIndex].length > 0
  2965. ">
  2966. <div class="worksTop">
  2967. <div>作业预览</div>
  2968. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2969. isCloseList[toolIndex].isClose == 0
  2970. ">
  2971. 收缩
  2972. </div>
  2973. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2974. 展开
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2979. worksStudent2[toolIndex].length > 0
  2980. ">
  2981. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2982. 0
  2983. ? worksStudent2[toolIndex]
  2984. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2985. @click="openXz(w, toolIndex)">
  2986. {{ w.sName }}
  2987. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  2988. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2989. </div>
  2990. </div>
  2991. </div>
  2992. <div v-if="tType &&
  2993. ((tType == 2 && sIsOpen == true) ||
  2994. tType == 1 ||
  2995. tType == 4) &&
  2996. tool.tool.indexOf(47) != -1
  2997. " class="worksBox">
  2998. <div class="noWorksS">
  2999. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3000. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3001. {{ s.student }}
  3002. </div>
  3003. </div>
  3004. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3005. worksStudent2[toolIndex].length > 0
  3006. ">
  3007. <div class="worksTop">
  3008. <div>作业预览</div>
  3009. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3010. isCloseList[toolIndex].isClose == 0
  3011. ">
  3012. 收缩
  3013. </div>
  3014. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3015. 展开
  3016. </div>
  3017. </div>
  3018. </div>
  3019. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3020. worksStudent2[toolIndex].length > 0
  3021. ">
  3022. <!-- @click="openXz(w, toolIndex)" -->
  3023. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3024. 0
  3025. ? worksStudent2[toolIndex]
  3026. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3027. @click="openSen(w, toolIndex)">
  3028. {{ w.sName }}
  3029. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3030. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3031. </div>
  3032. </div>
  3033. </div>
  3034. <div v-if="tType &&
  3035. ((tType == 2 && sIsOpen == true) ||
  3036. tType == 1 ||
  3037. tType == 4) &&
  3038. tool.tool.indexOf(48) != -1
  3039. " class="worksBox">
  3040. <div class="noWorksS">
  3041. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3042. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3043. {{ s.student }}
  3044. </div>
  3045. </div>
  3046. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3047. worksStudent2[toolIndex].length > 0
  3048. ">
  3049. <div class="worksTop">
  3050. <div>作业预览</div>
  3051. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3052. isCloseList[toolIndex].isClose == 0
  3053. ">
  3054. 收缩
  3055. </div>
  3056. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3057. 展开
  3058. </div>
  3059. </div>
  3060. </div>
  3061. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3062. worksStudent2[toolIndex].length > 0
  3063. ">
  3064. <div class="works" style="
  3065. width: 200px;
  3066. height: 140px;
  3067. margin: 10px 10px 10px 0;
  3068. border-radius: 15px;
  3069. box-shadow: 0 0 6px 1px #dfdada;
  3070. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3071. 0
  3072. ? worksStudent2[toolIndex]
  3073. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3074. :class="w.type == 1 ? 'isTypeOne' : ''">
  3075. <div class="workImg">
  3076. <img :src="word" @click="openTable(w)" alt />
  3077. <!-- @click="openFile(w.works)" -->
  3078. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3079. rightW:
  3080. w.userid == userid ||
  3081. tType == 1 ||
  3082. tType == 4 ||
  3083. w.ateacher == userid,
  3084. }">
  3085. {{ JSON.parse(w.score).wScore }}分
  3086. </div>
  3087. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3088. :class="{
  3089. rightW:
  3090. w.userid == userid ||
  3091. tType == 1 ||
  3092. tType == 4 ||
  3093. w.ateacher == userid,
  3094. }">
  3095. 评分
  3096. </div>
  3097. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3098. " @click.stop="deleteWorks(w.wid)" alt />
  3099. </div>
  3100. <div class="comment" style="min-width: 200px">
  3101. <div class="worksName">
  3102. <div>{{ w.sName }}</div>
  3103. </div>
  3104. <div class="commentList">
  3105. <div class="commentList">
  3106. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3107. ">
  3108. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3109. </div>
  3110. <div>{{ w.likesCount }}</div>
  3111. </div>
  3112. <div class="commentList" style="margin-right: 15px">
  3113. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3114. <img src="../../assets/icon/comment/comment.png" alt="" />
  3115. </div>
  3116. <div>{{ w.commentCount }}</div>
  3117. </div>
  3118. </div>
  3119. </div>
  3120. </div>
  3121. </div>
  3122. </div>
  3123. <div v-if="tType &&
  3124. ((tType == 2 && sIsOpen == true) ||
  3125. tType == 1 ||
  3126. tType == 4) &&
  3127. tool.tool.indexOf(52) != -1
  3128. " class="worksBox">
  3129. <div class="noWorksS">
  3130. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3131. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3132. {{ s.student }}
  3133. </div>
  3134. </div>
  3135. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3136. worksStudent2[toolIndex].length > 0
  3137. ">
  3138. <div class="worksTop">
  3139. <div>作业预览</div>
  3140. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3141. isCloseList[toolIndex].isClose == 0
  3142. ">
  3143. 收缩
  3144. </div>
  3145. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3146. 展开
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3151. worksStudent2[toolIndex].length > 0
  3152. ">
  3153. <div class="works" style="
  3154. width: 200px;
  3155. height: 140px;
  3156. margin: 10px 10px 10px 0;
  3157. border-radius: 15px;
  3158. box-shadow: 0 0 6px 1px #dfdada;
  3159. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3160. 0
  3161. ? worksStudent2[toolIndex]
  3162. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3163. :class="w.type == 1 ? 'isTypeOne' : ''">
  3164. <div class="workImg">
  3165. <img :src="word" @click="openTable(w)" alt />
  3166. <!-- @click="openFile(w.works)" -->
  3167. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3168. rightW:
  3169. w.userid == userid ||
  3170. tType == 1 ||
  3171. tType == 4 ||
  3172. w.ateacher == userid,
  3173. }">
  3174. {{ JSON.parse(w.score).wScore }}分
  3175. </div>
  3176. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3177. :class="{
  3178. rightW:
  3179. w.userid == userid ||
  3180. tType == 1 ||
  3181. tType == 4 ||
  3182. w.ateacher == userid,
  3183. }">
  3184. 评分
  3185. </div>
  3186. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3187. " @click.stop="deleteWorks(w.wid)" alt />
  3188. </div>
  3189. <div class="comment" style="min-width: 200px">
  3190. <div class="worksName">
  3191. <div>{{ w.sName }}</div>
  3192. </div>
  3193. <div class="commentList">
  3194. <div class="commentList">
  3195. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3196. ">
  3197. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3198. </div>
  3199. <div>{{ w.likesCount }}</div>
  3200. </div>
  3201. <div class="commentList" style="margin-right: 15px">
  3202. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3203. <img src="../../assets/icon/comment/comment.png" alt="" />
  3204. </div>
  3205. <div>{{ w.commentCount }}</div>
  3206. </div>
  3207. </div>
  3208. </div>
  3209. </div>
  3210. </div>
  3211. </div>
  3212. </div>
  3213. </div>
  3214. <div class="vedioBox" v-if="false
  3215. ">
  3216. <div class="queTop" style="
  3217. font-size: 25px;
  3218. padding: 15px 0 15px 30px;
  3219. font-weight: bold;
  3220. ">
  3221. 评一评
  3222. </div>
  3223. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3224. <div class="elist_input">
  3225. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3226. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3227. <div style="width: 95%">
  3228. <div style="
  3229. display: flex;
  3230. flex-direction: row;
  3231. flex-wrap: nowrap;
  3232. align-items: center;
  3233. ">
  3234. <div style="max-width: calc(100% - 285px)">
  3235. <span>{{ eItem.value }}</span>
  3236. </div>
  3237. <div style="
  3238. padding-left: 25px;
  3239. display: flex;
  3240. flex-direction: row;
  3241. align-items: center;
  3242. ">
  3243. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3244. </div>
  3245. </div>
  3246. <div class="elist_inptu_text" style="padding-left: 10px">
  3247. <span v-if="eItem.detail != ''">{{
  3248. eItem.detail
  3249. }}</span>
  3250. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3251. </div>
  3252. </div>
  3253. </div>
  3254. </div>
  3255. <div v-if="evalua" style="
  3256. border: 1px solid #e5e5e5;
  3257. max-width: 650px;
  3258. width: 100%;
  3259. margin-top: 20px;
  3260. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3261. ">
  3262. <div class="e_add_top">
  3263. <div class="e_add_title">
  3264. <span>目标管理名称</span>
  3265. <span>{{ eTitle }}</span>
  3266. <img src="../../assets/line.png" class="cru_line" style="
  3267. width: 125px;
  3268. height: 20px;
  3269. bottom: -10px;
  3270. left: 120px;
  3271. " />
  3272. <!-- <el-input
  3273. v-model="eTitle"
  3274. placeholder="请输入名称"
  3275. @change="setMindData"
  3276. ></el-input>-->
  3277. </div>
  3278. </div>
  3279. <div class="e_add_content">
  3280. <div class="e_add_list_pbox">
  3281. <div class="e_add_list_pbox_title">
  3282. <span class="type_title">切换模式</span>
  3283. <div class="type_content">
  3284. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3285. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3286. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3287. </div>
  3288. </div>
  3289. <div class="e_add_list_pbox_content">
  3290. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3291. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3292. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3293. </SeeBoard>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. </div>
  3302. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3303. :before-close="handleClose" class="dialog_change">
  3304. <div class="marginT">
  3305. <div>上传文件</div>
  3306. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3307. <div class="up_photo">
  3308. <img src="../../assets/icon/uploadImg.png" alt />
  3309. </div>
  3310. <!-- <input
  3311. type="file"
  3312. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3313. style="display: none"
  3314. @change="beforeUpload1($event, 1)"
  3315. /> -->
  3316. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3317. <!-- <input
  3318. type="file"
  3319. accept="image/*"
  3320. capture="camera"
  3321. style="display: none"
  3322. @change="beforeUpload1($event, 1)"
  3323. /> -->
  3324. </div>
  3325. <div class="chapter_add" style="
  3326. display: flex;
  3327. width: 100%;
  3328. flex-direction: row;
  3329. flex-wrap: wrap;
  3330. justify-content: flex-start;
  3331. padding: 15px 0;
  3332. " v-if="studyJuri[0].cover.length > 0">
  3333. <div class="upCover">
  3334. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3335. <img :src="word" alt v-else-if="fileType == 1" />
  3336. <img :src="video" alt v-else-if="fileType == 2" />
  3337. <img :src="word2" alt v-else-if="fileType == 3" />
  3338. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3339. <div class="deleteWord" @click="clean(1)">
  3340. <img src="../../assets/icon/deleteWorks.png" alt />
  3341. </div>
  3342. </div>
  3343. </div>
  3344. </div>
  3345. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3346. 提交
  3347. </div>
  3348. </el-dialog>
  3349. </div>
  3350. </div>
  3351. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3352. <!-- 批 -->
  3353. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  3354. </div>
  3355. <div v-if="pzDialog == true" class="newDialogCss">
  3356. <div class="pzTop2">
  3357. <!-- <div>批注</div>
  3358. <div @click="pzDialog = false">
  3359. <img src="../../assets/close1.png" alt="" />
  3360. </div> -->
  3361. <div class="checkbox">
  3362. <div class="check" style="font-size: 25px">评课笔记</div>
  3363. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3364. </div>
  3365. </div>
  3366. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3367. <div class="pzListBox" v-if="pzList && pzList.length">
  3368. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3369. <div class="pzNavTop">
  3370. <div>批</div>
  3371. <div>
  3372. {{
  3373. pz.username && pz.username.length > 5
  3374. ? pz.username.substring(0, 5) + "..."
  3375. : pz.username
  3376. }}的批注
  3377. </div>
  3378. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3379. 删除
  3380. </div>
  3381. </div>
  3382. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3383. <div class="pzContent" v-if="pz.type == '2'">
  3384. <audio :src="pz.content" controls="controls" ref="audio">
  3385. Your browser does not support the audio element.
  3386. </audio>
  3387. </div>
  3388. <div class="pzContent" v-if="pz.type == '3'">
  3389. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3390. </div>
  3391. <div class="time">
  3392. {{ pz.time }}
  3393. </div>
  3394. </div>
  3395. </div>
  3396. <div class="noPz" v-else>
  3397. <img src="../../assets/icon/noPz.png" alt="" />
  3398. </div>
  3399. <div class="addPzButton">
  3400. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3401. 添加批注
  3402. </div>
  3403. <!-- <div class="img1">
  3404. <div @click="(addPzDialog = true), (pzType = 2)">
  3405. <img src="../../assets/audio.png" /><span>音频</span>
  3406. </div>
  3407. </div> -->
  3408. </div>
  3409. </div>
  3410. </div>
  3411. <div v-if="addPzDialog == true" class="addDialogCss">
  3412. <div class="pzTop">
  3413. <div class="teacherPz">
  3414. <div class="teacherPzImg">
  3415. <img src="../../assets/icon/teacherPz.png" alt="" />
  3416. </div>
  3417. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3418. </div>
  3419. <div @click="addPzDialog = false">
  3420. <img src="../../assets/close1.png" alt="" />
  3421. </div>
  3422. </div>
  3423. <div class="addPzBox">
  3424. <div class="addPzCheck">
  3425. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3426. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3427. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3428. </div>
  3429. <div style="height: calc(100% - 95px)">
  3430. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3431. v-if="pzType == 1"></textarea> -->
  3432. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3433. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3434. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3435. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3436. <div @click="addImg($event)">
  3437. <el-button type="primary">上传图片</el-button>
  3438. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3439. @change="beforeUpload1($event, 4)" />
  3440. </div>
  3441. </div> -->
  3442. </div>
  3443. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3444. 确定
  3445. </div>
  3446. </div>
  3447. </div>
  3448. <div v-if="proVisible" class="mask">
  3449. <div class="progressBox">
  3450. <!-- <div id="closePro" class="closeCss">
  3451. <img src="../../assets/icon/close.png" alt />
  3452. </div> -->
  3453. <div class="lbox">
  3454. <img src="../../assets/loading.gif" />上传中,请稍后
  3455. </div>
  3456. <div style="margin-bottom: 10px">
  3457. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3458. </div>
  3459. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3460. </div>
  3461. </div>
  3462. <div v-if="proVisible2" class="mask">
  3463. <div class="progressBox">
  3464. <div class="lbox">
  3465. <img src="../../assets/loading.gif" />上传中,请稍后
  3466. </div>
  3467. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3468. </div>
  3469. </div>
  3470. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3471. <img width="100%" :src="dialogImageUrl" alt />
  3472. </el-dialog>
  3473. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3474. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3475. <div>
  3476. <div class="a_add_title" style="
  3477. display: flex;
  3478. flex-direction: row;
  3479. align-items: center;
  3480. justify-content: center;
  3481. ">
  3482. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3483. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3484. </div>
  3485. <div class="a_addBox">
  3486. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3487. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3488. <div class="a_add_head">
  3489. <div style="display: flex">
  3490. {{ index1 + 1 + "、" }}
  3491. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3492. </div>
  3493. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3494. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3495. </div>
  3496. <div class="a_add_body">
  3497. <div class="a_add_input">
  3498. <el-radio-group v-model="radio[index1]" v-if="
  3499. askJson.askJson[index1].type == '1' ||
  3500. !askJson.askJson[index1].type
  3501. ">
  3502. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3503. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3504. v-html="item2"></span></el-radio>
  3505. </el-radio-group>
  3506. <el-checkbox-group
  3507. v-model="radio[index1]"
  3508. v-if="askJson.askJson[index1].type == '2'"
  3509. >
  3510. <el-checkbox
  3511. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3512. .askItem"
  3513. :key="checkIndex1"
  3514. :label="checkIndex1"
  3515. :disabled="isAnswer"
  3516. class="redioStyle"
  3517. ><span v-html="item2"></span>
  3518. </el-checkbox>
  3519. </el-checkbox-group>
  3520. </div>
  3521. </div>
  3522. </div>
  3523. </div>
  3524. </div>
  3525. <span slot="footer" class="dialog-footer">
  3526. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3527. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3528. </span>
  3529. </el-dialog>
  3530. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  3531. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3532. <div>
  3533. <div class="w_name">
  3534. 学生姓名:<span>{{ sStudent.student }}</span>
  3535. </div>
  3536. <div class="a_add_title" style="
  3537. display: flex;
  3538. flex-direction: row;
  3539. align-items: center;
  3540. justify-content: center;
  3541. ">
  3542. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3543. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3544. </div>
  3545. <div class="a_addBox">
  3546. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3547. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3548. <div class="a_add_head">
  3549. <div style="display: flex">
  3550. {{ index1 + 1 + "、" }}
  3551. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3552. </div>
  3553. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3554. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3555. </div>
  3556. <div class="a_add_body">
  3557. <div class="a_add_input">
  3558. <el-radio-group v-model="radio[index1]">
  3559. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3560. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3561. v-html="item2"></span></el-radio>
  3562. </el-radio-group>
  3563. </div>
  3564. </div>
  3565. </div>
  3566. </div>
  3567. </div>
  3568. <span slot="footer" class="dialog-footer">
  3569. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  3570. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  3571. </span>
  3572. </el-dialog>
  3573. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3574. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3575. <div>
  3576. <div class="a_addBox">
  3577. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3578. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3579. <div class="a_add_head">
  3580. <div style="display: flex">
  3581. {{ index1 + 1 + "、" }}
  3582. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3583. (单选题)
  3584. </div>
  3585. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3586. (多选题)
  3587. </div>
  3588. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3589. </div>
  3590. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3591. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3592. </div>
  3593. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3594. testJson.testJson[index1].timuList.length
  3595. ">
  3596. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3597. @click.stop="previewImg(timg.src)">
  3598. <img :src="timg.src" alt="" />
  3599. </div>
  3600. </div>
  3601. <div class="a_add_body">
  3602. <div class="a_add_input">
  3603. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3604. <div class="radioBox">
  3605. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3606. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3607. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3608. <div class="inImg" @click.stop="previewImg(item2.src)">
  3609. <img :src="item2.src" alt="" />
  3610. </div>
  3611. </div>
  3612. <span v-else v-html="item2"></span>
  3613. </el-radio>
  3614. </div>
  3615. </el-radio-group>
  3616. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3617. <div class="radioBox">
  3618. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3619. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3620. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3621. <div class="inImg" @click.stop="previewImg(item2.src)">
  3622. <img :src="item2.src" alt="" />
  3623. </div>
  3624. </div>
  3625. <span v-else v-html="item2"></span>
  3626. </el-checkbox>
  3627. </div>
  3628. </el-checkbox-group>
  3629. </div>
  3630. </div>
  3631. </div>
  3632. </div>
  3633. </div>
  3634. <span slot="footer" class="dialog-footer">
  3635. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3636. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3637. </span>
  3638. </el-dialog>
  3639. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  3640. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3641. <div>
  3642. <div class="w_name">
  3643. 学生姓名:<span>{{ sStudent.student }}</span>
  3644. </div>
  3645. <div class="a_addBox">
  3646. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3647. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3648. <div class="a_add_head">
  3649. <div style="display: flex">
  3650. {{ index1 + 1 + "、" }}
  3651. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3652. (单选题)
  3653. </div>
  3654. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3655. (多选题)
  3656. </div>
  3657. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3658. </div>
  3659. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3660. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3661. </div>
  3662. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3663. testJson.testJson[index1].timuList.length
  3664. ">
  3665. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3666. @click.stop="previewImg(timg.src)">
  3667. <img :src="timg.src" alt="" />
  3668. </div>
  3669. </div>
  3670. <div class="a_add_body">
  3671. <div class="a_add_input">
  3672. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3673. <div class="radioBox">
  3674. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3675. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3676. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3677. <div class="inImg" @click.stop="previewImg(item2.src)">
  3678. <img :src="item2.src" alt="" />
  3679. </div>
  3680. </div>
  3681. <span v-else v-html="item2"></span>
  3682. </el-radio>
  3683. </div>
  3684. </el-radio-group>
  3685. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3686. <div class="radioBox">
  3687. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3688. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3689. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3690. <div class="inImg" @click.stop="previewImg(item2.src)">
  3691. <img :src="item2.src" alt="" />
  3692. </div>
  3693. </div>
  3694. <span v-else v-html="item2"></span>
  3695. </el-checkbox>
  3696. </div>
  3697. </el-checkbox-group>
  3698. </div>
  3699. </div>
  3700. </div>
  3701. </div>
  3702. </div>
  3703. <span slot="footer" class="dialog-footer">
  3704. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  3705. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  3706. </span>
  3707. </el-dialog>
  3708. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3709. :before-close="handleClose" class="dialog_diy textCss">
  3710. <el-form style="font-size: 20px">
  3711. <el-form-item label="文本标题" class="textTitle">
  3712. <div style="font-size: 20px">{{ text.name }}</div>
  3713. </el-form-item>
  3714. <div>富文本内容</div>
  3715. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3716. </el-form>
  3717. <span slot="footer" class="dialog-footer">
  3718. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3719. </span>
  3720. </el-dialog>
  3721. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3722. :class="{ fullStyle: full }">
  3723. <div slot="title" class="header-title">
  3724. <div style="color: #fff">文件预览</div>
  3725. <div style="position: absolute; top: 19px; right: 50px">
  3726. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3727. </div>
  3728. </div>
  3729. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3730. :class="{ fullStyle: full }"></pdf>
  3731. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3732. </el-dialog>
  3733. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3734. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  3735. </el-dialog>
  3736. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  3737. class="dialog_diy notice">
  3738. <div>此功能暂未开放!</div>
  3739. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3740. </el-dialog>
  3741. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3742. :before-close="handleClose" class="dialog_diy">
  3743. <div>
  3744. <div style="
  3745. display: flex;
  3746. flex-wrap: nowrap;
  3747. flex-direction: column;
  3748. position: relative;
  3749. ">
  3750. <div class="queTop" style="padding: 20px 0 20px 0">
  3751. <div class="question">
  3752. <img src="../../assets/icon/question.png" alt />
  3753. </div>
  3754. <div class="queTitle">
  3755. <div style="width: 90px; min-width: 90px">提问:</div>
  3756. <div>{{ answerQ }}</div>
  3757. </div>
  3758. </div>
  3759. <div class="ediBottom">
  3760. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3761. v-model="questionAnswer"></textarea>
  3762. </div>
  3763. </div>
  3764. </div>
  3765. <div slot="footer">
  3766. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3767. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3768. </div>
  3769. </el-dialog>
  3770. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3771. :before-close="handleClose" class="dialog_diy">
  3772. <div>
  3773. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3774. </div>
  3775. <div slot="footer">
  3776. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3777. </div>
  3778. </el-dialog>
  3779. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3780. class="dialog_diy">
  3781. <div>
  3782. <div class="open_box">
  3783. <div class="switch_box">
  3784. <span>允许学生查看所有作业</span>
  3785. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3786. </div>
  3787. <div class="switch_box" v-if="courseDetail.userid == userid ||
  3788. (courseDetail.course_teacher &&
  3789. courseDetail.course_teacher.indexOf(userid) != -1)
  3790. ">
  3791. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3792. <span>禁止学生查看所有阶段</span>
  3793. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3794. </div>
  3795. <div class="switch_box" v-if="courseDetail.userid == userid">
  3796. <span>开启跟随模式</span>
  3797. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  3798. </div>
  3799. </div>
  3800. </div>
  3801. <div slot="footer">
  3802. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3803. </div>
  3804. </el-dialog>
  3805. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  3806. class="dialog_diy1">
  3807. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3808. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3809. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  3810. </div>
  3811. <div slot="footer">
  3812. <el-button style="background: #409efe; color: #fff"
  3813. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  3814. 关 闭</el-button>
  3815. </div>
  3816. </el-dialog>
  3817. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  3818. :before-close="handleClose" class="dialog_diy">
  3819. <div class="commentTop">
  3820. <div class="studentDetail">
  3821. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  3822. <div class="nameAndTime">
  3823. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3824. <div>{{ commentDetail.time }}</div>
  3825. </div>
  3826. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  3827. commentDetail.type == 0 &&
  3828. (tType == 1 || tType == 4)
  3829. " @click="showPicturePaint(
  3830. commentDetail.img ? commentDetail.img : commentDetail.works
  3831. )
  3832. ">
  3833. 教师批注
  3834. </div>
  3835. </div>
  3836. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3837. {{ JSON.parse(commentDetail.works)[0].answer }}
  3838. </div>
  3839. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3840. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3841. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3842. :class="{ fullStyle: full }"></pdf>
  3843. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3844. </div>
  3845. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3846. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  3847. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3848. </div>
  3849. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3850. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3851. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3852. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3853. </div>
  3854. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  3855. <div class="cont" v-html="commentDetail.works.text"></div>
  3856. </div>
  3857. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  3858. @click="downloadFile(commentDetail.works)">
  3859. <img src="../../assets/icon/codeFile.png" />
  3860. <div>点击下载文件</div>
  3861. </div>
  3862. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  3863. <div v-html="JSON.parse(commentDetail.works).text"></div>
  3864. </div>
  3865. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  3866. <div class="evalCss">
  3867. <div class="nav">请选择星星进行评分</div>
  3868. <div class="middleBox" v-if="eScore.eStar">
  3869. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3870. <div class="nameAndrate">
  3871. <div>{{ e.value }}</div>
  3872. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  3873. </div>
  3874. <div v-if="e.detail">{{ e.detail }}</div>
  3875. </div>
  3876. <div class="bz">
  3877. <textarea disabled rows="4" class="pj" style="
  3878. padding: 10px 5px;
  3879. width: 70%;
  3880. background: #f7f6f9;
  3881. font-size: 14px;
  3882. text-indent: 10px;
  3883. color: #000;
  3884. " cols v-model="eScore.eBzText"
  3885. placeholder="请输入评价内容..."></textarea>
  3886. </div>
  3887. </div>
  3888. </div>
  3889. </div>
  3890. <div class="comment">
  3891. <div class="commentList">
  3892. <div class="commentImg">
  3893. <img @click="isLikes(
  3894. commentDetail.wid,
  3895. userid,
  3896. 1,
  3897. null,
  3898. commentDetail.isLikes
  3899. )
  3900. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  3901. </div>
  3902. <div>{{ commentDetail.likesCount }}</div>
  3903. </div>
  3904. <div class="commentList">
  3905. <div class="commentImg">
  3906. <img src="../../assets/icon/comment/comment.png" alt="" />
  3907. </div>
  3908. <div>{{ commentDetail.commentCount }}</div>
  3909. </div>
  3910. </div>
  3911. <div class="drawPBox" v-if="commentDetail.img">
  3912. <span>教师批注</span>
  3913. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  3914. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  3915. style="
  3916. font-size: 14px;
  3917. width: auto !important;
  3918. color: #b4b4b4;
  3919. top: unset;
  3920. bottom: 0;
  3921. border: none;
  3922. padding: 0;
  3923. height: auto !important;
  3924. margin: 0;
  3925. ">删除</span>
  3926. </div>
  3927. </div>
  3928. <div class="commentBox">
  3929. <div class="pl">评论:</div>
  3930. <div style="max-height: 200px; overflow: auto">
  3931. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  3932. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  3933. :key="coIndex">
  3934. <div class="tx" style="min-width: 50px">
  3935. <img src="../../assets/avatar.png" alt="" />
  3936. </div>
  3937. <div class="plPerson">
  3938. <div class="plName">
  3939. <div>{{ co.commentPeople }}</div>
  3940. <div style="margin-left: 5px">
  3941. {{ co.commentTime }}
  3942. </div>
  3943. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  3944. </div>
  3945. <div class="plContent">{{ co.commentText }}</div>
  3946. </div>
  3947. </div>
  3948. </div>
  3949. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  3950. </div>
  3951. </div>
  3952. <div style="margin-top: 10px">
  3953. <div class="displayBox">
  3954. <div style="
  3955. color: #556db4;
  3956. font-size: 14px;
  3957. font-weight: bold;
  3958. padding-bottom: 10px;
  3959. ">
  3960. 评价
  3961. </div>
  3962. <div class="easy_comment" v-if="false">
  3963. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  3964. {{ p }}
  3965. </div>
  3966. </div>
  3967. </div>
  3968. <div>
  3969. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  3970. placeholder="请输入对该学生的评价"></textarea>
  3971. </div>
  3972. </div>
  3973. <div slot="footer">
  3974. <el-button @click="(commentDialogVisible = false),
  3975. (commentIndexJson = {}),
  3976. videoDetail.sources && videoDetail.sources[0]
  3977. ? (videoDetail.sources[0].src = '')
  3978. : ''
  3979. ">取 消</el-button>
  3980. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  3981. </div>
  3982. </el-dialog>
  3983. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  3984. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  3985. <div slot="title" class="header-title">
  3986. <div style="color: #fff">查看文档</div>
  3987. <div @click="fullDialogVisible = false" style="
  3988. cursor: pointer;
  3989. position: absolute;
  3990. top: 20px;
  3991. right: 20px;
  3992. color: #fff;
  3993. ">
  3994. 退出全屏
  3995. </div>
  3996. </div>
  3997. <div style="height: 100%">
  3998. <div class="wheel"
  3999. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  4000. style="width: 95%; margin: 0 auto">
  4001. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4002. </div>
  4003. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  4004. security="restricted"
  4005. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4006. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4007. <div class="wheel" v-if="fulltype == 1" style="
  4008. box-shadow: 0 0 6px 1px #f2f2f2;
  4009. width: 100%;
  4010. background: #f1f1f1;
  4011. ">
  4012. <div class="title" style="width: 100%; box-sizing: border-box">
  4013. 查看文档
  4014. </div>
  4015. <el-form class="textBox" style="height: 90%">
  4016. <el-form-item class="textTitle">
  4017. <div style="font-size: 22px">
  4018. {{ fullUrl.name }}
  4019. </div>
  4020. </el-form-item>
  4021. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4022. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4023. </el-form>
  4024. </div>
  4025. </div>
  4026. <!-- <div slot="footer">
  4027. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4028. </div> -->
  4029. </el-dialog>
  4030. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4031. :before-close="handleClose" class="dialog_diy">
  4032. <div class="evalCss">
  4033. <div class="nav">请选择星星进行评分</div>
  4034. <div class="middleBox" v-if="eScore.eStar">
  4035. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4036. <div class="nameAndrate">
  4037. <div>{{ e.value }}</div>
  4038. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4039. </div>
  4040. <div v-if="e.detail">{{ e.detail }}</div>
  4041. </div>
  4042. <div class="easy_comment" v-if="false">
  4043. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4044. {{ p }}
  4045. </div>
  4046. </div>
  4047. <div class="bz">
  4048. <textarea :disabled="isStar" rows="4" class="pj" style="
  4049. padding: 10px 5px;
  4050. width: 70%;
  4051. background: #f7f6f9;
  4052. font-size: 14px;
  4053. text-indent: 10px;
  4054. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4055. </div>
  4056. </div>
  4057. </div>
  4058. <div slot="footer">
  4059. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4060. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4061. </div>
  4062. </el-dialog>
  4063. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4064. :before-close="handleClose" class="dialog_diy">
  4065. <div class="w_name">
  4066. 学生姓名:<span>{{ sStudent.student }}</span>
  4067. </div>
  4068. <div class="evalCss">
  4069. <div class="nav">请选择星星进行评分</div>
  4070. <div class="middleBox" v-if="eScore.eStar">
  4071. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4072. <div class="nameAndrate">
  4073. <div>{{ e.value }}</div>
  4074. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4075. </div>
  4076. <div v-if="e.detail">{{ e.detail }}</div>
  4077. </div>
  4078. <div class="easy_comment" v-if="false">
  4079. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4080. {{ p }}
  4081. </div>
  4082. </div>
  4083. <div class="bz">
  4084. <textarea :disabled="isStar" rows="4" class="pj" style="
  4085. padding: 10px 5px;
  4086. width: 70%;
  4087. background: #f7f6f9;
  4088. font-size: 14px;
  4089. text-indent: 10px;
  4090. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4091. </div>
  4092. </div>
  4093. </div>
  4094. <div slot="footer">
  4095. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4096. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4097. </div>
  4098. </el-dialog>
  4099. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4100. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4101. <div v-if="selectJson">
  4102. <div class="select_box2">
  4103. <div class="select_box2_title">
  4104. <div>选择填空</div>
  4105. <div>请选择对应的答案进行答题!</div>
  4106. </div>
  4107. <div class="select_box2_box">
  4108. <div class="select_box2_img">
  4109. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4110. </div>
  4111. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4112. <div style="padding-top: 15px">
  4113. <div class="select_answer_title" v-if="isSelect">
  4114. {{ selectAnswer.stu }}
  4115. </div>
  4116. <div class="select_answer_title" v-else>
  4117. 根据题目选择对应答案
  4118. </div>
  4119. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4120. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4121. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4122. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4123. </el-option>
  4124. </el-select>
  4125. </div>
  4126. </div>
  4127. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4128. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4129. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4130. 回答正确
  4131. </div>
  4132. <div v-else>回答错误</div>
  4133. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4134. 正确答案:
  4135. </div>
  4136. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4137. ">
  4138. {{ selectJson.select[a] }}
  4139. </div>
  4140. </div>
  4141. </div>
  4142. </div>
  4143. <div class="upAnswerCss">
  4144. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4145. </div>
  4146. </div>
  4147. </div>
  4148. </div>
  4149. </el-dialog>
  4150. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4151. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4152. <div v-if="selectJson">
  4153. <div class="w_name">
  4154. 学生姓名:<span>{{ sStudent.student }}</span>
  4155. </div>
  4156. <div class="select_box2">
  4157. <div class="select_box2_title">
  4158. <div>选择填空</div>
  4159. <div>请选择对应的答案进行答题!</div>
  4160. </div>
  4161. <div class="select_box2_box">
  4162. <div class="select_box2_img">
  4163. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4164. </div>
  4165. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4166. <div style="padding-top: 15px">
  4167. <div class="select_answer_title" v-if="isSelect">
  4168. {{ selectAnswer.stu }}
  4169. </div>
  4170. <div class="select_answer_title" v-else>
  4171. 根据题目选择对应答案
  4172. </div>
  4173. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4174. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4175. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4176. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4177. </el-option>
  4178. </el-select>
  4179. </div>
  4180. </div>
  4181. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4182. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4183. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4184. 回答正确
  4185. </div>
  4186. <div v-else>回答错误</div>
  4187. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4188. 正确答案:
  4189. </div>
  4190. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4191. ">
  4192. {{ selectJson.select[a] }}
  4193. </div>
  4194. </div>
  4195. </div>
  4196. </div>
  4197. <div class="upAnswerCss">
  4198. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4199. </div>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. </el-dialog>
  4204. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4205. :before-close="handleClose" class="dialog_diy">
  4206. <div>
  4207. <div class="studentDetail">
  4208. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4209. <div class="nameAndTime">
  4210. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4211. <div>{{ commentDetail.time }}</div>
  4212. </div>
  4213. </div>
  4214. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4215. {{ JSON.parse(commentDetail.works)[0].answer }}
  4216. </div>
  4217. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4218. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4219. :class="{ fullStyle: full }"></pdf>
  4220. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4221. </div>
  4222. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4223. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4224. </div>
  4225. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4226. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4227. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4228. </div>
  4229. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4230. @click="downloadFile(commentDetail.works)">
  4231. <img src="../../assets/icon/codeFile.png" />
  4232. <div>点击下载文件</div>
  4233. </div>
  4234. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4235. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4236. </div>
  4237. <div class="scoreBox">
  4238. <span class="t">请输入分数</span>
  4239. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4240. :max="100"></el-input-number>
  4241. </div>
  4242. <div class="scoreDetailBox">
  4243. <span class="t">评分评论</span>
  4244. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4245. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4246. </el-input>
  4247. </div>
  4248. </div>
  4249. <span slot="footer" class="dialog-footer">
  4250. <el-button @click="(dialogVisibleScore = false),
  4251. (commentIndexJson = {}),
  4252. videoDetail.sources && videoDetail.sources[0]
  4253. ? (videoDetail.sources[0].src = '')
  4254. : ''
  4255. ">取 消</el-button>
  4256. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4257. </el-button>
  4258. </span>
  4259. </el-dialog>
  4260. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4261. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4262. <div>
  4263. <div class="sentenBox">
  4264. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4265. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4266. <div class="cardList" v-if="st.chooseSenList">
  4267. <div class="cardBox">
  4268. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4269. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4270. <div :class="{
  4271. isCard: r,
  4272. isChooseCard: r == '' || r == undefined,
  4273. }">
  4274. <div>{{ r }}</div>
  4275. </div>
  4276. </el-tooltip>
  4277. <div :class="{
  4278. isCard: r,
  4279. isChooseCard: r == '' || r == undefined,
  4280. }" v-else>
  4281. <div>{{ r }}</div>
  4282. </div>
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div class="cardList" v-if="st.addChangeSen">
  4287. <div class="cardBox">
  4288. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4289. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4290. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4291. <div>{{ s }}</div>
  4292. </div>
  4293. </el-tooltip>
  4294. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4295. <div>{{ s }}</div>
  4296. </div>
  4297. </div>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <span slot="footer" class="dialog-footer">
  4304. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4305. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4306. </span>
  4307. </el-dialog>
  4308. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4309. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4310. <div>
  4311. <div class="w_name">
  4312. 学生姓名:<span>{{ sStudent.student }}</span>
  4313. </div>
  4314. <div class="sentenBox">
  4315. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4316. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4317. <div class="cardList" v-if="st.chooseSenList">
  4318. <div class="cardBox">
  4319. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4320. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4321. <div :class="{
  4322. isCard: r,
  4323. isChooseCard: r == '' || r == undefined,
  4324. }">
  4325. <div>{{ r }}</div>
  4326. </div>
  4327. </el-tooltip>
  4328. <div :class="{
  4329. isCard: r,
  4330. isChooseCard: r == '' || r == undefined,
  4331. }" v-else>
  4332. <div>{{ r }}</div>
  4333. </div>
  4334. </div>
  4335. </div>
  4336. </div>
  4337. <div class="cardList" v-if="st.addChangeSen">
  4338. <div class="cardBox">
  4339. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4340. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4341. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4342. <div>{{ s }}</div>
  4343. </div>
  4344. </el-tooltip>
  4345. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4346. <div>{{ s }}</div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. </div>
  4351. </div>
  4352. </div>
  4353. </div>
  4354. <span slot="footer" class="dialog-footer">
  4355. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4356. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4357. </span>
  4358. </el-dialog>
  4359. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4360. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4361. <div>
  4362. <div class="sentenBox">
  4363. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4364. {{ sentenceList1.stuName }}的作业
  4365. </div>
  4366. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4367. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4368. 第{{ stIndex + 1 }}题
  4369. </div>
  4370. <div class="isWrong">
  4371. <div class="cardList1" v-if="st.chooseSenList">
  4372. <div class="cardBox">
  4373. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4374. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4375. <div class="isCard">
  4376. <div>{{ s }}</div>
  4377. </div>
  4378. </el-tooltip>
  4379. </div>
  4380. </div>
  4381. <div class="cardAnswerBox">
  4382. 组成句子:{{ st.chooseSenList.join(" ") }}
  4383. </div>
  4384. </div>
  4385. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4386. (tType == 1 || tType == 4)
  4387. ">
  4388. <div class="isTjImg">
  4389. <img src="../../assets/icon/conSentences/right.png" alt="" />
  4390. </div>
  4391. <div>回答正确</div>
  4392. </div>
  4393. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4394. (tType == 1 || tType == 4)
  4395. ">
  4396. <div class="isTjImg">
  4397. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  4398. </div>
  4399. <div>回答错误</div>
  4400. </div>
  4401. </div>
  4402. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4403. (tType == 1 || tType == 4)
  4404. ">
  4405. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4406. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4407. <div class="cardBox">
  4408. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4409. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4410. <div class="isCard1">
  4411. <div>{{ r }}</div>
  4412. </div>
  4413. </el-tooltip>
  4414. </div>
  4415. </div>
  4416. <div class="cardAnswerBox">
  4417. 组成句子:{{ st.rightAnswer.join(" ") }}
  4418. </div>
  4419. </div>
  4420. </div>
  4421. </div>
  4422. </div>
  4423. </div>
  4424. <span slot="footer" class="dialog-footer">
  4425. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4426. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4427. </span>
  4428. </el-dialog>
  4429. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4430. :before-close="handleClose" class="dialog_change">
  4431. <div class="marginT">
  4432. <div class="w_name">
  4433. 学生姓名:<span>{{ sStudent.student }}</span>
  4434. </div>
  4435. <div>上传文件</div>
  4436. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4437. <div class="up_photo">
  4438. <img src="../../assets/uploadImg2.png" alt />
  4439. </div>
  4440. <!-- <input
  4441. type="file"
  4442. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4443. style="display: none"
  4444. @change="beforeUpload1($event, 1)"
  4445. /> -->
  4446. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4447. </div>
  4448. <!-- capture="camera" -->
  4449. <div class="chapter_add" style="
  4450. display: flex;
  4451. width: 100%;
  4452. flex-direction: row;
  4453. flex-wrap: wrap;
  4454. justify-content: flex-start;
  4455. padding: 15px 0;
  4456. " v-if="studyJuri[0].cover.length > 0">
  4457. <div class="upCover">
  4458. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4459. <img :src="word" alt v-else-if="fileType == 1" />
  4460. <img :src="video" alt v-else-if="fileType == 2" />
  4461. <img :src="word2" alt v-else-if="fileType == 3" />
  4462. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4463. <div class="deleteWord" @click="clean(1)">
  4464. <img src="../../assets/icon/deleteWorks.png" alt />
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4470. 提交
  4471. </div>
  4472. </el-dialog>
  4473. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4474. :before-close="handleClose" class="dialog_diy">
  4475. <div>
  4476. <div class="w_name">
  4477. 学生姓名:<span>{{ sStudent.student }}</span>
  4478. </div>
  4479. <div style="
  4480. display: flex;
  4481. flex-wrap: nowrap;
  4482. flex-direction: column;
  4483. position: relative;
  4484. ">
  4485. <div class="queTop" style="padding: 20px 0 20px 0">
  4486. <div class="question">
  4487. <img src="../../assets/icon/question.png" alt />
  4488. </div>
  4489. <div class="queTitle">
  4490. <div style="width: 90px; min-width: 90px">提问:</div>
  4491. <div>{{ answerQ }}</div>
  4492. </div>
  4493. </div>
  4494. <div class="ediBottom">
  4495. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4496. v-model="questionAnswer"></textarea>
  4497. </div>
  4498. </div>
  4499. </div>
  4500. <div slot="footer">
  4501. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4502. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4503. </div>
  4504. </el-dialog>
  4505. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4506. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4507. :before-close="handleClose" class="dialog_diy">
  4508. <el-form>
  4509. <div>表格内容</div>
  4510. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  4511. </el-form>
  4512. <span slot="footer" class="dialog-footer">
  4513. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4514. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4515. </span>
  4516. </el-dialog>
  4517. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  4518. :before-close="handleClose" class="dialog_diy">
  4519. <el-form>
  4520. <div class="w_name">
  4521. 学生姓名:<span>{{ sStudent.student }}</span>
  4522. </div>
  4523. <div>表格内容</div>
  4524. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  4525. </el-form>
  4526. <span slot="footer" class="dialog-footer">
  4527. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  4528. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  4529. </span>
  4530. </el-dialog>
  4531. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4532. class="dialog_diy">
  4533. <el-form>
  4534. <div>文档内容</div>
  4535. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  4536. </el-form>
  4537. <span slot="footer" class="dialog-footer">
  4538. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  4539. <el-button type="primary" @click="addWordWorks">确定</el-button>
  4540. </span>
  4541. </el-dialog>
  4542. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  4543. :before-close="handleClose" class="dialog_diy">
  4544. <el-form>
  4545. <div class="w_name">
  4546. 学生姓名:<span>{{ sStudent.student }}</span>
  4547. </div>
  4548. <div>文档内容</div>
  4549. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  4550. </el-form>
  4551. <span slot="footer" class="dialog-footer">
  4552. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  4553. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  4554. </span>
  4555. </el-dialog>
  4556. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  4557. :before-close="handleClose" class="dialog_diy">
  4558. <el-form>
  4559. <div class="cont" v-html="tableJson.text"></div>
  4560. </el-form>
  4561. <span slot="footer" class="dialog-footer">
  4562. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  4563. </span>
  4564. </el-dialog>
  4565. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  4566. :before-close="handleClose" class="dialog_diy">
  4567. <div v-if="dialogVisibleGroup">
  4568. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  4569. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  4570. 提示:需要锁定位置,才能点击头像修改座位。
  4571. </div>
  4572. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  4573. @click="lockChair">
  4574. 锁定位置
  4575. </div>
  4576. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  4577. 解锁位置
  4578. </div>
  4579. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  4580. 分组设置
  4581. </div>
  4582. </div>
  4583. <div>
  4584. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  4585. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  4586. <div class="g_d_group_chair">
  4587. <div v-if="groupJson.number > 1">
  4588. <span :class="{
  4589. isChair:
  4590. groupStudent[toolindex][gindex] &&
  4591. groupStudent[toolindex][gindex][0],
  4592. updateChair:
  4593. courseDetail.userid == userid &&
  4594. groupStudent[toolindex][gindex] &&
  4595. groupStudent[toolindex][gindex][0] &&
  4596. groupJson.islock == 2,
  4597. }"><span class="updateChairBtn" @click="updateGroupChair(
  4598. groupStudent[toolindex][gindex] &&
  4599. groupStudent[toolindex][gindex][0]
  4600. )
  4601. ">修改</span></span><span>{{
  4602. groupStudent[toolindex][gindex] &&
  4603. groupStudent[toolindex][gindex][0]
  4604. ? groupStudent[toolindex][gindex] &&
  4605. groupStudent[toolindex][gindex][0].name
  4606. : "空位置"
  4607. }}</span>
  4608. </div>
  4609. <div v-if="groupJson.number > 4">
  4610. <span :class="{
  4611. isChair:
  4612. groupStudent[toolindex][gindex] &&
  4613. groupStudent[toolindex][gindex][4],
  4614. updateChair:
  4615. courseDetail.userid == userid &&
  4616. groupStudent[toolindex][gindex] &&
  4617. groupStudent[toolindex][gindex][4] &&
  4618. groupJson.islock == 2,
  4619. }"><span class="updateChairBtn" @click="updateGroupChair(
  4620. groupStudent[toolindex][gindex] &&
  4621. groupStudent[toolindex][gindex][4]
  4622. )
  4623. ">修改</span></span><span>{{
  4624. groupStudent[toolindex][gindex] &&
  4625. groupStudent[toolindex][gindex][4]
  4626. ? groupStudent[toolindex][gindex] &&
  4627. groupStudent[toolindex][gindex][4].name
  4628. : "空位置"
  4629. }}</span>
  4630. </div>
  4631. <div v-if="groupJson.number > 8">
  4632. <span :class="{
  4633. isChair:
  4634. groupStudent[toolindex][gindex] &&
  4635. groupStudent[toolindex][gindex][8],
  4636. updateChair:
  4637. courseDetail.userid == userid &&
  4638. groupStudent[toolindex][gindex] &&
  4639. groupStudent[toolindex][gindex][8] &&
  4640. groupJson.islock == 2,
  4641. }"><span class="updateChairBtn" @click="updateGroupChair(
  4642. groupStudent[toolindex][gindex] &&
  4643. groupStudent[toolindex][gindex][8]
  4644. )
  4645. ">修改</span></span><span>{{
  4646. groupStudent[toolindex][gindex] &&
  4647. groupStudent[toolindex][gindex][8]
  4648. ? groupStudent[toolindex][gindex] &&
  4649. groupStudent[toolindex][gindex][8].name
  4650. : "空位置"
  4651. }}</span>
  4652. </div>
  4653. </div>
  4654. <div class="g_d_group_tableBox">
  4655. <div class="g_d_group_chair2">
  4656. <div v-if="groupJson.number > 2">
  4657. <span :class="{
  4658. isChair:
  4659. groupStudent[toolindex][gindex] &&
  4660. groupStudent[toolindex][gindex][2],
  4661. updateChair:
  4662. courseDetail.userid == userid &&
  4663. groupStudent[toolindex][gindex] &&
  4664. groupStudent[toolindex][gindex][2] &&
  4665. groupJson.islock == 2,
  4666. }"><span class="updateChairBtn" @click="updateGroupChair(
  4667. groupStudent[toolindex][gindex] &&
  4668. groupStudent[toolindex][gindex][2]
  4669. )
  4670. ">修改</span></span><span>{{
  4671. groupStudent[toolindex][gindex] &&
  4672. groupStudent[toolindex][gindex][2]
  4673. ? groupStudent[toolindex][gindex] &&
  4674. groupStudent[toolindex][gindex][2].name
  4675. : "空位置"
  4676. }}</span>
  4677. </div>
  4678. <div v-if="groupJson.number > 6">
  4679. <span :class="{
  4680. isChair:
  4681. groupStudent[toolindex][gindex] &&
  4682. groupStudent[toolindex][gindex][6],
  4683. updateChair:
  4684. courseDetail.userid == userid &&
  4685. groupStudent[toolindex][gindex] &&
  4686. groupStudent[toolindex][gindex][6] &&
  4687. groupJson.islock == 2,
  4688. }"><span class="updateChairBtn" @click="updateGroupChair(
  4689. groupStudent[toolindex][gindex] &&
  4690. groupStudent[toolindex][gindex][6]
  4691. )
  4692. ">修改</span></span><span>{{
  4693. groupStudent[toolindex][gindex] &&
  4694. groupStudent[toolindex][gindex][6]
  4695. ? groupStudent[toolindex][gindex] &&
  4696. groupStudent[toolindex][gindex][6].name
  4697. : "空位置"
  4698. }}</span>
  4699. </div>
  4700. </div>
  4701. <div class="g_d_group_table">
  4702. <div>
  4703. {{ g.name }}
  4704. </div>
  4705. <div>
  4706. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  4707. " @click="deleteGroupChair(gindex)">
  4708. 移除组员
  4709. </div>
  4710. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  4711. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  4712. ">
  4713. 加入分组
  4714. </div>
  4715. <div @click="exitGroup(
  4716. groupStudent[toolindex][gindex] &&
  4717. groupStudent[toolindex][gindex][
  4718. groupStudentUid[toolindex][gindex].indexOf(userid)
  4719. ].id
  4720. )
  4721. " v-else-if="groupStudentUid[toolindex] &&
  4722. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  4723. ">
  4724. 退出分组
  4725. </div>
  4726. </div>
  4727. </div>
  4728. <div class="g_d_group_chair2">
  4729. <div v-if="groupJson.number > 3">
  4730. <span :class="{
  4731. isChair:
  4732. groupStudent[toolindex][gindex] &&
  4733. groupStudent[toolindex][gindex][3],
  4734. updateChair:
  4735. courseDetail.userid == userid &&
  4736. groupStudent[toolindex][gindex] &&
  4737. groupStudent[toolindex][gindex][3] &&
  4738. groupJson.islock == 2,
  4739. }"><span class="updateChairBtn" @click="updateGroupChair(
  4740. groupStudent[toolindex][gindex] &&
  4741. groupStudent[toolindex][gindex][3]
  4742. )
  4743. ">修改</span></span><span>{{
  4744. groupStudent[toolindex][gindex] &&
  4745. groupStudent[toolindex][gindex][3]
  4746. ? groupStudent[toolindex][gindex] &&
  4747. groupStudent[toolindex][gindex][3].name
  4748. : "空位置"
  4749. }}</span>
  4750. </div>
  4751. <div v-if="groupJson.number > 7">
  4752. <span :class="{
  4753. isChair:
  4754. groupStudent[toolindex][gindex] &&
  4755. groupStudent[toolindex][gindex][7],
  4756. updateChair:
  4757. courseDetail.userid == userid &&
  4758. groupStudent[toolindex][gindex] &&
  4759. groupStudent[toolindex][gindex][7] &&
  4760. groupJson.islock == 2,
  4761. }"><span class="updateChairBtn" @click="updateGroupChair(
  4762. groupStudent[toolindex][gindex] &&
  4763. groupStudent[toolindex][gindex][7]
  4764. )
  4765. ">修改</span></span><span>{{
  4766. groupStudent[toolindex][gindex] &&
  4767. groupStudent[toolindex][gindex][7]
  4768. ? groupStudent[toolindex][gindex] &&
  4769. groupStudent[toolindex][gindex][7].name
  4770. : "空位置"
  4771. }}</span>
  4772. </div>
  4773. </div>
  4774. </div>
  4775. <div class="g_d_group_chair">
  4776. <div v-if="groupJson.number > 1">
  4777. <span :class="{
  4778. isChair:
  4779. groupStudent[toolindex][gindex] &&
  4780. groupStudent[toolindex][gindex][1],
  4781. updateChair:
  4782. courseDetail.userid == userid &&
  4783. groupStudent[toolindex][gindex] &&
  4784. groupStudent[toolindex][gindex][1] &&
  4785. groupJson.islock == 2,
  4786. }"><span class="updateChairBtn" @click="updateGroupChair(
  4787. groupStudent[toolindex][gindex] &&
  4788. groupStudent[toolindex][gindex][1]
  4789. )
  4790. ">修改</span></span><span>{{
  4791. groupStudent[toolindex][gindex] &&
  4792. groupStudent[toolindex][gindex][1]
  4793. ? groupStudent[toolindex][gindex] &&
  4794. groupStudent[toolindex][gindex][1].name
  4795. : "空位置"
  4796. }}</span>
  4797. </div>
  4798. <div v-if="groupJson.number > 5">
  4799. <span :class="{
  4800. isChair:
  4801. groupStudent[toolindex][gindex] &&
  4802. groupStudent[toolindex][gindex][5],
  4803. updateChair:
  4804. courseDetail.userid == userid &&
  4805. groupStudent[toolindex][gindex] &&
  4806. groupStudent[toolindex][gindex][5] &&
  4807. groupJson.islock == 2,
  4808. }"><span class="updateChairBtn" @click="updateGroupChair(
  4809. groupStudent[toolindex][gindex] &&
  4810. groupStudent[toolindex][gindex][5]
  4811. )
  4812. ">修改</span></span><span>{{
  4813. groupStudent[toolindex][gindex] &&
  4814. groupStudent[toolindex][gindex][5]
  4815. ? groupStudent[toolindex][gindex] &&
  4816. groupStudent[toolindex][gindex][5].name
  4817. : "空位置"
  4818. }}</span>
  4819. </div>
  4820. <div v-if="groupJson.number > 9">
  4821. <span :class="{
  4822. isChair:
  4823. groupStudent[toolindex][gindex] &&
  4824. groupStudent[toolindex][gindex][9],
  4825. updateChair:
  4826. courseDetail.userid == userid &&
  4827. groupStudent[toolindex][gindex] &&
  4828. groupStudent[toolindex][gindex][9] &&
  4829. groupJson.islock == 2,
  4830. }"><span class="updateChairBtn" @click="updateGroupChair(
  4831. groupStudent[toolindex][gindex] &&
  4832. groupStudent[toolindex][gindex][9]
  4833. )
  4834. ">修改</span></span><span>{{
  4835. groupStudent[toolindex][gindex] &&
  4836. groupStudent[toolindex][gindex][9]
  4837. ? groupStudent[toolindex][gindex] &&
  4838. groupStudent[toolindex][gindex][9].name
  4839. : "空位置"
  4840. }}</span>
  4841. </div>
  4842. </div>
  4843. </div>
  4844. </div>
  4845. </div>
  4846. </div>
  4847. <span slot="footer" class="dialog-footer">
  4848. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  4849. </span>
  4850. </el-dialog>
  4851. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  4852. :before-close="handleClose" class="dialog_diy">
  4853. <div class="groupBox">
  4854. <div v-if="groupJson2.group" class="groupContent">
  4855. <div class="groupTitle">请设置小组数量</div>
  4856. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  4857. <span class="groupn">组{{ index + 1 }}名称:</span>
  4858. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4859. <!-- <div class="groupBtn">
  4860. <el-button type="primary" size="small" @click="addGroup(index)">
  4861. 添加</el-button>
  4862. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4863. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  4864. </div> -->
  4865. </div>
  4866. </div>
  4867. <div class="groupContent">
  4868. <div class="groupTitle">请设置每组人数数量</div>
  4869. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4870. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4871. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  4872. placeholder="2-10人以内"></el-input-number>
  4873. </div>
  4874. </div>
  4875. <span slot="footer" class="dialog-footer">
  4876. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  4877. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  4878. </span>
  4879. </el-dialog>
  4880. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  4881. :before-close="handleClose" class="dialog_change">
  4882. <div class="marginT">
  4883. <div>上传文件</div>
  4884. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4885. <div class="up_photo">
  4886. <img src="../../assets/icon/uploadImg.png" alt />
  4887. </div>
  4888. <!-- <input
  4889. type="file"
  4890. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4891. style="display: none"
  4892. @change="beforeUpload1($event, 1)"
  4893. /> -->
  4894. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4895. </div>
  4896. <!-- capture="camera" -->
  4897. <div class="chapter_add" style="
  4898. display: flex;
  4899. width: 100%;
  4900. flex-direction: row;
  4901. flex-wrap: wrap;
  4902. justify-content: flex-start;
  4903. padding: 15px 0;
  4904. " v-if="studyJuri[0].cover.length > 0">
  4905. <div class="upCover">
  4906. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4907. <img :src="word" alt v-else-if="fileType == 1" />
  4908. <img :src="video" alt v-else-if="fileType == 2" />
  4909. <img :src="word2" alt v-else-if="fileType == 3" />
  4910. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4911. <div class="deleteWord" @click="clean(1)">
  4912. <img src="../../assets/icon/deleteWorks.png" alt />
  4913. </div>
  4914. </div>
  4915. </div>
  4916. </div>
  4917. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  4918. 提交
  4919. </div>
  4920. </el-dialog>
  4921. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  4922. :before-close="handleClose" class="dialog_diy">
  4923. <div>
  4924. <h2>
  4925. {{ this.updateGroupUser.name }}
  4926. </h2>
  4927. <div style="color: rgb(171 171 171); margin-top: 10px">
  4928. 请选择要进入的分组
  4929. </div>
  4930. <el-radio-group v-model="checkChair">
  4931. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  4932. :key="index">{{ item.name }}</el-radio>
  4933. </el-radio-group>
  4934. </div>
  4935. <span slot="footer" class="dialog-footer">
  4936. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  4937. <el-button type="primary" @click="updateChair">确定</el-button>
  4938. </span>
  4939. </el-dialog>
  4940. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  4941. :before-close="handleClose" class="dialog_diy">
  4942. <div>
  4943. <h2>
  4944. {{ this.deleteGroupArray.name }}
  4945. </h2>
  4946. <div style="color: rgb(171 171 171); margin-top: 10px">
  4947. 请选择要删除的组员
  4948. </div>
  4949. <el-checkbox-group v-model="checkDeleteGroup">
  4950. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  4951. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  4952. </el-checkbox-group>
  4953. </div>
  4954. <span slot="footer" class="dialog-footer">
  4955. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  4956. <el-button type="primary" @click="deleteChair">确定</el-button>
  4957. </span>
  4958. </el-dialog>
  4959. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  4960. :before-close="handleClose" class="dialog_change">
  4961. <div class="marginT">
  4962. <div>上传文件</div>
  4963. <div class="plworkBox">
  4964. <div class="chapter_add" style="
  4965. display: flex;
  4966. width: 150px;
  4967. flex-direction: row;
  4968. flex-wrap: wrap;
  4969. justify-content: flex-start;
  4970. margin: 0 10px 10px 0;
  4971. " v-for="(item, index) in plworkFile" :key="index">
  4972. <div class="upCover2">
  4973. <img :src="item.url" alt v-if="item.fileType == 1" />
  4974. <img :src="word" alt v-else-if="item.fileType == 4" />
  4975. <img :src="video" alt v-else />
  4976. <!-- <span class="picName">{{ item.name }}</span> -->
  4977. <!-- <el-input
  4978. v-model="item.username"
  4979. placeholder="请输入学生名字"
  4980. style="margin-top: 10px"
  4981. ></el-input> -->
  4982. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  4983. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  4984. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  4985. </el-option>
  4986. </el-select>
  4987. <div class="deleteWord" @click="clean2(index)">
  4988. <img src="../../assets/icon/deleteWorks.png" alt />
  4989. </div>
  4990. </div>
  4991. </div>
  4992. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  4993. <div class="up_photo2">
  4994. <img src="../../assets/icon/plwork.png" alt />
  4995. <span>点击批量上传文件</span>
  4996. </div>
  4997. <input type="file"
  4998. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4999. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5000. </div>
  5001. </div>
  5002. </div>
  5003. <!-- capture="camera" -->
  5004. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5005. 提交
  5006. </div>
  5007. </el-dialog>
  5008. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5009. class="dialog_diy" center>
  5010. <div style="text-align: center">
  5011. <span class="tian1">名称</span>
  5012. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5013. placeholder="请选择学生">
  5014. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5015. :value="item.userid">
  5016. </el-option>
  5017. </el-select>
  5018. <!-- <el-input
  5019. v-model="worksSName"
  5020. style="width: 250px; margin: 15px 0px"
  5021. ></el-input> -->
  5022. </div>
  5023. <span slot="footer" class="dialog-footer">
  5024. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5025. <el-button type="primary" @click="updateName">确 定</el-button>
  5026. </span>
  5027. </el-dialog>
  5028. </div>
  5029. </template>
  5030. <script>
  5031. import "../../common/aws-sdk-2.235.1.min.js";
  5032. // import pdf from "../components/pdf3";
  5033. import pdf from "../components/vpdf";
  5034. import AskStatic from "../components/askStatic";
  5035. import AskStatic2 from "../components/askStatic2";
  5036. import AnswerData2 from "../components/answerData2";
  5037. import AnswerData from "../components/answerData";
  5038. import EditorBar from "../tools/wangEnduit.vue";
  5039. import Table from "../tools/table.vue";
  5040. import Time from "../tools/time.vue";
  5041. import Mind from "../tools/jsmind.vue";
  5042. import Sunburst from "../tools/sunburst";
  5043. import SeeBoard from "../tools/seeBoard";
  5044. import * as imageConversion from "image-conversion";
  5045. import Audio from "../components/audio.vue";
  5046. import ImgDraw from "../tools/imgDraw/imgDraw";
  5047. import { Empty } from "element-ui";
  5048. import RecordRTC from "recordrtc";
  5049. export default {
  5050. components: {
  5051. EditorBar,
  5052. Time,
  5053. pdf,
  5054. AskStatic,
  5055. AskStatic2,
  5056. Mind,
  5057. Sunburst,
  5058. SeeBoard,
  5059. AnswerData2,
  5060. AnswerData,
  5061. Audio,
  5062. ImgDraw,
  5063. Table,
  5064. },
  5065. data() {
  5066. return {
  5067. bg: null,
  5068. drawShow: false,
  5069. dialogVisible: false,
  5070. dialogVisiblePl: false,
  5071. commentDialogVisible: false,
  5072. videoVisible: false,
  5073. isStar: false,
  5074. studentEvalDialogVisible: false,
  5075. studentEvalDialogVisibleTeacher: false,
  5076. dialogVisibleSelect: false,
  5077. dialogVisibleSelectTeacher: false,
  5078. dialogVisibleScore: false,
  5079. dialogVisibleSentence: false,
  5080. dialogVisibleSentenceTeacher: false,
  5081. dialogVisibleSentence1: false,
  5082. dialogVisibleWorks: false,
  5083. answerDialogVisibleTeacher: false,
  5084. dialogVisibleTable: false,
  5085. dialogVisibleTableTeacher: false,
  5086. dialogVisibleWord: false,
  5087. dialogVisibleWordTeacher: false,
  5088. dialogVisibleTable2: false,
  5089. dialogVisibleGroupWork: false,
  5090. dialogVisibleUpdateGroup: false,
  5091. dialogVisibleDeleteGroup: false,
  5092. dialogVisibleSname: false,
  5093. worksSName: "",
  5094. classJuri: [],
  5095. uploadStudentJuri: [],
  5096. uploadCid: "",
  5097. snameWid: "",
  5098. sStudent: {},
  5099. sTool: "",
  5100. bzText: "",
  5101. commentDetail: [],
  5102. selectAnswer: [],
  5103. videoDetail: {},
  5104. selectJson: {},
  5105. eScore: { eBzText: "", eStar: [] },
  5106. id: this.$route.query.courseId,
  5107. userid: this.$route.query.userid,
  5108. classId: this.$route.query.cid,
  5109. // courseTypeLine: this.$route.query.type,
  5110. oid: this.$route.query.oid,
  5111. org: this.$route.query.org,
  5112. tType: this.$route.query.tType,
  5113. courseType: this.$route.query.type,
  5114. screenType: this.$route.query.screenType,
  5115. tcid2: this.$route.query.tcid,
  5116. tcid: "",
  5117. pptImgUrl: "",
  5118. pptImgUrl1: "",
  5119. commentText: "",
  5120. full: false,
  5121. sIsOpen: false,
  5122. IsLookOpen: false,
  5123. IsFollow: false,
  5124. pzDialog: false,
  5125. contentDialog: false,
  5126. mlDialog: false,
  5127. type: 1,
  5128. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5129. sentenceList1: [],
  5130. tableJson: [],
  5131. wordJson: [],
  5132. vedio: [],
  5133. text: [],
  5134. textList: [],
  5135. line: [],
  5136. lineList: [],
  5137. chapTools: [],
  5138. chapToolList: [],
  5139. file: [],
  5140. fileC: [],
  5141. vedioTime: [],
  5142. upToolImg: "",
  5143. preTime: 0,
  5144. rateList: {
  5145. ca: 0,
  5146. },
  5147. rateParams: [],
  5148. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5149. studyJuri: [
  5150. {
  5151. content: "",
  5152. cover: [],
  5153. upVedio: [],
  5154. upFile: [],
  5155. },
  5156. ],
  5157. plworkFile: [],
  5158. mr: require("../../assets/vedioPic.png"),
  5159. word: require("../../assets/icon/isWord.png"),
  5160. word2: require("../../assets/icon/word2.png"),
  5161. video: require("../../assets/icon/isVideo.png"),
  5162. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5163. likes: require("../../assets/icon/comment/likes.png"),
  5164. scoreImg: require("../../assets/score.png"),
  5165. courseDetail: {},
  5166. isSelect: false,
  5167. chapInfo: [],
  5168. chapInfoList: [],
  5169. taskCount: 0,
  5170. imgList: [],
  5171. noImgList: [],
  5172. pzList: [],
  5173. PlTextList: [
  5174. "Excellent!",
  5175. "nice!",
  5176. "很有创意!",
  5177. "还不错哦~",
  5178. "继续努力哦~",
  5179. ],
  5180. isClickNav: "",
  5181. navId: "",
  5182. playerOptions: {
  5183. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5184. autoplay: false, //如果true,浏览器准备好时开始回放。
  5185. muted: false, // 默认情况下将会消除任何音频。
  5186. loop: false, // 导致视频一结束就重新开始。
  5187. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5188. language: "zh-CN",
  5189. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5190. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5191. sources: [
  5192. {
  5193. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5194. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5195. },
  5196. ],
  5197. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5198. // poster: dataRes.imgUrl, //你的封面地址
  5199. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5200. controlBar: {
  5201. timeDivider: true, //当前时间和持续时间的分隔符
  5202. durationDisplay: true, //显示持续时间
  5203. remainingTimeDisplay: false, //是否显示剩余时间功能
  5204. fullscreenToggle: true, //全屏按钮
  5205. },
  5206. },
  5207. playerOptions1: {
  5208. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5209. autoplay: false, //如果true,浏览器准备好时开始回放。
  5210. muted: false, // 默认情况下将会消除任何音频。
  5211. loop: false, // 导致视频一结束就重新开始。
  5212. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5213. language: "zh-CN",
  5214. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5215. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5216. sources: [
  5217. {
  5218. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5219. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5220. },
  5221. ],
  5222. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5223. // poster: dataRes.imgUrl, //你的封面地址
  5224. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5225. controlBar: {
  5226. timeDivider: true, //当前时间和持续时间的分隔符
  5227. durationDisplay: true, //显示持续时间
  5228. remainingTimeDisplay: false, //是否显示剩余时间功能
  5229. fullscreenToggle: true, //全屏按钮
  5230. },
  5231. },
  5232. playerO: {},
  5233. noneBtnImg: false,
  5234. proVisible: false,
  5235. proVisible2: false,
  5236. progress: 0,
  5237. isFinishSize: 0,
  5238. isAllSize: 0,
  5239. questionAnswer: "",
  5240. answerQ: "", //问答标题
  5241. rateJson: [],
  5242. wbCount: 0,
  5243. wordCount: 0,
  5244. mindCount: 0,
  5245. askCount: 0,
  5246. noteCount: 0,
  5247. mindNetWorkCount: 0,
  5248. libraryCount: 0,
  5249. workCount: 0,
  5250. timeCount: 0,
  5251. answerCount: 0,
  5252. trainCount: 0,
  5253. evalCount: 0,
  5254. dialogImageUrl: "",
  5255. pictureDialog: false,
  5256. toolTypeList: [],
  5257. dialogVisible1: false,
  5258. dialogVisible2: false,
  5259. dialogVisible3: false,
  5260. dialogVisible6: false,
  5261. dialogVisible4: false,
  5262. isNoHomeWork: false,
  5263. dialogVisible5: false,
  5264. dialogVisible5Teacher: false,
  5265. dialogVisibleChoice: false,
  5266. dialogVisibleChoiceTeacher: false,
  5267. answerDialogVisible: false,
  5268. juriVisible: false,
  5269. timeDialogVisible: false,
  5270. radio: [],
  5271. isAsk: false,
  5272. askJson: {
  5273. askCount: 1,
  5274. askTitle: "",
  5275. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5276. },
  5277. testJson: {},
  5278. checkJson: [],
  5279. askList: [],
  5280. answerList: [],
  5281. navList: [],
  5282. addPzDialog: false,
  5283. pzConText: "",
  5284. worksStudent: [],
  5285. worksStudent2: [],
  5286. worksTeacher: [],
  5287. isCloseList: [],
  5288. workStudent: [],
  5289. groupStudent: [],
  5290. groupStudentUid: [],
  5291. noWorksS: [],
  5292. isWorksS: [],
  5293. noWorksStudent: [],
  5294. toolindex: 0,
  5295. groupIndex: 0,
  5296. workTypeB: false,
  5297. workTypeC: false,
  5298. isAnswer: false,
  5299. timer: null,
  5300. opertimer: null,
  5301. showType: 0,
  5302. fileType: 0,
  5303. showPDF: false,
  5304. noteName: "",
  5305. evaJuri: [],
  5306. evalua: "",
  5307. eTitle: "",
  5308. eName: "",
  5309. eJson: {},
  5310. fid: "", //一级
  5311. sid: "", //二级
  5312. tid: "", //二级
  5313. typeMode: 1,
  5314. eJSONNum: 0,
  5315. Etype: 1,
  5316. data: {
  5317. meta: {
  5318. name: "example",
  5319. author: "dd@163.com",
  5320. version: "0.2",
  5321. },
  5322. format: "node_array",
  5323. data: [{ id: "root", isroot: true, topic: "" }],
  5324. },
  5325. fullDialogVisible: false,
  5326. fulltype: "",
  5327. fullUrl: "",
  5328. commentIndexJson: {},
  5329. Stbodywidth: 0,
  5330. pzType: 1,
  5331. wScore: 0,
  5332. scoreDetail: "",
  5333. videoStart: false,
  5334. recorder: null,
  5335. groupJson: {},
  5336. groupJson2: {},
  5337. dialogVisibleGroup: false,
  5338. dialogVisibleGroup2: false,
  5339. updateGroupArray: [],
  5340. updateGroupUser: {},
  5341. deleteGroupUser: [],
  5342. deleteGroupArray: {},
  5343. checkChair: "",
  5344. checkDeleteGroup: [],
  5345. inviteCode: "",
  5346. courseGroupStudent: [],
  5347. courseGroupStudentUid: [],
  5348. courseGroup: {},
  5349. isGroup: false,
  5350. toolIndex: null,
  5351. tool: {},
  5352. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40]//, 40
  5353. };
  5354. },
  5355. methods: {
  5356. jump() {
  5357. window.parent.postMessage({ tools: "43" }, "*");
  5358. },
  5359. previewImg(url) {
  5360. this.$hevueImgPreview(url);
  5361. },
  5362. change(val) {
  5363. console.log(val);
  5364. },
  5365. goTo(path) {
  5366. this.$router.push(path);
  5367. },
  5368. handlePictureCardPreview(url) {
  5369. this.dialogImageUrl = url;
  5370. this.pictureDialog = true;
  5371. },
  5372. clean(type) {
  5373. if (type == 1) {
  5374. this.studyJuri[0].cover.splice(0, 1);
  5375. } else if (type == 2) {
  5376. this.studyJuri[0].upVedio.splice(0, 1);
  5377. } else {
  5378. this.studyJuri[0].upFile.splice(0, 1);
  5379. }
  5380. },
  5381. clean2(index) {
  5382. this.plworkFile.splice(index, 1);
  5383. },
  5384. handleClose(done) {
  5385. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5386. this.videoDetail.sources[0].src = "";
  5387. }
  5388. this.commentIndexJson = {};
  5389. done();
  5390. },
  5391. fullTools() {
  5392. this.full = !this.full;
  5393. },
  5394. imgChange(file, fileList, type) {
  5395. if (type == 1) {
  5396. var _tmp = this.studyJuri[0].cover;
  5397. } else if (type == 2) {
  5398. var _tmp = this.studyJuri[0].upVedio;
  5399. } else {
  5400. var _tmp = this.studyJuri[0].upFile;
  5401. }
  5402. this.noneBtnImg = _tmp.length >= 1;
  5403. },
  5404. setContent(bool) {
  5405. this.contentDialog = bool
  5406. if (bool && this.mlDialog) {
  5407. document.querySelector('.workd_media').style.height = "650px"
  5408. } else {
  5409. document.querySelector('.workd_media').style.height = "auto"
  5410. }
  5411. },
  5412. setContent2(bool) {
  5413. this.mlDialog = bool
  5414. if (bool && this.contentDialog) {
  5415. document.querySelector('.workd_media').style.height = "650px"
  5416. } else {
  5417. document.querySelector('.workd_media').style.height = "auto"
  5418. }
  5419. },
  5420. addImg(e) {
  5421. var el = e.currentTarget;
  5422. // this.$message.success('触发上传')
  5423. el.getElementsByTagName("input")[0].click();
  5424. e.target.value = "";
  5425. },
  5426. addSelectAnswer() {
  5427. let params = [
  5428. {
  5429. uid: this.userid,
  5430. cid: this.id,
  5431. stage: this.courseType,
  5432. task: this.taskCount,
  5433. tool: this.toolindex,
  5434. content: this.selectAnswer.answer,
  5435. type: 7,
  5436. },
  5437. ];
  5438. this.ajax
  5439. .post(this.$store.state.api + "addCourseWorks", params)
  5440. .then((res) => {
  5441. this.$message({
  5442. message: "提交成功",
  5443. type: "success",
  5444. });
  5445. this.dialogVisibleSelect = false;
  5446. // this.selectAnswer = {};
  5447. this.selectSWorks();
  5448. this.selectStudent();
  5449. })
  5450. .catch((err) => {
  5451. this.$message.error("提交失败");
  5452. console.error(err);
  5453. });
  5454. },
  5455. addSelectAnswerTeacher() {
  5456. let params = [
  5457. {
  5458. uid: this.sStudent.userid,
  5459. cid: this.id,
  5460. stage: this.courseType,
  5461. task: this.taskCount,
  5462. tool: this.toolindex,
  5463. content: this.selectAnswer.answer,
  5464. type: 7,
  5465. },
  5466. ];
  5467. this.ajax
  5468. .post(this.$store.state.api + "addCourseWorks", params)
  5469. .then((res) => {
  5470. this.$message({
  5471. message: "提交成功",
  5472. type: "success",
  5473. });
  5474. this.dialogVisibleSelectTeacher = false;
  5475. // this.selectAnswer = {};
  5476. this.selectSWorks();
  5477. this.selectStudent();
  5478. })
  5479. .catch((err) => {
  5480. this.$message.error("提交失败");
  5481. console.error(err);
  5482. });
  5483. },
  5484. addSenWorks() {
  5485. for (var i = 0; i < this.sentenceList.length; i++) {
  5486. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5487. if (
  5488. this.sentenceList[i].chooseSenList[j] == undefined ||
  5489. this.sentenceList[i].chooseSenList[j] == ""
  5490. ) {
  5491. this.$message.error("请将答案填写完整!");
  5492. return;
  5493. }
  5494. }
  5495. }
  5496. let params = [
  5497. {
  5498. uid: this.userid,
  5499. cid: this.id,
  5500. stage: this.courseType,
  5501. task: this.taskCount,
  5502. tool: this.toolindex,
  5503. content: JSON.stringify(this.sentenceList),
  5504. type: 9,
  5505. },
  5506. ];
  5507. this.ajax
  5508. .post(this.$store.state.api + "addCourseWorks", params)
  5509. .then((res) => {
  5510. this.$message({
  5511. message: "提交成功",
  5512. type: "success",
  5513. });
  5514. this.dialogVisibleSentence = false;
  5515. // this.selectAnswer = {};
  5516. this.selectSWorks();
  5517. this.selectStudent();
  5518. })
  5519. .catch((err) => {
  5520. this.$message.error("提交失败");
  5521. console.error(err);
  5522. });
  5523. },
  5524. addSenWorksTeacher() {
  5525. for (var i = 0; i < this.sentenceList.length; i++) {
  5526. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5527. if (
  5528. this.sentenceList[i].chooseSenList[j] == undefined ||
  5529. this.sentenceList[i].chooseSenList[j] == ""
  5530. ) {
  5531. this.$message.error("请将答案填写完整!");
  5532. return;
  5533. }
  5534. }
  5535. }
  5536. let params = [
  5537. {
  5538. uid: this.sStudent.userid,
  5539. cid: this.id,
  5540. stage: this.courseType,
  5541. task: this.taskCount,
  5542. tool: this.toolindex,
  5543. content: JSON.stringify(this.sentenceList),
  5544. type: 9,
  5545. },
  5546. ];
  5547. this.ajax
  5548. .post(this.$store.state.api + "addCourseWorks", params)
  5549. .then((res) => {
  5550. this.$message({
  5551. message: "提交成功",
  5552. type: "success",
  5553. });
  5554. this.dialogVisibleSentenceTeacher = false;
  5555. // this.selectAnswer = {};
  5556. this.selectSWorks();
  5557. this.selectStudent();
  5558. })
  5559. .catch((err) => {
  5560. this.$message.error("提交失败");
  5561. console.error(err);
  5562. });
  5563. },
  5564. addTableWorks() {
  5565. let params = [
  5566. {
  5567. uid: this.userid,
  5568. cid: this.id,
  5569. stage: this.courseType,
  5570. task: this.taskCount,
  5571. tool: this.toolindex,
  5572. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5573. type: 10,
  5574. },
  5575. ];
  5576. this.ajax
  5577. .post(this.$store.state.api + "addCourseWorks", params)
  5578. .then((res) => {
  5579. this.$message({
  5580. message: "提交成功",
  5581. type: "success",
  5582. });
  5583. this.dialogVisibleTable = false;
  5584. // this.selectAnswer = {};
  5585. this.selectSWorks();
  5586. this.selectStudent();
  5587. })
  5588. .catch((err) => {
  5589. this.$message.error("提交失败");
  5590. console.error(err);
  5591. });
  5592. },
  5593. addTableWorksTeacher() {
  5594. let params = [
  5595. {
  5596. uid: this.sStudent.userid,
  5597. cid: this.id,
  5598. stage: this.courseType,
  5599. task: this.taskCount,
  5600. tool: this.toolindex,
  5601. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5602. type: 10,
  5603. },
  5604. ];
  5605. this.ajax
  5606. .post(this.$store.state.api + "addCourseWorks", params)
  5607. .then((res) => {
  5608. this.$message({
  5609. message: "提交成功",
  5610. type: "success",
  5611. });
  5612. this.dialogVisibleTableTeacher = false;
  5613. // this.selectAnswer = {};
  5614. this.selectSWorks();
  5615. this.selectStudent();
  5616. })
  5617. .catch((err) => {
  5618. this.$message.error("提交失败");
  5619. console.error(err);
  5620. });
  5621. },
  5622. addWordWorks() {
  5623. let params = {
  5624. uid: this.userid,
  5625. cid: this.id,
  5626. stage: this.courseType,
  5627. task: this.taskCount,
  5628. tool: this.toolindex,
  5629. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5630. type: 13,
  5631. atool: 52,
  5632. };
  5633. console.log(params);
  5634. this.ajax
  5635. .get(this.$store.state.api + "addCourseWorks3", params)
  5636. .then((res) => {
  5637. this.$message({
  5638. message: "提交成功",
  5639. type: "success",
  5640. });
  5641. this.dialogVisibleWord = false;
  5642. // this.selectAnswer = {};
  5643. this.selectSWorks();
  5644. this.selectStudent();
  5645. })
  5646. .catch((err) => {
  5647. this.$message.error("提交失败");
  5648. console.error(err);
  5649. });
  5650. },
  5651. addWordWorksTeacher() {
  5652. let params = {
  5653. uid: this.sStudent.userid,
  5654. cid: this.id,
  5655. stage: this.courseType,
  5656. task: this.taskCount,
  5657. tool: this.toolindex,
  5658. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5659. type: 13,
  5660. atool: 52,
  5661. };
  5662. console.log(params);
  5663. this.ajax
  5664. .get(this.$store.state.api + "addCourseWorks3", params)
  5665. .then((res) => {
  5666. this.$message({
  5667. message: "提交成功",
  5668. type: "success",
  5669. });
  5670. this.dialogVisibleWordTeacher = false;
  5671. // this.selectAnswer = {};
  5672. this.selectSWorks();
  5673. this.selectStudent();
  5674. })
  5675. .catch((err) => {
  5676. this.$message.error("提交失败");
  5677. console.error(err);
  5678. });
  5679. },
  5680. addCourseWorks(i) {
  5681. var typesql;
  5682. if (this.fileType === 0) {
  5683. typesql = 1;
  5684. } else if (this.fileType === 1) {
  5685. typesql = 4;
  5686. } else if (this.fileType === 2) {
  5687. typesql = 5;
  5688. } else if (this.fileType === 3) {
  5689. typesql = 12;
  5690. }
  5691. if (!this.studyJuri[0].cover[0].url) {
  5692. this.$message.error("请上传文件");
  5693. return;
  5694. }
  5695. let params = [
  5696. {
  5697. uid: this.userid,
  5698. cid: this.id,
  5699. stage: this.courseType,
  5700. task: i,
  5701. tool: this.toolindex,
  5702. content: this.studyJuri[0].cover[0].url,
  5703. type: typesql,
  5704. },
  5705. ];
  5706. this.ajax
  5707. .post(this.$store.state.api + "addCourseWorksR", params)
  5708. .then((res) => {
  5709. this.$message({
  5710. message: "提交成功",
  5711. type: "success",
  5712. });
  5713. this.studyJuri[0].cover = [];
  5714. this.dialogVisible = false;
  5715. this.getCourseDetail();
  5716. })
  5717. .catch((err) => {
  5718. this.$message.error("提交失败");
  5719. console.error(err);
  5720. });
  5721. },
  5722. addCourseWorksPl(i) {
  5723. let _files = this.plworkFile;
  5724. var c = 1;
  5725. for (var k = 0; k < _files.length; k++) {
  5726. if (!_files[k].username) {
  5727. c = 2;
  5728. }
  5729. }
  5730. if (c == 2) {
  5731. this.$message.error("请填写学生姓名");
  5732. return;
  5733. }
  5734. let params = [
  5735. {
  5736. ateacher: this.userid,
  5737. cid: this.id,
  5738. stage: this.courseType,
  5739. task: i,
  5740. tool: this.toolindex,
  5741. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  5742. },
  5743. ];
  5744. this.ajax
  5745. .post(this.$store.state.api + "addCourseWorksPl", params)
  5746. .then((res) => {
  5747. this.$message({
  5748. message: "提交成功",
  5749. type: "success",
  5750. });
  5751. this.plworkFile = [];
  5752. this.dialogVisiblePl = false;
  5753. this.getCourseDetail();
  5754. })
  5755. .catch((err) => {
  5756. this.$message.error("提交失败");
  5757. console.error(err);
  5758. });
  5759. },
  5760. addCourseWorks2(i) {
  5761. var typesql;
  5762. if (this.fileType === 0) {
  5763. typesql = 0;
  5764. } else if (this.fileType === 1) {
  5765. typesql = 1;
  5766. } else if (this.fileType === 2) {
  5767. typesql = 3;
  5768. } else if (this.fileType === 3) {
  5769. typesql = 12;
  5770. }
  5771. if (!this.studyJuri[0].cover[0].url) {
  5772. this.$message.error("请上传文件");
  5773. return;
  5774. }
  5775. let params = [
  5776. {
  5777. uid: this.userid,
  5778. cid: this.id,
  5779. stage: this.courseType,
  5780. task: i,
  5781. tool: this.toolindex,
  5782. content: JSON.stringify({
  5783. type: typesql,
  5784. groupIndex: this.groupIndex,
  5785. url: this.studyJuri[0].cover[0].url,
  5786. }).replaceAll(/%/g, "%25"),
  5787. type: 11,
  5788. atool: 49,
  5789. text: "",
  5790. },
  5791. ];
  5792. this.ajax
  5793. .post(this.$store.state.api + "addCourseWorks5", params)
  5794. .then((res) => {
  5795. this.$message({
  5796. message: "提交成功",
  5797. type: "success",
  5798. });
  5799. this.studyJuri[0].cover = [];
  5800. this.dialogVisibleGroupWork = false;
  5801. this.getCourseDetail();
  5802. })
  5803. .catch((err) => {
  5804. this.$message.error("提交失败");
  5805. console.error(err);
  5806. });
  5807. },
  5808. addCourseWorksGong(i, data, tool) {
  5809. let params = [
  5810. {
  5811. uid: this.userid,
  5812. cid: this.id,
  5813. stage: this.courseType,
  5814. task: this.taskCount,
  5815. tool: i,
  5816. content: data,
  5817. type: 12,
  5818. atool: tool,
  5819. text: "",
  5820. },
  5821. ];
  5822. this.ajax
  5823. .post(this.$store.state.api + "addCourseWorks5", params)
  5824. .then((res) => {
  5825. this.$message({
  5826. message: "提交成功",
  5827. type: "success",
  5828. });
  5829. this.studyJuri[0].cover = [];
  5830. this.selectSWorks();
  5831. this.selectStudent();
  5832. })
  5833. .catch((err) => {
  5834. this.$message.error("提交失败");
  5835. console.error(err);
  5836. });
  5837. },
  5838. addCourseWorksGongTeacher(i, data, tool) {
  5839. let params = [
  5840. {
  5841. uid: this.sStudent.userid,
  5842. cid: this.id,
  5843. stage: this.courseType,
  5844. task: this.taskCount,
  5845. tool: i,
  5846. content: data,
  5847. type: 12,
  5848. atool: tool,
  5849. text: "",
  5850. },
  5851. ];
  5852. this.ajax
  5853. .post(this.$store.state.api + "addCourseWorks5", params)
  5854. .then((res) => {
  5855. this.$message({
  5856. message: "提交成功",
  5857. type: "success",
  5858. });
  5859. this.studyJuri[0].cover = [];
  5860. this.dialogVisibleWorks = false;
  5861. this.selectSWorks();
  5862. this.selectStudent();
  5863. })
  5864. .catch((err) => {
  5865. this.$message.error("提交失败");
  5866. console.error(err);
  5867. });
  5868. },
  5869. addCourseWorksGongPl(i, data, tool, type) {
  5870. let params = [
  5871. {
  5872. uid: this.sStudent.userid,
  5873. cid: this.id,
  5874. stage: this.courseType,
  5875. task: this.taskCount,
  5876. tool: i,
  5877. content: data,
  5878. type: type,
  5879. atool: tool,
  5880. text: "",
  5881. },
  5882. ];
  5883. this.ajax
  5884. .post(this.$store.state.api + "addCourseWorks5", params)
  5885. .then((res) => {
  5886. this.$message({
  5887. message: "提交成功",
  5888. type: "success",
  5889. });
  5890. this.studyJuri[0].cover = [];
  5891. this.dialogVisibleWorks = false;
  5892. this.selectSWorks();
  5893. this.selectStudent();
  5894. })
  5895. .catch((err) => {
  5896. this.$message.error("提交失败");
  5897. console.error(err);
  5898. });
  5899. },
  5900. addCourseWorksTeacher(i) {
  5901. var typesql;
  5902. if (this.sTool == 32 || this.sTool == 57) {
  5903. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  5904. return;
  5905. }
  5906. if (this.fileType === 0) {
  5907. typesql = 1;
  5908. } else if (this.fileType === 1) {
  5909. typesql = 4;
  5910. } else if (this.fileType === 2) {
  5911. typesql = 5;
  5912. } else if (this.fileType === 3) {
  5913. typesql = 12;
  5914. }
  5915. if (this.sTool == 50) {
  5916. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  5917. return;
  5918. }
  5919. if (!this.studyJuri[0].cover[0].url) {
  5920. this.$message.error("请上传文件");
  5921. return;
  5922. }
  5923. let params = [
  5924. {
  5925. uid: this.sStudent.userid,
  5926. cid: this.id,
  5927. stage: this.courseType,
  5928. task: i,
  5929. tool: this.toolindex,
  5930. content: this.studyJuri[0].cover[0].url,
  5931. type: typesql,
  5932. ateacher: this.userid,
  5933. },
  5934. ];
  5935. this.ajax
  5936. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  5937. .then((res) => {
  5938. this.$message({
  5939. message: "提交成功",
  5940. type: "success",
  5941. });
  5942. this.studyJuri[0].cover = [];
  5943. this.dialogVisibleWorks = false;
  5944. this.getCourseDetail();
  5945. })
  5946. .catch((err) => {
  5947. this.$message.error("提交失败");
  5948. console.error(err);
  5949. });
  5950. },
  5951. selectUploadStudent() {
  5952. let params = {
  5953. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  5954. oid: this.oid,
  5955. cn: '',
  5956. };
  5957. this.ajax
  5958. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  5959. .then((res) => {
  5960. var studentK = [];
  5961. if (this.isWorksS[this.toolindex].length > 0) {
  5962. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  5963. studentK.push(this.isWorksS[this.toolindex][z].uid);
  5964. }
  5965. studentK = studentK.join(",");
  5966. }
  5967. this.uploadStudentJuri = res.data[0].filter((el)=>{
  5968. return studentK.indexOf(el.userid) == -1
  5969. });
  5970. })
  5971. .catch((err) => {
  5972. console.error(err);
  5973. });
  5974. },
  5975. arrayToArray(arrayo, arrayt) {
  5976. let array1 = arrayo;
  5977. let array2 = arrayt;
  5978. let commonElements = [];
  5979. for (let i = 0; i < array1.length; i++) {
  5980. for (let j = 0; j < array2.length; j++) {
  5981. if (array1[i] === array2[j]) {
  5982. commonElements.push(array1[i]);
  5983. }
  5984. }
  5985. }
  5986. return commonElements
  5987. },
  5988. selectWorksStudent() {
  5989. let params = {
  5990. oid: this.oid,
  5991. cid: this.courseDetail.juri,
  5992. };
  5993. this.ajax
  5994. .get(this.$store.state.api + "selectWorksStudent", params)
  5995. .then((res) => {
  5996. var a = res.data[0];
  5997. for (var i = 0; i < this.isWorksS.length; i++) {
  5998. this.noWorksS[i] = [];
  5999. var studentK = [];
  6000. if (this.isWorksS[i].length > 0) {
  6001. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6002. studentK.push(this.isWorksS[i][z].uid);
  6003. }
  6004. studentK = studentK.join(",");
  6005. for (var j = 0; j < a.length; j++) {
  6006. // if (studentK.indexOf(a[j].userid) == -1) {
  6007. if (this.tcid) {
  6008. // a[j].classid.indexOf(this.tcid) != -1
  6009. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6010. this.noWorksS[i].push({
  6011. student: a[j].name,
  6012. userid: a[j].userid,
  6013. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6014. });
  6015. }
  6016. } else {
  6017. this.noWorksS[i].push({
  6018. student: a[j].name,
  6019. userid: a[j].userid,
  6020. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6021. });
  6022. }
  6023. // }
  6024. }
  6025. } else {
  6026. for (var k = 0; k < a.length; k++) {
  6027. if (this.tcid) {
  6028. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6029. this.noWorksS[i].push({
  6030. student: a[k].name,
  6031. userid: a[k].userid,
  6032. type:'1'
  6033. });
  6034. }
  6035. } else {
  6036. this.noWorksS[i].push({
  6037. student: a[k].name,
  6038. userid: a[k].userid,
  6039. type:'1'
  6040. });
  6041. }
  6042. }
  6043. }
  6044. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  6045. // let jscoreA = parseInt(a.type);
  6046. // let jscoreB = parseInt(b.type);
  6047. // return jscoreB - jscoreA;
  6048. // });
  6049. }
  6050. this.$forceUpdate();
  6051. if (
  6052. Object.keys(this.commentDetail).length &&
  6053. Object.keys(this.commentIndexJson).length &&
  6054. !this.dialogVisibleScore
  6055. ) {
  6056. let a = 1;
  6057. let c = this.commentIndexJson;
  6058. console.log(c);
  6059. if (
  6060. this.commentIndexJson.gindex ||
  6061. this.commentIndexJson.gindex === 0
  6062. ) {
  6063. for (
  6064. var i = 0;
  6065. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6066. i++
  6067. ) {
  6068. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6069. groupA: for (var k = 0; k < _el.length; k++) {
  6070. let el = _el[k];
  6071. if (el.wid == this.commentDetail.wid) {
  6072. a = 2;
  6073. this.commentOther(
  6074. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6075. this.commentIndexJson.toolIndex,
  6076. k,
  6077. this.commentIndexJson.gindex
  6078. );
  6079. break groupA;
  6080. }
  6081. }
  6082. }
  6083. if (a === 1) {
  6084. this.commentDetail = [];
  6085. this.commentIndexJson = {};
  6086. this.commentDialogVisible = false;
  6087. this.$message("此作业已被删除");
  6088. }
  6089. } else {
  6090. if (this.isGroup && this.commentIndexJson.gid) {
  6091. groupA: for (
  6092. var i = 0;
  6093. i < this.courseGroup.group.length;
  6094. i++
  6095. ) {
  6096. let _group = this.courseGroup.group[i]
  6097. if (_group.id == this.commentIndexJson.gid) {
  6098. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6099. for (var k = 0; k < _el2.length; k++) {
  6100. let el2 = _el2[k];
  6101. if (el2.wid == this.commentDetail.wid) {
  6102. a = 2;
  6103. this.commentOther(
  6104. _el2[k],
  6105. this.commentIndexJson.toolIndex,
  6106. k,
  6107. null,
  6108. this.commentIndexJson.gid
  6109. );
  6110. break groupA;
  6111. }
  6112. }
  6113. }
  6114. }
  6115. }
  6116. if (a == 1) {
  6117. for (
  6118. var i = 0;
  6119. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6120. i++
  6121. ) {
  6122. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6123. if (el.wid == this.commentDetail.wid) {
  6124. a = 2;
  6125. this.commentOther(
  6126. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6127. this.commentIndexJson.toolIndex,
  6128. i
  6129. );
  6130. break;
  6131. }
  6132. }
  6133. }
  6134. if (a === 1) {
  6135. this.commentDetail = [];
  6136. this.commentIndexJson = {};
  6137. this.commentDialogVisible = false;
  6138. this.$message("此作业已被删除");
  6139. }
  6140. }
  6141. }
  6142. })
  6143. .catch((err) => {
  6144. console.error(err);
  6145. });
  6146. },
  6147. selectStudent() {
  6148. },
  6149. openVideo(w) {
  6150. this.videoDetail = {};
  6151. this.playerOptions1.sources[0].src = w.works;
  6152. this.videoDetail = this.playerOptions1;
  6153. this.videoVisible = true;
  6154. },
  6155. isLikes(wid, uid, t, c, isLikes) {
  6156. if (isLikes == false) {
  6157. let params = [
  6158. {
  6159. wid: wid,
  6160. lid: uid,
  6161. t: t,
  6162. c: c,
  6163. },
  6164. ];
  6165. this.ajax
  6166. .post(this.$store.state.api + "insertComment", params)
  6167. .then((res) => {
  6168. this.$message({
  6169. message: "点赞成功",
  6170. type: "success",
  6171. });
  6172. this.selectSWorks();
  6173. this.selectStudent();
  6174. })
  6175. .catch((err) => {
  6176. this.$message.error("点赞失败");
  6177. console.error(err);
  6178. });
  6179. } else {
  6180. let params = {
  6181. wid: wid,
  6182. lid: uid,
  6183. type: t,
  6184. };
  6185. this.ajax
  6186. .get(this.$store.state.api + "deleteComment", params)
  6187. .then((res) => {
  6188. this.$message({
  6189. message: "取消点赞成功",
  6190. type: "success",
  6191. });
  6192. this.selectSWorks();
  6193. this.selectStudent();
  6194. })
  6195. .catch((err) => {
  6196. console.error(err);
  6197. });
  6198. }
  6199. },
  6200. deleteComment(wid) {
  6201. this.$confirm("确定删除此评论吗?", "提示", {
  6202. confirmButtonText: "确定",
  6203. cancelButtonText: "取消",
  6204. type: "warning",
  6205. })
  6206. .then(() => {
  6207. let params = {
  6208. id: wid,
  6209. };
  6210. this.ajax
  6211. .get(this.$store.state.api + "deleteComment2", params)
  6212. .then((res) => {
  6213. this.$message({
  6214. message: "删除评论成功",
  6215. type: "success",
  6216. });
  6217. this.selectSWorks();
  6218. this.selectStudent();
  6219. })
  6220. .catch((err) => {
  6221. console.error(err);
  6222. });
  6223. })
  6224. .catch(() => { });
  6225. },
  6226. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6227. this.commentIndexJson = {
  6228. toolIndex: toolIndex,
  6229. wIndex: wIndex,
  6230. gindex: gindex,
  6231. gid: gid
  6232. };
  6233. this.commentDetail = [];
  6234. this.commentDialogVisible = true;
  6235. this.commentDetail = w;
  6236. if (w.works && w.type == 1) {
  6237. this.pptImgUrl = "";
  6238. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6239. if (
  6240. a.indexOf(
  6241. w.works
  6242. .split(".")
  6243. [w.works.split(".").length - 1].toLocaleUpperCase()
  6244. ) != -1
  6245. ) {
  6246. this.pptImgUrl =
  6247. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6248. this.showPDF = false;
  6249. } else if (
  6250. w.works
  6251. .split(".")
  6252. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6253. ) {
  6254. this.pptImgUrl = w.works;
  6255. this.showPDF = true;
  6256. }
  6257. } else if (w.works && w.type == 3) {
  6258. this.videoDetail = {};
  6259. this.playerOptions1.sources[0].src = w.works;
  6260. this.videoDetail = this.playerOptions1;
  6261. // this.videoVisible = true;
  6262. } else if (w.works && w.type == 4) {
  6263. this.eScore = JSON.parse(w.works);
  6264. this.rateJson =
  6265. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6266. this.taskCount
  6267. ].toolChoose[toolIndex].rateJson;
  6268. } else if (w.works && w.type == 10) {
  6269. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6270. } else if (w.works && w.type == 13) {
  6271. this.wordJson =
  6272. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6273. this.taskCount
  6274. ].toolChoose[toolIndex].wordJson;
  6275. }
  6276. },
  6277. openScore(w) {
  6278. this.wScore = 0;
  6279. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6280. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6281. this.commentDetail = [];
  6282. this.dialogVisibleScore = true;
  6283. this.commentDetail = w;
  6284. if (w.works && w.type == 1) {
  6285. this.pptImgUrl = "";
  6286. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6287. if (
  6288. a.indexOf(
  6289. w.works
  6290. .split(".")
  6291. [w.works.split(".").length - 1].toLocaleUpperCase()
  6292. ) != -1
  6293. ) {
  6294. this.pptImgUrl =
  6295. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6296. this.showPDF = false;
  6297. } else if (
  6298. w.works
  6299. .split(".")
  6300. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6301. ) {
  6302. this.pptImgUrl = w.works;
  6303. this.showPDF = true;
  6304. }
  6305. } else if (w.works && w.type == 3) {
  6306. this.videoDetail = {};
  6307. this.playerOptions1.sources[0].src = w.works;
  6308. this.videoDetail = this.playerOptions1;
  6309. }
  6310. },
  6311. addComment(wid, uid, t) {
  6312. if (this.commentText == "") {
  6313. this.$message.error("请输入对该学生的评价");
  6314. return;
  6315. }
  6316. let params2 = [
  6317. {
  6318. wid: wid,
  6319. lid: uid,
  6320. t: t,
  6321. },
  6322. ];
  6323. this.ajax
  6324. .post(this.$store.state.api + "getComment", params2)
  6325. .then((res) => {
  6326. if (res.data[0].length > 0) {
  6327. this.$message.error("一个作业只能评论一条");
  6328. } else {
  6329. let params = [
  6330. {
  6331. wid: wid,
  6332. lid: uid,
  6333. t: t,
  6334. c: this.commentText,
  6335. },
  6336. ];
  6337. this.ajax
  6338. .post(this.$store.state.api + "insertComment", params)
  6339. .then((res) => {
  6340. this.$message({
  6341. message: "评论成功",
  6342. type: "success",
  6343. });
  6344. this.commentText = "";
  6345. this.selectSWorks();
  6346. this.selectStudent();
  6347. })
  6348. .catch((err) => {
  6349. this.$message.error("评论失败");
  6350. console.error(err);
  6351. });
  6352. }
  6353. })
  6354. .catch((err) => {
  6355. // this.$message.error("评论失败");
  6356. console.error(err);
  6357. });
  6358. },
  6359. scoreWork(wid) {
  6360. if (this.wScore == 0) {
  6361. this.$message.error("请评分");
  6362. return;
  6363. }
  6364. let params = [
  6365. {
  6366. wid: wid,
  6367. score: JSON.stringify({
  6368. wScore: this.wScore,
  6369. detail: this.scoreDetail,
  6370. }),
  6371. },
  6372. ];
  6373. this.ajax
  6374. .post(this.$store.state.api + "scoreWork", params)
  6375. .then((res) => {
  6376. this.$message({
  6377. message: "评分成功",
  6378. type: "success",
  6379. });
  6380. this.wScore = 0;
  6381. this.scoreDetail = "";
  6382. this.dialogVisibleScore = false;
  6383. this.selectSWorks();
  6384. this.selectStudent();
  6385. })
  6386. .catch((err) => {
  6387. this.$message.error("评分失败");
  6388. console.error(err);
  6389. });
  6390. },
  6391. openXz(w, i) {
  6392. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6393. .taskJson[this.taskCount].toolChoose[i].selectJson
  6394. ? JSON.parse(
  6395. JSON.stringify(
  6396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6397. this.taskCount
  6398. ].toolChoose[i].selectJson
  6399. )
  6400. )
  6401. : { url: "", select: [], answer: [] };
  6402. var a = w.works.split(",");
  6403. for (var k = 0; k < a.length; k++) {
  6404. a[k] = parseInt(a[k]);
  6405. }
  6406. this.selectAnswer = { answer: a, stu: w.sName };
  6407. this.isSelect = true;
  6408. this.dialogVisibleSelect = true;
  6409. },
  6410. openSen(w, i) {
  6411. this.sentenceList1 = JSON.parse(w.works);
  6412. this.sentenceList1.stuName = w.sName;
  6413. this.dialogVisibleSentence1 = true;
  6414. },
  6415. openPj(w, toolindex) {
  6416. this.isStar = true;
  6417. this.eScore = JSON.parse(w);
  6418. this.rateJson =
  6419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6420. this.taskCount
  6421. ].toolChoose[toolindex].rateJson;
  6422. this.studentEvalDialogVisible = true;
  6423. },
  6424. deleteWorks(id) {
  6425. this.$confirm("确定删除此作业吗?", "提示", {
  6426. confirmButtonText: "确定",
  6427. cancelButtonText: "取消",
  6428. type: "warning",
  6429. })
  6430. .then(() => {
  6431. let params = [
  6432. {
  6433. id: id,
  6434. },
  6435. ];
  6436. this.ajax
  6437. .post(this.$store.state.api + "deleteCourseWork", params)
  6438. .then((res) => {
  6439. this.$message({
  6440. message: "删除成功",
  6441. type: "success",
  6442. });
  6443. this.selectStudent();
  6444. this.selectSWorks();
  6445. this.selectSLook();
  6446. })
  6447. .catch((err) => {
  6448. this.$message.error("网络异常");
  6449. console.error(err);
  6450. });
  6451. })
  6452. .catch(() => { });
  6453. },
  6454. selectSWorks(gindex) {
  6455. //教师查看全部作业
  6456. let params = {
  6457. cid: this.id,
  6458. s: this.courseType,
  6459. t: this.taskCount,
  6460. };
  6461. this.ajax
  6462. .get(this.$store.state.api + "selectSWorks", params)
  6463. .then((res) => {
  6464. var a =
  6465. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6466. this.taskCount
  6467. ].toolChoose;
  6468. var b = res.data[0];
  6469. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6470. var y = [
  6471. "AVI",
  6472. "NAVI",
  6473. "MPEG",
  6474. "ASF",
  6475. "MOV",
  6476. "WMV",
  6477. "3GP",
  6478. "RM",
  6479. "RMVB",
  6480. "FLV",
  6481. "F4V",
  6482. "H.264",
  6483. "H.265",
  6484. "REAL VIDEO",
  6485. "MKV",
  6486. "WebM",
  6487. "HDDVD",
  6488. "MP4",
  6489. "MPG",
  6490. "M4V",
  6491. "MGV",
  6492. "OGV",
  6493. "QTM",
  6494. "STR",
  6495. "AMC",
  6496. "DVX",
  6497. "EVO",
  6498. "DAT",
  6499. "OGG",
  6500. "OGM",
  6501. ];
  6502. var d = res.data[1];
  6503. var e = res.data[2];
  6504. var f = res.data[3];
  6505. for (var i = 0; i < a.length; i++) {
  6506. this.worksStudent[i] = [];
  6507. this.worksTeacher[i] = [];
  6508. this.worksStudent2[i] = [];
  6509. if (
  6510. !this.isCloseList[i] ||
  6511. this.isCloseList[i].isClose == undefined
  6512. ) {
  6513. this.isCloseList[i] = { isClose: 0 };
  6514. }
  6515. this.groupStudent[i] = [];
  6516. this.groupStudentUid[i] = [];
  6517. this.isWorksS[i] = [];
  6518. this.checkJson[i] = [];
  6519. if (a[i].tool[0] == 49) {
  6520. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6521. this.groupStudent[i][gA] = [];
  6522. this.groupStudentUid[i][gA] = [];
  6523. this.worksStudent[i][gA] = [];
  6524. this.isCloseList[i][gA] = [];
  6525. for (var g = 0; g < f.length; g++) {
  6526. if (
  6527. f[g].ttype == 2 &&
  6528. this.tcid &&
  6529. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6530. ) {
  6531. continue;
  6532. }
  6533. if (gA == f[g].group && f[g].tool == i) {
  6534. this.groupStudent[i][gA].push(f[g]);
  6535. this.groupStudentUid[i][gA].push(f[g].userid);
  6536. }
  6537. }
  6538. }
  6539. this.$forceUpdate();
  6540. }
  6541. for (var j = 0; j < b.length; j++) {
  6542. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6543. continue;
  6544. }
  6545. var likesCount = 0;
  6546. var commentCount = 0;
  6547. var isLikes = false;
  6548. var commentJson = [];
  6549. var data = b[j];
  6550. if (i == b[j].tool) {
  6551. if (data.type == 2 && a[i].tool[0] == 4) {
  6552. // if(JSON.parse(data.content)[0].anwer){
  6553. var checkL = JSON.parse(data.content)[0].anwer;
  6554. for (var z = 0; z < checkL.length; z++) {
  6555. if (!this.checkJson[i][z]) {
  6556. this.checkJson[i].push({
  6557. checkCount: [],
  6558. checkPerson: [],
  6559. rightPerson: [],
  6560. });
  6561. }
  6562. if (!this.checkJson[i][z].checkCount.length) {
  6563. this.checkJson[i][z].checkCount = [];
  6564. let _askItemCount = JSON.parse(data.content)[0].askJson
  6565. .askJson[z].askItem;
  6566. for (var aic = 0; aic < _askItemCount; aic++) {
  6567. this.checkJson[i][z].checkCount.push(0);
  6568. }
  6569. }
  6570. if (checkL[z] instanceof Array) {
  6571. if (
  6572. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  6573. checkL[z].sort().join(",")
  6574. ) {
  6575. this.checkJson[i][z].rightPerson.push(data.name);
  6576. }
  6577. for (var q = 0; q < checkL[z].length; q++) {
  6578. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6579. ? this.checkJson[i][z].checkPerson[
  6580. parseInt(checkL[z][q])
  6581. ].push(data.name)
  6582. : (this.checkJson[i][z].checkPerson[
  6583. parseInt(checkL[z][q])
  6584. ] = [data.name]);
  6585. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6586. ? this.checkJson[i][z].checkCount[
  6587. parseInt(checkL[z][q])
  6588. ]++
  6589. : (this.checkJson[i][z].checkCount[
  6590. parseInt(checkL[z][q])
  6591. ] = 1);
  6592. }
  6593. } else {
  6594. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  6595. this.checkJson[i][z].rightPerson.push(data.name);
  6596. }
  6597. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6598. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6599. ? this.checkJson[i][z].checkPerson[
  6600. parseInt(checkL[z])
  6601. ].push(data.name)
  6602. : (this.checkJson[i][z].checkPerson[
  6603. parseInt(checkL[z])
  6604. ] = [data.name]);
  6605. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6606. ? this.checkJson[i][z].checkCount[
  6607. parseInt(checkL[z])
  6608. ]++
  6609. : (this.checkJson[i][z].checkCount[
  6610. parseInt(checkL[z])
  6611. ] = 1);
  6612. }
  6613. }
  6614. }
  6615. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6616. var checkL = JSON.parse(data.content)[0].anwer;
  6617. for (var z = 0; z < checkL.length; z++) {
  6618. if (!this.checkJson[i][z]) {
  6619. this.checkJson[i].push({
  6620. checkCount: [],
  6621. checkPerson: [],
  6622. rightPerson: [],
  6623. });
  6624. }
  6625. if (!this.checkJson[i][z].checkCount.length) {
  6626. this.checkJson[i][z].checkCount = [];
  6627. let _askItemCount = JSON.parse(data.content)[0].testJson
  6628. .testJson[z].testItem;
  6629. console.log(_askItemCount);
  6630. for (var aic = 0; aic < _askItemCount; aic++) {
  6631. this.checkJson[i][z].checkCount.push(0);
  6632. }
  6633. }
  6634. if (checkL[z] instanceof Array) {
  6635. if (
  6636. JSON.parse(data.content)[0]
  6637. .testJson.testJson[z].answer.sort()
  6638. .join(",") == checkL[z].sort().join(",")
  6639. ) {
  6640. this.checkJson[i][z].rightPerson.push(data.name);
  6641. }
  6642. for (var q = 0; q < checkL[z].length; q++) {
  6643. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6644. ? this.checkJson[i][z].checkPerson[
  6645. parseInt(checkL[z][q])
  6646. ].push(data.name)
  6647. : (this.checkJson[i][z].checkPerson[
  6648. parseInt(checkL[z][q])
  6649. ] = [data.name]);
  6650. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6651. ? this.checkJson[i][z].checkCount[
  6652. parseInt(checkL[z][q])
  6653. ]++
  6654. : (this.checkJson[i][z].checkCount[
  6655. parseInt(checkL[z][q])
  6656. ] = 1);
  6657. }
  6658. } else {
  6659. if (
  6660. JSON.parse(data.content)[0].testJson.testJson[z]
  6661. .answer == checkL[z]
  6662. ) {
  6663. this.checkJson[i][z].rightPerson.push(data.name);
  6664. }
  6665. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6666. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6667. ? this.checkJson[i][z].checkPerson[
  6668. parseInt(checkL[z])
  6669. ].push(data.name)
  6670. : (this.checkJson[i][z].checkPerson[
  6671. parseInt(checkL[z])
  6672. ] = [data.name]);
  6673. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6674. ? this.checkJson[i][z].checkCount[
  6675. parseInt(checkL[z])
  6676. ]++
  6677. : (this.checkJson[i][z].checkCount[
  6678. parseInt(checkL[z])
  6679. ] = 1);
  6680. }
  6681. }
  6682. }
  6683. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6684. var checkL = JSON.parse(data.content);
  6685. for (var z = 0; z < checkL.length; z++) {
  6686. if (!this.checkJson[i][z]) {
  6687. this.checkJson[i].push({
  6688. checkCount: [],
  6689. checkPerson: [],
  6690. rightPerson: [],
  6691. });
  6692. }
  6693. this.checkJson[i][z].checkPerson.push(data.name);
  6694. if (
  6695. checkL[z].chooseSenList.toString() ==
  6696. checkL[z].rightAnswer.toString()
  6697. ) {
  6698. this.checkJson[i][z].rightPerson.push(data.name);
  6699. }
  6700. }
  6701. }
  6702. for (var k = 0; k < d.length; k++) {
  6703. //点赞
  6704. if (d[k].workId == b[j].id) {
  6705. likesCount++;
  6706. if (d[k].likesId == this.userid) {
  6707. isLikes = true;
  6708. }
  6709. }
  6710. }
  6711. for (var l = 0; l < e.length; l++) {
  6712. //评论
  6713. if (e[l].workId == b[j].id) {
  6714. if (e[l].comment != "") {
  6715. commentCount++;
  6716. commentJson.push({
  6717. commentText: e[l].comment,
  6718. commentTime: e[l].commentTime,
  6719. commentPeople: e[l].commentPeople,
  6720. userid: e[l].userid,
  6721. wid: e[l].id,
  6722. });
  6723. }
  6724. }
  6725. }
  6726. if (
  6727. (b[j].type == 1 ||
  6728. b[j].type == 4 ||
  6729. b[j].type == 5 ||
  6730. b[j].type == 6 ||
  6731. b[j].type == 12 ||
  6732. b[j].type == 7) &&
  6733. a[i].tool[0] != 15 &&
  6734. a[i].tool[0] != 4 &&
  6735. a[i].tool[0] != 45 &&
  6736. a[i].tool[0] != 50 &&
  6737. a[i].tool[0] != 32 &&
  6738. a[i].tool[0] != 57 &&
  6739. a[i].tool[0] != 52
  6740. ) {
  6741. if (
  6742. c.indexOf(
  6743. b[j].content
  6744. .split(".")
  6745. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6746. ) != -1 &&
  6747. a[i].tool[0] == 16 &&
  6748. b[j].atool != 50
  6749. ) {
  6750. let _works = {
  6751. userid: b[j].userid,
  6752. ateacher: b[j].ateacher,
  6753. wid: b[j].id,
  6754. works: b[j].content,
  6755. sName: b[j].name,
  6756. type: 1,
  6757. time: b[j].time,
  6758. score: b[j].score,
  6759. img: b[j].img,
  6760. likesCount: likesCount,
  6761. commentCount: commentCount,
  6762. isLikes: isLikes,
  6763. commentJson: commentJson,
  6764. }
  6765. if (b[j].ttype == 1) {
  6766. this.worksTeacher[i].push(_works);
  6767. } else {
  6768. this.worksStudent2[i].push(_works);
  6769. }
  6770. this.worksStudent[i].push(_works);
  6771. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6772. } else if (
  6773. y.indexOf(
  6774. b[j].content
  6775. .split(".")
  6776. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6777. ) != -1 &&
  6778. a[i].tool[0] == 16 &&
  6779. b[j].atool != 50
  6780. ) {
  6781. let _works = {
  6782. userid: b[j].userid,
  6783. ateacher: b[j].ateacher,
  6784. wid: b[j].id,
  6785. works: b[j].content,
  6786. sName: b[j].name,
  6787. type: 3,
  6788. time: b[j].time,
  6789. score: b[j].score,
  6790. img: b[j].img,
  6791. likesCount: likesCount,
  6792. commentCount: commentCount,
  6793. isLikes: isLikes,
  6794. commentJson: commentJson,
  6795. }
  6796. if (b[j].ttype == 1) {
  6797. this.worksTeacher[i].push(_works);
  6798. } else {
  6799. this.worksStudent2[i].push(_works);
  6800. }
  6801. this.worksStudent[i].push(_works);
  6802. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6803. } else if (b[j].type == 6 && b[j].atool != 50) {
  6804. let _works = {
  6805. userid: b[j].userid,
  6806. ateacher: b[j].ateacher,
  6807. wid: b[j].id,
  6808. works: b[j].content,
  6809. sName: b[j].name,
  6810. type: 4,
  6811. time: b[j].time,
  6812. score: b[j].score,
  6813. img: b[j].img,
  6814. likesCount: likesCount,
  6815. commentCount: commentCount,
  6816. isLikes: isLikes,
  6817. commentJson: commentJson,
  6818. }
  6819. if (b[j].ttype == 1) {
  6820. this.worksTeacher[i].push(_works);
  6821. } else {
  6822. this.worksStudent2[i].push(_works);
  6823. }
  6824. this.worksStudent[i].push(_works);
  6825. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6826. } else if (b[j].type == 7 && b[j].atool != 50) {
  6827. let _works = {
  6828. userid: b[j].userid,
  6829. ateacher: b[j].ateacher,
  6830. wid: b[j].id,
  6831. works: b[j].content,
  6832. sName: b[j].name,
  6833. type: 5,
  6834. time: b[j].time,
  6835. score: b[j].score,
  6836. img: b[j].img,
  6837. likesCount: likesCount,
  6838. commentCount: commentCount,
  6839. isLikes: isLikes,
  6840. commentJson: commentJson,
  6841. }
  6842. if (b[j].ttype == 1) {
  6843. this.worksTeacher[i].push(_works);
  6844. } else {
  6845. this.worksStudent2[i].push(_works);
  6846. }
  6847. this.worksStudent[i].push(_works);
  6848. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6849. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6850. let _works = {
  6851. userid: b[j].userid,
  6852. ateacher: b[j].ateacher,
  6853. wid: b[j].id,
  6854. works: b[j].content,
  6855. sName: b[j].name,
  6856. type: 12,
  6857. time: b[j].time,
  6858. score: b[j].score,
  6859. img: b[j].img,
  6860. likesCount: likesCount,
  6861. commentCount: commentCount,
  6862. isLikes: isLikes,
  6863. commentJson: commentJson,
  6864. }
  6865. if (b[j].ttype == 1) {
  6866. this.worksTeacher[i].push(_works);
  6867. } else {
  6868. this.worksStudent2[i].push(_works);
  6869. }
  6870. this.worksStudent[i].push(_works);
  6871. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6872. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6873. let _works = {
  6874. userid: b[j].userid,
  6875. ateacher: b[j].ateacher,
  6876. wid: b[j].id,
  6877. works: b[j].content,
  6878. sName: b[j].name,
  6879. type: 0,
  6880. time: b[j].time,
  6881. score: b[j].score,
  6882. img: b[j].img,
  6883. likesCount: likesCount,
  6884. commentCount: commentCount,
  6885. isLikes: isLikes,
  6886. commentJson: commentJson,
  6887. }
  6888. if (b[j].ttype == 1) {
  6889. this.worksTeacher[i].push(_works);
  6890. } else {
  6891. this.worksStudent2[i].push(_works);
  6892. }
  6893. this.worksStudent[i].push(_works);
  6894. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6895. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6896. let _works = {
  6897. userid: b[j].userid,
  6898. ateacher: b[j].ateacher,
  6899. wid: b[j].id,
  6900. works: b[j].content,
  6901. sName: b[j].name,
  6902. type: 0,
  6903. time: b[j].time,
  6904. score: b[j].score,
  6905. img: b[j].img,
  6906. likesCount: likesCount,
  6907. commentCount: commentCount,
  6908. isLikes: isLikes,
  6909. commentJson: commentJson,
  6910. }
  6911. if (b[j].ttype == 1) {
  6912. this.worksTeacher[i].push(_works);
  6913. } else {
  6914. this.worksStudent2[i].push(_works);
  6915. }
  6916. this.worksStudent[i].push(_works);
  6917. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6918. }
  6919. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6920. let _works = {
  6921. userid: b[j].userid,
  6922. ateacher: b[j].ateacher,
  6923. wid: b[j].id,
  6924. works: b[j].content,
  6925. sName: b[j].name,
  6926. type: 2,
  6927. time: b[j].time,
  6928. score: b[j].score,
  6929. img: b[j].img,
  6930. likesCount: likesCount,
  6931. commentCount: commentCount,
  6932. isLikes: isLikes,
  6933. commentJson: commentJson,
  6934. }
  6935. if (b[j].ttype == 1) {
  6936. this.worksTeacher[i].push(_works);
  6937. } else {
  6938. this.worksStudent2[i].push(_works);
  6939. }
  6940. this.worksStudent[i].push(_works);
  6941. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6942. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6943. //问卷
  6944. let _works = {
  6945. userid: b[j].userid,
  6946. ateacher: b[j].ateacher,
  6947. wid: b[j].id,
  6948. works: b[j].content,
  6949. sName: b[j].name,
  6950. type: 2,
  6951. time: b[j].time,
  6952. score: b[j].score,
  6953. img: b[j].img,
  6954. likesCount: likesCount,
  6955. commentCount: commentCount,
  6956. isLikes: isLikes,
  6957. commentJson: commentJson,
  6958. }
  6959. if (b[j].ttype == 1) {
  6960. this.worksTeacher[i].push(_works);
  6961. } else {
  6962. this.worksStudent2[i].push(_works);
  6963. }
  6964. this.worksStudent[i].push(_works);
  6965. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6966. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  6967. //选择题
  6968. let _works = {
  6969. userid: b[j].userid,
  6970. ateacher: b[j].ateacher,
  6971. wid: b[j].id,
  6972. works: b[j].content,
  6973. sName: b[j].name,
  6974. type: 8,
  6975. time: b[j].time,
  6976. score: b[j].score,
  6977. img: b[j].img,
  6978. likesCount: likesCount,
  6979. commentCount: commentCount,
  6980. isLikes: isLikes,
  6981. commentJson: commentJson,
  6982. }
  6983. if (b[j].ttype == 1) {
  6984. this.worksTeacher[i].push(_works);
  6985. } else {
  6986. this.worksStudent2[i].push(_works);
  6987. }
  6988. this.worksStudent[i].push(_works);
  6989. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6990. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  6991. //选择题
  6992. let _works = {
  6993. userid: b[j].userid,
  6994. ateacher: b[j].ateacher,
  6995. wid: b[j].id,
  6996. works: b[j].content,
  6997. sName: b[j].name,
  6998. type: 9,
  6999. time: b[j].time,
  7000. score: b[j].score,
  7001. img: b[j].img,
  7002. likesCount: likesCount,
  7003. commentCount: commentCount,
  7004. isLikes: isLikes,
  7005. commentJson: commentJson,
  7006. }
  7007. if (b[j].ttype == 1) {
  7008. this.worksTeacher[i].push(_works);
  7009. } else {
  7010. this.worksStudent2[i].push(_works);
  7011. }
  7012. this.worksStudent[i].push(_works);
  7013. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7014. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7015. //选择题
  7016. let _works = {
  7017. userid: b[j].userid,
  7018. ateacher: b[j].ateacher,
  7019. wid: b[j].id,
  7020. works: b[j].content,
  7021. sName: b[j].name,
  7022. type: 10,
  7023. time: b[j].time,
  7024. score: b[j].score,
  7025. img: b[j].img,
  7026. likesCount: likesCount,
  7027. commentCount: commentCount,
  7028. isLikes: isLikes,
  7029. commentJson: commentJson,
  7030. }
  7031. if (b[j].ttype == 1) {
  7032. this.worksTeacher[i].push(_works);
  7033. } else {
  7034. this.worksStudent2[i].push(_works);
  7035. }
  7036. this.worksStudent[i].push(_works);
  7037. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7038. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7039. //选择题
  7040. let _works = {
  7041. userid: b[j].userid,
  7042. ateacher: b[j].ateacher,
  7043. wid: b[j].id,
  7044. works: b[j].content,
  7045. sName: b[j].name,
  7046. type: 13,
  7047. time: b[j].time,
  7048. score: b[j].score,
  7049. img: b[j].img,
  7050. likesCount: likesCount,
  7051. commentCount: commentCount,
  7052. isLikes: isLikes,
  7053. commentJson: commentJson,
  7054. }
  7055. if (b[j].ttype == 1) {
  7056. this.worksTeacher[i].push(_works);
  7057. } else {
  7058. this.worksStudent2[i].push(_works);
  7059. }
  7060. this.worksStudent[i].push(_works);
  7061. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7062. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7063. let _gindex = JSON.parse(b[j].content);
  7064. if (
  7065. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7066. b[j].userid
  7067. ) != -1
  7068. ) {
  7069. this.worksStudent[i][_gindex.groupIndex].push({
  7070. userid: b[j].userid,
  7071. ateacher: b[j].ateacher,
  7072. wid: b[j].id,
  7073. works: _gindex.url,
  7074. sName: b[j].name,
  7075. type: _gindex.type,
  7076. time: b[j].time,
  7077. score: b[j].score,
  7078. img: b[j].img,
  7079. likesCount: likesCount,
  7080. commentCount: commentCount,
  7081. isLikes: isLikes,
  7082. commentJson: commentJson,
  7083. });
  7084. }
  7085. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7086. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7087. let _works = {
  7088. userid: b[j].userid,
  7089. ateacher: b[j].ateacher,
  7090. wid: b[j].id,
  7091. works: b[j].content,
  7092. sName: b[j].name ? b[j].name : b[j].userid,
  7093. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7094. time: b[j].time,
  7095. score: b[j].score,
  7096. img: b[j].img,
  7097. likesCount: likesCount,
  7098. commentCount: commentCount,
  7099. isLikes: isLikes,
  7100. commentJson: commentJson,
  7101. }
  7102. if (b[j].ttype == 1) {
  7103. this.worksTeacher[i].push(_works);
  7104. } else {
  7105. this.worksStudent2[i].push(_works);
  7106. }
  7107. this.worksStudent[i].push(_works);
  7108. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7109. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7110. let _works = {
  7111. userid: b[j].userid,
  7112. ateacher: b[j].ateacher,
  7113. wid: b[j].id,
  7114. works: b[j].content,
  7115. sName: b[j].name ? b[j].name : b[j].userid,
  7116. type: 12,
  7117. time: b[j].time,
  7118. score: b[j].score,
  7119. img: b[j].img,
  7120. likesCount: likesCount,
  7121. commentCount: commentCount,
  7122. isLikes: isLikes,
  7123. commentJson: commentJson,
  7124. }
  7125. if (b[j].ttype == 1) {
  7126. this.worksTeacher[i].push(_works);
  7127. } else {
  7128. this.worksStudent2[i].push(_works);
  7129. }
  7130. this.worksStudent[i].push(_works);
  7131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7132. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7133. let _works = {
  7134. userid: b[j].userid,
  7135. ateacher: b[j].ateacher,
  7136. wid: b[j].id,
  7137. works: b[j].content,
  7138. sName: b[j].name ? b[j].name : b[j].userid,
  7139. type: 12,
  7140. time: b[j].time,
  7141. score: b[j].score,
  7142. img: b[j].img,
  7143. likesCount: likesCount,
  7144. commentCount: commentCount,
  7145. isLikes: isLikes,
  7146. commentJson: commentJson,
  7147. }
  7148. if (b[j].ttype == 1) {
  7149. this.worksTeacher[i].push(_works);
  7150. } else {
  7151. this.worksStudent2[i].push(_works);
  7152. }
  7153. this.worksStudent[i].push(_works);
  7154. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7155. }
  7156. }
  7157. }
  7158. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7159. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7160. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7161. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7162. var scoreA = parseFloat(jscoreA);
  7163. var scoreB = parseFloat(jscoreB);
  7164. if (scoreA == scoreB) {
  7165. return b.likesCount - a.likesCount;
  7166. }
  7167. return scoreB - scoreA;
  7168. });
  7169. }
  7170. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7171. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7172. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7173. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7174. var scoreA = parseFloat(jscoreA);
  7175. var scoreB = parseFloat(jscoreB);
  7176. if (scoreA == scoreB) {
  7177. return b.likesCount - a.likesCount;
  7178. }
  7179. return scoreB - scoreA;
  7180. });
  7181. }
  7182. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7183. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7184. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7185. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7186. var scoreA = parseFloat(jscoreA);
  7187. var scoreB = parseFloat(jscoreB);
  7188. if (scoreA == scoreB) {
  7189. return b.likesCount - a.likesCount;
  7190. }
  7191. return scoreB - scoreA;
  7192. });
  7193. }
  7194. }
  7195. for (var i = 0; i < a.length; i++) {
  7196. for (var j = 0; j < b.length; j++) {
  7197. var data = b[j];
  7198. if (i == b[j].tool) {
  7199. if (data.type == 2 || data.type == 8) {
  7200. for (var z = 0; z < this.checkJson[i].length; z++) {
  7201. this.checkJson[i][z].checkPerent = [];
  7202. this.checkJson[i][z].right = Math.round(
  7203. (this.checkJson[i][z].rightPerson.length /
  7204. parseInt(this.worksStudent[i].length)) *
  7205. 100
  7206. );
  7207. let aaaa = this.checkJson[i][z];
  7208. console.log(aaaa);
  7209. for (
  7210. var k = 0;
  7211. k < this.checkJson[i][z].checkCount.length;
  7212. k++
  7213. ) {
  7214. this.checkJson[i][z].checkPerent.push(
  7215. Math.round(
  7216. (this.checkJson[i][z].checkCount[k] /
  7217. parseInt(this.worksStudent[i].length)) *
  7218. 100
  7219. )
  7220. );
  7221. }
  7222. }
  7223. } else if (data.type == 9) {
  7224. for (var z = 0; z < this.checkJson[i].length; z++) {
  7225. this.checkJson[i][z].checkPerent = [];
  7226. this.checkJson[i][z].right = Math.round(
  7227. (this.checkJson[i][z].rightPerson.length /
  7228. this.checkJson[i][z].checkPerson.length) *
  7229. 100
  7230. );
  7231. }
  7232. }
  7233. }
  7234. }
  7235. }
  7236. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7237. this.joinGroup(gindex);
  7238. }
  7239. this.selectWorksStudent();
  7240. })
  7241. .catch((err) => {
  7242. console.error(err);
  7243. });
  7244. },
  7245. pngToWhiteBg(file) {
  7246. const _file = file;
  7247. let read = new FileReader();
  7248. read.readAsDataURL(file); // 文件转base64
  7249. return new Promise((resolve, reject) => {
  7250. read.onload = (e) => {
  7251. let img = new Image();
  7252. img.src = e.target.result;
  7253. img.onload = async () => {
  7254. // 生成canvas
  7255. let canvas = document.createElement("canvas");
  7256. let context = canvas.getContext("2d");
  7257. // 绘制图片到canvas上
  7258. canvas.width = img.width;
  7259. canvas.height = img.height;
  7260. // 在canvas绘制前填充白色背景
  7261. context.fillStyle = "#fff";
  7262. context.fillRect(0, 0, canvas.width, canvas.height);
  7263. context.drawImage(img, 0, 0);
  7264. let base64 = canvas.toDataURL(file["type"], 1);
  7265. let newFile = this.dataUrlToFile(base64, _file);
  7266. resolve(newFile);
  7267. };
  7268. };
  7269. });
  7270. },
  7271. dataUrlToFile(dataurl, file) {
  7272. let arr = dataurl.split(","),
  7273. mime = arr[0].match(/:(.*?);/)[1],
  7274. bstr = atob(arr[1]),
  7275. n = bstr.length,
  7276. u8arr = new Uint8Array(n);
  7277. while (n--) {
  7278. u8arr[n] = bstr.charCodeAt(n);
  7279. }
  7280. // return new Blob([u8arr], { type: mime });
  7281. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7282. type: mime,
  7283. });
  7284. },
  7285. async beforeUpload1(event, type, i) {
  7286. // this.$message.success('进入上传')
  7287. var file = "";
  7288. if (type == 5) {
  7289. file = event;
  7290. } else {
  7291. file = event.target.files[0];
  7292. }
  7293. var credentials = {
  7294. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7295. secretAccessKey: "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",
  7296. }; //秘钥形式的登录上传
  7297. window.AWS.config.update(credentials);
  7298. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7299. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7300. var _this = this;
  7301. _this.progress = 0;
  7302. _this.proVisible = true;
  7303. _this.isFinishSize = 0;
  7304. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7305. var b = [
  7306. "DOC",
  7307. "DOCX",
  7308. "DOCM",
  7309. "DOTM",
  7310. "DOTX",
  7311. "PPTX",
  7312. "PPSX",
  7313. "PPT",
  7314. "PPS",
  7315. "PPTM",
  7316. "POTM",
  7317. "PPAM",
  7318. "POTX",
  7319. "PPSM",
  7320. ];
  7321. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7322. var photoA = [
  7323. "BMP",
  7324. "GIF",
  7325. "PNG",
  7326. "JPGE",
  7327. "JPG",
  7328. "TIF",
  7329. "PCX",
  7330. "TGA",
  7331. "EXIF",
  7332. "FPX",
  7333. "SVG",
  7334. "APNG",
  7335. ];
  7336. // if (
  7337. // b.indexOf(
  7338. // file.name
  7339. // .split(".")
  7340. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7341. // ) != -1
  7342. // ) {
  7343. // if (file.size / 1024 / 1024 > 10) {
  7344. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7345. // return;
  7346. // }
  7347. // } else if (
  7348. // excelA.indexOf(
  7349. // file.name
  7350. // .split(".")
  7351. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7352. // ) != "-1"
  7353. // ) {
  7354. // if (file.size / 1024 / 1024 > 5) {
  7355. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7356. // return;
  7357. // }
  7358. // }
  7359. if (
  7360. photoA.indexOf(
  7361. file.name
  7362. .split(".")
  7363. [file.name.split(".").length - 1].toLocaleUpperCase()
  7364. ) != -1 &&
  7365. type != 4
  7366. ) {
  7367. // const blob = await imageConversion.compress(file, 0.8)
  7368. file = await this.pngToWhiteBg(file);
  7369. const blob = await imageConversion.compressAccurately(file, 256);
  7370. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7371. file = new File([blob], file.name, { type: file.type });
  7372. }
  7373. if (file) {
  7374. var params = {
  7375. Key:
  7376. file.name.split(".")[0] +
  7377. new Date().getTime() +
  7378. "." +
  7379. file.name.split(".")[file.name.split(".").length - 1],
  7380. ContentType: file.type,
  7381. Body: file,
  7382. "Access-Control-Allow-Credentials": "*",
  7383. ACL: "public-read",
  7384. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7385. var options = {
  7386. // partSize: 2048 * 1024 * 1024,
  7387. partSize: 1024 * 1024 * 1024,
  7388. queueSize: 2,
  7389. leavePartsOnError: true,
  7390. };
  7391. bucket
  7392. .upload(params, options)
  7393. .on("httpUploadProgress", function (evt) {
  7394. //这里可以写进度条
  7395. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7396. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7397. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7398. })
  7399. .send(function (err, data) {
  7400. _this.progress = 100;
  7401. _this.isFinishSize = _this.isAllSize;
  7402. setTimeout(() => {
  7403. _this.proVisible = false;
  7404. }, 1000);
  7405. if (err) {
  7406. var a = _this.$refs.upload1.uploadFiles;
  7407. a.splice(a.length - 1, a.length);
  7408. _this.$message.error("上传失败");
  7409. } else {
  7410. // _this.$message.success('上传成功')
  7411. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7412. var c = [
  7413. "AVI",
  7414. "NAVI",
  7415. "MPEG",
  7416. "ASF",
  7417. "MOV",
  7418. "WMV",
  7419. "3GP",
  7420. "RM",
  7421. "RMVB",
  7422. "FLV",
  7423. "F4V",
  7424. "H.264",
  7425. "H.265",
  7426. "REAL VIDEO",
  7427. "MKV",
  7428. "WebM",
  7429. "HDDVD",
  7430. "MP4",
  7431. "MPG",
  7432. "M4V",
  7433. "MGV",
  7434. "OGV",
  7435. "QTM",
  7436. "STR",
  7437. "AMC",
  7438. "DVX",
  7439. "EVO",
  7440. "DAT",
  7441. "OGG",
  7442. "OGM",
  7443. ];
  7444. if (type == 1) {
  7445. _this.studyJuri[0].cover.push({
  7446. name: file.name,
  7447. url: data.Location,
  7448. uid: file.uid,
  7449. });
  7450. if (
  7451. c.indexOf(
  7452. _this.studyJuri[0].cover[0].url
  7453. .split(".")
  7454. [
  7455. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7456. ].toLocaleUpperCase()
  7457. ) != -1
  7458. ) {
  7459. _this.fileType = 2;
  7460. } else if (
  7461. b.indexOf(
  7462. _this.studyJuri[0].cover[0].url
  7463. .split(".")
  7464. [
  7465. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7466. ].toLocaleUpperCase()
  7467. ) != -1
  7468. ) {
  7469. _this.fileType = 1;
  7470. } else if (photoA.indexOf(
  7471. _this.studyJuri[0].cover[0].url
  7472. .split(".")
  7473. [
  7474. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7475. ].toLocaleUpperCase()
  7476. ) != -1) {
  7477. _this.fileType = 0;
  7478. } else {
  7479. _this.fileType = 3;
  7480. }
  7481. _this.imgChange(null, null, type);
  7482. } else if (type == 2) {
  7483. _this.upToolImg = data.Location;
  7484. _this.imgChange(null, null, type);
  7485. _this.addCourseWorks(i);
  7486. } else if (type == 4) {
  7487. _this.addPz("3", data.Location);
  7488. } else if (type == 5) {
  7489. _this.addImgDrawImG(data.Location);
  7490. } else if (type == 6) {
  7491. var _ftype = 1;
  7492. if (
  7493. c.indexOf(
  7494. data.Location.split(".")[
  7495. data.Location.split(".").length - 1
  7496. ].toLocaleUpperCase()
  7497. ) != -1
  7498. ) {
  7499. _ftype = 5;
  7500. } else if (
  7501. b.indexOf(
  7502. data.Location.split(".")[
  7503. data.Location.split(".").length - 1
  7504. ].toLocaleUpperCase()
  7505. ) != -1
  7506. ) {
  7507. _ftype = 4;
  7508. } else {
  7509. _ftype = 1;
  7510. }
  7511. _this.plworkFile.push({
  7512. name: file.name,
  7513. url: data.Location,
  7514. uid: file.uid,
  7515. fileType: _ftype,
  7516. username:
  7517. _this.plworkFile.length + 1 > 10
  7518. ? _this.plworkFile.length + 1
  7519. : "0" + (_this.plworkFile.length + 1),
  7520. });
  7521. } else if (type == 7) {
  7522. _this.addCourseWorksGong(i, data.Location, 32);
  7523. } else if (type == 8) {
  7524. _this.addCourseWorksGong(i, data.Location, 57);
  7525. }
  7526. _this.imgChange(null, null, type);
  7527. console.log(data.Location);
  7528. // _this.$message.success('上传成功'+data.Location)
  7529. }
  7530. });
  7531. }
  7532. },
  7533. async beforeUpload3(event, type, i) {
  7534. // this.$message.success('进入上传')
  7535. let file = "";
  7536. let cfindex2 = 0;
  7537. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7538. file = event.target.files[cfindex];
  7539. var credentials = {
  7540. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7541. secretAccessKey: "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",
  7542. }; //秘钥形式的登录上传
  7543. window.AWS.config.update(credentials);
  7544. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7545. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7546. var _this = this;
  7547. // _this.progress = 0;
  7548. _this.proVisible2 = true;
  7549. var b = [
  7550. "DOC",
  7551. "DOCX",
  7552. "DOCM",
  7553. "DOTM",
  7554. "DOTX",
  7555. "PPTX",
  7556. "PPSX",
  7557. "PPT",
  7558. "PPS",
  7559. "PPTM",
  7560. "POTM",
  7561. "PPAM",
  7562. "POTX",
  7563. "PPSM",
  7564. ];
  7565. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7566. var photoA = [
  7567. "BMP",
  7568. "GIF",
  7569. "PNG",
  7570. "JPGE",
  7571. "JPG",
  7572. "TIF",
  7573. "PCX",
  7574. "TGA",
  7575. "EXIF",
  7576. "FPX",
  7577. "SVG",
  7578. "APNG",
  7579. ];
  7580. if (
  7581. photoA.indexOf(
  7582. file.name
  7583. .split(".")
  7584. [file.name.split(".").length - 1].toLocaleUpperCase()
  7585. ) != -1 &&
  7586. type != 4
  7587. ) {
  7588. // const blob = await imageConversion.compress(file, 0.8)
  7589. file = await this.pngToWhiteBg(file);
  7590. const blob = await imageConversion.compressAccurately(file, 256);
  7591. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7592. file = new File([blob], file.name, { type: file.type });
  7593. }
  7594. if (file) {
  7595. var params = {
  7596. Key:
  7597. file.name.split(".")[0] +
  7598. new Date().getTime() +
  7599. "." +
  7600. file.name.split(".")[file.name.split(".").length - 1],
  7601. ContentType: file.type,
  7602. Body: file,
  7603. "Access-Control-Allow-Credentials": "*",
  7604. ACL: "public-read",
  7605. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7606. var options = {
  7607. // partSize: 2048 * 1024 * 1024,
  7608. partSize: 1024 * 1024 * 1024,
  7609. queueSize: 2,
  7610. leavePartsOnError: true,
  7611. };
  7612. bucket
  7613. .upload(params, options)
  7614. .on("httpUploadProgress", function (evt) {
  7615. //这里可以写进度条
  7616. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7617. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7618. })
  7619. .send(function (err, data) {
  7620. // _this.progress = 100;
  7621. cfindex2++;
  7622. setTimeout(() => {
  7623. if (
  7624. cfindex2 == event.target.files.length - 1 ||
  7625. cfindex2 > event.target.files.length - 1
  7626. ) {
  7627. _this.proVisible2 = false;
  7628. }
  7629. }, 1000);
  7630. if (err) {
  7631. var a = _this.$refs.upload1.uploadFiles;
  7632. a.splice(a.length - 1, a.length);
  7633. _this.$message.error("上传失败");
  7634. } else {
  7635. // _this.$message.success('上传成功')
  7636. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7637. var c = [
  7638. "AVI",
  7639. "NAVI",
  7640. "MPEG",
  7641. "ASF",
  7642. "MOV",
  7643. "WMV",
  7644. "3GP",
  7645. "RM",
  7646. "RMVB",
  7647. "FLV",
  7648. "F4V",
  7649. "H.264",
  7650. "H.265",
  7651. "REAL VIDEO",
  7652. "MKV",
  7653. "WebM",
  7654. "HDDVD",
  7655. "MP4",
  7656. "MPG",
  7657. "M4V",
  7658. "MGV",
  7659. "OGV",
  7660. "QTM",
  7661. "STR",
  7662. "AMC",
  7663. "DVX",
  7664. "EVO",
  7665. "DAT",
  7666. "OGG",
  7667. "OGM",
  7668. ];
  7669. if (type == 1) {
  7670. _this.studyJuri[0].cover.push({
  7671. name: file.name,
  7672. url: data.Location,
  7673. uid: file.uid,
  7674. });
  7675. if (
  7676. c.indexOf(
  7677. _this.studyJuri[0].cover[0].url
  7678. .split(".")
  7679. [
  7680. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7681. ].toLocaleUpperCase()
  7682. ) != -1
  7683. ) {
  7684. _this.fileType = 2;
  7685. } else if (
  7686. b.indexOf(
  7687. _this.studyJuri[0].cover[0].url
  7688. .split(".")
  7689. [
  7690. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7691. ].toLocaleUpperCase()
  7692. ) != -1
  7693. ) {
  7694. _this.fileType = 1;
  7695. } else {
  7696. _this.fileType = 0;
  7697. }
  7698. _this.imgChange(null, null, type);
  7699. } else if (type == 2) {
  7700. _this.upToolImg = data.Location;
  7701. _this.imgChange(null, null, type);
  7702. _this.addCourseWorks(i);
  7703. } else if (type == 4) {
  7704. _this.addPz("3", data.Location);
  7705. } else if (type == 5) {
  7706. _this.addImgDrawImG(data.Location);
  7707. } else if (type == 6) {
  7708. var _ftype = 1;
  7709. if (
  7710. c.indexOf(
  7711. data.Location.split(".")[
  7712. data.Location.split(".").length - 1
  7713. ].toLocaleUpperCase()
  7714. ) != -1
  7715. ) {
  7716. _ftype = 5;
  7717. } else if (
  7718. b.indexOf(
  7719. data.Location.split(".")[
  7720. data.Location.split(".").length - 1
  7721. ].toLocaleUpperCase()
  7722. ) != -1
  7723. ) {
  7724. _ftype = 4;
  7725. } else {
  7726. _ftype = 1;
  7727. }
  7728. _this.plworkFile.push({
  7729. name: file.name,
  7730. url: data.Location,
  7731. uid: file.uid,
  7732. fileType: _ftype,
  7733. username:
  7734. _this.plworkFile.length+1 > 9
  7735. ? _this.plworkFile.length+1
  7736. : "0" + (_this.plworkFile.length+1),
  7737. });
  7738. }
  7739. _this.imgChange(null, null, type);
  7740. console.log(data.Location);
  7741. // _this.$message.success('上传成功'+data.Location)
  7742. }
  7743. });
  7744. }
  7745. }
  7746. },
  7747. beforeUpload2(event, type) {
  7748. var file = event.target.files[0];
  7749. var credentials = {
  7750. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7751. secretAccessKey: "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",
  7752. }; //秘钥形式的登录上传
  7753. window.AWS.config.update(credentials);
  7754. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7755. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7756. var _this = this;
  7757. _this.progress = 0;
  7758. _this.proVisible = true;
  7759. if (file) {
  7760. var params = {
  7761. Key:
  7762. file.name.split(".")[0] +
  7763. new Date().getTime() +
  7764. "." +
  7765. file.name.split(".")[file.name.split(".").length - 1],
  7766. ContentType: file.type,
  7767. Body: file,
  7768. "Access-Control-Allow-Credentials": "*",
  7769. ACL: "public-read",
  7770. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7771. var options = {
  7772. partSize: 2048 * 1024 * 1024,
  7773. queueSize: 2,
  7774. leavePartsOnError: true,
  7775. };
  7776. bucket
  7777. .upload(params, options)
  7778. .on("httpUploadProgress", function (evt) {
  7779. //这里可以写进度条
  7780. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7781. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7782. })
  7783. .send(function (err, data) {
  7784. _this.progress = 100;
  7785. setTimeout(() => {
  7786. _this.proVisible = false;
  7787. }, 1000);
  7788. if (err) {
  7789. var a = _this.$refs.upload1.uploadFiles;
  7790. a.splice(a.length - 1, a.length);
  7791. _this.$message.error("上传失败");
  7792. } else {
  7793. if (type == 2) {
  7794. _this.studyJuri[0].upVedio.push({
  7795. name: file.name,
  7796. url: data.Location,
  7797. uid: file.uid,
  7798. });
  7799. _this.imgChange(null, null, type);
  7800. } else if (type == 3) {
  7801. _this.studyJuri[0].upFile.push({
  7802. name: file.name,
  7803. url: data.Location,
  7804. uid: file.uid,
  7805. });
  7806. _this.imgChange(null, null, type);
  7807. }
  7808. console.log(data.Location);
  7809. }
  7810. });
  7811. }
  7812. },
  7813. allScrell() {
  7814. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  7815. },
  7816. nextToolindex(type) {
  7817. if (type == 'last') {
  7818. if (this.toolIndex == 0) {
  7819. this.$message.error("已经是第一个步骤")
  7820. return;
  7821. }
  7822. this.toolIndex = this.toolIndex - 1
  7823. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7824. } else if (type == 'next') {
  7825. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  7826. this.$message.error("已经是最后一个步骤")
  7827. return;
  7828. }
  7829. this.toolIndex = this.toolIndex + 1
  7830. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7831. }
  7832. this.$forceUpdate();
  7833. },
  7834. checkBz(index){
  7835. this.toolIndex = index
  7836. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7837. this.$forceUpdate();
  7838. },
  7839. nextOrpreSteps(t) {
  7840. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7841. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7842. return;
  7843. }
  7844. var b = this.chapInfoList.length - 1;
  7845. if (t == 0) {
  7846. if (this.courseType == 0) {
  7847. if (this.taskCount == 0) {
  7848. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7849. if (this.IsLookOpen) {
  7850. if (
  7851. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7852. ) {
  7853. if (
  7854. this.courseDetail.userid != this.userid &&
  7855. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7856. ) {
  7857. this.$message.error("任务未解锁");
  7858. } else {
  7859. this.$message.error("上一任务未解锁");
  7860. }
  7861. return;
  7862. }
  7863. }
  7864. this.navList[this.courseType].isOpen = false;
  7865. this.courseType = b;
  7866. this.taskCount =
  7867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7868. .length - 1;
  7869. this.navList[this.courseType].isOpen = true;
  7870. } else {
  7871. this.taskCount--;
  7872. }
  7873. } else {
  7874. if (this.taskCount == 0) {
  7875. this.navList[this.courseType].isOpen = false;
  7876. this.courseType--;
  7877. this.taskCount =
  7878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7879. .length - 1;
  7880. this.navList[this.courseType].isOpen = true;
  7881. } else {
  7882. this.taskCount--;
  7883. }
  7884. }
  7885. } else {
  7886. if (this.courseType == b) {
  7887. if (
  7888. this.taskCount ==
  7889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7890. 1
  7891. ) {
  7892. this.navList[this.courseType].isOpen = false;
  7893. this.courseType = 0;
  7894. this.taskCount = 0;
  7895. this.navList[this.courseType].isOpen = true;
  7896. } else {
  7897. var bbb = parseInt(this.taskCount) + 1;
  7898. if (
  7899. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7900. .isLook &&
  7901. this.courseDetail.userid != this.userid &&
  7902. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7903. this.IsLookOpen
  7904. ) {
  7905. this.$message.error("任务未解锁");
  7906. return;
  7907. }
  7908. this.taskCount++;
  7909. if (this.IsLookOpen) {
  7910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7911. this.taskCount
  7912. ].isLook = true;
  7913. this.addCourseState(3);
  7914. }
  7915. }
  7916. } else {
  7917. if (
  7918. this.taskCount ==
  7919. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7920. 1
  7921. ) {
  7922. var bbb = parseInt(this.courseType) + 1;
  7923. if (
  7924. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  7925. this.courseDetail.userid != this.userid &&
  7926. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7927. this.IsLookOpen
  7928. ) {
  7929. this.$message.error("任务未解锁");
  7930. return;
  7931. }
  7932. this.navList[this.courseType].isOpen = false;
  7933. this.courseType++;
  7934. this.taskCount = 0;
  7935. this.navList[this.courseType].isOpen = true;
  7936. } else {
  7937. var bbb = parseInt(this.taskCount) + 1;
  7938. if (
  7939. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7940. .isLook &&
  7941. this.courseDetail.userid != this.userid &&
  7942. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7943. this.IsLookOpen
  7944. ) {
  7945. this.$message.error("任务未解锁");
  7946. return;
  7947. }
  7948. this.taskCount++;
  7949. }
  7950. if (this.IsLookOpen) {
  7951. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7952. this.taskCount
  7953. ].isLook = true;
  7954. this.addCourseState(3);
  7955. }
  7956. }
  7957. }
  7958. document.scrollingElement.scrollTop = 0;
  7959. this.showType = 0;
  7960. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  7961. this.toolIndex = null
  7962. this.isNoHomeWork = false;
  7963. (this.studyJuri = [
  7964. {
  7965. content: "",
  7966. cover: [],
  7967. upVedio: [],
  7968. upFile: [],
  7969. },
  7970. ]),
  7971. (this.radio = []);
  7972. this.isClickNav = "";
  7973. this.selectPz();
  7974. this.getHomeWork();
  7975. this.getCourseDetail();
  7976. this.$forceUpdate();
  7977. },
  7978. openTask(s, n, i) {
  7979. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7980. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7981. return;
  7982. }
  7983. if (this.IsLookOpen) {
  7984. if (
  7985. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  7986. this.courseDetail.userid != this.userid &&
  7987. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7988. ) {
  7989. this.$message.error("任务未解锁");
  7990. return;
  7991. }
  7992. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  7993. if (
  7994. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  7995. .isLook
  7996. ) {
  7997. this.$message.error("上一任务未解锁");
  7998. return;
  7999. }
  8000. } else if (s > this.courseType) {
  8001. if (n > 0) {
  8002. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8003. this.$message.error("上一任务未解锁");
  8004. return;
  8005. }
  8006. } else {
  8007. if (
  8008. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8009. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8010. ].isLook
  8011. ) {
  8012. this.$message.error("上一任务未解锁");
  8013. return;
  8014. }
  8015. }
  8016. }
  8017. }
  8018. this.courseType = s;
  8019. this.navId = i;
  8020. this.taskCount = n;
  8021. if (this.IsLookOpen) {
  8022. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8023. this.taskCount
  8024. ].isLook = true;
  8025. this.addCourseState(3);
  8026. }
  8027. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8028. this.isCloseList[ci].isClose = 0;
  8029. }
  8030. this.showType = 0;
  8031. this.isNoHomeWork = false;
  8032. (this.studyJuri = [
  8033. {
  8034. content: "",
  8035. cover: [],
  8036. upVedio: [],
  8037. upFile: [],
  8038. },
  8039. ]),
  8040. (this.radio = []);
  8041. document.scrollingElement.scrollTop = 0;
  8042. this.toolIndex = null
  8043. // setTimeout(() => {
  8044. // let a = document.getElementById(i);
  8045. // if (a.offsetTop - 110 == 0) {
  8046. // window.scrollTo(0, 0);
  8047. // } else {
  8048. // window.scrollTo(0, a.offsetTop);
  8049. // }
  8050. // }, 0);
  8051. this.selectPz();
  8052. this.getHomeWork();
  8053. this.getCourseDetail();
  8054. },
  8055. get(i) {
  8056. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8057. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8058. return;
  8059. }
  8060. this.navList[i].isOpen = !this.navList[i].isOpen;
  8061. },
  8062. addQuestion() {
  8063. this.answerList.push({
  8064. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8065. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8066. });
  8067. let params = [
  8068. {
  8069. uid: this.userid,
  8070. cid: this.id,
  8071. stage: this.courseType,
  8072. task: this.taskCount,
  8073. tool: this.toolindex,
  8074. content: JSON.stringify(this.answerList),
  8075. type: 3,
  8076. },
  8077. ];
  8078. this.ajax
  8079. .post(this.$store.state.api + "addCourseWorks", params)
  8080. .then((res) => {
  8081. this.$message({
  8082. message: "提交成功",
  8083. type: "success",
  8084. });
  8085. this.answerList = [];
  8086. this.questionAnswer = ""
  8087. this.answerDialogVisible = false;
  8088. this.selectStudent();
  8089. this.selectSWorks();
  8090. this.selectSLook();
  8091. })
  8092. .catch((err) => {
  8093. this.$message.error("提交失败");
  8094. console.error(err);
  8095. });
  8096. },
  8097. addQuestionTeacher() {
  8098. this.answerList.push({
  8099. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8100. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8101. });
  8102. let params = [
  8103. {
  8104. uid: this.sStudent.userid,
  8105. cid: this.id,
  8106. stage: this.courseType,
  8107. task: this.taskCount,
  8108. tool: this.toolindex,
  8109. content: JSON.stringify(this.answerList),
  8110. type: 3,
  8111. ateacher: this.userid,
  8112. },
  8113. ];
  8114. this.ajax
  8115. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8116. .then((res) => {
  8117. this.$message({
  8118. message: "提交成功",
  8119. type: "success",
  8120. });
  8121. this.answerList = [];
  8122. this.questionAnswer = ""
  8123. this.answerDialogVisibleTeacher = false;
  8124. this.selectStudent();
  8125. this.selectSWorks();
  8126. this.selectSLook();
  8127. })
  8128. .catch((err) => {
  8129. this.$message.error("提交失败");
  8130. console.error(err);
  8131. });
  8132. },
  8133. getCourseDetail(type, gindex) {
  8134. let loading;
  8135. if (type != 2) {
  8136. loading = this.$loading.service({
  8137. background: "rgba(255, 255, 255, 0.7)",
  8138. target: document.querySelector(".student_table"),
  8139. });
  8140. }
  8141. let params = {
  8142. courseId: this.id,
  8143. };
  8144. this.ajax
  8145. .get(this.$store.state.api + "selectCourseDetail3", params)
  8146. .then((res) => {
  8147. if (type != 2) {
  8148. loading.close();
  8149. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8150. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8151. }
  8152. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8153. .chapterInfo[0].taskJson;
  8154. var b = [
  8155. "AVI",
  8156. "NAVI",
  8157. "MPEG",
  8158. "ASF",
  8159. "MOV",
  8160. "WMV",
  8161. "3GP",
  8162. "RM",
  8163. "RMVB",
  8164. "FLV",
  8165. "F4V",
  8166. "H.264",
  8167. "H.265",
  8168. "REAL VIDEO",
  8169. "MKV",
  8170. "WebM",
  8171. "HDDVD",
  8172. "MP4",
  8173. "MPG",
  8174. "M4V",
  8175. "MGV",
  8176. "OGV",
  8177. "QTM",
  8178. "STR",
  8179. "AMC",
  8180. "DVX",
  8181. "EVO",
  8182. "DAT",
  8183. "OGG",
  8184. "OGM",
  8185. "MP3",
  8186. ];
  8187. for (var i = 0; i < a.length; i++) {
  8188. var c = a[i].chapterData;
  8189. this.vedio[i] = [];
  8190. this.textList[i] = [];
  8191. this.lineList[i] = [];
  8192. this.chapToolList[i] = [];
  8193. this.file[i] = [];
  8194. this.fileC[i] = [];
  8195. for (var j = 0; j < c.length; j++) {
  8196. if (c[j].type == 7) {
  8197. this.chapToolList[i].push(c[j]);
  8198. } else if (c[j].type == 8) {
  8199. this.lineList[i].push(c[j]);
  8200. } else if (c[j].type == 6) {
  8201. this.textList[i].push(c[j]);
  8202. } else if (c[j].type == 12) {
  8203. this.fileC[i].push(c[j]);
  8204. } else {
  8205. if (
  8206. b.indexOf(
  8207. c[j].url
  8208. .split(".")
  8209. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8210. ) != -1
  8211. ) {
  8212. this.vedio[i].push(c[j]);
  8213. } else {
  8214. this.file[i].push(c[j]);
  8215. }
  8216. }
  8217. }
  8218. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8219. d.sources[0].src =
  8220. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8221. this.playerO[i] = d;
  8222. }
  8223. this.courseDetail = res.data[0][0];
  8224. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8225. console.log(this.tcid);
  8226. this.evalua = res.data[0][0].evaId;
  8227. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8228. this.courseType
  8229. ];
  8230. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8231. if (this.tcid && res.data[1].length) {
  8232. let _inviteA = []
  8233. for (var ik = 0; ik < res.data[1].length; ik++) {
  8234. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8235. }
  8236. for (var ik = 0; ik < _inviteA.length; ik++) {
  8237. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8238. this.inviteCode = _inviteA[ik].ic
  8239. break;
  8240. }
  8241. }
  8242. }
  8243. for (var l = 0; l < this.chapInfoList.length; l++) {
  8244. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8245. for (var m = 0; m < w.length; m++) {
  8246. w[m].id = l + "-" + m;
  8247. }
  8248. }
  8249. if (
  8250. !this.vedio[this.taskCount][0] ||
  8251. this.vedio[this.taskCount][0].url == ""
  8252. ) {
  8253. if (
  8254. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8255. this.taskCount
  8256. ].chapterData.length > 0
  8257. ) {
  8258. // if (
  8259. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8260. // this.taskCount
  8261. // ].chapterData[0].type != 8
  8262. // ) {
  8263. let _url =
  8264. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8265. this.taskCount
  8266. ].chapterData[0].url;
  8267. if (
  8268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8269. this.taskCount
  8270. ].chapterData[0].type == 8
  8271. ) {
  8272. this.showType = 2;
  8273. if (
  8274. _url.indexOf("https://") == -1 &&
  8275. _url.indexOf("http://") == -1
  8276. ) {
  8277. _url = "https://" + _url;
  8278. }
  8279. this.pptImgUrl1 = _url;
  8280. this.isClickNav = "line0";
  8281. } else if (
  8282. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8283. this.taskCount
  8284. ].chapterData[0].type == 3
  8285. ) {
  8286. if (
  8287. _url
  8288. .split(".")
  8289. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8290. ) {
  8291. this.showType = 3;
  8292. this.pptImgUrl1 = _url;
  8293. this.isClickNav = "word0";
  8294. } else if (
  8295. this.isAssetTypeAnImage(
  8296. _url
  8297. .split(".")
  8298. [_url.split(".").length - 1].toLocaleLowerCase()
  8299. )
  8300. ) {
  8301. this.showType = 4;
  8302. this.pptImgUrl1 = _url;
  8303. this.isClickNav = "word0";
  8304. } else {
  8305. this.showType = 2;
  8306. this.pptImgUrl1 =
  8307. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8308. _url;
  8309. this.isClickNav = "word0";
  8310. }
  8311. } else if (
  8312. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8313. this.taskCount
  8314. ].chapterData[0].type == 6
  8315. ) {
  8316. this.showType = 1;
  8317. this.text = this.textList[this.taskCount][0];
  8318. this.isClickNav = "text0";
  8319. }
  8320. }
  8321. } else {
  8322. this.isClickNav = "video0";
  8323. }
  8324. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8325. this.toolIndex = 0
  8326. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8327. }
  8328. } else {
  8329. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8330. .chapterInfo[0].taskJson;
  8331. var b = [
  8332. "AVI",
  8333. "NAVI",
  8334. "MPEG",
  8335. "ASF",
  8336. "MOV",
  8337. "WMV",
  8338. "3GP",
  8339. "RM",
  8340. "RMVB",
  8341. "FLV",
  8342. "F4V",
  8343. "H.264",
  8344. "H.265",
  8345. "REAL VIDEO",
  8346. "MKV",
  8347. "WebM",
  8348. "HDDVD",
  8349. "MP4",
  8350. "MPG",
  8351. "M4V",
  8352. "MGV",
  8353. "OGV",
  8354. "QTM",
  8355. "STR",
  8356. "AMC",
  8357. "DVX",
  8358. "EVO",
  8359. "DAT",
  8360. "OGG",
  8361. "OGM",
  8362. "MP3",
  8363. ];
  8364. for (var i = 0; i < a.length; i++) {
  8365. var c = a[i].chapterData;
  8366. this.vedio[i] = [];
  8367. this.textList[i] = [];
  8368. this.lineList[i] = [];
  8369. this.chapToolList[i] = [];
  8370. this.file[i] = [];
  8371. this.fileC[i] = [];
  8372. for (var j = 0; j < c.length; j++) {
  8373. if (c[j].type == 7) {
  8374. this.chapToolList[i].push(c[j]);
  8375. } else if (c[j].type == 8) {
  8376. this.lineList[i].push(c[j]);
  8377. } else if (c[j].type == 6) {
  8378. this.textList[i].push(c[j]);
  8379. } else if (c[j].type == 12) {
  8380. this.fileC[i].push(c[j]);
  8381. } else {
  8382. if (
  8383. b.indexOf(
  8384. c[j].url
  8385. .split(".")
  8386. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8387. ) != -1
  8388. ) {
  8389. this.vedio[i].push(c[j]);
  8390. } else {
  8391. this.file[i].push(c[j]);
  8392. }
  8393. }
  8394. }
  8395. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8396. d.sources[0].src =
  8397. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8398. this.playerO[i] = d;
  8399. }
  8400. if (
  8401. !this.vedio[this.taskCount][0] ||
  8402. this.vedio[this.taskCount][0].url == ""
  8403. ) {
  8404. if (
  8405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8406. this.taskCount
  8407. ].chapterData.length > 0
  8408. ) {
  8409. // if (
  8410. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8411. // this.taskCount
  8412. // ].chapterData[0].type != 8
  8413. // ) {
  8414. let _url =
  8415. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8416. this.taskCount
  8417. ].chapterData[0].url;
  8418. if (
  8419. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8420. this.taskCount
  8421. ].chapterData[0].type == 8
  8422. ) {
  8423. this.showType = 2;
  8424. if (
  8425. _url.indexOf("https://") == -1 &&
  8426. _url.indexOf("http://") == -1
  8427. ) {
  8428. _url = "https://" + _url;
  8429. }
  8430. this.pptImgUrl1 = _url;
  8431. this.isClickNav = "line0";
  8432. } else if (
  8433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8434. this.taskCount
  8435. ].chapterData[0].type == 3
  8436. ) {
  8437. if (
  8438. _url
  8439. .split(".")
  8440. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8441. ) {
  8442. this.showType = 3;
  8443. this.pptImgUrl1 = _url;
  8444. this.isClickNav = "word0";
  8445. } else if (
  8446. this.isAssetTypeAnImage(
  8447. _url
  8448. .split(".")
  8449. [_url.split(".").length - 1].toLocaleLowerCase()
  8450. )
  8451. ) {
  8452. this.showType = 4;
  8453. this.pptImgUrl1 = _url;
  8454. this.isClickNav = "word0";
  8455. } else {
  8456. this.showType = 2;
  8457. this.pptImgUrl1 =
  8458. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8459. _url;
  8460. this.isClickNav = "word0";
  8461. }
  8462. } else if (
  8463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8464. this.taskCount
  8465. ].chapterData[0].type == 6
  8466. ) {
  8467. this.showType = 1;
  8468. this.text = this.textList[this.taskCount][0];
  8469. this.isClickNav = "text0";
  8470. }
  8471. }
  8472. } else {
  8473. this.isClickNav = "video0";
  8474. }
  8475. this.$forceUpdate();
  8476. }
  8477. this.$nextTick(() => {
  8478. setTimeout(() => {
  8479. this.checkEva();
  8480. }, 1000);
  8481. });
  8482. let _this = this;
  8483. if (_this.timer) {
  8484. clearInterval(_this.timer);
  8485. _this.timer = null;
  8486. }
  8487. _this.selectSWorks(gindex);
  8488. _this.selectStudent();
  8489. _this.selectSLook();
  8490. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8491. _this.setCTask();
  8492. }
  8493. if (_this.dialogVisibleGroup) {
  8494. _this.groupJson =
  8495. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8496. _this.taskCount
  8497. ].toolChoose[_this.toolindex].groupJson;
  8498. }
  8499. _this.timer = setInterval(function () {
  8500. _this.selectSWorks(gindex);
  8501. }, 5000);
  8502. })
  8503. .catch((err) => {
  8504. loading.close();
  8505. console.error(err);
  8506. });
  8507. },
  8508. getCourseGroup(gindex) {
  8509. let params = {
  8510. cid: this.id,
  8511. classid: this.tcid ? this.tcid : '1',
  8512. };
  8513. this.ajax
  8514. .get(this.$store.state.api + "getCourseGroup", params)
  8515. .then((res) => {
  8516. if (res.data && res.data[0].length) {
  8517. if (!this.isGroup) {
  8518. let courseGroup = JSON.parse(res.data[0][0].group)
  8519. courseGroup.group = courseGroup.group.filter(el => {
  8520. el.works = []
  8521. return el
  8522. });
  8523. this.courseGroup = courseGroup
  8524. let groupPerson = res.data[1]
  8525. let group = JSON.parse(res.data[0][0].group).group
  8526. let courseGroupStudent = {}
  8527. let courseGroupStudentUid = {}
  8528. for (var i = 0; i < group.length; i++) {
  8529. courseGroupStudent[group[i].id] = []
  8530. courseGroupStudentUid[group[i].id] = []
  8531. for (var j = 0; j < groupPerson.length; j++) {
  8532. if (groupPerson[j].groupCid == group[i].id) {
  8533. courseGroupStudent[group[i].id].push(groupPerson[j])
  8534. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8535. }
  8536. }
  8537. }
  8538. this.courseGroupStudent = courseGroupStudent
  8539. this.courseGroupStudentUid = courseGroupStudentUid
  8540. }
  8541. this.isGroup = true
  8542. this.selectSWorks(gindex);
  8543. } else {
  8544. this.selectSWorks(gindex);
  8545. this.isGroup = false
  8546. }
  8547. })
  8548. .catch((err) => {
  8549. // this.$message.error("网络不佳");
  8550. console.error(err);
  8551. });
  8552. },
  8553. setOperationTime() {
  8554. let _this = this
  8555. if (_this.opertimer) {
  8556. clearInterval(_this.opertimer);
  8557. _this.opertimer = null;
  8558. }
  8559. _this.opertimer = setInterval(() => {
  8560. _this.setoTime('600')
  8561. }, 600000);
  8562. },
  8563. setoTime(time) {
  8564. let params = [
  8565. {
  8566. uid: this.userid,
  8567. cid: this.id,
  8568. type: '2',
  8569. time: time,
  8570. },
  8571. ];
  8572. this.ajax
  8573. .post(this.$store.state.api + "addOperationTimeT2", params)
  8574. .then((res) => {
  8575. })
  8576. .catch((err) => {
  8577. console.error(err);
  8578. });
  8579. },
  8580. addPz(type, content) {
  8581. if (type == "1" && this.pzConText == "") {
  8582. this.$message.error("批注不能为空!");
  8583. return;
  8584. }
  8585. let params = [
  8586. {
  8587. cid: this.id,
  8588. uid: this.userid,
  8589. s: this.courseType,
  8590. t: this.taskCount,
  8591. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  8592. type: type,
  8593. },
  8594. ];
  8595. this.ajax
  8596. .post(this.$store.state.api + "addPz2", params)
  8597. .then((res) => {
  8598. this.$message({
  8599. message: "添加成功",
  8600. type: "success",
  8601. });
  8602. this.pzConText = "";
  8603. this.addPzDialog = false;
  8604. this.selectPz();
  8605. })
  8606. .catch((err) => {
  8607. this.$message.error("添加失败");
  8608. console.error(err);
  8609. });
  8610. },
  8611. deletePz(id) {
  8612. this.$confirm("确定删除此批注吗?", "提示", {
  8613. confirmButtonText: "确定",
  8614. cancelButtonText: "取消",
  8615. type: "warning",
  8616. })
  8617. .then(() => {
  8618. let params = [
  8619. {
  8620. id: id,
  8621. },
  8622. ];
  8623. this.ajax
  8624. .post(this.$store.state.api + "deletePz", params)
  8625. .then((res) => {
  8626. this.$message({
  8627. message: "删除成功",
  8628. type: "success",
  8629. });
  8630. this.selectPz();
  8631. })
  8632. .catch((err) => {
  8633. this.$message.error("网络异常");
  8634. console.error(err);
  8635. });
  8636. })
  8637. .catch(() => { });
  8638. },
  8639. selectPz() {
  8640. let params = {
  8641. cid: this.id,
  8642. s: this.courseType,
  8643. t: this.taskCount,
  8644. };
  8645. this.ajax
  8646. .get(this.$store.state.api + "selectPzList", params)
  8647. .then((res) => {
  8648. this.pzList = res.data[0];
  8649. })
  8650. .catch((err) => {
  8651. console.error(err);
  8652. });
  8653. },
  8654. updateSLook() {
  8655. let params = {
  8656. sopen: this.sIsOpen == false ? 1 : 2,
  8657. cid: this.id,
  8658. };
  8659. this.ajax
  8660. .get(this.$store.state.api + "updateCourseSLook", params)
  8661. .then((res) => {
  8662. if (this.sIsOpen == true) {
  8663. this.$message({
  8664. message: "权限设置成功",
  8665. type: "success",
  8666. });
  8667. } else {
  8668. this.$message({
  8669. message: "权限关闭成功",
  8670. type: "success",
  8671. });
  8672. }
  8673. })
  8674. .catch((err) => {
  8675. console.error(err);
  8676. });
  8677. },
  8678. updateFollow() {
  8679. let params = [
  8680. {
  8681. sopen: this.IsFollow == false ? 1 : 2,
  8682. cid: this.id,
  8683. },
  8684. ];
  8685. this.ajax
  8686. .post(this.$store.state.api + "updateCourseFollow", params)
  8687. .then((res) => {
  8688. if (this.IsFollow == true) {
  8689. this.$message({
  8690. message: "开启成功",
  8691. type: "success",
  8692. });
  8693. } else {
  8694. this.$message({
  8695. message: "关闭成功",
  8696. type: "success",
  8697. });
  8698. }
  8699. this.setCTask();
  8700. })
  8701. .catch((err) => {
  8702. console.error(err);
  8703. });
  8704. },
  8705. setCTask() {
  8706. let params = [
  8707. {
  8708. sopen: this.courseType + '-' + this.taskCount,
  8709. cid: this.id,
  8710. },
  8711. ];
  8712. this.ajax
  8713. .post(this.$store.state.api + "updateCourseFollowC", params)
  8714. .then((res) => {
  8715. })
  8716. .catch((err) => {
  8717. console.error(err);
  8718. });
  8719. },
  8720. updateLookOpen() {
  8721. let params = [
  8722. {
  8723. sopen: this.IsLookOpen == false ? 1 : 2,
  8724. cid: this.id,
  8725. },
  8726. ];
  8727. this.ajax
  8728. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8729. .then((res) => {
  8730. if (this.IsLookOpen == true) {
  8731. // if (this.courseType != 0 && this.taskCount != 0) {
  8732. // this.openTask(0, 0, "0-0");
  8733. // }
  8734. this.$message({
  8735. message: "权限设置成功",
  8736. type: "success",
  8737. });
  8738. } else {
  8739. this.$message({
  8740. message: "权限关闭成功",
  8741. type: "success",
  8742. });
  8743. }
  8744. this.getCourseState(2);
  8745. })
  8746. .catch((err) => {
  8747. console.error(err);
  8748. });
  8749. },
  8750. selectSLook() {
  8751. let params = {
  8752. cid: this.id,
  8753. };
  8754. this.ajax
  8755. .get(this.$store.state.api + "selectCourseSLook", params)
  8756. .then((res) => {
  8757. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8758. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8759. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8760. if (!this.IsLookOpen) {
  8761. this.setNavList();
  8762. } else {
  8763. this.getCourseState(1);
  8764. }
  8765. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8766. let _followC = res.data[0][0].followC.split('-')
  8767. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8768. this.navList[this.courseType].isOpen = false;
  8769. this.courseType = _followC[0]
  8770. this.navList[this.courseType].isOpen = true;
  8771. this.taskCount = parseInt(_followC[1])
  8772. this.navId = res.data[0][0].followC;
  8773. this.getCourseDetail()
  8774. }
  8775. }
  8776. })
  8777. .catch((err) => {
  8778. console.error(err);
  8779. });
  8780. },
  8781. setNavList() {
  8782. if (this.navList.length == 0) {
  8783. this.navList = [];
  8784. for (var l = 0; l < this.chapInfoList.length; l++) {
  8785. var q = this.chapInfoList[l].dyName;
  8786. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8787. var e;
  8788. this.navList.push({
  8789. dyName: q,
  8790. isOpen: l === 0 ? true : false,
  8791. task: [],
  8792. });
  8793. for (var r = 0; r < w.length; r++) {
  8794. e = w[r].task;
  8795. if (this.chapInfoList[l].easy == 1) {
  8796. this.navList[l].task.push({
  8797. taskName: q,
  8798. id: l + "-" + r,
  8799. isLook: w[r].isLook,
  8800. });
  8801. } else {
  8802. this.navList[l].task.push({
  8803. taskName: e,
  8804. id: l + "-" + r,
  8805. isLook: w[r].isLook,
  8806. });
  8807. }
  8808. // this.navId = this.navId ? this.navId : l + "-" + r;
  8809. // this.navId = l + "-" + r;
  8810. }
  8811. }
  8812. this.navList[0].isOpen = false;
  8813. this.navList[this.courseType].isOpen = true;
  8814. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8815. } else {
  8816. this.setNavList2();
  8817. }
  8818. },
  8819. setNavList2() {
  8820. for (var l = 0; l < this.chapInfoList.length; l++) {
  8821. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8822. for (var r = 0; r < w.length; r++) {
  8823. this.navList[l].task[r].isLook = w[r].isLook;
  8824. }
  8825. }
  8826. if (
  8827. this.IsLookOpen &&
  8828. !this.navList[this.courseType].task[this.taskCount].isLook
  8829. ) {
  8830. this.openTask(0, 0, "0-0");
  8831. }
  8832. this.$forceUpdate();
  8833. },
  8834. getCourseState(type) {
  8835. let params = {
  8836. cid: this.id,
  8837. };
  8838. this.ajax
  8839. .get(this.$store.state.api + "getCourseState", params)
  8840. .then((res) => {
  8841. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8842. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8843. this.setNavList();
  8844. this.$forceUpdate();
  8845. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8846. this.addCourseState(2);
  8847. } else {
  8848. this.addCourseState(1);
  8849. }
  8850. })
  8851. .catch((err) => {
  8852. console.error(err);
  8853. });
  8854. },
  8855. addCourseState(type) {
  8856. let _state = this.chapInfoList;
  8857. // this.courseType this.taskCount
  8858. if (type == 1 || type == 2) {
  8859. for (var i = 0; i < _state.length; i++) {
  8860. let el = _state[i].chapterInfo[0].taskJson;
  8861. for (var j = 0; j < el.length; j++) {
  8862. // if (i == 0 && j == 0) {
  8863. // el[j].isLook = true;
  8864. // } else {
  8865. // el[j].isLook = false;
  8866. // }
  8867. if (
  8868. this.courseType > i ||
  8869. (this.courseType == i && this.taskCount + 1 > j)
  8870. ) {
  8871. el[j].isLook = true;
  8872. } else {
  8873. el[j].isLook = false;
  8874. }
  8875. }
  8876. }
  8877. }
  8878. let params = [
  8879. {
  8880. cid: this.id,
  8881. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  8882. },
  8883. ];
  8884. this.ajax
  8885. .post(
  8886. this.$store.state.api +
  8887. (type == 1 ? "addCourseState" : "updateCourseSate"),
  8888. params
  8889. )
  8890. .then((res) => {
  8891. if (this.IsLookOpen) {
  8892. this.setNavList();
  8893. }
  8894. if (type == 3 && type == 2) {
  8895. this.getCourseState(1);
  8896. }
  8897. })
  8898. .catch((err) => {
  8899. console.error(err);
  8900. });
  8901. },
  8902. getHomeWork() {
  8903. let params = {
  8904. cid: this.id,
  8905. stage: this.courseType,
  8906. task: this.taskCount,
  8907. uid: this.userid,
  8908. };
  8909. this.ajax
  8910. .get(this.$store.state.api + "selectWork", params)
  8911. .then((res) => {
  8912. if (res.data[0].length > 0) {
  8913. this.studyJuri = JSON.parse(res.data[0][0].content);
  8914. this.isNoHomeWork = true;
  8915. }
  8916. })
  8917. .catch((err) => {
  8918. console.error(err);
  8919. });
  8920. },
  8921. isAssetTypeAnImage(ext) {
  8922. return (
  8923. [
  8924. "png",
  8925. "jpg",
  8926. "jpeg",
  8927. "bmp",
  8928. "gif",
  8929. "webp",
  8930. "psd",
  8931. "svg",
  8932. "tiff",
  8933. ].indexOf(ext) !== -1
  8934. );
  8935. },
  8936. switchVideo(media) {
  8937. this.playerO = {};
  8938. this.playerOptions.poster = "";
  8939. this.playerOptions.sources[0].src = media;
  8940. this.playerO = this.playerOptions;
  8941. },
  8942. onPlayerPlay() { },
  8943. lookVedio(u, i) {
  8944. this.isClickNav = "";
  8945. // this.playerOptions.sources[0].src = u;
  8946. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8947. d.sources[0].src = u;
  8948. this.playerO[this.taskCount] = d;
  8949. this.showType = 0;
  8950. this.isClickNav = "video" + i;
  8951. this.$forceUpdate();
  8952. },
  8953. lookText(i, t) {
  8954. this.isClickNav = "";
  8955. this.text = this.textList[i][t];
  8956. // this.dialogVisible1 = true;
  8957. this.showType = 1;
  8958. this.isClickNav = "text" + t;
  8959. },
  8960. lookTools(i, t) {
  8961. this.chapTools = this.chapToolList[i][t];
  8962. this.dialogVisible2 = true;
  8963. },
  8964. openFile(f) {
  8965. this.pptImgUrl = "";
  8966. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8967. if (
  8968. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8969. -1
  8970. ) {
  8971. this.pptImgUrl =
  8972. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  8973. this.showPDF = false;
  8974. this.dialogVisible3 = true;
  8975. } else if (
  8976. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8977. ) {
  8978. this.pptImgUrl = f;
  8979. this.showPDF = true;
  8980. this.dialogVisible3 = true;
  8981. }
  8982. },
  8983. openTable(f) {
  8984. this.tableJson = JSON.parse(f.works);
  8985. this.$forceUpdate();
  8986. this.dialogVisibleTable2 = true;
  8987. },
  8988. doUrl(url, i) {
  8989. this.isClickNav = "";
  8990. this.pptImgUrl1 = "";
  8991. this.showType = 2;
  8992. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  8993. url = "https://" + url;
  8994. }
  8995. this.pptImgUrl1 = url;
  8996. this.isClickNav = "line" + i;
  8997. },
  8998. downFile(f, i) {
  8999. this.isClickNav = "";
  9000. this.pptImgUrl1 = "";
  9001. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9002. if (
  9003. a.indexOf(
  9004. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9005. ) != -1
  9006. ) {
  9007. this.pptImgUrl1 =
  9008. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9009. // this.dialogVisible3 = true;
  9010. this.showType = 2;
  9011. } else if (
  9012. this.isAssetTypeAnImage(
  9013. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9014. )
  9015. ) {
  9016. this.showType = 4;
  9017. this.pptImgUrl1 = f.url;
  9018. } else if (
  9019. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9020. "PDF"
  9021. ) {
  9022. this.pptImgUrl1 = f.url;
  9023. // this.dialogVisible3 = true;
  9024. this.showType = 3;
  9025. } else {
  9026. window.open(this.file[i].url);
  9027. }
  9028. this.isClickNav = "word" + i;
  9029. },
  9030. downFileList(i) {
  9031. window.open(this.noImgList[i].url);
  9032. },
  9033. openAddWork() {
  9034. this.dialogVisible = true;
  9035. },
  9036. addBzWorks() {
  9037. let params = [
  9038. {
  9039. uid: this.userid,
  9040. cid: this.id,
  9041. stage: this.courseType,
  9042. task: this.taskCount,
  9043. tool: this.toolindex,
  9044. content: JSON.stringify(this.eScore),
  9045. type: 6,
  9046. },
  9047. ];
  9048. this.ajax
  9049. .post(this.$store.state.api + "addCourseWorks", params)
  9050. .then((res) => {
  9051. this.$message({
  9052. message: "提交成功",
  9053. type: "success",
  9054. });
  9055. this.eScore = { eBzText: "", eStar: [] };
  9056. this.studentEvalDialogVisible = false;
  9057. this.selectSWorks();
  9058. })
  9059. .catch((err) => {
  9060. this.$message.error("提交失败");
  9061. console.error(err);
  9062. });
  9063. },
  9064. addBzWorksTeacher() {
  9065. let params = [
  9066. {
  9067. uid: this.sStudent.userid,
  9068. cid: this.id,
  9069. stage: this.courseType,
  9070. task: this.taskCount,
  9071. tool: this.toolindex,
  9072. content: JSON.stringify(this.eScore),
  9073. type: 6,
  9074. },
  9075. ];
  9076. this.ajax
  9077. .post(this.$store.state.api + "addCourseWorks", params)
  9078. .then((res) => {
  9079. this.$message({
  9080. message: "提交成功",
  9081. type: "success",
  9082. });
  9083. this.eScore = { eBzText: "", eStar: [] };
  9084. this.studentEvalDialogVisibleTeacher = false;
  9085. this.selectSWorks();
  9086. })
  9087. .catch((err) => {
  9088. this.$message.error("提交失败");
  9089. console.error(err);
  9090. });
  9091. },
  9092. addStudentAsk() {
  9093. if (!this.radio.length) {
  9094. this.$message.error("请选择选项");
  9095. return;
  9096. }
  9097. for (var i = 0; i < this.askJson.askCount; i++) {
  9098. if (
  9099. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9100. (this.radio[i] !== 0 && !this.radio[i])
  9101. ) {
  9102. this.$message.error("请选择选项");
  9103. return;
  9104. }
  9105. }
  9106. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9107. let params = [
  9108. {
  9109. uid: this.userid,
  9110. cid: this.id,
  9111. stage: this.courseType,
  9112. task: this.taskCount,
  9113. tool: this.toolindex,
  9114. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9115. type: 2,
  9116. },
  9117. ];
  9118. this.ajax
  9119. .post(this.$store.state.api + "addCourseWorks", params)
  9120. .then((res) => {
  9121. this.$message({
  9122. message: "提交成功",
  9123. type: "success",
  9124. });
  9125. this.askList = [];
  9126. this.dialogVisible5 = false;
  9127. this.selectStudent();
  9128. this.selectSWorks();
  9129. this.selectSLook();
  9130. })
  9131. .catch((err) => {
  9132. this.$message.error("提交失败");
  9133. console.error(err);
  9134. });
  9135. },
  9136. addStudentAskTeacher() {
  9137. if (!this.radio.length) {
  9138. this.$message.error("请选择选项");
  9139. return;
  9140. }
  9141. for (var i = 0; i < this.askJson.askCount; i++) {
  9142. if (this.radio[i] !== 0 && !this.radio[i]) {
  9143. this.$message.error("请选择选项");
  9144. return;
  9145. }
  9146. }
  9147. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  9148. let params = [
  9149. {
  9150. uid: this.sStudent.userid,
  9151. cid: this.id,
  9152. stage: this.courseType,
  9153. task: this.taskCount,
  9154. tool: this.toolindex,
  9155. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9156. type: 2,
  9157. },
  9158. ];
  9159. this.ajax
  9160. .post(this.$store.state.api + "addCourseWorks", params)
  9161. .then((res) => {
  9162. this.$message({
  9163. message: "提交成功",
  9164. type: "success",
  9165. });
  9166. this.askList = [];
  9167. this.dialogVisible5Teacher = false;
  9168. this.selectStudent();
  9169. this.selectSWorks();
  9170. this.selectSLook();
  9171. })
  9172. .catch((err) => {
  9173. this.$message.error("提交失败");
  9174. console.error(err);
  9175. });
  9176. },
  9177. addStudentTest() {
  9178. if (!this.radio.length) {
  9179. this.$message.error("请选择选项");
  9180. return;
  9181. }
  9182. for (var i = 0; i < this.testJson.testCount; i++) {
  9183. if (
  9184. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9185. (this.radio[i] !== 0 && !this.radio[i])
  9186. ) {
  9187. this.$message.error("请选择选项");
  9188. return;
  9189. }
  9190. }
  9191. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9192. let params = [
  9193. {
  9194. uid: this.userid,
  9195. cid: this.id,
  9196. stage: this.courseType,
  9197. task: this.taskCount,
  9198. tool: this.toolindex,
  9199. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9200. type: 8,
  9201. },
  9202. ];
  9203. this.ajax
  9204. .post(this.$store.state.api + "addCourseWorks", params)
  9205. .then((res) => {
  9206. this.$message({
  9207. message: "提交成功",
  9208. type: "success",
  9209. });
  9210. this.askList = [];
  9211. this.dialogVisibleChoice = false;
  9212. this.selectStudent();
  9213. this.selectSWorks();
  9214. this.selectSLook();
  9215. })
  9216. .catch((err) => {
  9217. this.$message.error("提交失败");
  9218. console.error(err);
  9219. });
  9220. },
  9221. addStudentTestTeacher() {
  9222. if (!this.radio.length) {
  9223. this.$message.error("请选择选项");
  9224. return;
  9225. }
  9226. for (var i = 0; i < this.testJson.testCount; i++) {
  9227. if (
  9228. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9229. (this.radio[i] !== 0 && !this.radio[i])
  9230. ) {
  9231. this.$message.error("请选择选项");
  9232. return;
  9233. }
  9234. }
  9235. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9236. let params = [
  9237. {
  9238. uid: this.sStudent.userid,
  9239. cid: this.id,
  9240. stage: this.courseType,
  9241. task: this.taskCount,
  9242. tool: this.toolindex,
  9243. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9244. type: 8,
  9245. },
  9246. ];
  9247. this.ajax
  9248. .post(this.$store.state.api + "addCourseWorks", params)
  9249. .then((res) => {
  9250. this.$message({
  9251. message: "提交成功",
  9252. type: "success",
  9253. });
  9254. this.askList = [];
  9255. this.dialogVisibleChoiceTeacher = false;
  9256. this.selectStudent();
  9257. this.selectSWorks();
  9258. this.selectSLook();
  9259. })
  9260. .catch((err) => {
  9261. this.$message.error("提交失败");
  9262. console.error(err);
  9263. });
  9264. },
  9265. addWork() {
  9266. if (this.studyJuri[0].content == "") {
  9267. this.$message.error("请将信息填写完整");
  9268. return;
  9269. } else if (this.studyJuri[0].cover.length == 0) {
  9270. this.$message.error("请将信息填写完整");
  9271. return;
  9272. } else if (this.studyJuri[0].upVedio.length == 0) {
  9273. this.$message.error("请将信息填写完整");
  9274. return;
  9275. }
  9276. if (this.isNoHomeWork) {
  9277. this.$confirm(
  9278. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9279. "提示",
  9280. {
  9281. confirmButtonText: "确定",
  9282. cancelButtonText: "取消",
  9283. type: "warning",
  9284. }
  9285. )
  9286. .then(() => {
  9287. let params = [
  9288. {
  9289. uid: this.userid,
  9290. cid: this.id,
  9291. stage: this.courseType,
  9292. task: this.taskCount,
  9293. content: JSON.stringify(this.studyJuri),
  9294. },
  9295. ];
  9296. this.ajax
  9297. .post(this.$store.state.api + "addWorks", params)
  9298. .then((res) => {
  9299. this.$message({
  9300. message: "提交成功",
  9301. type: "success",
  9302. });
  9303. this.isNoHomeWork = true;
  9304. this.dialogVisible = false;
  9305. })
  9306. .catch((err) => {
  9307. this.$message.error("提交失败");
  9308. console.error(err);
  9309. });
  9310. })
  9311. .catch(() => { });
  9312. } else {
  9313. let params = [
  9314. {
  9315. uid: this.userid,
  9316. cid: this.id,
  9317. stage: this.courseType,
  9318. task: this.taskCount,
  9319. content: JSON.stringify(this.studyJuri),
  9320. },
  9321. ];
  9322. this.ajax
  9323. .post(this.$store.state.api + "addWorks", params)
  9324. .then((res) => {
  9325. this.$message({
  9326. message: "提交成功",
  9327. type: "success",
  9328. });
  9329. this.isNoHomeWork = true;
  9330. this.dialogVisible = false;
  9331. })
  9332. .catch((err) => {
  9333. this.$message.error("提交失败");
  9334. console.error(err);
  9335. });
  9336. }
  9337. },
  9338. selectCount() {
  9339. let params = {
  9340. cid: this.id,
  9341. chid: this.courseType,
  9342. uid: this.userid,
  9343. };
  9344. this.ajax
  9345. .get(this.$store.state.api + "selectToolsCount", params)
  9346. .then((res) => {
  9347. for (var i = 0; i < res.data[0].length; i++) {
  9348. if (res.data[0][i].tools == 1) {
  9349. this.wbCount = res.data[0][i].count;
  9350. } else if (res.data[0][i].tools == 2) {
  9351. this.wordCount = res.data[0][i].count;
  9352. } else if (res.data[0][i].tools == 3) {
  9353. this.mindCount = res.data[0][i].count;
  9354. } else if (res.data[0][i].tools == 4) {
  9355. this.askCount = res.data[0][i].count;
  9356. } else if (res.data[0][i].tools == 6) {
  9357. this.noteCount = res.data[0][i].count;
  9358. } else if (res.data[0][i].tools == 7) {
  9359. this.mindNetWorkCount = res.data[0][i].count;
  9360. } else if (res.data[0][i].tools == 8) {
  9361. this.libraryCount = res.data[0][i].count;
  9362. } else if (res.data[0][i].tools == 16) {
  9363. this.workCount = res.data[0][i].count;
  9364. } else if (res.data[0][i].tools == 10) {
  9365. this.timeCount = res.data[0][i].count;
  9366. } else if (res.data[0][i].tools == 15) {
  9367. this.answerCount = res.data[0][i].count;
  9368. } else if (res.data[0][i].tools == 18) {
  9369. this.trainCount = res.data[0][i].count;
  9370. }
  9371. }
  9372. })
  9373. .catch((err) => {
  9374. console.error(err);
  9375. });
  9376. },
  9377. openTools(t, i, index, c, sName) {
  9378. var z = JSON.parse(c);
  9379. this.noteName = sName;
  9380. if (t == 4) {
  9381. this.radio = [];
  9382. this.isAnswer = false;
  9383. let b = z[0].anwer;
  9384. this.radio = b;
  9385. this.askJson = z[0].askJson;
  9386. this.isAnswer = true;
  9387. this.dialogVisible5 = true;
  9388. } else if (t == 45) {
  9389. this.radio = [];
  9390. this.isAnswer = false;
  9391. let b = z[0].anwer;
  9392. this.radio = b;
  9393. this.testJson = z[0].testJson;
  9394. this.isAnswer = true;
  9395. this.dialogVisibleChoice = true;
  9396. }
  9397. // else if (t == 15) {
  9398. // this.answerQ = "";
  9399. // this.questionAnswer = "";
  9400. // this.answerQ = z[0].answerTitle;
  9401. // this.questionAnswer = z[0].answer;
  9402. // this.answerDialogVisible = true;
  9403. // }
  9404. },
  9405. fastText(p, t) {
  9406. if (t == 1) {
  9407. this.commentText += p;
  9408. } else {
  9409. this.eScore.eBzText += p;
  9410. }
  9411. },
  9412. addTools(t, i, index) {
  9413. var a = 0;
  9414. // this.taskCount = index;
  9415. this.toolindex = i;
  9416. if (t == 1) {
  9417. if (this.wbCount > 0) {
  9418. this.updateCount(this.wbCount, t);
  9419. } else {
  9420. this.wbCount++;
  9421. a = this.wbCount;
  9422. this.toolsCount(a, t);
  9423. }
  9424. window.parent.postMessage(
  9425. {
  9426. tools: "1",
  9427. cid: this.id,
  9428. stage: this.courseType,
  9429. task: this.taskCount,
  9430. tool: i,
  9431. },
  9432. "*"
  9433. );
  9434. } else if (t == 2) {
  9435. if (this.wordCount > 0) {
  9436. this.updateCount(this.wordCount, t);
  9437. } else {
  9438. this.wordCount++;
  9439. a = this.wordCount;
  9440. this.toolsCount(a, t);
  9441. }
  9442. window.parent.postMessage({ tools: "2" }, "*");
  9443. } else if (t == 3) {
  9444. if (this.mindCount > 0) {
  9445. this.updateCount(this.mindCount, t);
  9446. } else {
  9447. this.mindCount++;
  9448. a = this.mindCount;
  9449. this.toolsCount(a, t);
  9450. }
  9451. window.parent.postMessage(
  9452. {
  9453. tools: "3",
  9454. cid: this.id,
  9455. stage: this.courseType,
  9456. task: this.taskCount,
  9457. tool: i,
  9458. },
  9459. "*"
  9460. );
  9461. } else if (t == 4) {
  9462. this.radio = [];
  9463. this.noteName = "";
  9464. this.isAnswer = false;
  9465. if (this.askCount > 0) {
  9466. this.updateCount(this.askCount, t);
  9467. } else {
  9468. this.askCount++;
  9469. a = this.askCount;
  9470. this.toolsCount(a, t);
  9471. }
  9472. this.askJson.askJson =
  9473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9474. index
  9475. ].toolChoose[i].askJson;
  9476. this.askJson.askTitle =
  9477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9478. index
  9479. ].toolChoose[i].askTitle;
  9480. this.askJson.askCount =
  9481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9482. index
  9483. ].toolChoose[i].askCount;
  9484. for (var k = 0; k < this.askJson.askJson.length; k++) {
  9485. if (this.askJson.askJson[k].type == "2") {
  9486. this.radio.push([]);
  9487. } else {
  9488. this.radio.push("");
  9489. }
  9490. }
  9491. this.dialogVisible5 = true;
  9492. // window.parent.postMessage({ tools: "4" }, "*");
  9493. } else if (t == 45) {
  9494. this.noteName = "";
  9495. this.radio = [];
  9496. this.isAnswer = false;
  9497. if (this.askCount > 0) {
  9498. this.updateCount(this.askCount, t);
  9499. } else {
  9500. this.askCount++;
  9501. a = this.askCount;
  9502. this.toolsCount(a, t);
  9503. }
  9504. this.testJson =
  9505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9506. index
  9507. ].toolChoose[i].testJson;
  9508. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9509. if (this.testJson.testJson[k].type == "2") {
  9510. this.radio.push([]);
  9511. } else {
  9512. this.radio.push("");
  9513. }
  9514. }
  9515. this.dialogVisibleChoice = true;
  9516. // window.parent.postMessage({ tools: "4" }, "*");
  9517. } else if (t == 5) {
  9518. if (this.scoreCount > 0) {
  9519. this.updateCount(this.scoreCount, t);
  9520. } else {
  9521. this.scoreCount++;
  9522. a = this.scoreCount;
  9523. this.toolsCount(a, t);
  9524. }
  9525. this.dialogVisible4 = true;
  9526. // window.parent.postMessage({ tools: "5" }, "*");
  9527. } else if (t == 6) {
  9528. if (this.noteCount > 0) {
  9529. this.updateCount(this.noteCount, t);
  9530. } else {
  9531. this.noteCount++;
  9532. a = this.noteCount;
  9533. this.toolsCount(a, t);
  9534. }
  9535. window.parent.postMessage(
  9536. {
  9537. tools: "6",
  9538. cid: this.id,
  9539. stage: this.courseType,
  9540. task: this.taskCount,
  9541. tool: i,
  9542. },
  9543. "*"
  9544. );
  9545. } else if (t == 7) {
  9546. if (this.mindNetWorkCount > 0) {
  9547. this.updateCount(this.mindNetWorkCount, t);
  9548. } else {
  9549. this.mindNetWorkCount++;
  9550. a = this.mindNetWorkCount;
  9551. this.toolsCount(a, t);
  9552. }
  9553. window.parent.postMessage(
  9554. {
  9555. tools: "7",
  9556. cid: this.id,
  9557. stage: this.courseType,
  9558. task: this.taskCount,
  9559. tool: i,
  9560. },
  9561. "*"
  9562. );
  9563. } else if (t == 16) {
  9564. if (this.workCount > 0) {
  9565. this.updateCount(this.workCount, t);
  9566. } else {
  9567. this.workCount++;
  9568. a = this.workCount;
  9569. this.toolsCount(a, t);
  9570. }
  9571. this.dialogVisible = true;
  9572. } else if (t == 50) {
  9573. if (this.tType == 2) {
  9574. this.$message.error("不支持学生使用");
  9575. return;
  9576. }
  9577. this.plworkFile = [];
  9578. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  9579. this.selectUploadStudent();
  9580. this.dialogVisiblePl = true;
  9581. } else if (t == 8) {
  9582. if (this.libraryCount > 0) {
  9583. this.updateCount(this.libraryCount, t);
  9584. } else {
  9585. this.libraryCount++;
  9586. a = this.libraryCount;
  9587. this.toolsCount(a, t);
  9588. }
  9589. window.parent.postMessage({ tools: "8" }, "*");
  9590. } else if (t == 17) {
  9591. if (this.libraryCount > 0) {
  9592. this.updateCount(this.libraryCount, t);
  9593. } else {
  9594. this.libraryCount++;
  9595. a = this.libraryCount;
  9596. this.toolsCount(a, t);
  9597. }
  9598. window.parent.postMessage({ tools: "17" }, "*");
  9599. } else if (t == 18) {
  9600. if (this.trainCount > 0) {
  9601. this.updateCount(this.trainCount, t);
  9602. } else {
  9603. this.trainCount++;
  9604. a = this.trainCount;
  9605. this.toolsCount(a, t);
  9606. }
  9607. window.parent.postMessage({ tools: "18" }, "*");
  9608. } else if (t == 10) {
  9609. if (this.timeCount > 0) {
  9610. this.updateCount(this.timeCount, t);
  9611. } else {
  9612. this.timeCount++;
  9613. a = this.timeCount;
  9614. this.toolsCount(a, t);
  9615. }
  9616. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9617. .taskJson[index].toolChoose[i].preTime
  9618. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9619. .toolChoose[i].preTime
  9620. : "";
  9621. this.timeDialogVisible = true;
  9622. } else if (t == 15) {
  9623. this.answerQ = "";
  9624. this.questionAnswer = "";
  9625. if (this.answerCount > 0) {
  9626. this.updateCount(this.answerCount, t);
  9627. } else {
  9628. this.answerCount++;
  9629. a = this.answerCount;
  9630. this.toolsCount(a, t);
  9631. }
  9632. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9633. .taskJson[index].toolChoose[i].answerQ
  9634. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9635. .toolChoose[i].answerQ
  9636. : "";
  9637. this.answerDialogVisible = true;
  9638. } else if (t == 21) {
  9639. window.parent.postMessage({ tools: "21" }, "*");
  9640. } else if (t == 22) {
  9641. window.parent.postMessage({ tools: "22" }, "*");
  9642. } else if (t == 23) {
  9643. window.parent.postMessage({ tools: "23" }, "*");
  9644. } else if (t == 24) {
  9645. window.parent.postMessage({ tools: "24" }, "*");
  9646. } else if (t == 25) {
  9647. window.parent.postMessage({ tools: "25" }, "*");
  9648. } else if (t == 31) {
  9649. window.parent.postMessage({ tools: "31" }, "*");
  9650. } else if (t == 28) {
  9651. window.parent.postMessage({ tools: "28" }, "*");
  9652. } else if (t == 37) {
  9653. window.parent.postMessage({ tools: "37" }, "*");
  9654. } else if (t == 38) {
  9655. window.parent.postMessage({ tools: "38" }, "*");
  9656. } else if (t == 39) {
  9657. window.parent.postMessage({ tools: "39" }, "*");
  9658. } else if (t == 32) {
  9659. window.parent.postMessage({ tools: "32" }, "*");
  9660. } else if (t == 57) {
  9661. window.parent.postMessage({ tools: "57" }, "*");
  9662. } else if (t == 58) {
  9663. window.parent.postMessage({ tools: "58" }, "*");
  9664. } else if (t == 59) {
  9665. window.parent.postMessage({ tools: "59" }, "*");
  9666. } else if (t == 60) {
  9667. window.parent.postMessage({ tools: "60" }, "*");
  9668. } else if (t == 61) {
  9669. window.parent.postMessage({ tools: "61" }, "*");
  9670. } else if (t == 26) {
  9671. window.parent.postMessage(
  9672. {
  9673. tools: "26",
  9674. cid: this.id,
  9675. stage: this.courseType,
  9676. task: this.taskCount,
  9677. tool: i,
  9678. },
  9679. "*"
  9680. );
  9681. } else if (t == 40) {
  9682. if (this.evalCount > 0) {
  9683. this.updateCount(this.evalCount, t);
  9684. } else {
  9685. this.evalCount++;
  9686. a = this.evalCount;
  9687. this.toolsCount(a, t);
  9688. }
  9689. this.eScore = { eBzText: "", eStar: [] };
  9690. if (this.worksStudent[i].length) {
  9691. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9692. if (this.userid == this.worksStudent[i][k].userid) {
  9693. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9694. this.rateJson =
  9695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9696. index
  9697. ].toolChoose[i].rateJson;
  9698. break;
  9699. } else {
  9700. this.rateJson =
  9701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9702. index
  9703. ].toolChoose[i].rateJson;
  9704. }
  9705. }
  9706. } else {
  9707. this.rateJson =
  9708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9709. index
  9710. ].toolChoose[i].rateJson;
  9711. }
  9712. this.isStar = false;
  9713. this.studentEvalDialogVisible = true;
  9714. } else if (t == 41) {
  9715. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9716. .taskJson[index].toolChoose[i].selectJson
  9717. ? JSON.parse(
  9718. JSON.stringify(
  9719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9720. index
  9721. ].toolChoose[i].selectJson
  9722. )
  9723. )
  9724. : { url: "", select: [], answer: [] };
  9725. if (this.worksStudent[i].length) {
  9726. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9727. if (this.userid == this.worksStudent[i][k].userid) {
  9728. var a = this.worksStudent[i][k].works.split(",");
  9729. for (var ki = 0; ki < a.length; ki++) {
  9730. a[ki] = parseInt(a[ki]);
  9731. }
  9732. this.selectAnswer = {
  9733. answer: a,
  9734. stu: this.worksStudent[i][k].sName,
  9735. };
  9736. break;
  9737. } else {
  9738. this.selectAnswer = { answer: [], stu: "" };
  9739. }
  9740. }
  9741. } else {
  9742. this.selectAnswer = { answer: [], stu: "" };
  9743. }
  9744. this.isSelect = false;
  9745. this.dialogVisibleSelect = true;
  9746. } else if (t == 44) {
  9747. window.parent.postMessage({ tools: "44" }, "*");
  9748. } else if (t == 47) {
  9749. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9750. .taskJson[index].toolChoose[i].sentenceList
  9751. ? JSON.parse(
  9752. JSON.stringify(
  9753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9754. index
  9755. ].toolChoose[i].sentenceList
  9756. )
  9757. )
  9758. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9759. for (var q = 0; q < this.sentenceList.length; q++) {
  9760. this.sentenceList[q].chooseSenList = [];
  9761. this.sentenceList[q].addChangeSen = [];
  9762. this.sentenceList[q].addChangeSen = JSON.parse(
  9763. JSON.stringify(this.sentenceList[q].addSentence)
  9764. );
  9765. this.sentenceList[q].chooseSenList.length =
  9766. this.sentenceList[q].rightAnswer.length;
  9767. }
  9768. this.dialogVisibleSentence = true;
  9769. } else if (t == 48) {
  9770. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9771. .taskJson[index].toolChoose[i].tableJson
  9772. ? JSON.parse(
  9773. JSON.stringify(
  9774. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9775. index
  9776. ].toolChoose[i].tableJson
  9777. )
  9778. )
  9779. : { text: "" };
  9780. if (this.worksStudent[i].length) {
  9781. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9782. if (this.userid == this.worksStudent[i][k].userid) {
  9783. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9784. break;
  9785. }
  9786. }
  9787. }
  9788. this.dialogVisibleTable = true;
  9789. } else if (t == 52) {
  9790. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9791. .taskJson[index].toolChoose[i].wordJson
  9792. ? JSON.parse(
  9793. JSON.stringify(
  9794. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9795. index
  9796. ].toolChoose[i].wordJson
  9797. )
  9798. )
  9799. : { text: "" };
  9800. this.dialogVisibleWord = true;
  9801. } else if (t == 49) {
  9802. this.groupJson =
  9803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9804. index
  9805. ].toolChoose[i].groupJson;
  9806. this.dialogVisibleGroup = true;
  9807. }
  9808. },
  9809. teacherWorkSubmit(t, i, index, s) {
  9810. this.sStudent = s;
  9811. this.sTool = t;
  9812. this.toolindex = i;
  9813. if (this.tType !== "1" && this.tType !== "4") {
  9814. return;
  9815. }
  9816. if (t == 16 || t == 32 || t == 57 || t == 50) {
  9817. this.dialogVisibleWorks = true; //作业提交
  9818. } else if (t == 15) {
  9819. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9820. .taskJson[index].toolChoose[i].answerQ
  9821. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9822. .toolChoose[i].answerQ
  9823. : "";
  9824. this.questionAnswer = ''
  9825. this.answerDialogVisibleTeacher = true;//问答
  9826. } else if (t == 52) {
  9827. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9828. .taskJson[index].toolChoose[i].wordJson
  9829. ? JSON.parse(
  9830. JSON.stringify(
  9831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9832. index
  9833. ].toolChoose[i].wordJson
  9834. )
  9835. )
  9836. : { text: "" };
  9837. this.dialogVisibleWordTeacher = true;//文档
  9838. } else if (t == 4) {
  9839. this.radio = [];
  9840. this.noteName = "";
  9841. this.isAnswer = false;
  9842. if (this.askCount > 0) {
  9843. this.updateCount(this.askCount, t);
  9844. } else {
  9845. this.askCount++;
  9846. a = this.askCount;
  9847. this.toolsCount(a, t);
  9848. }
  9849. if (!this.dialogVisible2) {
  9850. this.askJson.askJson =
  9851. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9852. index
  9853. ].toolChoose[i].askJson;
  9854. this.askJson.askTitle =
  9855. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9856. index
  9857. ].toolChoose[i].askTitle;
  9858. this.askJson.askCount =
  9859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9860. index
  9861. ].toolChoose[i].askCount;
  9862. } else {
  9863. this.askJson.askJson = this.chapTools.askJson.askJson;
  9864. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9865. this.askJson.askCount = this.chapTools.askJson.askCount;
  9866. }
  9867. this.dialogVisible5Teacher = true;
  9868. } else if (t == 45) {
  9869. this.noteName = "";
  9870. this.radio = [];
  9871. this.isAnswer = false;
  9872. if (this.askCount > 0) {
  9873. this.updateCount(this.askCount, t);
  9874. } else {
  9875. this.askCount++;
  9876. a = this.askCount;
  9877. this.toolsCount(a, t);
  9878. }
  9879. this.testJson =
  9880. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9881. index
  9882. ].toolChoose[i].testJson;
  9883. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9884. if (this.testJson.testJson[k].type == "2") {
  9885. this.radio.push([]);
  9886. } else {
  9887. this.radio.push("");
  9888. }
  9889. }
  9890. this.dialogVisibleChoiceTeacher = true;
  9891. } else if (t == 41) {
  9892. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9893. .taskJson[index].toolChoose[i].selectJson
  9894. ? JSON.parse(
  9895. JSON.stringify(
  9896. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9897. index
  9898. ].toolChoose[i].selectJson
  9899. )
  9900. )
  9901. : { url: "", select: [], answer: [] };
  9902. if (this.worksStudent[i].length) {
  9903. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9904. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9905. var a = this.worksStudent[i][k].works.split(",");
  9906. for (var ki = 0; ki < a.length; ki++) {
  9907. a[ki] = parseInt(a[ki]);
  9908. }
  9909. this.selectAnswer = {
  9910. answer: a,
  9911. stu: this.worksStudent[i][k].sName,
  9912. };
  9913. break;
  9914. } else {
  9915. this.selectAnswer = { answer: [], stu: "" };
  9916. }
  9917. }
  9918. } else {
  9919. this.selectAnswer = { answer: [], stu: "" };
  9920. }
  9921. this.isSelect = false;
  9922. this.dialogVisibleSelectTeacher = true;
  9923. } else if (t == 47) {
  9924. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9925. .taskJson[index].toolChoose[i].sentenceList
  9926. ? JSON.parse(
  9927. JSON.stringify(
  9928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9929. index
  9930. ].toolChoose[i].sentenceList
  9931. )
  9932. )
  9933. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9934. for (var q = 0; q < this.sentenceList.length; q++) {
  9935. this.sentenceList[q].chooseSenList = [];
  9936. this.sentenceList[q].addChangeSen = [];
  9937. this.sentenceList[q].addChangeSen = JSON.parse(
  9938. JSON.stringify(this.sentenceList[q].addSentence)
  9939. );
  9940. this.sentenceList[q].chooseSenList.length =
  9941. this.sentenceList[q].rightAnswer.length;
  9942. }
  9943. this.dialogVisibleSentenceTeacher = true;
  9944. } else if (t == 48) {
  9945. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9946. .taskJson[index].toolChoose[i].tableJson
  9947. ? JSON.parse(
  9948. JSON.stringify(
  9949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9950. index
  9951. ].toolChoose[i].tableJson
  9952. )
  9953. )
  9954. : { text: "" };
  9955. if (this.worksStudent[i].length) {
  9956. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9957. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9958. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9959. break;
  9960. }
  9961. }
  9962. }
  9963. this.dialogVisibleTableTeacher = true;
  9964. } else if (t == 40) {
  9965. if (this.evalCount > 0) {
  9966. this.updateCount(this.evalCount, t);
  9967. } else {
  9968. this.evalCount++;
  9969. a = this.evalCount;
  9970. this.toolsCount(a, t);
  9971. }
  9972. this.eScore = { eBzText: "", eStar: [] };
  9973. if (this.worksStudent[i].length) {
  9974. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9975. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9976. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9977. this.rateJson =
  9978. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9979. index
  9980. ].toolChoose[i].rateJson;
  9981. break;
  9982. } else {
  9983. this.rateJson =
  9984. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9985. index
  9986. ].toolChoose[i].rateJson;
  9987. }
  9988. }
  9989. } else {
  9990. this.rateJson =
  9991. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9992. index
  9993. ].toolChoose[i].rateJson;
  9994. }
  9995. this.isStar = false;
  9996. this.studentEvalDialogVisibleTeacher = true;
  9997. } else if (t == 3 || t == 1 || t == 7) {
  9998. window.parent.postMessage(
  9999. {
  10000. tools: t + 'teacher',
  10001. cid: this.id,
  10002. stage: this.courseType,
  10003. task: this.taskCount,
  10004. tool: i,
  10005. student: this.sStudent,
  10006. },
  10007. "*"
  10008. );
  10009. }
  10010. },
  10011. setRightAnswer(s, i, j) {
  10012. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10013. if (
  10014. this.sentenceList[i].chooseSenList[q] == undefined ||
  10015. this.sentenceList[i].chooseSenList[q] == ""
  10016. ) {
  10017. this.sentenceList[i].chooseSenList[q] = s;
  10018. this.sentenceList[i].addChangeSen[j] = "";
  10019. break;
  10020. }
  10021. }
  10022. this.$forceUpdate();
  10023. },
  10024. returnCard(r, i, j) {
  10025. var a = this.sentenceList[i].addSentence.indexOf(r);
  10026. this.sentenceList[i].chooseSenList[j] = "";
  10027. this.sentenceList[i].addChangeSen[a] = r;
  10028. this.$forceUpdate();
  10029. },
  10030. // addSentenceTool() {
  10031. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10032. // this.taskCount
  10033. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10034. // this.sentenceList = [
  10035. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10036. // ];
  10037. // this.dialogVisibleSentence = false;
  10038. // },
  10039. toolsCount(a, t) {
  10040. let params = {
  10041. cid: this.id,
  10042. chid: this.courseType,
  10043. uid: this.userid,
  10044. tid: t,
  10045. count: a,
  10046. };
  10047. this.ajax
  10048. .get(this.$store.state.api + "insertToolsCount", params)
  10049. .then((res) => {
  10050. this.selectCount();
  10051. })
  10052. .catch((err) => {
  10053. console.error(err);
  10054. });
  10055. },
  10056. updateCount(c, t) {
  10057. c++;
  10058. let params = {
  10059. cid: this.id,
  10060. chid: this.courseType,
  10061. uid: this.userid,
  10062. tid: t,
  10063. count: c,
  10064. };
  10065. this.ajax
  10066. .get(this.$store.state.api + "updateToolsCount", params)
  10067. .then((res) => {
  10068. this.selectCount();
  10069. })
  10070. .catch((err) => {
  10071. console.error(err);
  10072. });
  10073. },
  10074. checkEva() {
  10075. if (this.evalua != "") {
  10076. for (var i = 0; i < this.evaJuri.length; i++) {
  10077. if (this.evalua == this.evaJuri[i].id) {
  10078. this.eTitle = this.evaJuri[i].title;
  10079. this.eJson = JSON.parse(this.evaJuri[i].content);
  10080. }
  10081. }
  10082. this.$forceUpdate();
  10083. setTimeout(() => {
  10084. this.setMindData();
  10085. }, 0);
  10086. }
  10087. },
  10088. selectEva() {
  10089. let params = {
  10090. oid: this.oid,
  10091. };
  10092. this.ajax
  10093. .get(this.$store.state.api + "selectAllEvaluation", params)
  10094. .then((res) => {
  10095. this.evaJuri = res.data[0];
  10096. })
  10097. .catch((err) => {
  10098. console.error(err);
  10099. });
  10100. },
  10101. setMindData() {
  10102. this.data.data = [];
  10103. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10104. let _eJson = Object.keys(this.eJson);
  10105. let _e = this.eJson;
  10106. for (let i = 0; i < _eJson.length; i++) {
  10107. let element = _e[_eJson[i]];
  10108. this.data.data.push({
  10109. id: element.id,
  10110. parentid: "root",
  10111. topic: element.name,
  10112. });
  10113. let _eJsonc = Object.keys(element.child);
  10114. let _e2 = element.child;
  10115. for (let j = 0; j < _eJsonc.length; j++) {
  10116. let _ec = _e2[_eJsonc[j]];
  10117. this.data.data.push({
  10118. id: _ec.id,
  10119. parentid: element.id,
  10120. topic: _ec.name,
  10121. });
  10122. let _eJsonz = Object.keys(_ec.child);
  10123. let _e3 = _ec.child;
  10124. for (let z = 0; z < _eJsonz.length; z++) {
  10125. let _ez = _e3[_eJsonz[z]];
  10126. this.data.data.push({
  10127. id: _ez.id,
  10128. parentid: _ec.id,
  10129. topic: _ez.name,
  10130. });
  10131. }
  10132. }
  10133. }
  10134. this.$forceUpdate();
  10135. },
  10136. checkFileFull(type, url) {
  10137. this.fullDialogVisible = true;
  10138. this.fulltype = type;
  10139. this.fullUrl = url;
  10140. },
  10141. openSname(n, id, i) {
  10142. this.snameWid = id;
  10143. this.worksSName = n;
  10144. this.toolindex = i
  10145. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10146. this.selectUploadStudent()
  10147. this.dialogVisibleSname = true;
  10148. },
  10149. updateName() {
  10150. let params = {
  10151. n: this.worksSName,
  10152. cid: this.snameWid,
  10153. };
  10154. this.ajax
  10155. .get(this.$store.state.api + "updateCourseWorksName", params)
  10156. .then((res) => {
  10157. this.$message({
  10158. message: "修改成功",
  10159. type: "success",
  10160. });
  10161. this.dialogVisibleSname = false;
  10162. this.getCourseDetail();
  10163. this.snameWid = "";
  10164. this.worksSName = "";
  10165. })
  10166. .catch((err) => {
  10167. console.error(err);
  10168. });
  10169. },
  10170. downloadFile2(f) {
  10171. let url = f.url
  10172. let _this = this;
  10173. let _url = "";
  10174. if (
  10175. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10176. ) {
  10177. _url = url.split(
  10178. "https://view.officeapps.live.com/op/view.aspx?src="
  10179. )[1];
  10180. } else {
  10181. _url = url;
  10182. }
  10183. const x = new XMLHttpRequest();
  10184. x.open("GET", _url, true);
  10185. x.responseType = "blob";
  10186. const loading = _this.$loading.service({
  10187. background: "rgba(255, 255, 255, 0.7)",
  10188. target: document.body,
  10189. text: "文件加载中...",
  10190. });
  10191. // _this.$message.success("文件下载中...");
  10192. x.onload = function (e) {
  10193. loading.close();
  10194. let content = x.response;
  10195. let elink = document.createElement("a");
  10196. elink.download = f.name;
  10197. elink.style.display = "none";
  10198. let blob = new Blob([content]);
  10199. elink.href = URL.createObjectURL(blob);
  10200. document.body.appendChild(elink);
  10201. elink.click();
  10202. document.body.removeChild(elink);
  10203. };
  10204. x.send();
  10205. },
  10206. downloadFile(url) {
  10207. let _this = this;
  10208. let _url = "";
  10209. if (
  10210. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10211. ) {
  10212. _url = url.split(
  10213. "https://view.officeapps.live.com/op/view.aspx?src="
  10214. )[1];
  10215. } else {
  10216. _url = url;
  10217. }
  10218. const x = new XMLHttpRequest();
  10219. x.open("GET", _url, true);
  10220. x.responseType = "blob";
  10221. const loading = _this.$loading.service({
  10222. background: "rgba(255, 255, 255, 0.7)",
  10223. target: document.body,
  10224. text: "文件加载中...",
  10225. });
  10226. // _this.$message.success("文件下载中...");
  10227. x.onload = function (e) {
  10228. loading.close();
  10229. // const url = window.URL.createObjectURL(x.response);
  10230. // const a = document.createElement("a");
  10231. // a.href = url;
  10232. // a.target = "_blank";
  10233. // a.download = url;
  10234. // a.click();
  10235. // a.remove();
  10236. let content = x.response;
  10237. let elink = document.createElement("a");
  10238. elink.download = decodeURI(
  10239. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10240. );
  10241. elink.style.display = "none";
  10242. let blob = new Blob([content]);
  10243. elink.href = URL.createObjectURL(blob);
  10244. document.body.appendChild(elink);
  10245. elink.click();
  10246. document.body.removeChild(elink);
  10247. };
  10248. x.send();
  10249. },
  10250. openLine(url) {
  10251. window.open(url);
  10252. },
  10253. resize() {
  10254. if (document.getElementsByClassName("box_course").length) {
  10255. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10256. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10257. document.getElementsByClassName("navBox")[0].style.height =
  10258. a - 40 + "px";
  10259. }
  10260. this.Stbodywidth =
  10261. document.getElementsByClassName("student_body").length &&
  10262. document.getElementsByClassName("student_body")[0].offsetWidth;
  10263. },
  10264. closeDraw() {
  10265. this.bg = null;
  10266. this.drawShow = false;
  10267. },
  10268. showPicturePaint(url) {
  10269. let params = {
  10270. img: url,
  10271. };
  10272. this.ajax
  10273. .get(this.$store.state.api + "imgToBase64", params)
  10274. .then((res) => {
  10275. console.log(res);
  10276. this.drawShow = true;
  10277. this.bg = res.data[0].img;
  10278. })
  10279. .catch((err) => {
  10280. console.error(err);
  10281. });
  10282. },
  10283. addImgDraw(base64) {
  10284. let file = { name: "批注图.png" };
  10285. let img = this.dataUrlToFile(base64, file);
  10286. this.beforeUpload1(img, 5);
  10287. },
  10288. addImgDrawImG(url) {
  10289. // console.log(url);
  10290. let params = [
  10291. {
  10292. wid: this.commentDetail.wid,
  10293. img: url,
  10294. },
  10295. ];
  10296. this.ajax
  10297. .post(this.$store.state.api + "updateCourseWorks", params)
  10298. .then((res) => {
  10299. this.$message({
  10300. message: "提交成功",
  10301. type: "success",
  10302. });
  10303. this.drawShow = false;
  10304. this.bg = "";
  10305. this.selectSWorks();
  10306. this.selectStudent();
  10307. })
  10308. .catch((err) => {
  10309. this.$message.error("提交失败");
  10310. console.error(err);
  10311. });
  10312. },
  10313. deletePicturePaint() {
  10314. this.$confirm("确定删除此批注吗?", "提示", {
  10315. confirmButtonText: "确定",
  10316. cancelButtonText: "取消",
  10317. type: "warning",
  10318. })
  10319. .then(() => {
  10320. let params = [
  10321. {
  10322. wid: this.commentDetail.wid,
  10323. img: "",
  10324. },
  10325. ];
  10326. this.ajax
  10327. .post(this.$store.state.api + "updateCourseWorks", params)
  10328. .then((res) => {
  10329. this.$message({
  10330. message: "删除成功",
  10331. type: "success",
  10332. });
  10333. this.selectSWorks();
  10334. this.selectStudent();
  10335. })
  10336. .catch((err) => {
  10337. this.$message.error("删除失败");
  10338. console.error(err);
  10339. });
  10340. })
  10341. .catch(() => { });
  10342. },
  10343. getAudioVideo(constraintsData) {
  10344. if (navigator.mediaDevices === undefined) {
  10345. navigator.mediaDevices = {};
  10346. }
  10347. if (navigator.mediaDevices.getUserMedia === undefined) {
  10348. navigator.mediaDevices.getUserMedia = function (constraints) {
  10349. // 首先,如果有getUserMedia的话,就获得它
  10350. var getUserMedia =
  10351. navigator.getUserMedia ||
  10352. navigator.webkitGetUserMedia ||
  10353. navigator.mozGetUserMedia ||
  10354. navigator.msGetUserMedia;
  10355. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10356. if (!getUserMedia) {
  10357. return Promise.reject({ code: 404 });
  10358. }
  10359. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10360. return new Promise(function (resolve, reject) {
  10361. getUserMedia.call(navigator, constraints, resolve, reject);
  10362. });
  10363. };
  10364. }
  10365. return navigator.mediaDevices.getUserMedia(constraintsData);
  10366. },
  10367. /**
  10368. * 开始录制
  10369. */
  10370. startRecording(callback) {
  10371. let _function = (screenStream) => {
  10372. this.addStreamStopListener(screenStream, () => {
  10373. console.log("流停止监听");
  10374. this.stopRecording();
  10375. this.$emit("streamStop", {});
  10376. // this.stopRecording();
  10377. });
  10378. var options = {
  10379. type: "video",
  10380. mimeType: "video/webm",
  10381. disableLogs: false,
  10382. getNativeBlob: false, // enable it for longer recordings
  10383. ignoreMutedMedia: false,
  10384. };
  10385. // this.video.srcObject = screenStream;
  10386. this.recorder = RecordRTC(screenStream, options);
  10387. this.recorder.startRecording();
  10388. this.recorder.screen = screenStream;
  10389. this.videoStart = true;
  10390. // callback(true);
  10391. };
  10392. this.getAudioVideo({ audio: true })
  10393. .then((res) => {
  10394. this.captureScreen(_function, true);
  10395. console.log("已点击允许,开启成功");
  10396. })
  10397. .catch((err) => {
  10398. // console.log('浏览器不支持,请更换浏览器')
  10399. // } else {
  10400. this.captureScreen(_function, false);
  10401. console.log("请检查是否存在麦克风");
  10402. });
  10403. },
  10404. /**
  10405. * 停止录制
  10406. */
  10407. stopRecording(callback) {
  10408. this.recorder.stopRecording(() => {
  10409. // this.video.src = this.video.srcObject = null;
  10410. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10411. const url = URL.createObjectURL(this.recorder.getBlob());
  10412. const a = document.createElement("a"); //this.fileName+
  10413. let videoFile = new File(
  10414. [this.recorder.getBlob()],
  10415. this.courseDetail.title + "录屏.mp4",
  10416. {
  10417. type: "video/mp4",
  10418. }
  10419. );
  10420. let downloadUrl = URL.createObjectURL(videoFile);
  10421. document.body.appendChild(a);
  10422. a.style.display = "none";
  10423. a.href = url;
  10424. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10425. a.click();
  10426. this.recorder.screen.stop();
  10427. this.recorder.destroy();
  10428. this.recorder = null;
  10429. this.videoStart = false;
  10430. // callback(false);
  10431. });
  10432. },
  10433. //初始化
  10434. captureScreen(callback, type) {
  10435. if (navigator.getDisplayMedia) {
  10436. //录制结束,文件下载
  10437. navigator
  10438. .getDisplayMedia({
  10439. video: true,
  10440. })
  10441. .then((screenStream) => {
  10442. if (type) {
  10443. navigator.mediaDevices
  10444. .getUserMedia({ audio: true })
  10445. .then((mic) => {
  10446. screenStream.addTrack(mic.getTracks()[0]);
  10447. callback(screenStream);
  10448. });
  10449. } else {
  10450. callback(screenStream);
  10451. }
  10452. })
  10453. .catch(function (error) {
  10454. console.log("error", error);
  10455. });
  10456. } else if (navigator.mediaDevices.getDisplayMedia) {
  10457. navigator.mediaDevices
  10458. .getDisplayMedia({
  10459. video: true,
  10460. })
  10461. .then((screenStream) => {
  10462. if (type) {
  10463. navigator.mediaDevices
  10464. .getUserMedia({ audio: true })
  10465. .then((mic) => {
  10466. screenStream.addTrack(mic.getTracks()[0]);
  10467. callback(screenStream);
  10468. });
  10469. } else {
  10470. callback(screenStream);
  10471. }
  10472. })
  10473. .catch(function (error) {
  10474. console.log("error", error);
  10475. });
  10476. } else {
  10477. var error = "getDisplayMedia API are not supported in this browser.";
  10478. console.log("error", error);
  10479. alert(error);
  10480. }
  10481. },
  10482. //流监听
  10483. addStreamStopListener(stream, callback) {
  10484. stream.addEventListener(
  10485. "ended",
  10486. function () {
  10487. callback();
  10488. callback = function () { };
  10489. },
  10490. false
  10491. );
  10492. stream.addEventListener(
  10493. "inactive",
  10494. function () {
  10495. callback();
  10496. callback = function () { };
  10497. },
  10498. false
  10499. );
  10500. stream.getTracks().forEach(function (track) {
  10501. track.addEventListener(
  10502. "ended",
  10503. function () {
  10504. callback();
  10505. callback = function () { };
  10506. },
  10507. false
  10508. );
  10509. track.addEventListener(
  10510. "inactive",
  10511. function () {
  10512. callback();
  10513. callback = function () { };
  10514. },
  10515. false
  10516. );
  10517. });
  10518. },
  10519. updateGroup() {
  10520. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10521. this.dialogVisibleGroup2 = true;
  10522. },
  10523. updateGroupJson() {
  10524. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10525. if (
  10526. this.groupStudentUid[this.toolindex][i].length >
  10527. this.groupJson2.number
  10528. ) {
  10529. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10530. return;
  10531. }
  10532. }
  10533. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10535. this.taskCount
  10536. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10537. let params = [
  10538. {
  10539. cid: this.id,
  10540. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  10541. uid: this.userid,
  10542. unitIndex: this.courseType,
  10543. },
  10544. ];
  10545. this.ajax
  10546. .post(this.$store.state.api + "updateWorkNew4", params)
  10547. .then((res) => {
  10548. this.$message.success("设置成功");
  10549. this.getCourseDetail(2);
  10550. this.dialogVisibleGroup2 = false;
  10551. this.groupJson2 = {};
  10552. this.$forceUpdate();
  10553. })
  10554. .catch((err) => {
  10555. this.$message.error("网络不佳");
  10556. console.error(err);
  10557. });
  10558. },
  10559. lockChair() {
  10560. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10561. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10562. this.updateGroupJson();
  10563. },
  10564. selectGroup(index) {
  10565. this.getCourseDetail(2, index);
  10566. },
  10567. joinGroup(index) {
  10568. if (this.groupJson.islock == 2) {
  10569. this.$message.error("位置已被锁定,无法加入");
  10570. return;
  10571. }
  10572. if (
  10573. this.groupStudent[this.toolindex][index].length >
  10574. this.groupJson.number ||
  10575. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10576. ) {
  10577. this.$message.error("位置已满,无法加入");
  10578. return;
  10579. }
  10580. let params = [
  10581. {
  10582. cid: this.id,
  10583. stage: this.courseType,
  10584. task: this.taskCount,
  10585. tool: this.toolindex,
  10586. g: index,
  10587. uid: this.userid,
  10588. },
  10589. ];
  10590. this.ajax
  10591. .post(this.$store.state.api + "joinGroup", params)
  10592. .then((res) => {
  10593. this.$message.success("加入成功");
  10594. this.getCourseDetail();
  10595. })
  10596. .catch((err) => {
  10597. this.$message.error("网络不佳");
  10598. console.error(err);
  10599. });
  10600. },
  10601. exitGroup(id) {
  10602. if (this.groupJson.islock == 2) {
  10603. this.$message.error("位置已被锁定,无法退出");
  10604. return;
  10605. }
  10606. let params = [
  10607. {
  10608. gid: id,
  10609. },
  10610. ];
  10611. this.ajax
  10612. .post(this.$store.state.api + "exitGroup", params)
  10613. .then((res) => {
  10614. this.$message.success("退出成功");
  10615. this.getCourseDetail();
  10616. })
  10617. .catch((err) => {
  10618. this.$message.error("网络不佳");
  10619. console.error(err);
  10620. });
  10621. },
  10622. groupUpload(index, task, gindex) {
  10623. this.taskCount = task;
  10624. this.toolindex = index;
  10625. this.groupIndex = gindex;
  10626. this.dialogVisibleGroupWork = true;
  10627. },
  10628. updateGroupChair(user) {
  10629. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10630. el.label = index;
  10631. return index != user.group;
  10632. });
  10633. this.updateGroupUser = user;
  10634. this.dialogVisibleUpdateGroup = true;
  10635. },
  10636. updateChair() {
  10637. if (
  10638. this.groupStudent[this.toolindex][this.checkChair].length >
  10639. this.groupJson.number ||
  10640. this.groupStudent[this.toolindex][this.checkChair].length ==
  10641. this.groupJson.number
  10642. ) {
  10643. this.$message.error("位置已满,无法加入");
  10644. return;
  10645. }
  10646. let params = [
  10647. {
  10648. cid: this.id,
  10649. stage: this.courseType,
  10650. task: this.taskCount,
  10651. tool: this.toolindex,
  10652. g: this.checkChair,
  10653. uid: this.updateGroupUser.userid,
  10654. },
  10655. ];
  10656. this.ajax
  10657. .post(this.$store.state.api + "joinGroup", params)
  10658. .then((res) => {
  10659. this.$message.success("修改成功");
  10660. this.updateGroupUser = {};
  10661. this.checkChair = "";
  10662. this.updateGroupArray = {};
  10663. this.dialogVisibleUpdateGroup = false;
  10664. this.getCourseDetail();
  10665. })
  10666. .catch((err) => {
  10667. this.$message.error("网络不佳");
  10668. console.error(err);
  10669. });
  10670. },
  10671. deleteGroupChair(gindex) {
  10672. this.checkDeleteGroup = [];
  10673. this.deleteGroupUser = JSON.parse(
  10674. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10675. );
  10676. this.deleteGroupArray = this.groupJson.group[gindex];
  10677. this.groupIndex = gindex;
  10678. this.dialogVisibleDeleteGroup = true;
  10679. },
  10680. async deleteChair() {
  10681. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10682. const gid =
  10683. this.groupStudent[this.toolindex][this.groupIndex][
  10684. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10685. this.checkDeleteGroup[i]
  10686. )
  10687. ];
  10688. let params = [
  10689. {
  10690. gid: gid.id,
  10691. },
  10692. ];
  10693. var a = await this.deleteChairA(params);
  10694. if (i == this.checkDeleteGroup.length - 1) {
  10695. this.$message.success("退出成功");
  10696. this.dialogVisibleDeleteGroup = false;
  10697. this.deleteGroupUser = [];
  10698. this.deleteGroupArray = {};
  10699. this.groupIndex = "";
  10700. this.checkDeleteGroup = [];
  10701. this.getCourseDetail();
  10702. }
  10703. }
  10704. },
  10705. deleteChairA(params) {
  10706. return new Promise((resolve, reject) => {
  10707. this.ajax
  10708. .post(this.$store.state.api + "exitGroup", params)
  10709. .then((res) => {
  10710. resolve(1);
  10711. })
  10712. .catch((err) => {
  10713. this.$message.error("网络不佳");
  10714. console.error(err);
  10715. });
  10716. });
  10717. },
  10718. contract(i) {
  10719. if (this.isCloseList[i].isClose == 0) {
  10720. this.isCloseList[i].isClose = 1;
  10721. } else {
  10722. this.isCloseList[i].isClose = 0;
  10723. }
  10724. this.$forceUpdate();
  10725. },
  10726. },
  10727. directives: {
  10728. // 使用局部注册指令的方式
  10729. resize: {
  10730. // 指令的名称
  10731. bind(el, binding) {
  10732. // el为绑定的元素,binding为绑定给指令的对象
  10733. let width = "",
  10734. height = "";
  10735. function isReize() {
  10736. const style = document.defaultView.getComputedStyle(el);
  10737. if (width !== style.width || height !== style.height) {
  10738. binding.value(); // 关键
  10739. }
  10740. width = style.width;
  10741. height = style.height;
  10742. }
  10743. el.__vueSetInterval__ = setInterval(isReize, 300);
  10744. },
  10745. unbind(el) {
  10746. clearInterval(el.__vueSetInterval__);
  10747. },
  10748. },
  10749. },
  10750. beforeDestroy() {
  10751. window.onresize = null;
  10752. clearInterval(this.timer);
  10753. this.timer = null;
  10754. clearInterval(this.opertimer);
  10755. this.opertimer = null;
  10756. },
  10757. computed: {
  10758. contentConvent() {
  10759. return function (c) {
  10760. return c
  10761. ? c
  10762. .replaceAll(/\r\n/g, "<br/>")
  10763. .replaceAll(/\n/g, "<br/>")
  10764. .replaceAll(/\s/g, " &nbsp")
  10765. : "";
  10766. };
  10767. },
  10768. checkUpload(){
  10769. return function(){
  10770. var studentK = [];
  10771. if (this.plworkFile.length > 0) {
  10772. for (var z = 0; z < this.plworkFile.length; z++) {
  10773. studentK.push(this.plworkFile[z].username);
  10774. }
  10775. studentK = studentK.join(",");
  10776. }
  10777. var a = this.uploadStudentJuri.filter((el)=>{
  10778. return studentK.indexOf(el.userid) == -1
  10779. });
  10780. return a
  10781. }
  10782. }
  10783. },
  10784. mounted() {
  10785. if (this.screenType == 2) {
  10786. window.parent.postMessage({ allScreen: 4 }, "*");
  10787. } else if (this.screenType == 3) {
  10788. window.parent.postMessage({ allScreen: 5 }, "*");
  10789. } else if (this.screenType == 1) {
  10790. window.parent.postMessage({ allScreen: 6 }, "*");
  10791. }
  10792. this.setOperationTime();
  10793. this.selectEva();
  10794. this.getCourseDetail();
  10795. this.selectCount();
  10796. this.getHomeWork();
  10797. this.toolIndex = null
  10798. this.contentDialog = true;
  10799. this.setContent2(true)
  10800. if (this.tType == 4) {
  10801. this.pzDialog = true;
  10802. this.selectPz();
  10803. }
  10804. document.scrollingElement.scrollTop = 0;
  10805. window.addEventListener("resize", () => {
  10806. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10807. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10808. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10809. });
  10810. let _this = this;
  10811. setTimeout(() => {
  10812. // _this.vedioTime = [];
  10813. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10814. // _this.vedioTime[i] = document.getElementsByClassName(
  10815. // "vjs-duration-display"
  10816. // )[i].textContent;
  10817. // }
  10818. }, 1000);
  10819. },
  10820. };
  10821. </script>
  10822. <style scoped>
  10823. @media screen and (max-width: 1280px) {
  10824. /* .courseIndex > div:first-child(2) {
  10825. width: 15% !important;
  10826. } */
  10827. /* .navText {
  10828. width: 120px !important;
  10829. } */
  10830. .evaCss {
  10831. flex-direction: column !important;
  10832. align-items: center !important;
  10833. }
  10834. .dialog_diy1>>>.el-dialog {
  10835. width: 100% !important;
  10836. }
  10837. .rightWidthCss {
  10838. width: 100% !important;
  10839. }
  10840. .dialog_diy3>>>.el-dialog {
  10841. width: 100% !important;
  10842. }
  10843. /* .textTitle >>> .el-form-item__label {
  10844. width: 150px !important;
  10845. } */
  10846. }
  10847. .evaCssMax {
  10848. flex-direction: column !important;
  10849. align-items: center !important;
  10850. }
  10851. .dialog_diy>>>.el-dialog {
  10852. margin-top: 10vh !important;
  10853. }
  10854. .body_student {
  10855. width: 77%;
  10856. height: 100%;
  10857. position: absolute;
  10858. left: 22%;
  10859. top: 0;
  10860. }
  10861. .student_head {
  10862. width: 100%;
  10863. margin: 0 auto;
  10864. padding-bottom: 20px;
  10865. display: flex;
  10866. flex-direction: column;
  10867. flex-wrap: nowrap;
  10868. align-items: flex-start;
  10869. justify-content: flex-start;
  10870. }
  10871. .pb_left {
  10872. width: 20%;
  10873. margin-right: 10px;
  10874. background: rgb(255, 255, 255);
  10875. padding-right: 10px;
  10876. position: fixed;
  10877. height: 100%;
  10878. }
  10879. .wheel>img,
  10880. .project>img,
  10881. .star>img,
  10882. .evaluate>img,
  10883. .up_photo>img,
  10884. .chapter_add>img,
  10885. .deleteWord>img,
  10886. .question>img,
  10887. .homework>img {
  10888. width: 100%;
  10889. height: 100%;
  10890. }
  10891. .upCover>img {
  10892. width: 131px;
  10893. height: 69px;
  10894. object-fit: cover;
  10895. }
  10896. .upCover {
  10897. width: calc(100% / 3.5);
  10898. position: relative;
  10899. margin: 0 15px 10px 0;
  10900. display: flex;
  10901. flex-direction: column;
  10902. flex-wrap: nowrap;
  10903. justify-content: center;
  10904. align-content: center;
  10905. align-items: center;
  10906. height: fit-content;
  10907. }
  10908. .upCover2 {
  10909. width: 100%;
  10910. position: relative;
  10911. margin: 0 15px 10px 0;
  10912. display: flex;
  10913. flex-direction: column;
  10914. flex-wrap: nowrap;
  10915. justify-content: center;
  10916. align-content: center;
  10917. align-items: center;
  10918. }
  10919. .upCover2>img {
  10920. width: 100%;
  10921. height: 90px;
  10922. object-fit: contain;
  10923. }
  10924. .chapter_add {
  10925. width: 120px;
  10926. position: relative;
  10927. text-align: center;
  10928. }
  10929. .isAddThings {
  10930. margin-top: 20px;
  10931. position: relative;
  10932. text-align: center;
  10933. background: #f7f8fa;
  10934. height: 90px;
  10935. width: 90px;
  10936. display: flex;
  10937. flex-direction: column;
  10938. justify-content: center;
  10939. }
  10940. .deleteWord {
  10941. width: 22px;
  10942. height: 22px;
  10943. position: absolute;
  10944. right: -5px;
  10945. top: -5px;
  10946. cursor: pointer;
  10947. }
  10948. .box_course {
  10949. /* width: 60%; */
  10950. width: 81%;
  10951. }
  10952. .wheel {
  10953. width: 100%;
  10954. /* height: 100%; */
  10955. height: 650px;
  10956. }
  10957. .right_box {
  10958. display: flex;
  10959. flex-direction: column;
  10960. margin-left: 30px;
  10961. justify-content: space-around;
  10962. }
  10963. .right_box_title {
  10964. font-size: 23px;
  10965. }
  10966. .people {
  10967. display: flex;
  10968. }
  10969. .student_body {
  10970. width: 100%;
  10971. margin: 0 auto;
  10972. margin-top: 10px;
  10973. padding: 0 0 20px;
  10974. }
  10975. .study_top {
  10976. margin-top: 70px;
  10977. width: 100%;
  10978. /* overflow: auto; */
  10979. height: auto;
  10980. }
  10981. .study_top .checkbox {
  10982. display: flex;
  10983. align-items: center;
  10984. padding: 15px 0 15px 30px;
  10985. flex: 0 0 auto;
  10986. font-weight: bold;
  10987. border-bottom: 1px solid #eee;
  10988. }
  10989. .study_top .check {
  10990. padding-bottom: 5px;
  10991. text-align: center;
  10992. cursor: pointer;
  10993. height: 30px;
  10994. box-sizing: border-box;
  10995. display: flex;
  10996. }
  10997. .study_top .checked {
  10998. border-bottom: 4px solid #3fc6a0;
  10999. padding-bottom: 5px;
  11000. color: #3fc6a0;
  11001. display: flex;
  11002. height: 35px;
  11003. }
  11004. .study_top .checked>div,
  11005. .study_top .check>div {
  11006. margin-right: 5px;
  11007. }
  11008. .videoTop {
  11009. display: flex;
  11010. flex-direction: row;
  11011. justify-content: space-between;
  11012. background: #fff;
  11013. align-items: center;
  11014. width: 95%;
  11015. padding: 20px;
  11016. }
  11017. .upbtn {
  11018. margin: 25px;
  11019. background: #70afdb;
  11020. color: #fff;
  11021. width: 120px;
  11022. text-align: center;
  11023. height: 30px;
  11024. line-height: 30px;
  11025. font-size: 13px;
  11026. border-radius: 5px;
  11027. cursor: pointer;
  11028. }
  11029. .filebox {
  11030. display: flex;
  11031. flex-wrap: wrap;
  11032. flex-direction: column;
  11033. padding: 15px 0 5px;
  11034. }
  11035. .filebox .tooldetail {
  11036. width: 100%;
  11037. margin: 0px 12px;
  11038. background: rgb(247, 247, 247);
  11039. padding: 20px;
  11040. line-height: 30px;
  11041. word-break: break-word;
  11042. }
  11043. .file {
  11044. display: flex;
  11045. flex-direction: column;
  11046. align-items: center;
  11047. justify-content: center;
  11048. cursor: pointer;
  11049. width: 200px;
  11050. }
  11051. .file div {
  11052. margin-top: 10px;
  11053. width: 150px;
  11054. text-align: center;
  11055. overflow: hidden;
  11056. white-space: nowrap;
  11057. text-overflow: ellipsis;
  11058. }
  11059. .media {
  11060. display: flex;
  11061. flex-direction: column;
  11062. align-items: center;
  11063. justify-content: center;
  11064. margin: 0 20px 20px 0;
  11065. cursor: pointer;
  11066. margin: 12px 0 5px 15px;
  11067. overflow: hidden;
  11068. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11069. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11070. box-sizing: border-box;
  11071. }
  11072. .media img {
  11073. height: 90px;
  11074. width: 160px;
  11075. object-fit: cover;
  11076. }
  11077. .media .title {
  11078. padding: 5px;
  11079. text-align: left;
  11080. width: 100%;
  11081. box-sizing: border-box;
  11082. }
  11083. .media .btn {
  11084. width: 100%;
  11085. height: 35px;
  11086. line-height: 35px;
  11087. color: #fff;
  11088. background: #606060;
  11089. text-align: center;
  11090. overflow: hidden;
  11091. white-space: nowrap;
  11092. text-overflow: ellipsis;
  11093. }
  11094. .detail_content_top {
  11095. width: 100%;
  11096. padding: 25px 0 25px 0;
  11097. }
  11098. .detail_title {
  11099. text-align: center;
  11100. font-size: 24px;
  11101. }
  11102. .detail_time {
  11103. font-size: 13px;
  11104. padding: 15px 0 0 40px;
  11105. }
  11106. .detail_content {
  11107. line-height: 2pc;
  11108. width: 90%;
  11109. margin: 0 auto;
  11110. padding-top: 30px;
  11111. text-indent: 30px;
  11112. overflow: auto;
  11113. height: 200px;
  11114. }
  11115. .score_box>>>.el-rate {
  11116. margin-left: 10px;
  11117. }
  11118. .dialog_change>>>.el-dialog {
  11119. border-radius: 5px;
  11120. }
  11121. .dialog_change>>>.el-dialog__header {
  11122. background: #f2f2f2;
  11123. text-align: center;
  11124. }
  11125. .dialog_change>>>.el-dialog__title {
  11126. line-height: 5px;
  11127. }
  11128. .dialog_change>>>.el-dialog__body {
  11129. background: #fff;
  11130. padding: 10px 20px;
  11131. }
  11132. .score_box {
  11133. display: flex;
  11134. align-items: center;
  11135. margin-bottom: 18px;
  11136. margin-top: 20px;
  11137. }
  11138. .up_photo {
  11139. width: 120px;
  11140. cursor: pointer;
  11141. margin-top: 10px;
  11142. }
  11143. .up_photo2 {
  11144. width: 180px;
  11145. box-sizing: border-box;
  11146. min-width: 180px;
  11147. height: 180px;
  11148. max-height: 180px;
  11149. min-height: 180px;
  11150. cursor: pointer;
  11151. display: flex;
  11152. flex-direction: column;
  11153. align-items: center;
  11154. justify-content: center;
  11155. background: rgb(242, 246, 255);
  11156. /* padding: 25px; */
  11157. margin-bottom: 10px;
  11158. }
  11159. .up_photo2 img {
  11160. width: 50%;
  11161. height: auto;
  11162. }
  11163. .up_photo2 span {
  11164. color: #898989;
  11165. }
  11166. .plworkBox {
  11167. display: flex;
  11168. align-items: center;
  11169. margin-top: 10px;
  11170. flex-wrap: wrap;
  11171. }
  11172. .upload_send {
  11173. margin: 30px auto 30px;
  11174. width: 60%;
  11175. background: #169bd6;
  11176. text-align: center;
  11177. height: 35px;
  11178. line-height: 35px;
  11179. color: #fff;
  11180. border-radius: 5px;
  11181. cursor: pointer;
  11182. }
  11183. .marginT {
  11184. margin-top: 20px;
  11185. }
  11186. .cd_content_steps {
  11187. display: flex;
  11188. width: 90%;
  11189. justify-content: space-around;
  11190. border-top: 1px solid #eeeeee;
  11191. }
  11192. .cd_steps_box {
  11193. display: flex;
  11194. justify-content: center;
  11195. align-items: center;
  11196. flex-direction: column;
  11197. cursor: pointer;
  11198. }
  11199. .first {
  11200. display: flex;
  11201. align-items: center;
  11202. margin: 15px 0 20px 0;
  11203. font-size: 20px;
  11204. }
  11205. .first>div:nth-child(2) {
  11206. font-size: 16px !important;
  11207. padding-left: 10px;
  11208. line-height: 26px;
  11209. box-sizing: border-box;
  11210. }
  11211. .blue_box_one {
  11212. text-align: center;
  11213. color: #fff;
  11214. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11215. border-radius: 7px;
  11216. margin: 10px;
  11217. cursor: pointer;
  11218. width: 95%;
  11219. height: 45px;
  11220. display: flex;
  11221. flex-direction: row;
  11222. justify-content: flex-start;
  11223. align-items: center;
  11224. }
  11225. .blue_box_one>div:nth-child(1) {
  11226. line-height: 30px;
  11227. margin: 0 5px 0 10px;
  11228. width: 30%;
  11229. min-width: 70px;
  11230. border-radius: 4px;
  11231. }
  11232. .blue_box_one>div:nth-child(2) {
  11233. white-space: nowrap;
  11234. text-overflow: ellipsis;
  11235. overflow: hidden;
  11236. word-break: break-all;
  11237. width: 70%;
  11238. text-align: left;
  11239. margin-right: 10px;
  11240. max-width: calc(100% - 85px);
  11241. }
  11242. .blue_box_one>div:nth-child(2):hover {
  11243. overflow: hidden;
  11244. text-overflow: ellipsis;
  11245. white-space: nowrap;
  11246. cursor: pointer;
  11247. }
  11248. .upFile {
  11249. margin: 0 auto;
  11250. width: 120px;
  11251. background: #70afdb;
  11252. color: #fff;
  11253. height: 30px;
  11254. text-align: center;
  11255. line-height: 30px;
  11256. border-radius: 5px;
  11257. font-size: 14px;
  11258. cursor: pointer;
  11259. }
  11260. .courseTitle {
  11261. background: #205cc6;
  11262. width: 85%;
  11263. margin: 10px auto;
  11264. color: #fff;
  11265. border-radius: 5px;
  11266. padding: 10px 10px;
  11267. display: flex;
  11268. flex-direction: row;
  11269. align-items: center;
  11270. justify-content: space-between;
  11271. text-align: center;
  11272. }
  11273. .courseTitle .ctitle {
  11274. font-weight: bold;
  11275. font-size: 20px;
  11276. white-space: nowrap;
  11277. overflow: hidden;
  11278. text-overflow: ellipsis;
  11279. }
  11280. .courseTitle .inviteBox {
  11281. font-size: 14px;
  11282. margin-top: 5px;
  11283. color: #a6cbff;
  11284. }
  11285. .courseTitle>>>.el-tooltip {
  11286. width: 100%;
  11287. white-space: nowrap;
  11288. overflow: hidden;
  11289. text-overflow: ellipsis;
  11290. word-break: break-word;
  11291. }
  11292. .ml {
  11293. margin-left: 20px;
  11294. color: #5b7dba;
  11295. border-left: 3px solid #5b7dba;
  11296. padding-left: 5px;
  11297. font-weight: bold;
  11298. }
  11299. .return {
  11300. width: 2rem;
  11301. height: 2rem;
  11302. cursor: pointer;
  11303. }
  11304. .return>img {
  11305. width: 100%;
  11306. height: 100%;
  11307. }
  11308. .returnBtn {
  11309. background: #499eef;
  11310. width: 65px;
  11311. height: 30px;
  11312. color: #fff;
  11313. text-align: center;
  11314. line-height: 32px;
  11315. margin-right: 20px;
  11316. cursor: pointer;
  11317. border-radius: 5px;
  11318. font-size: 14px;
  11319. }
  11320. .tool {
  11321. display: flex;
  11322. flex-direction: column;
  11323. flex-wrap: nowrap;
  11324. width: 13%;
  11325. margin: 0 30px;
  11326. align-items: center;
  11327. }
  11328. .whiteBIcon {
  11329. width: 150px;
  11330. cursor: pointer;
  11331. }
  11332. .whiteBIcon>img {
  11333. width: 100%;
  11334. height: 100%;
  11335. }
  11336. .mask {
  11337. background-color: rgba(0, 0, 0, 0);
  11338. position: fixed;
  11339. top: 0;
  11340. left: 0;
  11341. width: 100%;
  11342. height: 100%;
  11343. z-index: 20000;
  11344. display: flex;
  11345. align-items: center;
  11346. justify-content: center;
  11347. }
  11348. .progressBox {
  11349. width: 500px;
  11350. height: 180px;
  11351. background: #fff;
  11352. border-radius: 10px;
  11353. box-shadow: 0 0 6px 1px #bfbfbf;
  11354. display: flex;
  11355. align-items: center;
  11356. justify-content: center;
  11357. flex-direction: column;
  11358. position: relative;
  11359. color: #6c6c6c;
  11360. }
  11361. .progressBox>>>.el-progress-bar__outer {
  11362. background-color: #d1dfff !important;
  11363. }
  11364. .progressBox .lbox {
  11365. height: 50px;
  11366. font-size: 19px;
  11367. display: flex;
  11368. align-items: center;
  11369. color: #747474;
  11370. }
  11371. .progressBox .lbox img {
  11372. width: 40px;
  11373. margin-right: 20px;
  11374. }
  11375. .closeCss {
  11376. position: absolute;
  11377. top: 8px;
  11378. right: 8px;
  11379. cursor: pointer;
  11380. width: 20px;
  11381. height: 20px;
  11382. }
  11383. .closeCss>img {
  11384. width: 100%;
  11385. height: 100%;
  11386. }
  11387. .uploadVedio {
  11388. display: flex;
  11389. flex-direction: column;
  11390. flex-wrap: nowrap;
  11391. justify-content: center;
  11392. align-items: center;
  11393. margin: 0 15px 10px 0;
  11394. }
  11395. .uploadVedio>img {
  11396. width: 30px;
  11397. height: 30px;
  11398. }
  11399. .uploadVedio>span {
  11400. white-space: nowrap;
  11401. overflow: hidden;
  11402. text-overflow: ellipsis;
  11403. width: 75px;
  11404. margin-top: 7px;
  11405. }
  11406. .picName {
  11407. white-space: nowrap;
  11408. overflow: hidden;
  11409. text-overflow: ellipsis;
  11410. width: 75px;
  11411. margin-top: 7px;
  11412. }
  11413. .new_top {
  11414. display: flex;
  11415. background: #fff;
  11416. flex-direction: row;
  11417. justify-content: flex-start;
  11418. align-items: center;
  11419. height: 60px;
  11420. position: relative;
  11421. }
  11422. .before {
  11423. position: absolute;
  11424. background: #c3dad4;
  11425. width: 6px;
  11426. height: 100%;
  11427. }
  11428. .courseIndex {
  11429. display: flex;
  11430. flex-direction: row;
  11431. align-items: center;
  11432. width: calc(100% - 520px);
  11433. }
  11434. .courseIndex>div:nth-child(1) {
  11435. margin: 0 20px;
  11436. padding-left: 5px;
  11437. font-size: 24px;
  11438. min-width: 100px;
  11439. font-weight: bold;
  11440. border-left: 4px solid #3363b9;
  11441. height: 35px;
  11442. text-align: center;
  11443. line-height: 35px;
  11444. }
  11445. .courseIndex>div:nth-child(2) {
  11446. font-size: 23px;
  11447. /* width: 300px; */
  11448. max-width: calc(100% - 180px);
  11449. white-space: nowrap;
  11450. overflow: hidden;
  11451. text-overflow: ellipsis;
  11452. }
  11453. .courseIndex>div:nth-child(3) {
  11454. border-bottom: 1px solid #d7d7d7;
  11455. padding-bottom: 5px;
  11456. background: #49a0f0;
  11457. width: 55px;
  11458. min-width: 55px;
  11459. border-radius: 5px;
  11460. color: #fff;
  11461. text-align: center;
  11462. height: 20px;
  11463. line-height: 26px;
  11464. font-size: 14px;
  11465. margin: 0 0 0 10px;
  11466. }
  11467. .course_text {
  11468. padding: 20px 0 0 15px;
  11469. text-indent: 30px;
  11470. width: 80%;
  11471. min-height: 20px;
  11472. }
  11473. .vedioList {
  11474. background: #f2f2f2;
  11475. border: 1px solid #ececec;
  11476. /* width: 38.8%; */
  11477. width: 100%;
  11478. height: 445px;
  11479. border-radius: 10px;
  11480. overflow: hidden;
  11481. }
  11482. .vedioNav {
  11483. margin: 10px 0 0 15px;
  11484. border-bottom: 1px solid #d7d7d7;
  11485. padding-bottom: 5px;
  11486. background: #96d1ff;
  11487. width: 55px;
  11488. min-width: 55px;
  11489. border-radius: 5px;
  11490. color: #fff;
  11491. text-align: center;
  11492. height: 20px;
  11493. line-height: 26px;
  11494. font-size: 14px;
  11495. }
  11496. .queTop {
  11497. display: flex;
  11498. padding: 20px 0 20px 30px;
  11499. width: 100%;
  11500. flex-direction: row;
  11501. justify-content: flex-start;
  11502. align-items: center;
  11503. border-bottom: 1px solid #eeeeee;
  11504. box-sizing: border-box;
  11505. }
  11506. .question {
  11507. width: 40px;
  11508. margin-right: 10px;
  11509. margin-top: 7px;
  11510. }
  11511. .queTitle {
  11512. margin-left: 5px;
  11513. font-size: 25px;
  11514. display: flex;
  11515. align-items: center;
  11516. }
  11517. .addEditor {
  11518. width: 100px;
  11519. height: 30px;
  11520. background: #42cda6;
  11521. color: #fff;
  11522. border-radius: 5px;
  11523. text-align: center;
  11524. line-height: 30px;
  11525. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11526. cursor: pointer;
  11527. }
  11528. .vedioName {
  11529. /* text-overflow: ellipsis;
  11530. top: 8px;
  11531. font-size: 14px;
  11532. overflow: hidden;
  11533. width: 100%;
  11534. word-break: break-all;
  11535. white-space: nowrap; */
  11536. cursor: pointer;
  11537. margin: 0px 0px 10px 5px;
  11538. white-space: nowrap;
  11539. overflow: hidden;
  11540. text-overflow: ellipsis;
  11541. width: 100%;
  11542. }
  11543. .vedioTime {
  11544. width: 35px;
  11545. position: absolute;
  11546. color: #fff;
  11547. bottom: 0px;
  11548. right: 0px;
  11549. text-align: center;
  11550. background: #46411f;
  11551. height: 20px;
  11552. font-size: 14px;
  11553. line-height: 20px;
  11554. }
  11555. .homework {
  11556. width: 200px;
  11557. display: flex;
  11558. flex-direction: column;
  11559. flex-wrap: nowrap;
  11560. align-items: center;
  11561. cursor: pointer;
  11562. }
  11563. .homebox {
  11564. display: flex;
  11565. flex-wrap: wrap;
  11566. flex-direction: row;
  11567. justify-content: flex-start;
  11568. align-items: center;
  11569. padding: 15px 0;
  11570. }
  11571. .isChooseActive {
  11572. color: #3e88f4;
  11573. border-bottom: 2px solid #2f80f3;
  11574. }
  11575. .chooseWho {
  11576. display: flex;
  11577. width: 100%;
  11578. flex-direction: row;
  11579. flex-wrap: nowrap;
  11580. justify-content: flex-start;
  11581. padding-bottom: 10px;
  11582. }
  11583. .chooseWho>div {
  11584. cursor: pointer;
  11585. padding-bottom: 10px;
  11586. margin: 0 30px;
  11587. }
  11588. .addPoint>div>img {
  11589. cursor: pointer;
  11590. margin: 0 10px;
  11591. width: 85px;
  11592. border-radius: 15px;
  11593. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11594. }
  11595. .addPoint>div {
  11596. display: flex;
  11597. flex-direction: column;
  11598. flex-wrap: nowrap;
  11599. align-items: center;
  11600. }
  11601. .isBorder>div {
  11602. margin: 0 0 10px 0;
  11603. align-items: flex-start !important;
  11604. }
  11605. .noiframeBox {
  11606. display: flex;
  11607. flex-wrap: wrap;
  11608. }
  11609. .iframeBox iframe {
  11610. width: 100%;
  11611. height: 800px;
  11612. border: none;
  11613. margin-bottom: 20px;
  11614. border: 1px solid #ccc;
  11615. }
  11616. .upload_toolBtn {
  11617. background: #6b92c9;
  11618. color: #fff;
  11619. width: 110px;
  11620. text-align: center;
  11621. height: 35px;
  11622. line-height: 35px;
  11623. font-size: 14px;
  11624. border-radius: 5px;
  11625. cursor: pointer;
  11626. position: absolute;
  11627. right: 10px;
  11628. bottom: 0;
  11629. }
  11630. .binfo_input,
  11631. .pj {
  11632. font: inherit;
  11633. color: currentColor;
  11634. width: 100%;
  11635. margin: 0;
  11636. padding: 15px 14px;
  11637. display: block;
  11638. min-width: 0;
  11639. outline: none;
  11640. box-sizing: content-box;
  11641. background: none;
  11642. -webkit-tap-highlight-color: transparent;
  11643. border: 1px solid rgba(0, 0, 0, 0.23);
  11644. border-radius: 4px;
  11645. box-sizing: border-box;
  11646. resize: none;
  11647. }
  11648. .binfo_input:focus-visible {
  11649. border: 1px solid rgba(61, 103, 188);
  11650. }
  11651. .dialog_diy>>>.el-dialog__header,
  11652. .dialog_diy1>>>.el-dialog__header {
  11653. background: #454545 !important;
  11654. padding: 15px 20px;
  11655. }
  11656. .dialog_diy>>>.el-dialog__title,
  11657. .dialog_diy1>>>.el-dialog__title {
  11658. color: #fff;
  11659. }
  11660. .dialog_diy>>>.el-dialog__headerbtn,
  11661. .dialog_diy1>>>.el-dialog__headerbtn {
  11662. top: 19px;
  11663. }
  11664. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11665. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11666. color: #fff;
  11667. }
  11668. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11669. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11670. color: #fff;
  11671. }
  11672. .dialog_diy1>>>.el-dialog__body {
  11673. padding: 0;
  11674. }
  11675. .dialog_diy>>>.el-dialog__body,
  11676. .dialog_diy>>>.el-dialog__footer,
  11677. .dialog_diy1>>>.el-dialog__footer {
  11678. background: #fafafa;
  11679. }
  11680. .a_addBox {
  11681. margin: 10px 0;
  11682. background: #fff;
  11683. padding: 15px;
  11684. max-height: 400px;
  11685. overflow: auto;
  11686. }
  11687. .a_add_box {
  11688. border-bottom: 2px solid #eee;
  11689. padding-bottom: 10px;
  11690. }
  11691. .a_add_head {
  11692. display: flex;
  11693. align-items: flex-start;
  11694. /* justify-content: space-between; */
  11695. flex-direction: column;
  11696. /* flex-direction: row; */
  11697. margin: 10px 0 20px 0;
  11698. font-size: 18px;
  11699. width: 100%;
  11700. }
  11701. .a_add_head .a_add_head_input {
  11702. width: 300px;
  11703. }
  11704. .a_add_head .a_add_head_div {
  11705. display: flex;
  11706. align-items: center;
  11707. justify-content: space-between;
  11708. }
  11709. .a_add_body {
  11710. display: flex;
  11711. align-items: center;
  11712. }
  11713. .a_add_input {
  11714. display: flex;
  11715. align-items: center;
  11716. flex-wrap: wrap;
  11717. }
  11718. .a_add_input>>>el-radio-group {
  11719. margin: 10px 0;
  11720. }
  11721. .a_add_input>>>.el-radio,
  11722. .a_add_input>>>.el-checkbox {
  11723. margin-bottom: 10px;
  11724. display: flex;
  11725. flex-direction: row;
  11726. flex-wrap: nowrap;
  11727. align-items: center;
  11728. }
  11729. .redioStyle>>>.el-radio__label {
  11730. font-size: 18px;
  11731. }
  11732. .redioStyle>>>.el-checkbox__label {
  11733. font-size: 18px;
  11734. }
  11735. .toolHeng2 {
  11736. width: 100%;
  11737. }
  11738. .toolHeng {
  11739. display: flex;
  11740. flex-direction: row;
  11741. flex-wrap: wrap;
  11742. justify-content: flex-start;
  11743. align-items: center;
  11744. width: 100%;
  11745. }
  11746. .toolHeng>div {
  11747. padding-left: 20px;
  11748. }
  11749. .isWidth {
  11750. width: 20%;
  11751. }
  11752. .textTitle {
  11753. display: flex;
  11754. flex-direction: row;
  11755. flex-wrap: nowrap;
  11756. align-items: center;
  11757. width: 95%;
  11758. }
  11759. .textTitle>>>.el-form-item__label {
  11760. font-size: 22px;
  11761. color: #918f8f;
  11762. width: 100px;
  11763. }
  11764. .textTitle>>>.el-form-item__content {
  11765. width: calc(100% - 100px);
  11766. }
  11767. .textCss>>>.el-dialog {
  11768. width: 800px !important;
  11769. height: 400px;
  11770. background: #fafafa;
  11771. }
  11772. .textCss>>>.el-dialog__body {
  11773. margin: 55px 8% 0 8%;
  11774. padding: 0 !important;
  11775. }
  11776. .textCss>>>.el-dialog__footer {
  11777. padding-top: 38px;
  11778. }
  11779. .toolsCss>>>.el-dialog__body {
  11780. padding: 20px;
  11781. }
  11782. .lineCss>>>.el-dialog__body {
  11783. display: flex;
  11784. flex-direction: row;
  11785. align-items: center;
  11786. justify-content: center;
  11787. }
  11788. .newNav {
  11789. display: flex;
  11790. flex-direction: row;
  11791. align-items: baseline;
  11792. justify-content: flex-start;
  11793. }
  11794. .navText {
  11795. cursor: pointer;
  11796. margin: 0px 0px 10px 5px;
  11797. white-space: nowrap;
  11798. overflow: hidden;
  11799. text-overflow: ellipsis;
  11800. /* width: 300px; */
  11801. width: 100%;
  11802. }
  11803. .noVedio {
  11804. display: flex;
  11805. flex-direction: row;
  11806. justify-content: center;
  11807. align-content: center;
  11808. }
  11809. .noNavText {
  11810. cursor: pointer;
  11811. margin: 0px 0px 10px 5px;
  11812. width: 112px;
  11813. }
  11814. .listNoVedio {
  11815. margin: 0 0 0 30px;
  11816. width: 97%;
  11817. }
  11818. .video-player>>>.video-js {
  11819. height: 100%;
  11820. }
  11821. .hangVedioList {
  11822. width: 90% !important;
  11823. height: 150px !important;
  11824. margin: 20px 0 0 30px;
  11825. }
  11826. .hangVedio {
  11827. width: 100%;
  11828. height: 170px !important;
  11829. align-items: flex-start !important;
  11830. }
  11831. .hangHand {
  11832. height: 150px !important;
  11833. }
  11834. .twoChild {
  11835. width: 95%;
  11836. margin: 10px;
  11837. border-radius: 5px;
  11838. background: #f2f2f2;
  11839. display: flex;
  11840. flex-direction: column;
  11841. flex-wrap: nowrap;
  11842. justify-content: flex-start;
  11843. align-items: flex-start;
  11844. transition: all 0.5s;
  11845. overflow: hidden;
  11846. height: 0;
  11847. background: #e7f3ff;
  11848. }
  11849. .twoChild>div:nth-child(1) {
  11850. margin-top: 5px;
  11851. }
  11852. .navChild {
  11853. width: 100%;
  11854. cursor: pointer;
  11855. margin-bottom: 10px;
  11856. position: relative;
  11857. }
  11858. .navChild img {
  11859. position: absolute;
  11860. right: 11px;
  11861. width: 15px;
  11862. top: 50%;
  11863. transform: translateY(-50%);
  11864. }
  11865. .navActive {
  11866. height: auto;
  11867. }
  11868. .navTask {
  11869. display: flex;
  11870. flex-direction: row;
  11871. flex-wrap: nowrap;
  11872. align-items: center;
  11873. align-content: flex-start;
  11874. height: 40px;
  11875. justify-content: flex-start;
  11876. padding: 0 10px;
  11877. width: 100%;
  11878. box-sizing: border-box;
  11879. }
  11880. .navTaskname {
  11881. white-space: nowrap;
  11882. text-overflow: ellipsis;
  11883. overflow: hidden;
  11884. word-break: break-all;
  11885. padding-left: 5px;
  11886. }
  11887. .openTaskActive {
  11888. color: #4386e6;
  11889. }
  11890. .iframeName {
  11891. margin: 5px 0;
  11892. border-left: 4px solid #41c4a4;
  11893. padding-left: 4px;
  11894. }
  11895. .toolTitle {
  11896. margin: 0px 0px 20px;
  11897. font-size: 20px;
  11898. font-weight: 500;
  11899. border-left: 4px solid #41c4a4;
  11900. padding-left: 4px;
  11901. }
  11902. .cru_selectBox {
  11903. overflow: auto;
  11904. width: 96%;
  11905. margin: 0 auto;
  11906. height: calc(100% - 40px - 21px - 20px);
  11907. }
  11908. .cru_selectBox::-webkit-scrollbar,
  11909. .study_top::-webkit-scrollbar,
  11910. .textContent::-webkit-scrollbar {
  11911. /*滚动条整体样式*/
  11912. width: 6px;
  11913. /*高宽分别对应横竖滚动条的尺寸*/
  11914. height: 6px;
  11915. }
  11916. /*定义滚动条轨道 内阴影+圆角*/
  11917. .cru_selectBox::-webkit-scrollbar-track,
  11918. .study_top::-webkit-scrollbar-track,
  11919. .textContent::-webkit-scrollbar {
  11920. border-radius: 10px;
  11921. background-color: #b8bdc9;
  11922. }
  11923. /*定义滑块 内阴影+圆角*/
  11924. .cru_selectBox::-webkit-scrollbar-thumb,
  11925. .study_top::-webkit-scrollbar-thumb,
  11926. .textContent::-webkit-scrollbar-thumb {
  11927. border-radius: 10px;
  11928. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  11929. background-color: #2c5ab3;
  11930. }
  11931. .vedioBox {
  11932. border-radius: 20px;
  11933. background: #fff;
  11934. margin-bottom: 10px;
  11935. overflow: auto;
  11936. }
  11937. .taskBox {
  11938. margin: 15px auto 20px;
  11939. background: #f7f7f7;
  11940. width: 97%;
  11941. border-radius: 10px;
  11942. }
  11943. .vedioTaskBox {
  11944. width: 100%;
  11945. display: flex;
  11946. flex-direction: row;
  11947. flex-wrap: nowrap;
  11948. align-items: flex-start;
  11949. position: relative;
  11950. }
  11951. .toolBox {
  11952. padding: 20px 60px 15px;
  11953. display: flex;
  11954. position: relative;
  11955. }
  11956. .btnAll {
  11957. position: absolute;
  11958. right: 0;
  11959. display: flex;
  11960. flex-direction: row;
  11961. flex-wrap: nowrap;
  11962. align-items: center;
  11963. }
  11964. .btnAllNT {
  11965. position: fixed;
  11966. bottom: 50px;
  11967. right: 40px;
  11968. z-index: 999;
  11969. display: flex;
  11970. flex-direction: row;
  11971. }
  11972. .btnAllNT>img {
  11973. cursor: pointer;
  11974. width: 80px;
  11975. }
  11976. .vedioTimeBox {
  11977. display: flex;
  11978. flex-direction: row;
  11979. align-items: center;
  11980. flex-wrap: nowrap;
  11981. position: relative;
  11982. }
  11983. .navBox {
  11984. background: #fff;
  11985. height: calc(100% - 40px);
  11986. padding: 5px 1px 0;
  11987. overflow-y: auto;
  11988. overflow-x: hidden;
  11989. }
  11990. .tool_work_box {
  11991. width: 100%;
  11992. padding: 0 30px 10px;
  11993. box-sizing: border-box;
  11994. }
  11995. .worksBox {
  11996. padding: 5px 0;
  11997. border-bottom: 1px solid #eeeeee;
  11998. }
  11999. .worksBTitle {
  12000. font-size: 20px;
  12001. padding-bottom: 15px;
  12002. border-bottom: 1px solid #eeeeee;
  12003. display: flex;
  12004. align-items: center;
  12005. }
  12006. .greenBox {
  12007. width: 5px;
  12008. height: 30px;
  12009. background: #63b6fa;
  12010. margin-right: 5px;
  12011. }
  12012. .worksDetailBox {
  12013. display: flex;
  12014. width: 100%;
  12015. flex-direction: row;
  12016. flex-wrap: wrap;
  12017. align-items: flex-end;
  12018. justify-content: flex-start;
  12019. padding: 15px 0;
  12020. }
  12021. .works {
  12022. display: flex;
  12023. flex-direction: column;
  12024. flex-wrap: nowrap;
  12025. align-items: flex-start;
  12026. justify-content: flex-start;
  12027. align-content: center;
  12028. max-width: 240px;
  12029. width: calc(100% / 3 - 10px);
  12030. height: auto;
  12031. margin-right: 10px;
  12032. margin-bottom: 10px;
  12033. overflow: hidden;
  12034. height: 140px;
  12035. box-shadow: 0 0 6px 1px #dfdada;
  12036. border-radius: 15px;
  12037. }
  12038. .workImg {
  12039. width: 100%;
  12040. /* height: calc(100% - 40px); */
  12041. height: 105px;
  12042. position: relative;
  12043. }
  12044. .workImg>img {
  12045. width: 100%;
  12046. height: 100%;
  12047. object-fit: contain;
  12048. cursor: pointer;
  12049. }
  12050. .worksName {
  12051. height: 40px;
  12052. line-height: 40px;
  12053. display: flex;
  12054. width: 100%;
  12055. flex-direction: row;
  12056. flex-wrap: nowrap;
  12057. justify-content: space-between;
  12058. align-items: center;
  12059. margin: 0 0 0 10px;
  12060. }
  12061. .worksName>div:nth-child(1) {
  12062. width: 110px;
  12063. white-space: nowrap;
  12064. overflow: hidden;
  12065. text-overflow: ellipsis;
  12066. }
  12067. .worksName>div:nth-child(2) {
  12068. color: #b7b4b5;
  12069. }
  12070. .noWorksS {
  12071. padding: 15px 0 0;
  12072. display: flex;
  12073. flex-direction: row;
  12074. flex-wrap: wrap;
  12075. align-items: center;
  12076. justify-content: flex-start;
  12077. }
  12078. .noWorksS>div {
  12079. cursor: pointer;
  12080. }
  12081. .noWorksName,
  12082. .isWorksName {
  12083. background: #7cbcf1;
  12084. color: #fff;
  12085. width: 90px;
  12086. height: 25px;
  12087. text-align: center;
  12088. line-height: 25px;
  12089. border-radius: 5px;
  12090. margin: 10px 15px 10px 0;
  12091. white-space: nowrap;
  12092. overflow: hidden;
  12093. padding: 5px;
  12094. text-overflow: ellipsis;
  12095. }
  12096. .noWorksName.isWork{
  12097. background: #165d96 !important;
  12098. }
  12099. .isWorksName {
  12100. cursor: pointer;
  12101. background: #46a1eb !important;
  12102. width: 100px;
  12103. height: 40px;
  12104. line-height: 40px;
  12105. position: relative;
  12106. }
  12107. .noWorksName:hover {
  12108. background: #46a1eb !important;
  12109. }
  12110. .title {
  12111. background: #1e5cc9;
  12112. /* width: 98%; */
  12113. height: 45px;
  12114. color: #fff;
  12115. line-height: 45px;
  12116. padding-left: 20px;
  12117. box-sizing: border-box;
  12118. }
  12119. .textBox {
  12120. font-size: 20px;
  12121. width: 90%;
  12122. display: flex;
  12123. flex-direction: column;
  12124. align-items: center;
  12125. margin: 20px auto 0;
  12126. max-height: 500px;
  12127. overflow: auto;
  12128. }
  12129. .textContent {
  12130. font-size: 18px;
  12131. width: 95%;
  12132. max-width: 95%;
  12133. }
  12134. .answerBg {
  12135. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12136. background-size: 100% 100%;
  12137. width: 100%;
  12138. height: 100%;
  12139. color: #fff;
  12140. text-align: center;
  12141. display: flex;
  12142. flex-direction: column;
  12143. flex-wrap: nowrap;
  12144. align-items: center;
  12145. position: relative;
  12146. justify-content: center;
  12147. }
  12148. .answerBg>div:nth-child(1) {
  12149. /* font-size: 22px;
  12150. padding: 25px 0 10px; */
  12151. }
  12152. .answerContent {
  12153. width: 215px;
  12154. max-height: 60px;
  12155. word-break: break-all;
  12156. text-align: center;
  12157. /* white-space: nowrap; */
  12158. overflow: hidden;
  12159. text-overflow: ellipsis;
  12160. /* padding: 23px 0 0; */
  12161. -webkit-line-clamp: 3;
  12162. -webkit-box-orient: vertical;
  12163. display: -webkit-box;
  12164. font-size: 15px;
  12165. }
  12166. .elist_input_box {
  12167. display: flex;
  12168. align-items: flex-start;
  12169. flex-wrap: nowrap;
  12170. padding: 10px 0 15px 30px;
  12171. flex-direction: column;
  12172. }
  12173. .elist_input {
  12174. /* width: 40%; */
  12175. width: 100%;
  12176. }
  12177. .elist_input .elist_input_box input {
  12178. font: inherit;
  12179. color: currentColor;
  12180. width: 200px;
  12181. padding: 8px 14px;
  12182. display: block;
  12183. min-width: 0;
  12184. outline: none;
  12185. border: 1px solid rgba(0, 0, 0, 0.23);
  12186. border-radius: 4px;
  12187. box-sizing: border-box;
  12188. background: #fff;
  12189. margin: 0 20px 0 0;
  12190. }
  12191. .elist_input .elist_input_box span {
  12192. height: 36px;
  12193. line-height: 36px;
  12194. color: rgb(82, 82, 82);
  12195. }
  12196. .elist_input .elist_input_box .remove {
  12197. height: 20px;
  12198. width: 20px;
  12199. background-size: 100% 100%;
  12200. background-position: unset;
  12201. margin-left: 5px;
  12202. }
  12203. .elist_input_box>>>.el-rate {
  12204. display: flex;
  12205. height: 36px;
  12206. align-items: center;
  12207. }
  12208. .elist_input_box .elist_inptu_text {
  12209. min-height: 50px;
  12210. /* width: 500px;
  12211. max-height: 150px; */
  12212. width: 100%;
  12213. line-height: 50px;
  12214. color: rgb(82, 82, 82);
  12215. overflow: auto;
  12216. text-indent: 5px;
  12217. background: #f7f6f9;
  12218. border-radius: 10px;
  12219. }
  12220. .elist_input_box .elist_inptu_text input {
  12221. width: 500px;
  12222. }
  12223. .elist_input_box>>>.el-rate__icon {
  12224. font-size: 24px;
  12225. }
  12226. .isClick {
  12227. background: #4d9def;
  12228. }
  12229. /*定义滚动条轨道 内阴影+圆角*/
  12230. .bzTypeBox::-webkit-scrollbar {
  12231. /*滚动条整体样式*/
  12232. width: 6px;
  12233. /*高宽分别对应横竖滚动条的尺寸*/
  12234. height: 6px;
  12235. }
  12236. /*定义滚动条轨道 内阴影+圆角*/
  12237. .bzTypeBox::-webkit-scrollbar-track {
  12238. border-radius: 10px;
  12239. background-color: rgba(0, 0, 0, 0.1);
  12240. }
  12241. /*定义滑块 内阴影+圆角*/
  12242. .bzTypeBox::-webkit-scrollbar-thumb {
  12243. border-radius: 10px;
  12244. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12245. background-color: rgba(0, 0, 0, 0.1);
  12246. }
  12247. .choiceBox{
  12248. display:flex;
  12249. margin: 20px 0;
  12250. width: 100%;
  12251. }
  12252. .bzTypeBox {
  12253. display: flex;
  12254. width: 100%;
  12255. overflow: auto;
  12256. white-space: nowrap;
  12257. }
  12258. .bzChild {
  12259. cursor: pointer;
  12260. box-sizing: border-box;
  12261. padding-bottom: 10px;
  12262. font-weight: bold;
  12263. min-width: fit-content;
  12264. }
  12265. .bzChild.active{
  12266. color: #3e88f4;
  12267. border-bottom: 2px solid #2f80f3;
  12268. }
  12269. .bzChild +.bzChild{
  12270. margin-left: 25px;
  12271. }
  12272. .bzBox {
  12273. display: flex;
  12274. flex-direction: row;
  12275. align-items: center;
  12276. }
  12277. .bzBox>div:nth-child(1) {
  12278. width: 4px;
  12279. height: 40px;
  12280. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12281. }
  12282. .bzBox>div:nth-child(2) {
  12283. font-size: 23px;
  12284. font-weight: bold;
  12285. padding: 0px 0px 0 10px;
  12286. }
  12287. .navTitile {
  12288. padding: 0 0px 0 15px;
  12289. color: #fff;
  12290. height: 40px;
  12291. line-height: 40px;
  12292. }
  12293. .isTypeOne {
  12294. width: 240px;
  12295. height: 170px;
  12296. /* border: 1px solid #f8f8f8; */
  12297. border-radius: 10px;
  12298. box-shadow: 0 0 6px 1px #dfdada;
  12299. }
  12300. .e_add_top {
  12301. display: flex;
  12302. justify-content: space-between;
  12303. padding: 20px 20px 0 20px;
  12304. border-radius: 3px;
  12305. background: #fff;
  12306. }
  12307. .e_add_title2 {
  12308. display: flex;
  12309. align-items: center;
  12310. }
  12311. .e_add_title2 span {
  12312. width: 40px;
  12313. }
  12314. .e_add_title {
  12315. display: flex;
  12316. align-items: center;
  12317. color: #b8b8b8;
  12318. font-size: 18px;
  12319. position: relative;
  12320. height: 40px;
  12321. }
  12322. .e_add_title span {
  12323. margin-right: 10px;
  12324. }
  12325. .e_add_title .el_input {
  12326. width: 300px;
  12327. }
  12328. .e_add_title>>>.el-input__inner {
  12329. width: 400px;
  12330. }
  12331. .e_add_btn {}
  12332. .e_add_content {
  12333. display: flex;
  12334. width: 100%;
  12335. max-width: 650px;
  12336. height: 550px;
  12337. }
  12338. .e_add_list {
  12339. background: #fff;
  12340. height: 500px;
  12341. width: 210px;
  12342. position: relative;
  12343. margin: 15px 5px 0 0;
  12344. flex-shrink: 0;
  12345. display: flex;
  12346. flex-direction: column;
  12347. }
  12348. .e_add_list_title {
  12349. font-size: 20px;
  12350. width: 100%;
  12351. box-sizing: border-box;
  12352. padding: 15px 40px;
  12353. text-align: center;
  12354. border-bottom: 1px solid #eaeaea;
  12355. position: relative;
  12356. display: flex;
  12357. align-items: center;
  12358. justify-content: center;
  12359. height: 57px;
  12360. background: #f6f6f6;
  12361. }
  12362. .e_add_list_title span {
  12363. overflow: hidden;
  12364. white-space: nowrap;
  12365. text-overflow: ellipsis;
  12366. }
  12367. .e_add_list_title img {
  12368. position: absolute;
  12369. right: 15px;
  12370. width: 25px;
  12371. cursor: pointer;
  12372. top: 50%;
  12373. transform: translateY(-50%);
  12374. }
  12375. .e_add_list_body {
  12376. height: calc(100% - 187px);
  12377. overflow: auto;
  12378. }
  12379. .e_add_list_child {
  12380. width: 100%;
  12381. display: flex;
  12382. align-items: center;
  12383. justify-content: center;
  12384. position: relative;
  12385. box-sizing: border-box;
  12386. padding: 15px 40px;
  12387. text-align: center;
  12388. }
  12389. .e_add_list_child span {
  12390. overflow: hidden;
  12391. white-space: nowrap;
  12392. text-overflow: ellipsis;
  12393. cursor: pointer;
  12394. }
  12395. .e_add_list_child img {
  12396. position: absolute;
  12397. right: 10px;
  12398. width: 21px;
  12399. cursor: pointer;
  12400. top: 50%;
  12401. transform: translateY(-50%);
  12402. }
  12403. .e_add_list_child+.e_add_list_child {
  12404. border-top: 1px solid #eaeaea;
  12405. }
  12406. .e_add_list_child .active {
  12407. color: #409eff;
  12408. }
  12409. .e_add_list_btn {
  12410. position: absolute;
  12411. bottom: 0;
  12412. height: 50px;
  12413. background: rgb(120, 120, 254);
  12414. width: 100%;
  12415. color: #fff;
  12416. font-size: 16px;
  12417. text-align: center;
  12418. line-height: 50px;
  12419. cursor: pointer;
  12420. }
  12421. .e_add_list_detail {
  12422. position: absolute;
  12423. bottom: 0;
  12424. height: 130px;
  12425. background: rgb(120, 120, 254);
  12426. width: 100%;
  12427. color: #fff;
  12428. font-size: 16px;
  12429. display: flex;
  12430. align-items: center;
  12431. justify-content: center;
  12432. }
  12433. .e_add_list_detail textarea {
  12434. height: 90%;
  12435. width: 95%;
  12436. border: none;
  12437. resize: none;
  12438. outline: none;
  12439. padding: 5px;
  12440. box-sizing: border-box;
  12441. }
  12442. .e_add_list_pbox {
  12443. width: 100%;
  12444. max-width: 650px;
  12445. /* height: 600px; */
  12446. }
  12447. .e_add_list_pbox_title {
  12448. height: 50px;
  12449. background: #fff;
  12450. display: flex;
  12451. align-items: center;
  12452. width: 100%;
  12453. box-sizing: border-box;
  12454. padding: 0 20px;
  12455. }
  12456. .type_title {
  12457. font-size: 18px;
  12458. font-weight: 700;
  12459. }
  12460. .type_content {
  12461. font-size: 16px;
  12462. margin-left: 30px;
  12463. }
  12464. .type_content span+span {
  12465. margin-left: 20px;
  12466. }
  12467. .type_content span {
  12468. cursor: pointer;
  12469. padding-bottom: 5px;
  12470. box-sizing: border-box;
  12471. }
  12472. .type_content .active {
  12473. color: #409eff;
  12474. border-bottom: 2px solid #409eff;
  12475. }
  12476. .e_add_list_pbox_content {
  12477. height: calc(100% - 50px);
  12478. display: flex;
  12479. align-items: center;
  12480. width: 100%;
  12481. background: #fff;
  12482. }
  12483. .evaCss {
  12484. display: flex;
  12485. flex-direction: row;
  12486. flex-wrap: nowrap;
  12487. align-items: flex-start;
  12488. }
  12489. .cru_line {
  12490. position: absolute;
  12491. bottom: 0px;
  12492. transition: all 0.5s;
  12493. left: 0px;
  12494. width: 125px;
  12495. margin-left: -25px;
  12496. }
  12497. .isNoMessage {
  12498. width: 20%;
  12499. margin: 25% auto 0;
  12500. }
  12501. .isNoMessage>img {
  12502. width: 100%;
  12503. height: 100%;
  12504. }
  12505. .fullStyle>>>.el-dialog__body {
  12506. height: 100% !important;
  12507. }
  12508. .fullStyle>>>.el-dialog,
  12509. .fullStyle {
  12510. width: 100% !important;
  12511. max-width: 100% !important;
  12512. height: 100% !important;
  12513. margin: 0 !important;
  12514. }
  12515. .full_diy>>>.el-dialog {
  12516. margin: 0 !important;
  12517. height: 100%;
  12518. padding: 4px;
  12519. }
  12520. .full_diy>>>.el-dialog__body {
  12521. height: calc(100% - 100px);
  12522. }
  12523. .full_diy2>>>.el-dialog__body {
  12524. height: calc(100% - 50px);
  12525. padding: 0;
  12526. }
  12527. .switchCss {
  12528. /* width: 100%; */
  12529. display: flex;
  12530. flex-direction: row;
  12531. flex-wrap: nowrap;
  12532. align-items: center;
  12533. /* justify-content: center; */
  12534. }
  12535. .isClickNav {
  12536. color: #499eef;
  12537. }
  12538. .commentImg {
  12539. width: 25px;
  12540. height: 25px;
  12541. cursor: pointer;
  12542. }
  12543. .commentImg>img {
  12544. width: 100%;
  12545. height: 100%;
  12546. }
  12547. .comment {
  12548. background: #f9f9f9;
  12549. border-radius: 0 0 15px 15px;
  12550. display: flex;
  12551. flex-direction: row;
  12552. flex-wrap: nowrap;
  12553. align-items: center;
  12554. justify-content: flex-end;
  12555. height: 35px;
  12556. }
  12557. .commentList {
  12558. display: flex;
  12559. flex-direction: row;
  12560. flex-wrap: nowrap;
  12561. align-items: center;
  12562. justify-content: center;
  12563. align-content: center;
  12564. /* margin-left: 15px; */
  12565. /* margin-left: 8px; */
  12566. }
  12567. .scoreImg {
  12568. width: 17px;
  12569. height: 17px;
  12570. }
  12571. .studentDetail {
  12572. display: flex;
  12573. flex-direction: row;
  12574. flex-wrap: nowrap;
  12575. /* align-items: center; */
  12576. align-items: flex-start;
  12577. }
  12578. .tx {
  12579. width: 50px;
  12580. }
  12581. .tx>img {
  12582. width: 100%;
  12583. height: 100%;
  12584. }
  12585. .nameAndTime {
  12586. display: flex;
  12587. flex-direction: column;
  12588. flex-wrap: nowrap;
  12589. align-items: flex-start;
  12590. margin-left: 10px;
  12591. }
  12592. .worksAnswer {
  12593. color: #4078dd;
  12594. margin: 10px 0;
  12595. font-size: 16px;
  12596. position: relative;
  12597. }
  12598. .worksAnswer>img {
  12599. width: 500px;
  12600. height: 300px;
  12601. object-fit: contain;
  12602. margin: 0 auto;
  12603. display: block;
  12604. }
  12605. .commentTop {
  12606. border-bottom: 1px solid #eaeaea;
  12607. padding-bottom: 10px;
  12608. }
  12609. .commentBox {
  12610. padding-top: 15px;
  12611. }
  12612. .pl {
  12613. font-size: 18px;
  12614. }
  12615. .plPerson {
  12616. width: 100%;
  12617. }
  12618. .plName {
  12619. display: flex;
  12620. flex-direction: row;
  12621. flex-wrap: nowrap;
  12622. align-items: baseline;
  12623. color: #78787a;
  12624. width: 100%;
  12625. }
  12626. .deleteComment {
  12627. cursor: pointer;
  12628. margin-left: auto;
  12629. color: #237ade;
  12630. }
  12631. .plContent {
  12632. margin-top: 5px;
  12633. }
  12634. .evalCss {
  12635. background: #fff;
  12636. font-size: 18px;
  12637. }
  12638. .nav {
  12639. color: #9d9d9d;
  12640. padding: 5px 0 15px 20px;
  12641. }
  12642. .middleBox {
  12643. padding: 5px 0 15px 20px;
  12644. }
  12645. .pfBox {
  12646. padding-bottom: 30px;
  12647. }
  12648. .nameAndrate {
  12649. display: flex;
  12650. flex-direction: row;
  12651. flex-wrap: nowrap;
  12652. align-items: center;
  12653. padding-bottom: 10px;
  12654. height: 30px;
  12655. line-height: 30px;
  12656. }
  12657. .nameAndrate>div {
  12658. margin-left: 10px;
  12659. color: #000;
  12660. height: 30px;
  12661. }
  12662. .nameAndrate>>>.el-rate__icon {
  12663. font-size: 28px !important;
  12664. }
  12665. .pfBox>div:nth-child(2) {
  12666. background: #f7f6f9;
  12667. width: 400px;
  12668. min-height: 45px;
  12669. border-radius: 10px;
  12670. font-size: 16px;
  12671. display: flex;
  12672. flex-wrap: wrap;
  12673. align-items: center;
  12674. padding: 10px 20px;
  12675. box-sizing: border-box;
  12676. color: #000;
  12677. }
  12678. .bz {
  12679. display: flex;
  12680. flex-direction: row;
  12681. flex-wrap: nowrap;
  12682. align-items: flex-start;
  12683. }
  12684. .bz>div {
  12685. padding: 0 10px;
  12686. }
  12687. .select_box2_title {
  12688. background: #fff;
  12689. border-radius: 5px;
  12690. padding: 15px 10px;
  12691. box-sizing: border-box;
  12692. margin-bottom: 10px;
  12693. display: flex;
  12694. flex-direction: row;
  12695. flex-wrap: nowrap;
  12696. align-items: center;
  12697. }
  12698. .select_box2_title>div:nth-child(2) {
  12699. margin-left: 10px;
  12700. color: #c4c4c4;
  12701. }
  12702. .select_box2_box {
  12703. display: flex;
  12704. height: 500px;
  12705. }
  12706. .select_box2_img {
  12707. width: calc(100% - 310px);
  12708. height: 100%;
  12709. overflow: auto;
  12710. background: #fff;
  12711. border-radius: 5px;
  12712. }
  12713. .select_box2_img img {
  12714. width: 100%;
  12715. }
  12716. .select_box2_answer {
  12717. background: #fff;
  12718. margin-left: 10px;
  12719. border-radius: 5px;
  12720. width: 300px;
  12721. overflow: auto;
  12722. height: 90%;
  12723. display: flex;
  12724. flex-direction: column;
  12725. align-items: flex-start;
  12726. padding-top: 10px;
  12727. box-sizing: border-box;
  12728. position: relative;
  12729. }
  12730. .select_answer_title {
  12731. padding: 0 0 15px 20px;
  12732. color: #c4c4c4;
  12733. }
  12734. .select_box2_answer_box {
  12735. margin: 0 0 10px 20px;
  12736. width: 85%;
  12737. display: flex;
  12738. flex-direction: row;
  12739. flex-wrap: nowrap;
  12740. align-items: center;
  12741. }
  12742. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12743. color: #000;
  12744. }
  12745. .upAnswerCss {
  12746. position: absolute;
  12747. bottom: 15px;
  12748. right: 15px;
  12749. }
  12750. .upAnswerCss>>>.el-button {
  12751. width: 95px;
  12752. height: 35px;
  12753. line-height: 35px;
  12754. padding: 0;
  12755. }
  12756. .rightWidthCss {
  12757. width: 60%;
  12758. display: flex;
  12759. flex-direction: row;
  12760. align-items: flex-start;
  12761. }
  12762. .rightAnswer {
  12763. display: flex;
  12764. flex-direction: row;
  12765. flex-wrap: nowrap;
  12766. align-items: center;
  12767. color: red;
  12768. margin-bottom: 31px;
  12769. }
  12770. .rightAnswerCss {
  12771. display: flex;
  12772. flex-direction: column;
  12773. flex-wrap: nowrap;
  12774. padding-top: 60px;
  12775. }
  12776. .blueCss {
  12777. color: #767de1;
  12778. margin-left: 10px;
  12779. }
  12780. .redCss {
  12781. color: red;
  12782. }
  12783. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12784. color: rgb(0 123 255) !important;
  12785. }
  12786. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12787. color: rgb(0 123 255) !important;
  12788. }
  12789. .zuoyeYulan {
  12790. padding-top: 15px;
  12791. font-size: 18px;
  12792. display: flex;
  12793. align-items: flex-end;
  12794. }
  12795. .buttonA {
  12796. margin-left: 10px;
  12797. padding: 0;
  12798. }
  12799. .displayBox {
  12800. margin-bottom: 10px;
  12801. display: block;
  12802. border-bottom: 3px solid #eee;
  12803. display: flex;
  12804. align-items: center;
  12805. }
  12806. .easy_comment {
  12807. width: calc(100% - 90px);
  12808. margin-left: 10px;
  12809. display: flex;
  12810. flex-wrap: wrap;
  12811. }
  12812. .easy_comment>div {
  12813. border: 1px solid #4a4a4a;
  12814. color: #666;
  12815. border-radius: 15px;
  12816. padding: 5px 10px;
  12817. font-size: 16px;
  12818. margin-bottom: 10px;
  12819. margin-right: 5px;
  12820. cursor: pointer;
  12821. }
  12822. .easy_comment div:hover {
  12823. border: 1px solid #f7ba2a;
  12824. color: #c69217;
  12825. }
  12826. .xuan_right_box {
  12827. padding: 10px;
  12828. background: rgb(247, 247, 247);
  12829. margin: 10px 12px;
  12830. border-radius: 5px;
  12831. }
  12832. .tool_right_box {
  12833. display: flex;
  12834. align-items: center;
  12835. }
  12836. .tool_right_box+.tool_right_box {
  12837. margin-top: 10px;
  12838. }
  12839. .right_box_xuan {
  12840. background: rgb(0 123 255);
  12841. color: #fff;
  12842. border-radius: 5px;
  12843. padding: 5px;
  12844. margin-left: 10px;
  12845. }
  12846. .pButton:hover {
  12847. opacity: 1 !important;
  12848. }
  12849. .pButton {
  12850. position: fixed;
  12851. /* right: 5%; */
  12852. /* bottom: 5%; */
  12853. color: #fff;
  12854. /* width: 50px;
  12855. height: 50px; */
  12856. /* border-radius: 50%; */
  12857. text-align: center;
  12858. /* line-height: 50px; */
  12859. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12860. cursor: pointer;
  12861. z-index: 999;
  12862. right: 0;
  12863. top: 83px;
  12864. width: 50px;
  12865. height: 50px;
  12866. background: #fff;
  12867. display: flex;
  12868. align-items: center;
  12869. justify-content: center;
  12870. box-shadow: 0px 0 8px 2px #c5c5c5;
  12871. border-radius: 5px;
  12872. }
  12873. .pzClass {
  12874. width: calc(100% - 340px);
  12875. }
  12876. .newDialogCss {
  12877. /* position: fixed;
  12878. right: 5%;
  12879. top: 50%;
  12880. width: 340px;
  12881. transform: translateY(-50%);
  12882. height: 60%;
  12883. box-shadow: 0px 0 8px 0px #555555;
  12884. border-radius: 15px;
  12885. z-index: 999; */
  12886. position: fixed;
  12887. right: 0;
  12888. top: 70px;
  12889. width: 340px;
  12890. height: calc(100% - 80px);
  12891. z-index: 999;
  12892. background: #fff;
  12893. border-radius: 15px;
  12894. border-top-right-radius: 0px;
  12895. border-bottom-right-radius: 0px;
  12896. overflow: hidden;
  12897. }
  12898. .pzTop {
  12899. color: #fff;
  12900. background: #000;
  12901. display: flex;
  12902. flex-direction: row;
  12903. flex-wrap: nowrap;
  12904. align-items: center;
  12905. justify-content: space-between;
  12906. height: 40px;
  12907. border-radius: 15px 15px 0 0;
  12908. }
  12909. .pzTop2 .checkbox {
  12910. display: flex;
  12911. align-items: center;
  12912. padding: 15px 30px;
  12913. flex: 0 0 auto;
  12914. font-weight: bold;
  12915. border-bottom: 1px solid #eee;
  12916. justify-content: space-between;
  12917. }
  12918. .pzTop2 .check {
  12919. text-align: center;
  12920. cursor: pointer;
  12921. box-sizing: border-box;
  12922. display: flex;
  12923. }
  12924. .pzTop2 img {
  12925. width: 25px;
  12926. cursor: pointer;
  12927. }
  12928. .pzTop>div:nth-child(1) {
  12929. padding-left: 10px;
  12930. }
  12931. .pzTop>div:nth-child(2) {
  12932. width: 15px;
  12933. height: 15px;
  12934. padding-right: 10px;
  12935. cursor: pointer;
  12936. }
  12937. .pzTop>div:nth-child(2)>img {
  12938. width: 100%;
  12939. height: 100%;
  12940. }
  12941. .pzBox,
  12942. .noPzBox {
  12943. height: calc(100% - 60px);
  12944. /* background: #ededed; */
  12945. background: #fff;
  12946. /* border-radius: 0 0 15px 15px; */
  12947. }
  12948. .noPzBox {
  12949. display: flex;
  12950. flex-direction: column;
  12951. flex-wrap: nowrap;
  12952. justify-content: center;
  12953. align-items: center;
  12954. }
  12955. .pzList {
  12956. background: #f7f7f7;
  12957. width: 90%;
  12958. margin: 0 auto 15px;
  12959. border-radius: 5px;
  12960. }
  12961. .pzNavTop {
  12962. display: flex;
  12963. flex-direction: row;
  12964. flex-wrap: nowrap;
  12965. padding: 10px 10px 0 10px;
  12966. align-items: center;
  12967. }
  12968. .pzDelete {
  12969. cursor: pointer;
  12970. margin-left: auto;
  12971. font-size: 14px;
  12972. color: #afafaf;
  12973. }
  12974. .pzNavTop>div:nth-child(1) {
  12975. background: #3760af;
  12976. width: 35px;
  12977. height: 35px;
  12978. color: #fff;
  12979. text-align: center;
  12980. line-height: 35px;
  12981. border-radius: 50%;
  12982. font-size: 14px;
  12983. }
  12984. .pzNavTop>div:nth-child(2) {
  12985. font-size: 18px;
  12986. color: #959595;
  12987. margin-left: 5px;
  12988. }
  12989. .pzContent {
  12990. padding: 10px;
  12991. word-break: break-word;
  12992. }
  12993. .pzContent audio {
  12994. width: 100%;
  12995. }
  12996. .pzContent audio::-webkit-media-controls-panel {
  12997. background: #fff;
  12998. }
  12999. .pzListBox {
  13000. padding-top: 15px;
  13001. height: calc(100% - 60px);
  13002. overflow: auto;
  13003. }
  13004. .addPzButton {
  13005. position: relative;
  13006. margin-top: 3px;
  13007. width: 100%;
  13008. }
  13009. .addPzButton .img1 {
  13010. position: absolute;
  13011. top: 50%;
  13012. right: 25px;
  13013. transform: translateY(-50%);
  13014. height: 100%;
  13015. display: flex;
  13016. align-items: center;
  13017. }
  13018. .addPzButton .img1 div {
  13019. display: flex;
  13020. }
  13021. .addPzButton .img1 div img {
  13022. width: 28px;
  13023. margin-left: 10px;
  13024. cursor: pointer;
  13025. }
  13026. .addPzButton .img1 div span {
  13027. font-size: 14px;
  13028. margin: 4px 0 0 3px;
  13029. color: #afafaf;
  13030. }
  13031. .addPz {
  13032. background: #4b79ce;
  13033. width: 100px;
  13034. color: #fff;
  13035. font-size: 12px;
  13036. height: 30px;
  13037. margin: 0 auto;
  13038. text-align: center;
  13039. line-height: 30px;
  13040. border-radius: 10px;
  13041. cursor: pointer;
  13042. }
  13043. .addDialogCss {
  13044. position: fixed;
  13045. right: 37%;
  13046. top: 50%;
  13047. width: 600px;
  13048. transform: translateY(-50%);
  13049. height: 70%;
  13050. min-height: 450px;
  13051. box-shadow: 0px 0 8px 0px #555555;
  13052. border-radius: 15px;
  13053. z-index: 999;
  13054. }
  13055. .teacherPz {
  13056. display: flex;
  13057. flex-direction: row;
  13058. align-items: center;
  13059. flex-wrap: nowrap;
  13060. }
  13061. .teacherPzImg {
  13062. width: 30px;
  13063. height: 30px;
  13064. }
  13065. .teacherPzImg>img {
  13066. width: 100%;
  13067. height: 100%;
  13068. }
  13069. .addPzBox {
  13070. height: calc(100% - 40px);
  13071. background: #ededed;
  13072. }
  13073. .pzAudioClass {
  13074. margin: 15px 14px;
  13075. background: #fff;
  13076. height: 100%;
  13077. display: flex;
  13078. justify-content: center;
  13079. align-items: center;
  13080. }
  13081. .pzConText {
  13082. width: 95%;
  13083. height: 100%;
  13084. margin: 10px auto 0;
  13085. border: none;
  13086. background: #fff;
  13087. border-radius: 0px;
  13088. }
  13089. .pzConText>>>.text {
  13090. height: calc(100% - 82px);
  13091. }
  13092. .addTextCss {
  13093. background: #4b79ce;
  13094. width: 80px;
  13095. height: 30px;
  13096. text-align: center;
  13097. color: #fff;
  13098. line-height: 30px;
  13099. border-radius: 10px;
  13100. margin: 10px auto 0;
  13101. cursor: pointer;
  13102. }
  13103. .pzConText:focus-visible {
  13104. border: none !important;
  13105. }
  13106. .maxWidth {
  13107. width: 1000px;
  13108. }
  13109. .noPz {
  13110. width: 150px;
  13111. margin: 0 auto 20%;
  13112. }
  13113. .noPz>img {
  13114. width: 100%;
  13115. height: 100%;
  13116. }
  13117. .pzList .time {
  13118. text-align: right;
  13119. box-sizing: border-box;
  13120. padding: 0 10px 10px 0px;
  13121. color: #949494;
  13122. font-size: 14px;
  13123. }
  13124. /* table 样式 */
  13125. .cont>>>table {
  13126. border-top: 1px solid #ccc;
  13127. border-left: 1px solid #ccc;
  13128. }
  13129. .cont>>>table td,
  13130. .cont>>>table th {
  13131. border-bottom: 1px solid #ccc;
  13132. border-right: 1px solid #ccc;
  13133. padding: 15px 5px;
  13134. max-width: 0px;
  13135. }
  13136. .cont>>>table th {
  13137. border-bottom: 2px solid #ccc;
  13138. text-align: center;
  13139. }
  13140. /* blockquote 样式 */
  13141. .cont>>>blockquote {
  13142. display: block;
  13143. border-left: 8px solid #d0e5f2;
  13144. padding: 5px 10px;
  13145. margin: 10px 0;
  13146. line-height: 1.4;
  13147. font-size: 100%;
  13148. background-color: #f1f1f1;
  13149. }
  13150. .addPzCheck {
  13151. display: flex;
  13152. flex-direction: row;
  13153. flex-wrap: nowrap;
  13154. padding: 10px 15px 0;
  13155. }
  13156. .addPzCheck span {
  13157. cursor: pointer;
  13158. padding-bottom: 5px;
  13159. font-weight: bold;
  13160. }
  13161. .addPzCheck span+span {
  13162. margin-left: 10px;
  13163. }
  13164. .addPzCheck .isChooseActive {
  13165. color: #3e88f4;
  13166. border-bottom: 2px solid #2f80f3;
  13167. }
  13168. /* code 样式 */
  13169. .cont>>>code {
  13170. display: inline-block;
  13171. *display: inline;
  13172. *zoom: 1;
  13173. background-color: #f1f1f1;
  13174. border-radius: 3px;
  13175. padding: 3px 5px;
  13176. margin: 0 3px;
  13177. }
  13178. .cont>>>pre code {
  13179. display: block;
  13180. }
  13181. /* ul ol 样式 */
  13182. .cont>>>ul,
  13183. ol {
  13184. margin: 10px 0 10px 20px;
  13185. }
  13186. .scoreBox,
  13187. .scoreDetailBox {
  13188. display: flex;
  13189. align-items: center;
  13190. justify-content: flex-start;
  13191. margin-top: 20px;
  13192. font-size: 18px;
  13193. width: 100%;
  13194. }
  13195. .scoreBox .t,
  13196. .scoreDetailBox .t {
  13197. margin-right: 10px;
  13198. width: 100px;
  13199. text-align: right;
  13200. }
  13201. .scoreDetailBox {
  13202. align-items: flex-start;
  13203. }
  13204. .scoreDetailBox>>>.el-textarea {
  13205. width: calc(100% - 200px);
  13206. }
  13207. .scoreBox>>>.el-input {
  13208. width: 130px;
  13209. font-size: 38px;
  13210. }
  13211. .scoreBox>>>.el-input__inner {
  13212. height: 60px;
  13213. }
  13214. .answerScore {
  13215. position: absolute;
  13216. top: 10px;
  13217. right: 10px;
  13218. background: #0000008f;
  13219. border-radius: 5px;
  13220. padding: 3px 5px;
  13221. font-size: 14px;
  13222. color: #fff;
  13223. cursor: pointer;
  13224. }
  13225. .open_box .switch_box {
  13226. width: 100%;
  13227. margin: 0 auto;
  13228. display: flex;
  13229. justify-content: space-between;
  13230. }
  13231. .open_box .switch_box+.switch_box {
  13232. margin-top: 10px;
  13233. }
  13234. .deleteImg {
  13235. width: 25px !important;
  13236. height: 25px !important;
  13237. cursor: pointer;
  13238. position: absolute;
  13239. top: 10px;
  13240. right: 10px;
  13241. }
  13242. .deleteImg2 {
  13243. width: 15px !important;
  13244. height: 15px !important;
  13245. top: 5px;
  13246. right: 5px;
  13247. }
  13248. .rightW {
  13249. right: 40px;
  13250. }
  13251. .drawPBox {
  13252. display: flex;
  13253. flex-direction: column;
  13254. position: relative;
  13255. }
  13256. .drawPBox span {
  13257. font-size: 18px;
  13258. color: #606266;
  13259. padding-bottom: 10px;
  13260. margin: 10px 0;
  13261. border-bottom: 1px solid #eaeaea;
  13262. }
  13263. .drawPBox img {
  13264. width: 500px;
  13265. height: 300px;
  13266. object-fit: contain;
  13267. cursor: pointer;
  13268. margin: 0 auto;
  13269. }
  13270. .sentenBox {
  13271. background: #fff;
  13272. height: 450px;
  13273. overflow: auto;
  13274. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13275. background-position: 102%;
  13276. background-repeat: no-repeat;
  13277. background-size: 60%;
  13278. }
  13279. .addSen {
  13280. background: #409efe;
  13281. width: 90px;
  13282. color: #fff;
  13283. height: 35px;
  13284. text-align: center;
  13285. line-height: 35px;
  13286. border-radius: 5px;
  13287. float: right;
  13288. margin: 10px 20px 0 0;
  13289. cursor: pointer;
  13290. }
  13291. .sentenTop {
  13292. display: flex;
  13293. flex-direction: row;
  13294. flex-wrap: nowrap;
  13295. align-items: center;
  13296. padding: 55px 0 0 20px;
  13297. box-sizing: border-box;
  13298. }
  13299. .sentenTop>div:nth-child(2) {
  13300. width: 300px;
  13301. margin: 0 15px;
  13302. }
  13303. .sentenTop>div:nth-child(3) {
  13304. background: #409efe;
  13305. color: #fff;
  13306. width: 65px;
  13307. height: 35px;
  13308. text-align: center;
  13309. line-height: 35px;
  13310. border-radius: 5px;
  13311. cursor: pointer;
  13312. }
  13313. .cardList,
  13314. .cardList1 {
  13315. padding: 10px 0 10px 0;
  13316. display: flex;
  13317. flex-direction: row;
  13318. flex-wrap: wrap;
  13319. align-items: center;
  13320. box-sizing: border-box;
  13321. border-bottom: 1px solid #f4f4f4;
  13322. width: 98%;
  13323. margin: 0 auto;
  13324. min-width: 60%;
  13325. max-width: 85%;
  13326. }
  13327. .cardList1 {
  13328. padding: 10px 0 10px 10px !important;
  13329. margin: 0 !important;
  13330. }
  13331. .cardBox {
  13332. display: flex;
  13333. flex-direction: row;
  13334. flex-wrap: wrap;
  13335. align-items: center;
  13336. align-content: center;
  13337. }
  13338. .cardBox>div {
  13339. margin-bottom: 10px;
  13340. }
  13341. .isCard,
  13342. .isChooseCard,
  13343. .noCard,
  13344. .isCard1 {
  13345. width: 130px;
  13346. height: 60px;
  13347. text-align: center;
  13348. line-height: 60px;
  13349. font-size: 20px;
  13350. cursor: pointer;
  13351. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13352. background-size: cover;
  13353. transition: all 2s;
  13354. margin-right: 20px;
  13355. }
  13356. .isCard>div,
  13357. .noCard>div,
  13358. .isCard1>div {
  13359. white-space: nowrap;
  13360. overflow: hidden;
  13361. text-overflow: ellipsis;
  13362. width: 75%;
  13363. margin: 0 auto;
  13364. }
  13365. .noCard {
  13366. background-image: none;
  13367. }
  13368. .isCard1 {
  13369. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13370. }
  13371. .isChooseCard {
  13372. background-image: none;
  13373. border: 1px dashed #b9b9b9;
  13374. border-radius: 10px;
  13375. }
  13376. .card {
  13377. width: 130px;
  13378. height: 60px;
  13379. }
  13380. .card>img {
  13381. width: 100%;
  13382. height: 100%;
  13383. }
  13384. .rightCardBox {
  13385. margin: 10px 0 0 10px;
  13386. }
  13387. .rightCardBox>div:nth-child(1) {
  13388. margin-bottom: 10px;
  13389. }
  13390. .cardCss {
  13391. display: flex;
  13392. flex-direction: column;
  13393. flex-wrap: nowrap;
  13394. align-items: center;
  13395. border-bottom: 3px solid #b4c3d3;
  13396. padding: 0 0 5px 0;
  13397. margin-right: 10px;
  13398. }
  13399. .cardCss>div:nth-child(2) {
  13400. background: #5b7b9d;
  13401. color: #fff;
  13402. width: 20px;
  13403. height: 20px;
  13404. border-radius: 50%;
  13405. text-align: center;
  13406. line-height: 20px;
  13407. }
  13408. .isWrong {
  13409. display: flex;
  13410. flex-direction: row;
  13411. flex-wrap: nowrap;
  13412. align-content: center;
  13413. align-items: center;
  13414. }
  13415. .answerRight {
  13416. width: 25%;
  13417. }
  13418. .isTj {
  13419. display: flex;
  13420. flex-direction: row;
  13421. flex-wrap: nowrap;
  13422. align-items: center;
  13423. }
  13424. .isTj>div:nth-child(2) {
  13425. color: #727070;
  13426. margin-left: 10px;
  13427. }
  13428. .isTjImg {
  13429. width: 30px;
  13430. height: 30px;
  13431. }
  13432. .isTjImg>img {
  13433. width: 100%;
  13434. height: 100%;
  13435. }
  13436. .cardAnswerBox {
  13437. font-size: 18px;
  13438. width: 97%;
  13439. border: 5px;
  13440. padding: 0;
  13441. border-radius: 5px;
  13442. margin: 10px auto;
  13443. word-break: break-word;
  13444. }
  13445. .w_name {
  13446. margin-bottom: 10px;
  13447. }
  13448. .w_name span {
  13449. font-size: 16px;
  13450. }
  13451. .w_teachert {
  13452. width: 50px !important;
  13453. position: absolute;
  13454. height: auto !important;
  13455. z-index: 10;
  13456. right: 25px;
  13457. top: -25px;
  13458. }
  13459. .group_workBox {}
  13460. .group_workBox+.group_workBox {
  13461. margin-top: 20px;
  13462. }
  13463. .group_box {
  13464. padding-bottom: 20px;
  13465. border-bottom: 2px solid #f0f0f0;
  13466. }
  13467. .group_title {
  13468. display: flex;
  13469. align-items: center;
  13470. justify-content: space-between;
  13471. }
  13472. .group_name {
  13473. background-image: url(../../assets/icon/groupN.png);
  13474. width: 220px;
  13475. background-size: 100% 100%;
  13476. height: 67px;
  13477. padding: 0 20px 0 43px;
  13478. box-sizing: border-box;
  13479. line-height: 63px;
  13480. color: #fff;
  13481. overflow: hidden;
  13482. white-space: nowrap;
  13483. text-overflow: ellipsis;
  13484. }
  13485. .group_work {
  13486. width: 100%;
  13487. padding: 0 10px;
  13488. box-sizing: border-box;
  13489. display: flex;
  13490. flex-wrap: wrap;
  13491. }
  13492. .g_d_box {
  13493. display: flex;
  13494. flex-flow: wrap;
  13495. justify-content: space-around;
  13496. }
  13497. .g_d_box .isChair {
  13498. background-image: url(../../assets/avatar.png) !important;
  13499. }
  13500. .g_d_group {
  13501. width: 500px;
  13502. margin-bottom: 80px;
  13503. }
  13504. .g_d_group_chair {
  13505. display: flex;
  13506. align-items: center;
  13507. justify-content: center;
  13508. }
  13509. .g_d_group_chair>div+div {
  13510. margin-left: 30px;
  13511. }
  13512. .g_d_group_chair>div,
  13513. .g_d_group_chair2>div {
  13514. display: flex;
  13515. flex-direction: column;
  13516. align-items: center;
  13517. }
  13518. .g_d_group_chair>div>span:nth-child(1),
  13519. .g_d_group_chair2>div>span:nth-child(1) {
  13520. background-image: url(../../assets/icon/chair.png);
  13521. width: 50px;
  13522. height: 50px;
  13523. display: block;
  13524. background-size: 100% 100%;
  13525. }
  13526. .g_d_group_tableBox {
  13527. display: flex;
  13528. align-items: center;
  13529. justify-content: center;
  13530. }
  13531. .g_d_group_chair2 {
  13532. display: flex;
  13533. flex-direction: column;
  13534. align-items: center;
  13535. justify-content: center;
  13536. }
  13537. .g_d_group_chair2>div+div {
  13538. margin-top: 10px;
  13539. }
  13540. .g_d_group_table {
  13541. background-image: url(../../assets/icon/groupBg.png);
  13542. width: 354px;
  13543. height: 196px;
  13544. background-size: 100% 100%;
  13545. display: flex;
  13546. align-items: center;
  13547. justify-content: center;
  13548. flex-direction: column;
  13549. color: #fff;
  13550. }
  13551. .g_d_group_table>div:nth-child(1) {
  13552. font-size: 24px;
  13553. margin-bottom: 5px;
  13554. }
  13555. .g_d_group_table>div:nth-child(2) div {
  13556. cursor: pointer;
  13557. background: #2e77bf;
  13558. padding: 4px 10px;
  13559. border-radius: 5px;
  13560. }
  13561. .groupBox {}
  13562. .groupContent+.groupContent {
  13563. margin-top: 30px;
  13564. }
  13565. .groupTitle {
  13566. font-size: 24px;
  13567. color: rgb(80, 80, 80);
  13568. margin-bottom: 20px;
  13569. }
  13570. .groupName {
  13571. display: flex;
  13572. align-items: center;
  13573. }
  13574. .groupn {
  13575. font-size: 15px;
  13576. margin-right: 10px;
  13577. }
  13578. .groupName+.groupName {
  13579. margin-top: 15px;
  13580. }
  13581. .groupBtn {
  13582. margin-left: 10px;
  13583. }
  13584. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13585. text-align: left;
  13586. }
  13587. .g_d_btnBox {
  13588. display: flex;
  13589. justify-content: flex-end;
  13590. align-items: flex-end;
  13591. margin-bottom: 20px;
  13592. }
  13593. .updateChair {
  13594. position: relative;
  13595. }
  13596. .updateChairBtn {
  13597. position: absolute;
  13598. width: 50px;
  13599. height: 50px;
  13600. overflow: hidden;
  13601. /* display: flex; */
  13602. align-items: center;
  13603. justify-content: center;
  13604. background: #00000087;
  13605. color: #fff;
  13606. border-radius: 50px;
  13607. display: none;
  13608. cursor: pointer;
  13609. }
  13610. .updateChair:hover .updateChairBtn {
  13611. display: flex;
  13612. }
  13613. .group_staic_box {
  13614. display: flex;
  13615. padding: 30px 40px 10px;
  13616. flex-wrap: wrap;
  13617. }
  13618. .group_staic {
  13619. /* width: 50%; */
  13620. margin-bottom: 20px;
  13621. display: flex;
  13622. align-items: center;
  13623. }
  13624. .group_staic span:nth-child(1) {
  13625. width: 150px;
  13626. text-align: right;
  13627. margin-right: 15px;
  13628. }
  13629. .group_staic span:nth-child(2) {
  13630. background: rgb(0 123 255);
  13631. color: #fff;
  13632. border-radius: 5px;
  13633. padding: 5px;
  13634. }
  13635. .codeFileBox {
  13636. height: 300px;
  13637. background: #fff;
  13638. display: flex;
  13639. align-items: center;
  13640. justify-content: center;
  13641. }
  13642. .codeFileBox img {
  13643. width: 200px;
  13644. margin: 0;
  13645. height: auto;
  13646. }
  13647. .codeFileBox div {
  13648. background: rgb(80, 142, 226);
  13649. color: #fff;
  13650. padding: 10px 20px;
  13651. border-radius: 25px;
  13652. cursor: pointer;
  13653. margin-left: 15px;
  13654. }
  13655. .radioBox {
  13656. display: flex;
  13657. flex-direction: row;
  13658. flex-wrap: nowrap;
  13659. align-items: center;
  13660. }
  13661. .radioBox>div {
  13662. margin: 10px 0 0 10px;
  13663. }
  13664. /* .radioBox >>> .el-radio__input,
  13665. .radioBox >>> .el-checkbox__inner {
  13666. margin-left: 10px;
  13667. } */
  13668. .radioBox>>>.el-radio__label,
  13669. .radioBox>>>.el-checkbox__label {
  13670. display: flex;
  13671. align-items: center;
  13672. }
  13673. .inImg {
  13674. width: 100px;
  13675. cursor: pointer;
  13676. }
  13677. .inImg>img {
  13678. width: 100%;
  13679. height: 100%;
  13680. object-fit: cover;
  13681. }
  13682. .timuImgBox {
  13683. margin: 10px 0;
  13684. display: flex;
  13685. flex-direction: column;
  13686. flex-wrap: wrap;
  13687. align-items: flex-start;
  13688. }
  13689. .timuImg {
  13690. width: 100px;
  13691. margin: 5px 0;
  13692. cursor: pointer;
  13693. }
  13694. .timuImg>img {
  13695. width: 100%;
  13696. height: 100%;
  13697. object-fit: cover;
  13698. }
  13699. .worksTop {
  13700. display: flex;
  13701. flex-direction: row;
  13702. align-items: flex-end;
  13703. }
  13704. .corOpen {
  13705. margin: 0 0 0 10px;
  13706. font-size: 14px;
  13707. cursor: pointer;
  13708. color: #505050;
  13709. }
  13710. .corOpen:hover {
  13711. color: #499eef;
  13712. }
  13713. .navCorOpenBox {
  13714. display: flex;
  13715. flex-direction: row;
  13716. align-items: center;
  13717. background: #1e5cc9;
  13718. justify-content: space-between;
  13719. }
  13720. .navCorOpen {
  13721. padding-right: 15px;
  13722. cursor: pointer;
  13723. width: 20px;
  13724. display: flex;
  13725. }
  13726. .navCorOpen>img {
  13727. width: 100%;
  13728. height: 100%;
  13729. }
  13730. .mlImg {
  13731. width: 25px !important;
  13732. cursor: pointer;
  13733. margin-top: 5px;
  13734. }
  13735. .mlImg>img {
  13736. width: 100%;
  13737. height: 100%;
  13738. }
  13739. .navLeftCss {
  13740. width: 100% !important;
  13741. left: 0 !important;
  13742. }
  13743. .isContentCss {
  13744. width: 100% !important;
  13745. }
  13746. .isAllWidth {
  13747. width: 100% !important;
  13748. }
  13749. .toolBoxSteps {
  13750. position: absolute;
  13751. top: 50%;
  13752. transform: translateY(-50%);
  13753. cursor: pointer;
  13754. width: 60px;
  13755. display: flex;
  13756. align-items: center;
  13757. justify-content: center;
  13758. }
  13759. .toolBoxSteps:nth-child(1)>img,
  13760. .toolBoxSteps:nth-child(2)>img {
  13761. width: 24px;
  13762. }
  13763. .toolBoxSteps:nth-child(1) {
  13764. left: 0;
  13765. }
  13766. .toolBoxSteps:nth-child(2) {
  13767. right: 0;
  13768. }</style>