studyStudent.vue 670 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div
  14. class="pButton"
  15. style="
  16. left: 0;
  17. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18. top: 140px;
  19. "
  20. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  21. @click="setContent2(true)"
  22. >
  23. <!-- 批 , getCourseDetail()-->
  24. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  25. </div>
  26. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  27. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  28. <div
  29. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  30. >
  31. <div class="courseTitle">
  32. <div style="max-width: calc(100% - 40px); width: auto">
  33. <div class="ctitle">{{ courseDetail.title }}</div>
  34. </div>
  35. <el-tooltip effect="light" content="收缩" placement="top">
  36. <div class="mlImg" @click="setContent2(false)">
  37. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  38. </div>
  39. </el-tooltip>
  40. </div>
  41. <div class="inviteBox" v-if="tcid && inviteCode">
  42. <div>
  43. <span>随机码:{{ inviteCode }}</span>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="cru_selectBox">
  48. <div
  49. style="
  50. background: #fff;
  51. margin: 20px 18px 10px 18px;
  52. border-radius: 8px;
  53. "
  54. v-for="(item, stageIndex) in navList"
  55. :key="stageIndex"
  56. >
  57. <div class="stageBoxCss" @click="get(stageIndex)">
  58. <div class="closeTri" v-if="item.isOpen">
  59. <img src="../assets/icon/newIcon/openTri.png" alt />
  60. </div>
  61. <div class="closeTri" v-else>
  62. <img src="../assets/icon/newIcon/closeTri.png" alt />
  63. </div>
  64. <div class="stageItemTitle">
  65. <div>阶段{{ stageIndex + 1 }}</div>
  66. <div>{{ item.dyName }}</div>
  67. </div>
  68. </div>
  69. <div class="stageChild" :class="{ navActive: item.isOpen }">
  70. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  71. <div
  72. class="navItem"
  73. :class="{
  74. openTaskActive:
  75. navIndex == taskCount &&
  76. nav.id == navId &&
  77. stageIndex == courseType,
  78. }"
  79. >
  80. <div
  81. @click="openTask(stageIndex, navIndex, nav.id)"
  82. class="navItemList"
  83. :class="{
  84. isItemList:
  85. navIndex == taskCount &&
  86. nav.id == navId &&
  87. stageIndex == courseType,
  88. }"
  89. >
  90. <div>任务{{ navIndex + 1 }}</div>
  91. <el-tooltip
  92. effect="light"
  93. :content="nav.taskName"
  94. placement="top"
  95. >
  96. <div
  97. :style="{
  98. width:
  99. IsLookOpen && !nav.isLook
  100. ? 'calc(100% - 75px)'
  101. : 'auto',
  102. }"
  103. >
  104. {{ nav.taskName }}
  105. </div>
  106. </el-tooltip>
  107. </div>
  108. <div class="lockTaskIcon">
  109. <img
  110. src="../assets/lock.png"
  111. v-if="IsLookOpen && !nav.isLook"
  112. alt=""
  113. />
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  122. <div
  123. class="new_top"
  124. style="
  125. position: fixed;
  126. top: 20px;
  127. left: 22%;
  128. width: 77%;
  129. z-index: 999;
  130. border-radius: 12px 12px 0 0;
  131. border-bottom: 1px solid #cad1dc;
  132. padding: 10px 0;
  133. "
  134. :class="{ navLeftCss: !mlDialog }"
  135. >
  136. <div class="courseIndex">
  137. <div>任务{{ taskCount + 1 }}</div>
  138. <el-tooltip
  139. effect="light"
  140. :content="
  141. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  142. "
  143. placement="top"
  144. >
  145. <div>
  146. {{
  147. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .task
  149. }}
  150. </div>
  151. </el-tooltip>
  152. </div>
  153. <div class="btnAll">
  154. <div
  155. class="returnBtn"
  156. @click="nextOrpreSteps(0)"
  157. v-if="!(IsFollow && tType == 2)"
  158. >
  159. 上一步
  160. </div>
  161. <div
  162. class="returnBtn"
  163. @click="nextOrpreSteps(1)"
  164. v-if="!(IsFollow && tType == 2)"
  165. >
  166. 下一步
  167. </div>
  168. <!-- <div
  169. class="returnBtn"
  170. @click="allScrell"
  171. v-if="!(IsFollow && tType == 2)"
  172. >
  173. 全屏
  174. </div> -->
  175. <div class="returnBtn" @click="refreshCourse">刷新</div>
  176. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  177. 评论
  178. </div>
  179. <div
  180. class="returnBtn vedioIcon"
  181. @click="startRecording"
  182. v-if="!videoStart && (tType == 1 || tType == 4)"
  183. >
  184. 录制
  185. </div>
  186. <div
  187. class="returnBtn"
  188. @click="stopRecording"
  189. v-else-if="tType == 1 || tType == 4"
  190. style="background: #ee5255"
  191. >
  192. 下载
  193. </div>
  194. <div
  195. class="returnBtn lockIcon"
  196. @click="juriVisible = true"
  197. v-if="tType == 1"
  198. >
  199. 权限
  200. </div>
  201. <div
  202. class="returnBtn returnIcon"
  203. @click.stop="
  204. goTo(
  205. '/courseDetail?userid=' +
  206. userid +
  207. '&oid=' +
  208. oid +
  209. '&org=' +
  210. org +
  211. '&cid=' +
  212. classId +
  213. '&courseId=' +
  214. id +
  215. '&tType=' +
  216. tType +
  217. '&screenType=' +
  218. screenType
  219. )
  220. "
  221. >
  222. 返回
  223. </div>
  224. </div>
  225. </div>
  226. <div
  227. class="isNoMessage"
  228. v-if="
  229. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  230. .chapterData.length == 0 &&
  231. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  232. .toolChoose[0].tool.length == 0 &&
  233. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  234. .taskDetail == '' &&
  235. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && !(courseDetail.userid == userid ||
  236. (courseDetail.course_teacher &&
  237. courseDetail.course_teacher.indexOf(userid) != -1))
  238. "
  239. >
  240. <img src="../assets/icon/isNoMessage.png" alt />
  241. </div>
  242. <div class="study_top" :class="{ pzClass: pzDialog }">
  243. <div
  244. class="vedioBox"
  245. v-if="
  246. vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  247. "
  248. style="border-radius: 0 0 20px 20px"
  249. >
  250. <div
  251. class="student_head"
  252. v-if="
  253. vChapterData[taskCount].length > 0 ||
  254. fileC[taskCount].length > 0
  255. "
  256. >
  257. <div class="vedioTaskBox">
  258. <div
  259. :class="
  260. contentDialog == false
  261. ? 'box_course isContentCss'
  262. : 'box_course'
  263. "
  264. v-if="
  265. vChapterData.length > 0 &&
  266. vChapterData[taskCount] &&
  267. showType !== ''
  268. "
  269. >
  270. <div class="wheel" style="height: auto" v-if="showType === 0">
  271. <div
  272. class="workd_media"
  273. style="height: 650px; width: calc(100% - 50px)"
  274. >
  275. <video-player
  276. class="video-player vjs-custom-skin"
  277. :class="contentDialog == false ? 'isAllWidth' : ''"
  278. :playsinline="true"
  279. :options="playerO[taskCount]"
  280. @play="onPlayerPlay($event)"
  281. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  282. ></video-player>
  283. </div>
  284. </div>
  285. <div
  286. class="wheel"
  287. v-if="showType == 1"
  288. style="
  289. box-shadow: 0 0 6px 1px #f2f2f2;
  290. width: 95%;
  291. margin: 0 auto;
  292. background: #f1f1f1;
  293. "
  294. >
  295. <div class="title">查看文档</div>
  296. <el-form class="textBox">
  297. <el-form-item class="textTitle">
  298. <div style="font-size: 22px">
  299. {{ text.name }}
  300. </div>
  301. </el-form-item>
  302. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  303. <div v-html="text.url" class="textContent cont"></div>
  304. </el-form>
  305. </div>
  306. <div
  307. class="wheel"
  308. v-if="
  309. pptImgUrl1.indexOf(
  310. 'https://view.officeapps.live.com/op/view.aspx?src='
  311. ) != -1 && showType == 2
  312. "
  313. style="width: 95%; margin: 0 auto"
  314. >
  315. <iframe
  316. style="width: 100%; height: 100%; border: none"
  317. :src="pptImgUrl1"
  318. ></iframe>
  319. </div>
  320. <div
  321. class="wheel"
  322. v-else-if="showType == 2"
  323. style="width: 95%; margin: 0 auto"
  324. >
  325. <iframe
  326. style="width: 100%; height: 100%; border: none"
  327. security="restricted"
  328. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  329. :src="pptImgUrl1"
  330. ></iframe>
  331. </div>
  332. <div
  333. class="wheel"
  334. v-if="showType == 3"
  335. style="width: 95%; margin: 0 auto"
  336. >
  337. <pdf
  338. :pdfUrl="pptImgUrl1"
  339. style="width: 100%; height: 100%; overflow: auto"
  340. ></pdf>
  341. </div>
  342. <div
  343. class="wheel"
  344. v-if="showType == 4"
  345. style="width: 95%; margin: 0 auto"
  346. >
  347. <el-image
  348. :src="pptImgUrl1"
  349. fit="contain"
  350. style="width: 100%; height: 100%; cursor: pointer"
  351. @click="previewImg(pptImgUrl1)"
  352. ></el-image>
  353. </div>
  354. </div>
  355. <div
  356. class="pButton"
  357. style="
  358. position: absolute;
  359. right: 20px;
  360. top: 0;
  361. background: #205cc6;
  362. z-index: 998;
  363. opacity: 0.8;
  364. "
  365. v-if="!contentDialog"
  366. @click="setContent(true)"
  367. >
  368. <!-- 批 -->
  369. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  370. </div>
  371. <div
  372. v-if="contentDialog == true"
  373. :style="{
  374. width:
  375. (vChapterData[taskCount].length > 0 ||
  376. fileC[taskCount].length > 0) &&
  377. showType === ''
  378. ? 'calc(100%)'
  379. : '300px',
  380. margin:
  381. (vChapterData[taskCount].length > 0 ||
  382. fileC[taskCount].length > 0) &&
  383. showType === ''
  384. ? '0 15px'
  385. : '0 15px 0 0',
  386. }"
  387. >
  388. <div
  389. class="vedioList"
  390. v-if="
  391. vChapterData[taskCount].length > 0 ||
  392. fileC[taskCount].length > 0
  393. "
  394. style="height: 650px"
  395. >
  396. <div class="navCorOpenBox">
  397. <div class="navTitile">内容列表:</div>
  398. <div class="navCorOpen" @click="setContent(false)">
  399. <img src="../assets/icon/newIcon/mlBtn.png" alt="" />
  400. </div>
  401. </div>
  402. <div class="navBox">
  403. <div
  404. v-show="
  405. vChapterData[taskCount].length > 0 ||
  406. fileC[taskCount].length > 0
  407. "
  408. style="padding: 10px 0 25px 0"
  409. >
  410. <div
  411. class="vedioTimeBox"
  412. v-for="(vitem, vindex) in vChapterData[taskCount]"
  413. :key="vindex + '1'"
  414. >
  415. <div class="navListItem" v-if="vitem.type == 2">
  416. <div
  417. @click="lookVedio(vitem.url, vindex)"
  418. class="navText"
  419. :class="isClickNav == vindex ? 'isClickNav' : ''"
  420. >
  421. <span v-if="vitem.text">{{ vitem.text }}-</span
  422. >{{ vitem.name }}
  423. </div>
  424. <div class="downIcon" @click="downloadFile2(vitem)">
  425. <img src="../assets/icon/newIcon/down.png" alt />
  426. </div>
  427. </div>
  428. <div class="navListItem" v-if="vitem.type == 6">
  429. <div
  430. @click="lookText(taskCount, vindex)"
  431. class="navText"
  432. :class="isClickNav == vindex ? 'isClickNav' : ''"
  433. >
  434. {{ vitem.name }}.doc
  435. </div>
  436. <!-- <div
  437. class="downIcon"
  438. @click="downloadFile(vitem.url)"
  439. >
  440. <img src="../assets/icon/newIcon/down.png" alt />
  441. </div> -->
  442. </div>
  443. <div class="navListItem" v-if="vitem.type == 8">
  444. <div
  445. @click="doUrl(vitem.url, vindex)"
  446. class="navText"
  447. :class="isClickNav == vindex ? 'isClickNav' : ''"
  448. >
  449. {{ vitem.title ? vitem.title : vitem.url }}
  450. </div>
  451. <!-- <div
  452. class="downIcon"
  453. @click="downloadFile(vitem.url)"
  454. >
  455. <img src="../assets/icon/newIcon/down.png" alt />
  456. </div> -->
  457. </div>
  458. <div class="navListItem" v-if="vitem.type == 3">
  459. <div
  460. @click="downFile(vitem, vindex)"
  461. class="navText"
  462. :class="isClickNav == vindex ? 'isClickNav' : ''"
  463. >
  464. <span v-if="vitem.text">{{ vitem.text }}-</span
  465. >{{ vitem.name }}
  466. </div>
  467. <div class="downIcon" @click="downloadFile2(vitem)">
  468. <img src="../assets/icon/newIcon/down.png" alt />
  469. </div>
  470. </div>
  471. <div class="navListItem" v-if="vitem.type == 12">
  472. <div class="navText" @click="downloadFile2(vitem)">
  473. <span v-if="vitem.text">{{ vitem.text }}-</span
  474. >{{ vitem.name }}
  475. </div>
  476. <div class="downIcon" @click="downloadFile2(vitem)">
  477. <img src="../assets/icon/newIcon/down.png" alt />
  478. </div>
  479. </div>
  480. <div class="navListItem" v-if="vitem.type == 13">
  481. <div
  482. class="navText"
  483. @click="checkPhoto(vitem, vindex)"
  484. :class="isClickNav == vindex ? 'isClickNav' : ''"
  485. >
  486. {{ vitem.name }}
  487. </div>
  488. <div class="downIcon" @click="downloadFile2(vitem)">
  489. <img src="../assets/icon/newIcon/down.png" alt />
  490. </div>
  491. </div>
  492. </div>
  493. <div
  494. class="fileC_box"
  495. v-if="fileC[taskCount].length > 0"
  496. >
  497. <div class="fileC_title">以下文件不支持预览</div>
  498. <div
  499. class="vedioTimeBox"
  500. v-for="(vitem, vindex) in fileC[taskCount]"
  501. :key="vindex + '1'"
  502. >
  503. <div class="navListItem" v-if="vitem.type == 12">
  504. <div class="navText" style="color: #acb4bf">
  505. <span v-if="vitem.text">{{ vitem.text }}-</span
  506. >{{ vitem.name }}
  507. </div>
  508. <div
  509. class="downIcon"
  510. @click="downloadFile2(vitem)"
  511. >
  512. <img
  513. src="../assets/icon/newIcon/down.png"
  514. alt
  515. />
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. <div style="width: calc(100% - 315px)">
  526. <div
  527. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  528. v-if="showType == 2 || showType == 3"
  529. >
  530. <el-button
  531. type="primary"
  532. class="newButton"
  533. @click="checkFileFull(showType, pptImgUrl1)"
  534. >全屏查看</el-button
  535. >
  536. <el-button
  537. type="primary"
  538. class="newButton"
  539. @click="downloadFile(pptImgUrl1)"
  540. v-if="showType != 2"
  541. >文件下载</el-button
  542. >
  543. <el-button
  544. class="newButton"
  545. v-if="
  546. showType == 2 &&
  547. pptImgUrl1.indexOf(
  548. 'https://view.officeapps.live.com/op/view.aspx?src='
  549. ) == -1
  550. "
  551. type="primary"
  552. @click="openLine(pptImgUrl1)"
  553. >打开链接
  554. </el-button>
  555. </div>
  556. <div
  557. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  558. v-if="showType == 1"
  559. >
  560. <el-button
  561. type="primary"
  562. class="newButton"
  563. @click="checkFileFull(showType, text)"
  564. >全屏查看</el-button
  565. >
  566. </div>
  567. </div>
  568. </div>
  569. </div>
  570. <div class="student_body" v-resize="resize">
  571. <div
  572. class="vedioBox"
  573. :style="{
  574. borderRadius:
  575. vChapterData[taskCount].length == 0 &&
  576. fileC[taskCount].length == 0
  577. ? '0 0 20px 20px'
  578. : '20px',
  579. }"
  580. v-if="
  581. ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  582. .toolChoose[0].tool &&
  583. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  584. .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  585. .taskDetail != '')) || (courseDetail.userid == userid ||
  586. (courseDetail.course_teacher &&
  587. courseDetail.course_teacher.indexOf(userid) != -1))
  588. "
  589. >
  590. <div
  591. class="taskBox"
  592. v-if="
  593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  594. .taskDetail != ''
  595. "
  596. :style="(chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  597. .toolChoose[0].tool &&
  598. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  599. .toolChoose[0].tool.length &&
  600. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  601. .toolChoose[0].tool.length > 0) ? 'border-bottom: 1px solid #cad1dc' : ''"
  602. >
  603. <div
  604. style="
  605. display: flex;
  606. flex-wrap: nowrap;
  607. flex-direction: column;
  608. position: relative;
  609. "
  610. >
  611. <div
  612. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  613. class="cont"
  614. v-if="
  615. chapInfoList[courseType].chapterInfo[0].taskJson[
  616. taskCount
  617. ].taskDetail != ''
  618. "
  619. v-html="
  620. chapInfoList[courseType].chapterInfo[0].taskJson[
  621. taskCount
  622. ].taskDetail
  623. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  624. taskCount
  625. ].taskDetail
  626. : '暂无描述'
  627. "
  628. ></div>
  629. </div>
  630. </div>
  631. <div
  632. class="vedioBox"
  633. v-if="
  634. courseDetail.userid == userid ||
  635. (courseDetail.course_teacher &&
  636. courseDetail.course_teacher.indexOf(userid) != -1)
  637. "
  638. >
  639. <div
  640. class="queTop"
  641. style="
  642. padding: 15px 0 15px 37px;
  643. font-weight: bold;
  644. font-size: 20px;
  645. color: #0e1e33;
  646. "
  647. >
  648. 工具栏
  649. <el-button
  650. style="margin: 0 30px 0 auto"
  651. type="primary"
  652. size="small"
  653. @click="addToolChoose"
  654. >确定</el-button
  655. >
  656. </div>
  657. <div class="tool_work_box">
  658. <div class="tool_box">
  659. <div class="tool_type_box">
  660. <div class="chooseWho">
  661. <!-- <div :class="toolType == 0 ? 'isChooseActive' : ''
  662. " @click="(toolType = 0), $forceUpdate()">
  663. 互动类
  664. </div> -->
  665. <div
  666. :class="toolType == 1 ? 'isChooseActive' : ''"
  667. @click="(toolType = 1), $forceUpdate()"
  668. >
  669. 思维类
  670. </div>
  671. <!-- <div
  672. :class="toolType == 6 ? 'isChooseActive' : ''"
  673. @click="(toolType = 6), $forceUpdate()"
  674. >
  675. 协作类
  676. </div> -->
  677. <div
  678. :class="toolType == 2 ? 'isChooseActive' : ''"
  679. @click="(toolType = 2), $forceUpdate()"
  680. >
  681. 测评类
  682. </div>
  683. <!-- <div
  684. :class="toolType == 7 ? 'isChooseActive' : ''"
  685. @click="(toolType = 7), $forceUpdate()"
  686. >
  687. 评价类
  688. </div> -->
  689. <div
  690. :class="toolType == 3 ? 'isChooseActive' : ''"
  691. @click="(toolType = 3), $forceUpdate()"
  692. >
  693. 学科类
  694. </div>
  695. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  696. " @click="(toolType = 5), $forceUpdate()">
  697. 学科类
  698. </div>
  699. <div :class="toolType == 4 ? 'isChooseActive' : ''
  700. " @click="(toolType = 4), $forceUpdate()">
  701. 其他
  702. </div> -->
  703. </div>
  704. </div>
  705. <div>
  706. <div class="toolSort" v-if="toolType == 0">
  707. <div class="tool">
  708. <div class="whiteBIcon" @click="addTools2(10)">
  709. <img
  710. src="../assets/icon/thirdToolList/time.png"
  711. alt
  712. />
  713. <div style="margin: 5px 0">倒计时</div>
  714. </div>
  715. <div class="check" @click="addTools2(10)">
  716. <img
  717. src="../assets/icon/checkNo.png"
  718. alt
  719. v-if="checktoolArray.indexOf(10) == -1"
  720. />
  721. <div class="checkDiv" v-else>
  722. <img
  723. src="../assets/icon/checkedIs.png"
  724. alt
  725. /><span>已选择</span>
  726. </div>
  727. </div>
  728. </div>
  729. </div>
  730. <div class="toolSort" v-if="toolType == 1">
  731. <div class="tool">
  732. <div class="whiteBIcon" @click="addTools2(7)">
  733. <img
  734. src="../assets/icon/secondToolList/mindNetwork.png"
  735. alt
  736. />
  737. <div style="margin: 5px 0">思维网格</div>
  738. </div>
  739. <div class="check" @click="addTools2(7)">
  740. <img
  741. src="../assets/icon/checkNo.png"
  742. alt
  743. v-if="checktoolArray.indexOf(7) == -1"
  744. />
  745. <div class="checkDiv" v-else>
  746. <img
  747. src="../assets/icon/checkedIs.png"
  748. alt
  749. /><span>已选择</span>
  750. </div>
  751. </div>
  752. </div>
  753. <div class="tool">
  754. <div class="whiteBIcon" @click="addTools2(1)">
  755. <img
  756. src="../assets/icon/secondToolList/whiteBoard.png"
  757. alt
  758. />
  759. <div style="margin: 5px 0">电子白板</div>
  760. </div>
  761. <div class="check" @click="addTools2(1)">
  762. <img
  763. src="../assets/icon/checkNo.png"
  764. alt
  765. v-if="checktoolArray.indexOf(1) == -1"
  766. />
  767. <div class="checkDiv" v-else>
  768. <img
  769. src="../assets/icon/checkedIs.png"
  770. alt
  771. /><span>已选择</span>
  772. </div>
  773. </div>
  774. </div>
  775. <div class="tool">
  776. <div class="whiteBIcon" @click="addTools2(52)">
  777. <img
  778. src="../assets/icon/fourthToolList/text.png"
  779. alt
  780. />
  781. <div style="margin: 5px 0">文档</div>
  782. </div>
  783. <div class="check" @click="addTools2(52)">
  784. <img
  785. src="../assets/icon/checkNo.png"
  786. alt
  787. v-if="checktoolArray.indexOf(52) == -1"
  788. />
  789. <div class="checkDiv" v-else>
  790. <img
  791. src="../assets/icon/checkedIs.png"
  792. alt
  793. /><span>已选择</span>
  794. </div>
  795. </div>
  796. </div>
  797. <div class="tool">
  798. <div class="whiteBIcon" @click="addTools2(3)">
  799. <img
  800. src="../assets/icon/secondToolList/mindMapping.png"
  801. alt
  802. />
  803. <div style="margin: 5px 0">思维导图</div>
  804. </div>
  805. <div class="check" @click="addTools2(3)">
  806. <img
  807. src="../assets/icon/checkNo.png"
  808. alt
  809. v-if="checktoolArray.indexOf(3) == -1"
  810. />
  811. <div class="checkDiv" v-else>
  812. <img
  813. src="../assets/icon/checkedIs.png"
  814. alt
  815. /><span>已选择</span>
  816. </div>
  817. </div>
  818. </div>
  819. <div class="tool">
  820. <div class="whiteBIcon" @click="addTools2(48)">
  821. <img
  822. src="../assets/icon/fourthToolList/table.png"
  823. alt
  824. />
  825. <div style="margin: 5px 0">表格</div>
  826. </div>
  827. <div class="check" @click="addTools2(48)">
  828. <img
  829. src="../assets/icon/checkNo.png"
  830. alt
  831. v-if="checktoolArray.indexOf(48) == -1"
  832. />
  833. <div class="checkDiv" v-else>
  834. <img
  835. src="../assets/icon/checkedIs.png"
  836. alt
  837. /><span>已选择</span>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. <div class="toolSort" v-if="toolType == 6">
  843. <div v-show="tooC == 49">
  844. <img
  845. @click="addTools(tooC, toolIndex, taskCount)"
  846. src="../assets/icon/fourthToolList/group.png"
  847. alt
  848. />
  849. <div style="margin: 5px 0">学生分组</div>
  850. </div>
  851. </div>
  852. <div class="toolSort" v-if="toolType == 2">
  853. <div class="tool">
  854. <div class="whiteBIcon" @click="addTools2(16)">
  855. <img
  856. src="../assets/icon/thirdToolList/work.png"
  857. alt
  858. />
  859. <div style="margin: 5px 0">作业提交</div>
  860. </div>
  861. <div class="check" @click="addTools2(16)">
  862. <img
  863. src="../assets/icon/checkNo.png"
  864. alt
  865. v-if="checktoolArray.indexOf(16) == -1"
  866. />
  867. <div class="checkDiv" v-else>
  868. <img
  869. src="../assets/icon/checkedIs.png"
  870. alt
  871. /><span>已选择</span>
  872. </div>
  873. </div>
  874. </div>
  875. <div class="tool">
  876. <div class="whiteBIcon" @click="addTools2(50)">
  877. <img
  878. src="../assets/icon/thirdToolList/plwork.png"
  879. alt
  880. />
  881. <div style="margin: 5px 0">批量上传</div>
  882. </div>
  883. <div class="check" @click="addTools2(50)">
  884. <img
  885. src="../assets/icon/checkNo.png"
  886. alt
  887. v-if="checktoolArray.indexOf(50) == -1"
  888. />
  889. <div class="checkDiv" v-else>
  890. <img
  891. src="../assets/icon/checkedIs.png"
  892. alt
  893. /><span>已选择</span>
  894. </div>
  895. </div>
  896. </div>
  897. </div>
  898. <div class="toolSort" v-if="toolType == 3">
  899. <div class="tool">
  900. <div class="whiteBIcon" @click="addTools2(18)">
  901. <img
  902. src="../assets/icon/thirdToolList/trainPlatform.png"
  903. alt
  904. />
  905. <div style="margin: 5px 0">训练平台</div>
  906. </div>
  907. <div class="check" @click="addTools2(18)">
  908. <img
  909. src="../assets/icon/checkNo.png"
  910. alt
  911. v-if="checktoolArray.indexOf(18) == -1"
  912. />
  913. <div class="checkDiv" v-else>
  914. <img
  915. src="../assets/icon/checkedIs.png"
  916. alt
  917. /><span>已选择</span>
  918. </div>
  919. </div>
  920. </div>
  921. <div class="tool">
  922. <div class="whiteBIcon" @click="addTools2(21)">
  923. <img
  924. src="../assets/icon/fourthToolList/program.png"
  925. alt
  926. />
  927. <div style="margin: 5px 0">编程平台</div>
  928. </div>
  929. <div class="check" @click="addTools2(21)">
  930. <img
  931. src="../assets/icon/checkNo.png"
  932. alt
  933. v-if="checktoolArray.indexOf(21) == -1"
  934. />
  935. <div class="checkDiv" v-else>
  936. <img
  937. src="../assets/icon/checkedIs.png"
  938. alt
  939. /><span>已选择</span>
  940. </div>
  941. </div>
  942. </div>
  943. <div class="tool">
  944. <div class="whiteBIcon" @click="addTools2(22)">
  945. <img
  946. src="../assets/icon/fourthToolList/AIprogram2.png"
  947. alt
  948. />
  949. <div style="margin: 5px 0">AI体验</div>
  950. </div>
  951. <div class="check" @click="addTools2(22)">
  952. <img
  953. src="../assets/icon/checkNo.png"
  954. alt
  955. v-if="checktoolArray.indexOf(22) == -1"
  956. />
  957. <div class="checkDiv" v-else>
  958. <img
  959. src="../assets/icon/checkedIs.png"
  960. alt
  961. /><span>已选择</span>
  962. </div>
  963. </div>
  964. </div>
  965. <div class="tool">
  966. <div class="whiteBIcon" @click="addTools2(23)">
  967. <img
  968. src="../assets/icon/fourthToolList/Pythonprogram.png"
  969. alt
  970. />
  971. <div style="margin: 5px 0">Python</div>
  972. </div>
  973. <div class="check" @click="addTools2(23)">
  974. <img
  975. src="../assets/icon/checkNo.png"
  976. alt
  977. v-if="checktoolArray.indexOf(23) == -1"
  978. />
  979. <div class="checkDiv" v-else>
  980. <img
  981. src="../assets/icon/checkedIs.png"
  982. alt
  983. /><span>已选择</span>
  984. </div>
  985. </div>
  986. </div>
  987. <div class="tool">
  988. <div class="whiteBIcon" @click="addTools2(24)">
  989. <img
  990. src="../assets/icon/fourthToolList/AIprogram.png"
  991. alt
  992. />
  993. <div style="margin: 5px 0">AI平台</div>
  994. </div>
  995. <div class="check" @click="addTools2(24)">
  996. <img
  997. src="../assets/icon/checkNo.png"
  998. alt
  999. v-if="checktoolArray.indexOf(24) == -1"
  1000. />
  1001. <div class="checkDiv" v-else>
  1002. <img
  1003. src="../assets/icon/checkedIs.png"
  1004. alt
  1005. /><span>已选择</span>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. <div class="tool">
  1010. <div class="whiteBIcon" @click="addTools2(32)">
  1011. <img
  1012. src="../assets/icon/thirdToolList/code.png"
  1013. alt
  1014. />
  1015. <div style="margin: 5px 0">源码编辑</div>
  1016. </div>
  1017. <div class="check" @click="addTools2(32)">
  1018. <img
  1019. src="../assets/icon/checkNo.png"
  1020. alt
  1021. v-if="checktoolArray.indexOf(32) == -1"
  1022. />
  1023. <div class="checkDiv" v-else>
  1024. <img
  1025. src="../assets/icon/checkedIs.png"
  1026. alt
  1027. /><span>已选择</span>
  1028. </div>
  1029. </div>
  1030. </div>
  1031. <div class="tool">
  1032. <div class="whiteBIcon" @click="addTools2(57)">
  1033. <img
  1034. src="../assets/icon/fourthToolList/cocopi.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">CocoPi</div>
  1038. </div>
  1039. <div class="check" @click="addTools2(57)">
  1040. <img
  1041. src="../assets/icon/checkNo.png"
  1042. alt
  1043. v-if="checktoolArray.indexOf(57) == -1"
  1044. />
  1045. <div class="checkDiv" v-else>
  1046. <img
  1047. src="../assets/icon/checkedIs.png"
  1048. alt
  1049. /><span>已选择</span>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <div class="tool">
  1054. <div class="whiteBIcon" @click="addTools2(63)">
  1055. <img
  1056. src="../assets/icon/fourthToolList/Wood.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">海龟编程</div>
  1060. </div>
  1061. <div class="check" @click="addTools2(63)">
  1062. <img
  1063. src="../assets/icon/checkNo.png"
  1064. alt
  1065. v-if="checktoolArray.indexOf(63) == -1"
  1066. />
  1067. <div class="checkDiv" v-else>
  1068. <img
  1069. src="../assets/icon/checkedIs.png"
  1070. alt
  1071. /><span>已选择</span>
  1072. </div>
  1073. </div>
  1074. </div>
  1075. </div>
  1076. <div class="toolSort" v-if="toolType == 7">
  1077. <div class="tool">
  1078. <div class="whiteBIcon" @click="addTools2(40)">
  1079. <img
  1080. src="../assets/icon/secondToolList/eval.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">个人评价</div>
  1084. </div>
  1085. <div class="check" @click="addTools2(40)">
  1086. <img
  1087. src="../assets/icon/checkNo.png"
  1088. alt
  1089. v-if="checktoolArray.indexOf(40) == -1"
  1090. />
  1091. <div class="checkDiv" v-else>
  1092. <img
  1093. src="../assets/icon/checkedIs.png"
  1094. alt
  1095. /><span>已选择</span>
  1096. </div>
  1097. </div>
  1098. </div>
  1099. </div>
  1100. <div class="toolSort" v-if="toolType == 5">
  1101. <div class="tool">
  1102. <div class="whiteBIcon" @click="addTools2(28)">
  1103. <img
  1104. src="../assets/icon/secondToolList/translation.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">翻译</div>
  1108. </div>
  1109. <div class="check" @click="addTools2(28)">
  1110. <img
  1111. src="../assets/icon/checkNo.png"
  1112. alt
  1113. v-if="checktoolArray.indexOf(28) == -1"
  1114. />
  1115. <div class="checkDiv" v-else>
  1116. <img
  1117. src="../assets/icon/checkedIs.png"
  1118. alt
  1119. /><span>已选择</span>
  1120. </div>
  1121. </div>
  1122. </div>
  1123. <div class="tool">
  1124. <div class="whiteBIcon" @click="addTools2(37)">
  1125. <img
  1126. src="../assets/icon/secondToolList/mohe.png"
  1127. alt
  1128. />
  1129. <div style="margin: 5px 0">魔盒识字</div>
  1130. </div>
  1131. <div class="check" @click="addTools2(37)">
  1132. <img
  1133. src="../assets/icon/checkNo.png"
  1134. alt
  1135. v-if="checktoolArray.indexOf(37) == -1"
  1136. />
  1137. <div class="checkDiv" v-else>
  1138. <img
  1139. src="../assets/icon/checkedIs.png"
  1140. alt
  1141. /><span>已选择</span>
  1142. </div>
  1143. </div>
  1144. </div>
  1145. <div class="tool">
  1146. <div class="whiteBIcon" @click="addTools2(38)">
  1147. <img
  1148. src="../assets/icon/secondToolList/24game.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">24点</div>
  1152. </div>
  1153. <div class="check" @click="addTools2(38)">
  1154. <img
  1155. src="../assets/icon/checkNo.png"
  1156. alt
  1157. v-if="checktoolArray.indexOf(38) == -1"
  1158. />
  1159. <div class="checkDiv" v-else>
  1160. <img
  1161. src="../assets/icon/checkedIs.png"
  1162. alt
  1163. /><span>已选择</span>
  1164. </div>
  1165. </div>
  1166. </div>
  1167. <div class="tool">
  1168. <div class="whiteBIcon" @click="addTools2(31)">
  1169. <img
  1170. src="../assets/icon/secondToolList/networkPanel.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">数学画板</div>
  1174. </div>
  1175. <div class="check" @click="addTools2(31)">
  1176. <img
  1177. src="../assets/icon/checkNo.png"
  1178. alt
  1179. v-if="checktoolArray.indexOf(31) == -1"
  1180. />
  1181. <div class="checkDiv" v-else>
  1182. <img
  1183. src="../assets/icon/checkedIs.png"
  1184. alt
  1185. /><span>已选择</span>
  1186. </div>
  1187. </div>
  1188. </div>
  1189. <div class="tool">
  1190. <div class="whiteBIcon" @click="addTools2(39)">
  1191. <img
  1192. src="../assets/icon/secondToolList/GeoGebra.png"
  1193. alt
  1194. />
  1195. <div style="margin: 5px 0">GeoGebra</div>
  1196. </div>
  1197. <div class="check" @click="addTools2(39)">
  1198. <img
  1199. src="../assets/icon/checkNo.png"
  1200. alt
  1201. v-if="checktoolArray.indexOf(39) == -1"
  1202. />
  1203. <div class="checkDiv" v-else>
  1204. <img
  1205. src="../assets/icon/checkedIs.png"
  1206. alt
  1207. /><span>已选择</span>
  1208. </div>
  1209. </div>
  1210. </div>
  1211. <div class="tool">
  1212. <div class="whiteBIcon" @click="addTools2(58)">
  1213. <img
  1214. src="../assets/icon/fourthToolList/car.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">模拟驾驶</div>
  1218. </div>
  1219. <div class="check" @click="addTools2(58)">
  1220. <img
  1221. src="../assets/icon/checkNo.png"
  1222. alt
  1223. v-if="checktoolArray.indexOf(58) == -1"
  1224. />
  1225. <div class="checkDiv" v-else>
  1226. <img
  1227. src="../assets/icon/checkedIs.png"
  1228. alt
  1229. /><span>已选择</span>
  1230. </div>
  1231. </div>
  1232. </div>
  1233. <div class="tool">
  1234. <div class="whiteBIcon" @click="addTools2(59)">
  1235. <img
  1236. src="../assets/icon/fourthToolList/lineSearch.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">路径搜索</div>
  1240. </div>
  1241. <div class="check" @click="addTools2(59)">
  1242. <img
  1243. src="../assets/icon/checkNo.png"
  1244. alt
  1245. v-if="checktoolArray.indexOf(59) == -1"
  1246. />
  1247. <div class="checkDiv" v-else>
  1248. <img
  1249. src="../assets/icon/checkedIs.png"
  1250. alt
  1251. /><span>已选择</span>
  1252. </div>
  1253. </div>
  1254. </div>
  1255. <div class="tool">
  1256. <div class="whiteBIcon" @click="addTools2(60)">
  1257. <img
  1258. src="../assets/icon/fourthToolList/deepLearning.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">深度学习</div>
  1262. </div>
  1263. <div class="check" @click="addTools2(60)">
  1264. <img
  1265. src="../assets/icon/checkNo.png"
  1266. alt
  1267. v-if="checktoolArray.indexOf(60) == -1"
  1268. />
  1269. <div class="checkDiv" v-else>
  1270. <img
  1271. src="../assets/icon/checkedIs.png"
  1272. alt
  1273. /><span>已选择</span>
  1274. </div>
  1275. </div>
  1276. </div>
  1277. <div class="tool">
  1278. <div class="whiteBIcon" @click="addTools2(61)">
  1279. <img
  1280. src="../assets/icon/fourthToolList/allHistory.png"
  1281. alt
  1282. />
  1283. <div style="margin: 5px 0">全历史</div>
  1284. </div>
  1285. <div class="check" @click="addTools2(61)">
  1286. <img
  1287. src="../assets/icon/checkNo.png"
  1288. alt
  1289. v-if="checktoolArray.indexOf(61) == -1"
  1290. />
  1291. <div class="checkDiv" v-else>
  1292. <img
  1293. src="../assets/icon/checkedIs.png"
  1294. alt
  1295. /><span>已选择</span>
  1296. </div>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. <div class="toolSort" v-if="toolType == 4">
  1301. <div class="tool">
  1302. <div class="whiteBIcon" @click="addTools2(26)">
  1303. <img
  1304. src="../assets/icon/thirdToolList/courseDesign.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">课程设计</div>
  1308. </div>
  1309. <div class="check" @click="addTools2(26)">
  1310. <img
  1311. src="../assets/icon/checkNo.png"
  1312. alt
  1313. v-if="checktoolArray.indexOf(26) == -1"
  1314. />
  1315. <div class="checkDiv" v-else>
  1316. <img
  1317. src="../assets/icon/checkedIs.png"
  1318. alt
  1319. /><span>已选择</span>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. <div class="tool">
  1324. <div class="whiteBIcon" @click="addTools2(25)">
  1325. <img
  1326. src="../assets/icon/thirdToolList/evalua.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">目标管理</div>
  1330. </div>
  1331. <div class="check" @click="addTools2(25)">
  1332. <img
  1333. src="../assets/icon/checkNo.png"
  1334. alt
  1335. v-if="checktoolArray.indexOf(25) == -1"
  1336. />
  1337. <div class="checkDiv" v-else>
  1338. <img
  1339. src="../assets/icon/checkedIs.png"
  1340. alt
  1341. /><span>已选择</span>
  1342. </div>
  1343. </div>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. <div
  1351. class="toolHeng2"
  1352. style="position: relative"
  1353. v-if="
  1354. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1355. .toolChoose[0].tool &&
  1356. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1357. .toolChoose[0].tool.length &&
  1358. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1359. .toolChoose[0].tool.length > 0
  1360. "
  1361. >
  1362. <div class="workNav">工作区</div>
  1363. <div
  1364. class="filebox"
  1365. style="flex-wrap: nowrap"
  1366. v-for="(tool, toolIndex) in chapInfoList[courseType]
  1367. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1368. :key="toolIndex"
  1369. >
  1370. <div class="bzBox">
  1371. <div class="yCss"></div>
  1372. <div>步骤{{ toolIndex + 1 }}</div>
  1373. </div>
  1374. <div class="toolBox">
  1375. <div>
  1376. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1377. :key="indexTool"-->
  1378. <!-- <div class="iframeBox">
  1379. <div
  1380. class="addPoint isBorder"
  1381. v-for="(tooC, toolCIndex) in tool.tool"
  1382. :key="toolCIndex"
  1383. >
  1384. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1385. <div
  1386. class="iframeName"
  1387. >
  1388. 电子白板
  1389. </div>
  1390. <iframe
  1391. src="https://iwb.cocorobo.cn/"
  1392. ref="whiteBoard"
  1393. ></iframe>
  1394. </div>
  1395. </div>
  1396. </div>-->
  1397. <div class="noiframeBox">
  1398. <div
  1399. class="addPoint"
  1400. v-for="(tooC, toolCIndex) in tool.tool"
  1401. :key="toolCIndex"
  1402. >
  1403. <div v-if="tooC == 1">
  1404. <img
  1405. src="../assets/icon/secondToolList/whiteBoard.png"
  1406. alt
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. />
  1409. <div style="margin: 5px 0">电子白板</div>
  1410. </div>
  1411. <div v-if="tooC == 3">
  1412. <img
  1413. src="../assets/icon/secondToolList/mindMapping.png"
  1414. alt
  1415. @click="addTools(tooC, toolIndex, taskCount)"
  1416. />
  1417. <div style="margin: 5px 0">思维导图</div>
  1418. </div>
  1419. <div v-if="tooC == 6">
  1420. <img
  1421. src="../assets/icon/secondToolList/doc.png"
  1422. alt
  1423. @click="addTools(tooC, toolIndex, taskCount)"
  1424. />
  1425. <div style="margin: 5px 0">协同文档</div>
  1426. </div>
  1427. <div v-if="tooC == 7">
  1428. <img
  1429. src="../assets/icon/secondToolList/mindNetwork.png"
  1430. alt
  1431. @click="addTools(tooC, toolIndex, taskCount)"
  1432. />
  1433. <div style="margin: 5px 0">思维网格</div>
  1434. </div>
  1435. <div v-if="tooC == 8">
  1436. <img
  1437. src="../assets/icon/secondToolList/library.png"
  1438. alt
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. />
  1441. <div style="margin: 5px 0">素材库</div>
  1442. </div>
  1443. <div v-if="tooC == 17">
  1444. <img
  1445. src="../assets/icon/secondToolList/library.png"
  1446. alt
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. />
  1449. <div style="margin: 5px 0">学习资料</div>
  1450. </div>
  1451. <div v-if="tooC == 2">
  1452. <img
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../assets/icon/secondToolList/note.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">便签</div>
  1458. </div>
  1459. <div v-if="tooC == 4">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../assets/icon/thirdToolList/ask.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">问卷调查</div>
  1466. </div>
  1467. <div v-if="tooC == 45">
  1468. <img
  1469. @click="addTools(tooC, toolIndex, taskCount)"
  1470. src="../assets/icon/thirdToolList/choose.png"
  1471. alt
  1472. />
  1473. <div style="margin: 5px 0">选择题</div>
  1474. </div>
  1475. <!-- <div v-if="tooC == 5">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../assets/icon/thirdToolList/score.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">量规评分</div>
  1482. </div> -->
  1483. <div v-if="tooC == 10">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../assets/icon/thirdToolList/time.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">倒计时</div>
  1490. </div>
  1491. <div v-if="tooC == 15">
  1492. <img
  1493. @click="addTools(tooC, toolIndex, taskCount)"
  1494. src="../assets/icon/thirdToolList/answer.png"
  1495. alt
  1496. />
  1497. <div style="margin: 5px 0">问答工具</div>
  1498. </div>
  1499. <div v-if="tooC == 26">
  1500. <img
  1501. @click="addTools(tooC, toolIndex, taskCount)"
  1502. src="../assets/icon/thirdToolList/courseDesign.png"
  1503. alt
  1504. />
  1505. <div style="margin: 5px 0">课程设计</div>
  1506. </div>
  1507. <div v-if="tooC == 18">
  1508. <img
  1509. @click="addTools(tooC, toolIndex, taskCount)"
  1510. src="../assets/icon/thirdToolList/trainPlatform.png"
  1511. alt
  1512. />
  1513. <div style="margin: 5px 0">训练服务器</div>
  1514. </div>
  1515. <div v-if="tooC == 16">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../assets/icon/thirdToolList/work.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">作业提交</div>
  1522. </div>
  1523. <div v-if="tooC == 50">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../assets/icon/thirdToolList/plwork.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">批量上传</div>
  1530. </div>
  1531. <div v-if="tooC == 21">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../assets/icon/fourthToolList/program.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">编程平台</div>
  1538. </div>
  1539. <div v-if="tooC == 22">
  1540. <img
  1541. @click="addTools(tooC, toolIndex, taskCount)"
  1542. src="../assets/icon/fourthToolList/program.png"
  1543. alt
  1544. />
  1545. <div style="margin: 5px 0">AI体验</div>
  1546. </div>
  1547. <div v-if="tooC == 23">
  1548. <img
  1549. @click="addTools(tooC, toolIndex, taskCount)"
  1550. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1551. alt
  1552. />
  1553. <div style="margin: 5px 0">Python</div>
  1554. </div>
  1555. <div v-if="tooC == 24">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../assets/icon/fourthToolList/AIprogram.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">AI平台</div>
  1562. </div>
  1563. <div v-if="tooC == 25">
  1564. <img
  1565. @click="addTools(tooC, toolIndex, taskCount)"
  1566. src="../assets/icon/thirdToolList/evalua.png"
  1567. alt
  1568. />
  1569. <div style="margin: 5px 0">目标管理</div>
  1570. </div>
  1571. <div v-if="tooC == 31">
  1572. <img
  1573. @click="addTools(tooC, toolIndex, taskCount)"
  1574. src="../assets/icon/secondToolList/networkPanel.png"
  1575. alt
  1576. />
  1577. <div style="margin: 5px 0">数学画板</div>
  1578. </div>
  1579. <div v-if="tooC == 28">
  1580. <img
  1581. @click="addTools(tooC, toolIndex, taskCount)"
  1582. src="../assets/icon/secondToolList/translation.png"
  1583. alt
  1584. />
  1585. <div style="margin: 5px 0">翻译</div>
  1586. </div>
  1587. <div v-if="tooC == 37">
  1588. <img
  1589. @click="addTools(tooC, toolIndex, taskCount)"
  1590. src="../assets/icon/secondToolList/mohe.png"
  1591. alt
  1592. />
  1593. <div style="margin: 5px 0">魔盒识字</div>
  1594. </div>
  1595. <div v-if="tooC == 38">
  1596. <img
  1597. @click="addTools(tooC, toolIndex, taskCount)"
  1598. src="../assets/icon/secondToolList/24game.png"
  1599. alt
  1600. />
  1601. <div style="margin: 5px 0">24点</div>
  1602. </div>
  1603. <div v-if="tooC == 39">
  1604. <img
  1605. @click="addTools(tooC, toolIndex, taskCount)"
  1606. src="../assets/icon/secondToolList/GeoGebra.png"
  1607. alt
  1608. />
  1609. <div style="margin: 5px 0">GeoGebra</div>
  1610. </div>
  1611. <div v-if="tooC == 32">
  1612. <img
  1613. @click="addTools(tooC, toolIndex, taskCount)"
  1614. src="../assets/icon/thirdToolList/code.png"
  1615. alt
  1616. />
  1617. <div style="margin: 5px 0">源码编辑</div>
  1618. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1619. style="position: absolute;left: 110px;bottom: 30px;">
  1620. 上传文件
  1621. <input type="file" accept="*" style="display: none"
  1622. @change="beforeUpload1($event, 7, toolIndex)" />
  1623. </div> -->
  1624. </div>
  1625. <div v-if="tooC == 40">
  1626. <img
  1627. @click="addTools(tooC, toolIndex, taskCount)"
  1628. src="../assets/icon/secondToolList/eval.png"
  1629. alt
  1630. />
  1631. <div style="margin: 5px 0">个人评价</div>
  1632. </div>
  1633. <div v-if="tooC == 41">
  1634. <img
  1635. @click="addTools(tooC, toolIndex, taskCount)"
  1636. src="../assets/icon/thirdToolList/select.png"
  1637. alt
  1638. />
  1639. <div style="margin: 5px 0">选择填空</div>
  1640. </div>
  1641. <div v-if="tooC == 44">
  1642. <img
  1643. @click="addTools(tooC, toolIndex, taskCount)"
  1644. src="../assets/icon/thirdToolList/hanClass.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">汉字宫</div>
  1648. </div>
  1649. <div v-if="tooC == 47">
  1650. <img
  1651. @click="addTools(tooC, toolIndex, taskCount)"
  1652. src="../assets/icon/fourthToolList/conSentences.png"
  1653. alt
  1654. />
  1655. <div style="margin: 5px 0">连词成句</div>
  1656. </div>
  1657. <div v-if="tooC == 48">
  1658. <img
  1659. @click="addTools(tooC, toolIndex, taskCount)"
  1660. src="../assets/icon/fourthToolList/table.png"
  1661. alt
  1662. />
  1663. <div style="margin: 5px 0">表格</div>
  1664. </div>
  1665. <div v-if="tooC == 52">
  1666. <img
  1667. @click="addTools(tooC, toolIndex, taskCount)"
  1668. src="../assets/icon/fourthToolList/text.png"
  1669. alt
  1670. />
  1671. <div style="margin: 5px 0">文档</div>
  1672. </div>
  1673. <div v-if="tooC == 49">
  1674. <img
  1675. @click="addTools(tooC, toolIndex, taskCount)"
  1676. src="../assets/icon/fourthToolList/group.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">学生分组</div>
  1680. </div>
  1681. <div v-if="tooC == 57">
  1682. <img
  1683. @click="addTools(tooC, toolIndex, taskCount)"
  1684. src="../assets/icon/fourthToolList/cocopi.png"
  1685. alt
  1686. />
  1687. <div style="margin: 5px 0">CocoPi</div>
  1688. </div>
  1689. <div v-if="tooC == 58">
  1690. <img
  1691. @click="addTools(tooC, toolIndex, taskCount)"
  1692. src="../assets/icon/fourthToolList/car.png"
  1693. alt
  1694. />
  1695. <div style="margin: 5px 0">模拟驾驶</div>
  1696. </div>
  1697. <div v-if="tooC == 59">
  1698. <img
  1699. @click="addTools(tooC, toolIndex, taskCount)"
  1700. src="../assets/icon/fourthToolList/lineSearch.png"
  1701. alt
  1702. />
  1703. <div style="margin: 5px 0">路径搜索</div>
  1704. </div>
  1705. <div v-if="tooC == 60">
  1706. <img
  1707. @click="addTools(tooC, toolIndex, taskCount)"
  1708. src="../assets/icon/fourthToolList/deepLearning.png"
  1709. alt
  1710. />
  1711. <div style="margin: 5px 0">深度学习</div>
  1712. </div>
  1713. <div v-if="tooC == 61">
  1714. <img
  1715. @click="addTools(tooC, toolIndex, taskCount)"
  1716. src="../assets/icon/fourthToolList/allHistory.png"
  1717. alt
  1718. />
  1719. <div style="margin: 5px 0">全历史</div>
  1720. </div>
  1721. <div v-if="tooC == 62">
  1722. <img
  1723. @click="addTools(tooC, toolIndex, taskCount)"
  1724. src="../assets/icon/fourthToolList/interVideo.png"
  1725. alt
  1726. />
  1727. <div style="margin: 5px 0">交互视频</div>
  1728. </div>
  1729. <div v-if="tooC == 63">
  1730. <img
  1731. @click="addTools(tooC, toolIndex, taskCount)"
  1732. src="../assets/icon/fourthToolList/Wood.png"
  1733. alt
  1734. />
  1735. <div style="margin: 5px 0">海龟编程</div>
  1736. </div>
  1737. </div>
  1738. </div>
  1739. </div>
  1740. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1741. <!-- <div class="toolTitle">工具描述</div> -->
  1742. <div v-html="contentConvent(tool.toolDetail)"></div>
  1743. </div>
  1744. <el-button
  1745. type="primary"
  1746. v-if="tool.tool[0] == 32"
  1747. style="
  1748. position: absolute;
  1749. right: 30px;
  1750. transform: translateY(-130%);
  1751. "
  1752. @click="addImg($event)"
  1753. >上传作业<input
  1754. type="file"
  1755. accept="*"
  1756. style="display: none"
  1757. @change="beforeUpload1($event, 7, toolIndex)"
  1758. /></el-button>
  1759. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1760. position: absolute;
  1761. right: 30px;
  1762. transform: translateY(-130%);
  1763. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1764. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1765. </div>
  1766. <div
  1767. v-if="
  1768. tType &&
  1769. tType == 2 &&
  1770. !sIsOpen &&
  1771. tool.tool.indexOf(16) != -1
  1772. "
  1773. class="worksBox"
  1774. >
  1775. <div
  1776. class="zuoyeYulan"
  1777. v-if="workStudent[toolIndex].length > 0"
  1778. >
  1779. <span>作业预览</span>
  1780. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1781. </div>
  1782. <div
  1783. class="worksDetailBox"
  1784. v-if="workStudent[toolIndex].length > 0"
  1785. >
  1786. <div
  1787. class="works"
  1788. style="
  1789. width: 200px;
  1790. height: 140px;
  1791. margin: 10px 10px 10px 0;
  1792. box-shadow: 0 0 6px 1px #dfdada;
  1793. "
  1794. v-for="(w, wIndex) in workStudent[toolIndex]"
  1795. :key="wIndex"
  1796. >
  1797. <div class="workImg" v-if="w.type == 0">
  1798. <img
  1799. :src="w.works"
  1800. @click="previewImg(w.works)"
  1801. alt
  1802. />
  1803. <div
  1804. class="answerScore"
  1805. v-if="w.score"
  1806. @click.stop="openScore(w)"
  1807. :class="{
  1808. rightW:
  1809. w.userid == userid || tType == 1 || tType == 4,
  1810. }"
  1811. >
  1812. {{ JSON.parse(w.score).wScore }}分
  1813. </div>
  1814. <div
  1815. class="answerScore"
  1816. @click.stop="openScore(w)"
  1817. v-else-if="courseDetail.userid == userid"
  1818. :class="{
  1819. rightW:
  1820. w.userid == userid || tType == 1 || tType == 4,
  1821. }"
  1822. >
  1823. 评分
  1824. </div>
  1825. <img
  1826. class="deleteImg"
  1827. src="../assets/deleteworks.png"
  1828. v-if="
  1829. w.userid == userid || tType == 1 || tType == 4
  1830. "
  1831. @click.stop="deleteWorks(w.wid)"
  1832. alt
  1833. />
  1834. </div>
  1835. <div class="workImg" v-if="w.type == 1">
  1836. <img :src="word" @click="openFile(w.works)" alt />
  1837. <div
  1838. class="answerScore"
  1839. v-if="w.score"
  1840. @click.stop="openScore(w)"
  1841. :class="{
  1842. rightW:
  1843. w.userid == userid || tType == 1 || tType == 4,
  1844. }"
  1845. >
  1846. {{ JSON.parse(w.score).wScore }}分
  1847. </div>
  1848. <div
  1849. class="answerScore"
  1850. @click.stop="openScore(w)"
  1851. v-else-if="courseDetail.userid == userid"
  1852. :class="{
  1853. rightW:
  1854. w.userid == userid || tType == 1 || tType == 4,
  1855. }"
  1856. >
  1857. 评分
  1858. </div>
  1859. <img
  1860. class="deleteImg"
  1861. src="../assets/deleteworks.png"
  1862. v-if="
  1863. w.userid == userid || tType == 1 || tType == 4
  1864. "
  1865. @click.stop="deleteWorks(w.wid)"
  1866. alt
  1867. />
  1868. </div>
  1869. <div class="workImg" v-if="w.type == 3">
  1870. <img
  1871. style="cursor: pointer"
  1872. :src="video"
  1873. @click="openVideo(w)"
  1874. alt
  1875. />
  1876. <div
  1877. class="answerScore"
  1878. v-if="w.score"
  1879. @click.stop="openScore(w)"
  1880. :class="{
  1881. rightW:
  1882. w.userid == userid || tType == 1 || tType == 4,
  1883. }"
  1884. >
  1885. {{ JSON.parse(w.score).wScore }}分
  1886. </div>
  1887. <div
  1888. class="answerScore"
  1889. @click.stop="openScore(w)"
  1890. v-else-if="courseDetail.userid == userid"
  1891. :class="{
  1892. rightW:
  1893. w.userid == userid || tType == 1 || tType == 4,
  1894. }"
  1895. >
  1896. 评分
  1897. </div>
  1898. <img
  1899. class="deleteImg"
  1900. src="../assets/deleteworks.png"
  1901. v-if="
  1902. w.userid == userid || tType == 1 || tType == 4
  1903. "
  1904. @click.stop="deleteWorks(w.wid)"
  1905. alt
  1906. />
  1907. </div>
  1908. <div class="workImg" v-if="w.type == 12">
  1909. <img
  1910. style="cursor: pointer"
  1911. :src="word2"
  1912. @click="downloadFile(w.works)"
  1913. alt
  1914. />
  1915. <div
  1916. class="answerScore"
  1917. v-if="w.score"
  1918. @click.stop="openScore(w)"
  1919. :class="{
  1920. rightW:
  1921. w.userid == userid || tType == 1 || tType == 4,
  1922. }"
  1923. >
  1924. {{ JSON.parse(w.score).wScore }}分
  1925. </div>
  1926. <div
  1927. class="answerScore"
  1928. @click.stop="openScore(w)"
  1929. v-else-if="courseDetail.userid == userid"
  1930. :class="{
  1931. rightW:
  1932. w.userid == userid || tType == 1 || tType == 4,
  1933. }"
  1934. >
  1935. 评分
  1936. </div>
  1937. <img
  1938. class="deleteImg"
  1939. src="../assets/deleteworks.png"
  1940. v-if="
  1941. w.userid == userid || tType == 1 || tType == 4
  1942. "
  1943. @click.stop="deleteWorks(w.wid)"
  1944. alt
  1945. />
  1946. </div>
  1947. <div class="worksName">
  1948. <div>{{ w.sName }}</div>
  1949. </div>
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div
  1954. v-if="
  1955. tType &&
  1956. tType == 2 &&
  1957. !sIsOpen &&
  1958. tool.tool.indexOf(32) != -1
  1959. "
  1960. class="worksBox"
  1961. >
  1962. <div
  1963. class="zuoyeYulan"
  1964. v-if="workStudent[toolIndex].length > 0"
  1965. >
  1966. <span>作业预览</span>
  1967. </div>
  1968. <div
  1969. class="worksDetailBox"
  1970. v-if="workStudent[toolIndex].length > 0"
  1971. >
  1972. <div
  1973. class="works"
  1974. style="
  1975. width: 200px;
  1976. height: 140px;
  1977. margin: 10px 10px 10px 0;
  1978. box-shadow: 0 0 6px 1px #dfdada;
  1979. "
  1980. v-for="(w, wIndex) in workStudent[toolIndex]"
  1981. :key="wIndex"
  1982. >
  1983. <div class="workImg">
  1984. <img
  1985. :src="word2"
  1986. @click="downloadFile(w.works)"
  1987. alt
  1988. />
  1989. <div
  1990. class="answerScore"
  1991. v-if="w.score"
  1992. @click.stop="openScore(w)"
  1993. :class="{
  1994. rightW:
  1995. w.userid == userid || tType == 1 || tType == 4,
  1996. }"
  1997. >
  1998. {{ JSON.parse(w.score).wScore }}分
  1999. </div>
  2000. <div
  2001. class="answerScore"
  2002. @click.stop="openScore(w)"
  2003. v-else-if="courseDetail.userid == userid"
  2004. :class="{
  2005. rightW:
  2006. w.userid == userid || tType == 1 || tType == 4,
  2007. }"
  2008. >
  2009. 评分
  2010. </div>
  2011. <img
  2012. class="deleteImg"
  2013. src="../assets/deleteworks.png"
  2014. v-if="
  2015. w.userid == userid || tType == 1 || tType == 4
  2016. "
  2017. @click.stop="deleteWorks(w.wid)"
  2018. alt
  2019. />
  2020. </div>
  2021. <div class="worksName">
  2022. <div>{{ w.sName }}</div>
  2023. </div>
  2024. </div>
  2025. </div>
  2026. </div>
  2027. <div
  2028. v-if="
  2029. tType &&
  2030. tType == 2 &&
  2031. !sIsOpen &&
  2032. tool.tool.indexOf(57) != -1
  2033. "
  2034. class="worksBox"
  2035. >
  2036. <div
  2037. class="zuoyeYulan"
  2038. v-if="workStudent[toolIndex].length > 0"
  2039. >
  2040. <span>作业预览</span>
  2041. </div>
  2042. <div
  2043. class="worksDetailBox"
  2044. v-if="workStudent[toolIndex].length > 0"
  2045. >
  2046. <div
  2047. class="works"
  2048. style="
  2049. width: 200px;
  2050. height: 140px;
  2051. margin: 10px 10px 10px 0;
  2052. box-shadow: 0 0 6px 1px #dfdada;
  2053. "
  2054. v-for="(w, wIndex) in workStudent[toolIndex]"
  2055. :key="wIndex"
  2056. >
  2057. <div class="workImg">
  2058. <img
  2059. :src="word2"
  2060. @click="downloadFile(w.works)"
  2061. v-if="w.type == 12"
  2062. alt
  2063. />
  2064. <img
  2065. :src="word2"
  2066. @click="
  2067. openCocoPi(57, toolIndex, w.userid, w.sName)
  2068. "
  2069. v-else-if="w.type == 15"
  2070. alt
  2071. />
  2072. <div
  2073. class="answerScore"
  2074. v-if="w.score"
  2075. @click.stop="openScore(w)"
  2076. :class="{
  2077. rightW:
  2078. w.userid == userid || tType == 1 || tType == 4,
  2079. }"
  2080. >
  2081. {{ JSON.parse(w.score).wScore }}分
  2082. </div>
  2083. <div
  2084. class="answerScore"
  2085. @click.stop="openScore(w)"
  2086. v-else-if="courseDetail.userid == userid"
  2087. :class="{
  2088. rightW:
  2089. w.userid == userid || tType == 1 || tType == 4,
  2090. }"
  2091. >
  2092. 评分
  2093. </div>
  2094. <img
  2095. class="deleteImg"
  2096. src="../assets/deleteworks.png"
  2097. v-if="
  2098. w.userid == userid || tType == 1 || tType == 4
  2099. "
  2100. @click.stop="deleteWorks(w.wid)"
  2101. alt
  2102. />
  2103. </div>
  2104. <div class="worksName">
  2105. <div>{{ w.sName }}</div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. <div
  2111. v-if="
  2112. tType &&
  2113. tType == 2 &&
  2114. !sIsOpen &&
  2115. tool.tool.indexOf(4) != -1
  2116. "
  2117. class="worksBox"
  2118. >
  2119. <div
  2120. class="zuoyeYulan"
  2121. v-if="workStudent[toolIndex].length > 0"
  2122. >
  2123. <span>作业预览</span>
  2124. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2125. </div>
  2126. <div
  2127. class="worksDetailBox"
  2128. v-if="workStudent[toolIndex].length > 0"
  2129. >
  2130. <div
  2131. class="isWorksName"
  2132. v-for="(w, wIndex) in workStudent[toolIndex]"
  2133. :key="wIndex"
  2134. @click="
  2135. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2136. "
  2137. >
  2138. {{ w.sName }}
  2139. <img
  2140. class="deleteImg deleteImg2"
  2141. src="../assets/deleteworks.png"
  2142. v-if="w.userid == userid || tType == 1 || tType == 4"
  2143. @click.stop="deleteWorks(w.wid)"
  2144. alt
  2145. />
  2146. </div>
  2147. <!-- <div
  2148. class="works"
  2149. style="
  2150. width: 200px;
  2151. height: 140px;
  2152. border-radius: 10px;
  2153. box-shadow: 0 0 6px 1px #dfdada;
  2154. overflow: hidden;
  2155. "
  2156. v-for="(w, wIndex) in workStudent[toolIndex]"
  2157. :key="wIndex"
  2158. >
  2159. <div class="workImg">
  2160. <img
  2161. src="../assets/icon/works/noImg.png"
  2162. @click="
  2163. openTools(
  2164. 4,
  2165. toolIndex,
  2166. taskCount,
  2167. w.works,
  2168. w.sName
  2169. )
  2170. "
  2171. alt
  2172. />
  2173. </div>
  2174. <div class="worksName">
  2175. <div>{{ w.sName }}</div>
  2176. <div>{{ w.time }}</div>
  2177. </div>
  2178. </div> -->
  2179. </div>
  2180. </div>
  2181. <div
  2182. v-if="
  2183. tType &&
  2184. tType == 2 &&
  2185. !sIsOpen &&
  2186. tool.tool.indexOf(45) != -1
  2187. "
  2188. class="worksBox"
  2189. >
  2190. <div
  2191. class="zuoyeYulan"
  2192. v-if="workStudent[toolIndex].length > 0"
  2193. >
  2194. <span>作业预览</span>
  2195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2196. </div>
  2197. <div
  2198. class="worksDetailBox"
  2199. v-if="workStudent[toolIndex].length > 0"
  2200. >
  2201. <div
  2202. class="isWorksName"
  2203. v-for="(w, wIndex) in workStudent[toolIndex]"
  2204. :key="wIndex"
  2205. @click="
  2206. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2207. "
  2208. >
  2209. {{ w.sName }}
  2210. <img
  2211. class="deleteImg deleteImg2"
  2212. src="../assets/deleteworks.png"
  2213. v-if="w.userid == userid || tType == 1 || tType == 4"
  2214. @click.stop="deleteWorks(w.wid)"
  2215. alt
  2216. />
  2217. </div>
  2218. </div>
  2219. </div>
  2220. <div
  2221. v-if="
  2222. tType &&
  2223. tType == 2 &&
  2224. !sIsOpen &&
  2225. tool.tool.indexOf(15) != -1
  2226. "
  2227. class="worksBox"
  2228. >
  2229. <div
  2230. class="zuoyeYulan"
  2231. v-if="workStudent[toolIndex].length > 0"
  2232. >
  2233. <span>作业预览</span>
  2234. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2235. </div>
  2236. <div
  2237. class="worksDetailBox"
  2238. v-if="workStudent[toolIndex].length > 0"
  2239. >
  2240. <div
  2241. class="works"
  2242. v-for="(w, wIndex) in workStudent[toolIndex]"
  2243. :key="wIndex"
  2244. >
  2245. <div class="workImg">
  2246. <!-- <img
  2247. src="../assets/icon/works/noImg.png"
  2248. @click="openTools(15, toolIndex, taskCount, w.works)"
  2249. alt=""
  2250. />-->
  2251. <div class="answerBg">
  2252. <!-- <div>{{ w.sName }}</div> -->
  2253. <el-tooltip
  2254. class="item"
  2255. effect="light"
  2256. :content="JSON.parse(w.works)[0].answer"
  2257. placement="top"
  2258. >
  2259. <div class="answerContent">
  2260. {{ JSON.parse(w.works)[0].answer }}
  2261. </div>
  2262. </el-tooltip>
  2263. <div
  2264. class="answerScore"
  2265. v-if="w.score"
  2266. @click.stop="openScore(w)"
  2267. :class="{
  2268. rightW:
  2269. w.userid == userid ||
  2270. tType == 1 ||
  2271. tType == 4,
  2272. }"
  2273. >
  2274. {{ JSON.parse(w.score).wScore }}分
  2275. </div>
  2276. <div
  2277. class="answerScore"
  2278. @click.stop="openScore(w)"
  2279. v-else-if="courseDetail.userid == userid"
  2280. :class="{
  2281. rightW:
  2282. w.userid == userid ||
  2283. tType == 1 ||
  2284. tType == 4,
  2285. }"
  2286. >
  2287. 评分
  2288. </div>
  2289. <img
  2290. class="deleteImg"
  2291. src="../assets/deleteworks.png"
  2292. v-if="
  2293. w.userid == userid || tType == 1 || tType == 4
  2294. "
  2295. @click.stop="deleteWorks(w.wid)"
  2296. alt
  2297. />
  2298. </div>
  2299. <div class="comment">
  2300. <div class="worksName">
  2301. <div>{{ w.sName }}</div>
  2302. </div>
  2303. </div>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. <div
  2309. v-if="
  2310. tType &&
  2311. tType == 2 &&
  2312. !sIsOpen &&
  2313. tool.tool.indexOf(1) != -1
  2314. "
  2315. class="worksBox"
  2316. >
  2317. <div
  2318. class="zuoyeYulan"
  2319. v-if="workStudent[toolIndex].length > 0"
  2320. >
  2321. <span>作业预览</span>
  2322. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2323. </div>
  2324. <div
  2325. class="worksDetailBox"
  2326. v-if="workStudent[toolIndex].length > 0"
  2327. >
  2328. <div
  2329. class="works"
  2330. style="
  2331. width: 200px;
  2332. height: 140px;
  2333. margin: 10px 10px 10px 0;
  2334. box-shadow: 0 0 6px 1px #dfdada;
  2335. "
  2336. v-for="(w, wIndex) in workStudent[toolIndex]"
  2337. :key="wIndex"
  2338. >
  2339. <div class="workImg">
  2340. <img
  2341. :src="w.works"
  2342. @click="previewImg(w.works)"
  2343. alt
  2344. />
  2345. <div
  2346. class="answerScore"
  2347. v-if="w.score"
  2348. @click.stop="openScore(w)"
  2349. :class="{
  2350. rightW:
  2351. w.userid == userid || tType == 1 || tType == 4,
  2352. }"
  2353. >
  2354. {{ JSON.parse(w.score).wScore }}分
  2355. </div>
  2356. <div
  2357. class="answerScore"
  2358. @click.stop="openScore(w)"
  2359. v-else-if="courseDetail.userid == userid"
  2360. :class="{
  2361. rightW:
  2362. w.userid == userid || tType == 1 || tType == 4,
  2363. }"
  2364. >
  2365. 评分
  2366. </div>
  2367. <img
  2368. class="deleteImg"
  2369. src="../assets/deleteworks.png"
  2370. v-if="
  2371. w.userid == userid || tType == 1 || tType == 4
  2372. "
  2373. @click.stop="deleteWorks(w.wid)"
  2374. alt
  2375. />
  2376. </div>
  2377. <div class="worksName">
  2378. <div>{{ w.sName }}</div>
  2379. </div>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. <div
  2384. v-if="
  2385. tType &&
  2386. tType == 2 &&
  2387. !sIsOpen &&
  2388. tool.tool.indexOf(3) != -1
  2389. "
  2390. class="worksBox"
  2391. >
  2392. <div
  2393. class="zuoyeYulan"
  2394. v-if="workStudent[toolIndex].length > 0"
  2395. >
  2396. <span>作业预览</span>
  2397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2398. </div>
  2399. <div
  2400. class="worksDetailBox"
  2401. v-if="workStudent[toolIndex].length > 0"
  2402. >
  2403. <div
  2404. class="works"
  2405. style="
  2406. width: 200px;
  2407. height: 140px;
  2408. margin: 10px 10px 10px 0;
  2409. box-shadow: 0 0 6px 1px #dfdada;
  2410. "
  2411. v-for="(w, wIndex) in workStudent[toolIndex]"
  2412. :key="wIndex"
  2413. >
  2414. <div class="workImg">
  2415. <img
  2416. :src="w.works"
  2417. @click="previewImg(w.works)"
  2418. alt
  2419. />
  2420. <div
  2421. class="answerScore"
  2422. v-if="w.score"
  2423. @click.stop="openScore(w)"
  2424. :class="{
  2425. rightW:
  2426. w.userid == userid || tType == 1 || tType == 4,
  2427. }"
  2428. >
  2429. {{ JSON.parse(w.score).wScore }}分
  2430. </div>
  2431. <div
  2432. class="answerScore"
  2433. @click.stop="openScore(w)"
  2434. v-else-if="courseDetail.userid == userid"
  2435. :class="{
  2436. rightW:
  2437. w.userid == userid || tType == 1 || tType == 4,
  2438. }"
  2439. >
  2440. 评分
  2441. </div>
  2442. <img
  2443. class="deleteImg"
  2444. src="../assets/deleteworks.png"
  2445. v-if="
  2446. w.userid == userid || tType == 1 || tType == 4
  2447. "
  2448. @click.stop="deleteWorks(w.wid)"
  2449. alt
  2450. />
  2451. </div>
  2452. <div class="worksName">
  2453. <div>{{ w.sName }}</div>
  2454. </div>
  2455. </div>
  2456. </div>
  2457. </div>
  2458. <div
  2459. v-if="
  2460. tType &&
  2461. tType == 2 &&
  2462. !sIsOpen &&
  2463. tool.tool.indexOf(6) != -1
  2464. "
  2465. class="worksBox"
  2466. >
  2467. <div
  2468. class="zuoyeYulan"
  2469. v-if="workStudent[toolIndex].length > 0"
  2470. >
  2471. <span>作业预览</span>
  2472. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2473. </div>
  2474. <div
  2475. class="worksDetailBox"
  2476. v-if="workStudent[toolIndex].length > 0"
  2477. >
  2478. <div
  2479. class="works"
  2480. style="
  2481. width: 200px;
  2482. height: 140px;
  2483. margin: 10px 10px 10px 0;
  2484. box-shadow: 0 0 6px 1px #dfdada;
  2485. "
  2486. v-for="(w, wIndex) in workStudent[toolIndex]"
  2487. :key="wIndex"
  2488. >
  2489. <div class="workImg">
  2490. <img
  2491. :src="w.works"
  2492. @click="previewImg(w.works)"
  2493. alt
  2494. />
  2495. <div
  2496. class="answerScore"
  2497. v-if="w.score"
  2498. @click.stop="openScore(w)"
  2499. :class="{
  2500. rightW:
  2501. w.userid == userid || tType == 1 || tType == 4,
  2502. }"
  2503. >
  2504. {{ JSON.parse(w.score).wScore }}分
  2505. </div>
  2506. <div
  2507. class="answerScore"
  2508. @click.stop="openScore(w)"
  2509. v-else-if="courseDetail.userid == userid"
  2510. :class="{
  2511. rightW:
  2512. w.userid == userid || tType == 1 || tType == 4,
  2513. }"
  2514. >
  2515. 评分
  2516. </div>
  2517. <img
  2518. class="deleteImg"
  2519. src="../assets/deleteworks.png"
  2520. v-if="
  2521. w.userid == userid || tType == 1 || tType == 4
  2522. "
  2523. @click.stop="deleteWorks(w.wid)"
  2524. alt
  2525. />
  2526. </div>
  2527. <div class="worksName">
  2528. <div>{{ w.sName }}</div>
  2529. </div>
  2530. </div>
  2531. </div>
  2532. </div>
  2533. <div
  2534. v-if="
  2535. tType &&
  2536. tType == 2 &&
  2537. !sIsOpen &&
  2538. tool.tool.indexOf(7) != -1
  2539. "
  2540. class="worksBox"
  2541. >
  2542. <div
  2543. class="zuoyeYulan"
  2544. v-if="workStudent[toolIndex].length > 0"
  2545. >
  2546. <span>作业预览</span>
  2547. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2548. </div>
  2549. <div
  2550. class="worksDetailBox"
  2551. v-if="workStudent[toolIndex].length > 0"
  2552. >
  2553. <div
  2554. class="works"
  2555. style="
  2556. width: 200px;
  2557. height: 140px;
  2558. margin: 10px 10px 10px 0;
  2559. box-shadow: 0 0 6px 1px #dfdada;
  2560. "
  2561. v-for="(w, wIndex) in workStudent[toolIndex]"
  2562. :key="wIndex"
  2563. >
  2564. <div class="workImg">
  2565. <img
  2566. :src="w.works"
  2567. @click="previewImg(w.works)"
  2568. alt
  2569. />
  2570. <div
  2571. class="answerScore"
  2572. v-if="w.score"
  2573. @click.stop="openScore(w)"
  2574. :class="{
  2575. rightW:
  2576. w.userid == userid || tType == 1 || tType == 4,
  2577. }"
  2578. >
  2579. {{ JSON.parse(w.score).wScore }}分
  2580. </div>
  2581. <div
  2582. class="answerScore"
  2583. @click.stop="openScore(w)"
  2584. v-else-if="courseDetail.userid == userid"
  2585. :class="{
  2586. rightW:
  2587. w.userid == userid || tType == 1 || tType == 4,
  2588. }"
  2589. >
  2590. 评分
  2591. </div>
  2592. <img
  2593. class="deleteImg"
  2594. src="../assets/deleteworks.png"
  2595. v-if="
  2596. w.userid == userid || tType == 1 || tType == 4
  2597. "
  2598. @click.stop="deleteWorks(w.wid)"
  2599. alt
  2600. />
  2601. </div>
  2602. <div class="worksName">
  2603. <div>{{ w.sName }}</div>
  2604. </div>
  2605. </div>
  2606. </div>
  2607. </div>
  2608. <div
  2609. v-if="
  2610. tType &&
  2611. tType == 2 &&
  2612. !sIsOpen &&
  2613. tool.tool.indexOf(26) != -1
  2614. "
  2615. class="worksBox"
  2616. >
  2617. <div
  2618. class="zuoyeYulan"
  2619. v-if="workStudent[toolIndex].length > 0"
  2620. >
  2621. <span>作业预览</span>
  2622. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2623. </div>
  2624. <div
  2625. class="worksDetailBox"
  2626. v-if="workStudent[toolIndex].length > 0"
  2627. >
  2628. <div
  2629. class="works"
  2630. style="
  2631. width: 200px;
  2632. height: 140px;
  2633. margin: 10px 10px 10px 0;
  2634. box-shadow: 0 0 6px 1px #dfdada;
  2635. "
  2636. v-for="(w, wIndex) in workStudent[toolIndex]"
  2637. :key="wIndex"
  2638. >
  2639. <div class="workImg">
  2640. <img
  2641. :src="w.works"
  2642. @click="previewImg(w.works)"
  2643. alt
  2644. />
  2645. <img
  2646. class="deleteImg"
  2647. src="../assets/deleteworks.png"
  2648. v-if="
  2649. w.userid == userid || tType == 1 || tType == 4
  2650. "
  2651. @click.stop="deleteWorks(w.wid)"
  2652. alt
  2653. />
  2654. </div>
  2655. <div class="worksName">
  2656. <div>{{ w.sName }}</div>
  2657. </div>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. <div
  2662. v-if="
  2663. tType &&
  2664. ((tType == 2 && sIsOpen == true) ||
  2665. tType == 1 ||
  2666. tType == 4) &&
  2667. tool.tool.indexOf(16) != -1
  2668. "
  2669. class="worksBox"
  2670. >
  2671. <div
  2672. class="zuoyeYulan"
  2673. v-if="
  2674. worksStudent.length &&
  2675. worksStudent[toolIndex].length > 0
  2676. "
  2677. >
  2678. <div class="worksTop">
  2679. <div>作业预览</div>
  2680. <div
  2681. class="corOpen"
  2682. @click="contract(toolIndex)"
  2683. v-if="
  2684. worksStudent[toolIndex].length > 6 &&
  2685. isCloseList[toolIndex].isClose == 0
  2686. "
  2687. >
  2688. 收缩
  2689. </div>
  2690. <div
  2691. class="corOpen"
  2692. @click="contract(toolIndex)"
  2693. v-if="isCloseList[toolIndex].isClose == 1"
  2694. >
  2695. 展开
  2696. </div>
  2697. </div>
  2698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2699. </div>
  2700. <div
  2701. class="group_workBox"
  2702. v-for="(g, gindex) in courseGroup.group"
  2703. :key="gindex"
  2704. >
  2705. <div class="group_box">
  2706. <div class="group_title">
  2707. <el-tooltip
  2708. class="item"
  2709. effect="light"
  2710. :content="g.name"
  2711. placement="top"
  2712. >
  2713. <div class="group_name">{{ g.name }}</div>
  2714. </el-tooltip>
  2715. </div>
  2716. <div
  2717. class="group_work"
  2718. v-if="
  2719. g.works &&
  2720. g.works.length &&
  2721. g.works[toolIndex].length
  2722. "
  2723. >
  2724. <div
  2725. class="works"
  2726. style="
  2727. width: 200px;
  2728. height: 140px;
  2729. margin: 10px 10px 10px 0;
  2730. border-radius: 15px;
  2731. box-shadow: 0 0 6px 1px #dfdada;
  2732. "
  2733. v-for="(w, wIndex) in g.works[toolIndex]"
  2734. :key="wIndex"
  2735. :class="w.type == 1 ? 'isTypeOne' : ''"
  2736. >
  2737. <div class="workImg" v-if="w.type == 0">
  2738. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2739. <img
  2740. :src="w.works"
  2741. @click="previewImg(w.works)"
  2742. alt
  2743. />
  2744. <div
  2745. class="answerScore"
  2746. v-if="w.score"
  2747. @click.stop="openScore(w)"
  2748. :class="{
  2749. rightW:
  2750. w.userid == userid ||
  2751. tType == 1 ||
  2752. tType == 4 ||
  2753. w.ateacher == userid,
  2754. }"
  2755. >
  2756. {{ JSON.parse(w.score).wScore }}分
  2757. </div>
  2758. <div
  2759. class="answerScore"
  2760. @click.stop="openScore(w)"
  2761. v-else-if="courseDetail.userid == userid"
  2762. :class="{
  2763. rightW:
  2764. w.userid == userid ||
  2765. tType == 1 ||
  2766. tType == 4 ||
  2767. w.ateacher == userid,
  2768. }"
  2769. >
  2770. 评分
  2771. </div>
  2772. <img
  2773. class="deleteImg"
  2774. src="../assets/deleteworks.png"
  2775. v-if="
  2776. w.userid == userid || tType == 1 || tType == 4
  2777. "
  2778. @click.stop="deleteWorks(w.wid)"
  2779. alt
  2780. />
  2781. </div>
  2782. <div class="workImg" v-if="w.type == 1">
  2783. <img :src="word" @click="openFile(w.works)" alt />
  2784. <!-- @click="openFile(w.works)" -->
  2785. <div
  2786. class="answerScore"
  2787. v-if="w.score"
  2788. @click.stop="openScore(w)"
  2789. :class="{
  2790. rightW:
  2791. w.userid == userid ||
  2792. tType == 1 ||
  2793. tType == 4 ||
  2794. w.ateacher == userid,
  2795. }"
  2796. >
  2797. {{ JSON.parse(w.score).wScore }}分
  2798. </div>
  2799. <div
  2800. class="answerScore"
  2801. @click.stop="openScore(w)"
  2802. v-else-if="courseDetail.userid == userid"
  2803. :class="{
  2804. rightW:
  2805. w.userid == userid ||
  2806. tType == 1 ||
  2807. tType == 4 ||
  2808. w.ateacher == userid,
  2809. }"
  2810. >
  2811. 评分
  2812. </div>
  2813. <img
  2814. class="deleteImg"
  2815. src="../assets/deleteworks.png"
  2816. v-if="
  2817. w.userid == userid || tType == 1 || tType == 4
  2818. "
  2819. @click.stop="deleteWorks(w.wid)"
  2820. alt
  2821. />
  2822. </div>
  2823. <div class="workImg" v-if="w.type == 3">
  2824. <img
  2825. style="cursor: pointer"
  2826. :src="video"
  2827. @click="openVideo(w)"
  2828. alt
  2829. />
  2830. <!-- @click="openVideo(w.works)" -->
  2831. <div
  2832. class="answerScore"
  2833. v-if="w.score"
  2834. @click.stop="openScore(w)"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. {{ JSON.parse(w.score).wScore }}分
  2844. </div>
  2845. <div
  2846. class="answerScore"
  2847. @click.stop="openScore(w)"
  2848. v-else-if="courseDetail.userid == userid"
  2849. :class="{
  2850. rightW:
  2851. w.userid == userid ||
  2852. tType == 1 ||
  2853. tType == 4 ||
  2854. w.ateacher == userid,
  2855. }"
  2856. >
  2857. 评分
  2858. </div>
  2859. <img
  2860. class="deleteImg"
  2861. src="../assets/deleteworks.png"
  2862. v-if="
  2863. w.userid == userid || tType == 1 || tType == 4
  2864. "
  2865. @click.stop="deleteWorks(w.wid)"
  2866. alt
  2867. />
  2868. </div>
  2869. <div class="workImg" v-if="w.type == 12">
  2870. <img
  2871. style="cursor: pointer"
  2872. :src="word2"
  2873. @click="downloadFile(w.works)"
  2874. alt
  2875. />
  2876. <!-- @click="openVideo(w.works)" -->
  2877. <div
  2878. class="answerScore"
  2879. v-if="w.score"
  2880. @click.stop="openScore(w)"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. {{ JSON.parse(w.score).wScore }}分
  2890. </div>
  2891. <div
  2892. class="answerScore"
  2893. @click.stop="openScore(w)"
  2894. v-else-if="courseDetail.userid == userid"
  2895. :class="{
  2896. rightW:
  2897. w.userid == userid ||
  2898. tType == 1 ||
  2899. tType == 4 ||
  2900. w.ateacher == userid,
  2901. }"
  2902. >
  2903. 评分
  2904. </div>
  2905. <img
  2906. class="deleteImg"
  2907. src="../assets/deleteworks.png"
  2908. v-if="
  2909. w.userid == userid || tType == 1 || tType == 4
  2910. "
  2911. @click.stop="deleteWorks(w.wid)"
  2912. alt
  2913. />
  2914. </div>
  2915. <div class="comment" style="min-width: 200px">
  2916. <div class="worksName">
  2917. <div>{{ w.sName }}</div>
  2918. </div>
  2919. <div class="commentList">
  2920. <div class="commentList">
  2921. <div
  2922. class="commentImg"
  2923. @click="
  2924. isLikes(w.wid, userid, 1, null, w.isLikes)
  2925. "
  2926. >
  2927. <img
  2928. :src="w.isLikes == true ? likes : noLikes"
  2929. alt=""
  2930. />
  2931. </div>
  2932. <div>{{ w.likesCount }}</div>
  2933. </div>
  2934. <div
  2935. class="commentList"
  2936. style="margin-right: 15px"
  2937. >
  2938. <div
  2939. class="commentImg"
  2940. @click="
  2941. commentOther(
  2942. w,
  2943. toolIndex,
  2944. wIndex,
  2945. null,
  2946. g.id
  2947. )
  2948. "
  2949. >
  2950. <img
  2951. src="../assets/icon/comment/comment.png"
  2952. alt=""
  2953. />
  2954. </div>
  2955. <div>{{ w.commentCount }}</div>
  2956. </div>
  2957. </div>
  2958. </div>
  2959. </div>
  2960. </div>
  2961. <div class="group_work" v-else>暂无提交作业</div>
  2962. </div>
  2963. </div>
  2964. <div
  2965. class="worksDetailBox"
  2966. v-if="
  2967. worksStudent.length &&
  2968. worksStudent[toolIndex].length > 0
  2969. "
  2970. >
  2971. <div
  2972. class="works"
  2973. style="
  2974. width: 200px;
  2975. height: 140px;
  2976. margin: 10px 10px 10px 0;
  2977. border-radius: 15px;
  2978. box-shadow: 0 0 6px 1px #dfdada;
  2979. "
  2980. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2981. 0
  2982. ? worksStudent[toolIndex]
  2983. : worksStudent[toolIndex].slice(0, 6)"
  2984. :key="wIndex"
  2985. :class="w.type == 1 ? 'isTypeOne' : ''"
  2986. >
  2987. <div class="workImg" v-if="w.type == 0">
  2988. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2989. <img
  2990. :src="w.works"
  2991. @click="previewImg(w.works)"
  2992. alt
  2993. />
  2994. <div
  2995. class="answerScore"
  2996. v-if="w.score"
  2997. @click.stop="openScore(w)"
  2998. :class="{
  2999. rightW:
  3000. w.userid == userid ||
  3001. tType == 1 ||
  3002. tType == 4 ||
  3003. w.ateacher == userid,
  3004. }"
  3005. >
  3006. {{ JSON.parse(w.score).wScore }}分
  3007. </div>
  3008. <div
  3009. class="answerScore"
  3010. @click.stop="openScore(w)"
  3011. v-else-if="courseDetail.userid == userid"
  3012. :class="{
  3013. rightW:
  3014. w.userid == userid ||
  3015. tType == 1 ||
  3016. tType == 4 ||
  3017. w.ateacher == userid,
  3018. }"
  3019. >
  3020. 评分
  3021. </div>
  3022. <img
  3023. class="deleteImg"
  3024. src="../assets/deleteworks.png"
  3025. v-if="
  3026. w.userid == userid || tType == 1 || tType == 4
  3027. "
  3028. @click.stop="deleteWorks(w.wid)"
  3029. alt
  3030. />
  3031. </div>
  3032. <div class="workImg" v-if="w.type == 1">
  3033. <img :src="word" @click="openFile(w.works)" alt />
  3034. <!-- @click="openFile(w.works)" -->
  3035. <div
  3036. class="answerScore"
  3037. v-if="w.score"
  3038. @click.stop="openScore(w)"
  3039. :class="{
  3040. rightW:
  3041. w.userid == userid ||
  3042. tType == 1 ||
  3043. tType == 4 ||
  3044. w.ateacher == userid,
  3045. }"
  3046. >
  3047. {{ JSON.parse(w.score).wScore }}分
  3048. </div>
  3049. <div
  3050. class="answerScore"
  3051. @click.stop="openScore(w)"
  3052. v-else-if="courseDetail.userid == userid"
  3053. :class="{
  3054. rightW:
  3055. w.userid == userid ||
  3056. tType == 1 ||
  3057. tType == 4 ||
  3058. w.ateacher == userid,
  3059. }"
  3060. >
  3061. 评分
  3062. </div>
  3063. <img
  3064. class="deleteImg"
  3065. src="../assets/deleteworks.png"
  3066. v-if="
  3067. w.userid == userid || tType == 1 || tType == 4
  3068. "
  3069. @click.stop="deleteWorks(w.wid)"
  3070. alt
  3071. />
  3072. </div>
  3073. <div class="workImg" v-if="w.type == 3">
  3074. <img
  3075. style="cursor: pointer"
  3076. :src="video"
  3077. @click="openVideo(w)"
  3078. alt
  3079. />
  3080. <!-- @click="openVideo(w.works)" -->
  3081. <div
  3082. class="answerScore"
  3083. v-if="w.score"
  3084. @click.stop="openScore(w)"
  3085. :class="{
  3086. rightW:
  3087. w.userid == userid ||
  3088. tType == 1 ||
  3089. tType == 4 ||
  3090. w.ateacher == userid,
  3091. }"
  3092. >
  3093. {{ JSON.parse(w.score).wScore }}分
  3094. </div>
  3095. <div
  3096. class="answerScore"
  3097. @click.stop="openScore(w)"
  3098. v-else-if="courseDetail.userid == userid"
  3099. :class="{
  3100. rightW:
  3101. w.userid == userid ||
  3102. tType == 1 ||
  3103. tType == 4 ||
  3104. w.ateacher == userid,
  3105. }"
  3106. >
  3107. 评分
  3108. </div>
  3109. <img
  3110. class="deleteImg"
  3111. src="../assets/deleteworks.png"
  3112. v-if="
  3113. w.userid == userid || tType == 1 || tType == 4
  3114. "
  3115. @click.stop="deleteWorks(w.wid)"
  3116. alt
  3117. />
  3118. </div>
  3119. <div class="workImg" v-if="w.type == 12">
  3120. <img
  3121. style="cursor: pointer"
  3122. :src="word2"
  3123. @click="downloadFile(w.works)"
  3124. alt
  3125. />
  3126. <!-- @click="openVideo(w.works)" -->
  3127. <div
  3128. class="answerScore"
  3129. v-if="w.score"
  3130. @click.stop="openScore(w)"
  3131. :class="{
  3132. rightW:
  3133. w.userid == userid ||
  3134. tType == 1 ||
  3135. tType == 4 ||
  3136. w.ateacher == userid,
  3137. }"
  3138. >
  3139. {{ JSON.parse(w.score).wScore }}分
  3140. </div>
  3141. <div
  3142. class="answerScore"
  3143. @click.stop="openScore(w)"
  3144. v-else-if="courseDetail.userid == userid"
  3145. :class="{
  3146. rightW:
  3147. w.userid == userid ||
  3148. tType == 1 ||
  3149. tType == 4 ||
  3150. w.ateacher == userid,
  3151. }"
  3152. >
  3153. 评分
  3154. </div>
  3155. <img
  3156. class="deleteImg"
  3157. src="../assets/deleteworks.png"
  3158. v-if="
  3159. w.userid == userid || tType == 1 || tType == 4
  3160. "
  3161. @click.stop="deleteWorks(w.wid)"
  3162. alt
  3163. />
  3164. </div>
  3165. <div class="comment" style="min-width: 200px">
  3166. <div class="worksName">
  3167. <div>{{ w.sName }}</div>
  3168. </div>
  3169. <div class="commentList">
  3170. <div class="commentList">
  3171. <div
  3172. class="commentImg"
  3173. @click="
  3174. isLikes(w.wid, userid, 1, null, w.isLikes)
  3175. "
  3176. >
  3177. <img
  3178. :src="w.isLikes == true ? likes : noLikes"
  3179. alt=""
  3180. />
  3181. </div>
  3182. <div>{{ w.likesCount }}</div>
  3183. </div>
  3184. <div class="commentList" style="margin-right: 15px">
  3185. <div
  3186. class="commentImg"
  3187. @click="commentOther(w, toolIndex, wIndex)"
  3188. >
  3189. <img
  3190. src="../assets/icon/comment/comment.png"
  3191. alt=""
  3192. />
  3193. </div>
  3194. <div>{{ w.commentCount }}</div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3201. 未提交
  3202. </div>
  3203. <div class="noWorksS">
  3204. <div
  3205. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3206. :key="sIndex"
  3207. class="noWorksName"
  3208. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3209. >
  3210. {{ s.student }}
  3211. </div>
  3212. </div>
  3213. </div>
  3214. <div
  3215. v-if="
  3216. tType &&
  3217. ((tType == 2 && sIsOpen == true) ||
  3218. tType == 1 ||
  3219. tType == 4) &&
  3220. tool.tool.indexOf(32) != -1
  3221. "
  3222. class="worksBox"
  3223. >
  3224. <div
  3225. class="zuoyeYulan"
  3226. v-if="
  3227. worksStudent.length &&
  3228. worksStudent[toolIndex].length > 0
  3229. "
  3230. >
  3231. <div class="worksTop">
  3232. <div>作业预览</div>
  3233. <div
  3234. class="corOpen"
  3235. @click="contract(toolIndex)"
  3236. v-if="
  3237. worksStudent[toolIndex].length > 6 &&
  3238. isCloseList[toolIndex].isClose == 0
  3239. "
  3240. >
  3241. 收缩
  3242. </div>
  3243. <div
  3244. class="corOpen"
  3245. @click="contract(toolIndex)"
  3246. v-if="isCloseList[toolIndex].isClose == 1"
  3247. >
  3248. 展开
  3249. </div>
  3250. </div>
  3251. </div>
  3252. <div
  3253. class="worksDetailBox"
  3254. v-if="
  3255. worksStudent.length &&
  3256. worksStudent[toolIndex].length > 0
  3257. "
  3258. >
  3259. <div
  3260. class="works"
  3261. style="
  3262. width: 200px;
  3263. height: 140px;
  3264. margin: 10px 10px 10px 0;
  3265. border-radius: 15px;
  3266. box-shadow: 0 0 6px 1px #dfdada;
  3267. "
  3268. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3269. 0
  3270. ? worksStudent[toolIndex]
  3271. : worksStudent[toolIndex].slice(0, 6)"
  3272. :key="wIndex"
  3273. :class="w.type == 1 ? 'isTypeOne' : ''"
  3274. >
  3275. <div class="workImg">
  3276. <img
  3277. :src="word2"
  3278. @click="downloadFile(w.works)"
  3279. alt
  3280. />
  3281. <div
  3282. class="answerScore"
  3283. v-if="w.score"
  3284. @click.stop="openScore(w)"
  3285. :class="{
  3286. rightW:
  3287. w.userid == userid ||
  3288. tType == 1 ||
  3289. tType == 4 ||
  3290. w.ateacher == userid,
  3291. }"
  3292. >
  3293. {{ JSON.parse(w.score).wScore }}分
  3294. </div>
  3295. <div
  3296. class="answerScore"
  3297. @click.stop="openScore(w)"
  3298. v-else-if="courseDetail.userid == userid"
  3299. :class="{
  3300. rightW:
  3301. w.userid == userid ||
  3302. tType == 1 ||
  3303. tType == 4 ||
  3304. w.ateacher == userid,
  3305. }"
  3306. >
  3307. 评分
  3308. </div>
  3309. <img
  3310. class="deleteImg"
  3311. src="../assets/deleteworks.png"
  3312. v-if="
  3313. w.userid == userid || tType == 1 || tType == 4
  3314. "
  3315. @click.stop="deleteWorks(w.wid)"
  3316. alt
  3317. />
  3318. </div>
  3319. <div class="comment" style="min-width: 200px">
  3320. <div class="worksName">
  3321. <div>{{ w.sName }}</div>
  3322. </div>
  3323. <div class="commentList">
  3324. <div class="commentList">
  3325. <div
  3326. class="commentImg"
  3327. @click="
  3328. isLikes(w.wid, userid, 1, null, w.isLikes)
  3329. "
  3330. >
  3331. <img
  3332. :src="w.isLikes == true ? likes : noLikes"
  3333. alt=""
  3334. />
  3335. </div>
  3336. <div>{{ w.likesCount }}</div>
  3337. </div>
  3338. <div class="commentList" style="margin-right: 15px">
  3339. <div
  3340. class="commentImg"
  3341. @click="commentOther(w, toolIndex, wIndex)"
  3342. >
  3343. <img
  3344. src="../assets/icon/comment/comment.png"
  3345. alt=""
  3346. />
  3347. </div>
  3348. <div>{{ w.commentCount }}</div>
  3349. </div>
  3350. </div>
  3351. </div>
  3352. </div>
  3353. </div>
  3354. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3355. 未提交
  3356. </div>
  3357. <div class="noWorksS">
  3358. <div
  3359. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3360. :key="sIndex"
  3361. class="noWorksName"
  3362. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3363. >
  3364. {{ s.student }}
  3365. </div>
  3366. </div>
  3367. </div>
  3368. <div
  3369. v-if="
  3370. tType &&
  3371. ((tType == 2 && sIsOpen == true) ||
  3372. tType == 1 ||
  3373. tType == 4) &&
  3374. tool.tool.indexOf(57) != -1
  3375. "
  3376. class="worksBox"
  3377. >
  3378. <div
  3379. class="zuoyeYulan"
  3380. v-if="
  3381. worksStudent.length &&
  3382. worksStudent[toolIndex].length > 0
  3383. "
  3384. >
  3385. <div class="worksTop">
  3386. <div>作业预览</div>
  3387. <div
  3388. class="corOpen"
  3389. @click="contract(toolIndex)"
  3390. v-if="
  3391. worksStudent[toolIndex].length > 6 &&
  3392. isCloseList[toolIndex].isClose == 0
  3393. "
  3394. >
  3395. 收缩
  3396. </div>
  3397. <div
  3398. class="corOpen"
  3399. @click="contract(toolIndex)"
  3400. v-if="isCloseList[toolIndex].isClose == 1"
  3401. >
  3402. 展开
  3403. </div>
  3404. </div>
  3405. </div>
  3406. <div
  3407. class="worksDetailBox"
  3408. v-if="
  3409. worksStudent.length &&
  3410. worksStudent[toolIndex].length > 0
  3411. "
  3412. >
  3413. <div
  3414. class="works"
  3415. style="
  3416. width: 200px;
  3417. height: 140px;
  3418. margin: 10px 10px 10px 0;
  3419. border-radius: 15px;
  3420. box-shadow: 0 0 6px 1px #dfdada;
  3421. "
  3422. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3423. 0
  3424. ? worksStudent[toolIndex]
  3425. : worksStudent[toolIndex].slice(0, 6)"
  3426. :key="wIndex"
  3427. :class="w.type == 1 ? 'isTypeOne' : ''"
  3428. >
  3429. <div class="workImg">
  3430. <img
  3431. :src="word2"
  3432. @click="downloadFile(w.works)"
  3433. v-if="w.type == 12"
  3434. alt
  3435. />
  3436. <img
  3437. :src="word2"
  3438. @click="
  3439. openCocoPi(57, toolIndex, w.userid, w.sName)
  3440. "
  3441. v-else-if="w.type == 15"
  3442. alt
  3443. />
  3444. <div
  3445. class="answerScore"
  3446. v-if="w.score"
  3447. @click.stop="openScore(w)"
  3448. :class="{
  3449. rightW:
  3450. w.userid == userid ||
  3451. tType == 1 ||
  3452. tType == 4 ||
  3453. w.ateacher == userid,
  3454. }"
  3455. >
  3456. {{ JSON.parse(w.score).wScore }}分
  3457. </div>
  3458. <div
  3459. class="answerScore"
  3460. @click.stop="openScore(w)"
  3461. v-else-if="courseDetail.userid == userid"
  3462. :class="{
  3463. rightW:
  3464. w.userid == userid ||
  3465. tType == 1 ||
  3466. tType == 4 ||
  3467. w.ateacher == userid,
  3468. }"
  3469. >
  3470. 评分
  3471. </div>
  3472. <img
  3473. class="deleteImg"
  3474. src="../assets/deleteworks.png"
  3475. v-if="
  3476. w.userid == userid || tType == 1 || tType == 4
  3477. "
  3478. @click.stop="deleteWorks(w.wid)"
  3479. alt
  3480. />
  3481. </div>
  3482. <div class="comment" style="min-width: 200px">
  3483. <div class="worksName">
  3484. <div>{{ w.sName }}</div>
  3485. </div>
  3486. <div class="commentList">
  3487. <div class="commentList">
  3488. <div
  3489. class="commentImg"
  3490. @click="
  3491. isLikes(w.wid, userid, 1, null, w.isLikes)
  3492. "
  3493. >
  3494. <img
  3495. :src="w.isLikes == true ? likes : noLikes"
  3496. alt=""
  3497. />
  3498. </div>
  3499. <div>{{ w.likesCount }}</div>
  3500. </div>
  3501. <div class="commentList" style="margin-right: 15px">
  3502. <div
  3503. class="commentImg"
  3504. @click="commentOther(w, toolIndex, wIndex)"
  3505. >
  3506. <img
  3507. src="../assets/icon/comment/comment.png"
  3508. alt=""
  3509. />
  3510. </div>
  3511. <div>{{ w.commentCount }}</div>
  3512. </div>
  3513. </div>
  3514. </div>
  3515. </div>
  3516. </div>
  3517. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3518. 未提交
  3519. </div>
  3520. <div class="noWorksS">
  3521. <div
  3522. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3523. :key="sIndex"
  3524. class="noWorksName"
  3525. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3526. >
  3527. {{ s.student }}
  3528. </div>
  3529. </div>
  3530. </div>
  3531. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3532. <div
  3533. class="zuoyeYulan"
  3534. v-if="
  3535. worksStudent.length &&
  3536. worksStudent[toolIndex].length > 0
  3537. "
  3538. >
  3539. <span>作业预览</span>
  3540. <div
  3541. class="corOpen"
  3542. @click="contract(toolIndex)"
  3543. v-if="
  3544. worksStudent[toolIndex].length > 6 &&
  3545. isCloseList[toolIndex].isClose == 0
  3546. "
  3547. >
  3548. 收缩
  3549. </div>
  3550. <div
  3551. class="corOpen"
  3552. @click="contract(toolIndex)"
  3553. v-if="isCloseList[toolIndex].isClose == 1"
  3554. >
  3555. 展开
  3556. </div>
  3557. </div>
  3558. <div
  3559. class="worksDetailBox"
  3560. v-if="
  3561. worksStudent.length &&
  3562. worksStudent[toolIndex].length > 0
  3563. "
  3564. >
  3565. <div
  3566. class="works"
  3567. style="
  3568. width: 200px;
  3569. height: 140px;
  3570. margin: 10px 10px 10px 0;
  3571. border-radius: 15px;
  3572. box-shadow: 0 0 6px 1px #dfdada;
  3573. "
  3574. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3575. 0
  3576. ? worksStudent[toolIndex]
  3577. : worksStudent[toolIndex].slice(0, 6)"
  3578. :key="wIndex"
  3579. :class="w.type == 1 ? 'isTypeOne' : ''"
  3580. >
  3581. <div class="workImg" v-if="w.type == 0">
  3582. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3583. <img
  3584. :src="w.works"
  3585. @click="previewImg(w.works)"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid,
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}分
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="courseDetail.userid == userid"
  3606. :class="{
  3607. rightW:
  3608. w.userid == userid ||
  3609. tType == 1 ||
  3610. tType == 4 ||
  3611. w.ateacher == userid,
  3612. }"
  3613. >
  3614. 评分
  3615. </div>
  3616. <img
  3617. class="deleteImg"
  3618. src="../assets/deleteworks.png"
  3619. v-if="
  3620. w.userid == userid || tType == 1 || tType == 4
  3621. "
  3622. @click.stop="deleteWorks(w.wid)"
  3623. alt
  3624. />
  3625. </div>
  3626. <div
  3627. class="workImg"
  3628. style="cursor: pointer"
  3629. v-if="w.type == 1"
  3630. >
  3631. <img :src="word" @click="openFile(w.works)" alt />
  3632. <!-- @click="openFile(w.works)" -->
  3633. <div
  3634. class="answerScore"
  3635. v-if="w.score"
  3636. @click.stop="openScore(w)"
  3637. :class="{
  3638. rightW:
  3639. w.userid == userid ||
  3640. tType == 1 ||
  3641. tType == 4 ||
  3642. w.ateacher == userid,
  3643. }"
  3644. >
  3645. {{ JSON.parse(w.score).wScore }}分
  3646. </div>
  3647. <div
  3648. class="answerScore"
  3649. @click.stop="openScore(w)"
  3650. v-else-if="courseDetail.userid == userid"
  3651. :class="{
  3652. rightW:
  3653. w.userid == userid ||
  3654. tType == 1 ||
  3655. tType == 4 ||
  3656. w.ateacher == userid,
  3657. }"
  3658. >
  3659. 评分
  3660. </div>
  3661. <img
  3662. class="deleteImg"
  3663. src="../assets/deleteworks.png"
  3664. v-if="
  3665. w.userid == userid || tType == 1 || tType == 4
  3666. "
  3667. @click.stop="deleteWorks(w.wid)"
  3668. alt
  3669. />
  3670. </div>
  3671. <div class="workImg" v-if="w.type == 3">
  3672. <img
  3673. style="cursor: pointer"
  3674. :src="video"
  3675. @click="openVideo(w)"
  3676. alt
  3677. />
  3678. <!-- @click="openVideo(w.works)" -->
  3679. <div
  3680. class="answerScore"
  3681. v-if="w.score"
  3682. @click.stop="openScore(w)"
  3683. :class="{
  3684. rightW:
  3685. w.userid == userid ||
  3686. tType == 1 ||
  3687. tType == 4 ||
  3688. w.ateacher == userid,
  3689. }"
  3690. >
  3691. {{ JSON.parse(w.score).wScore }}分
  3692. </div>
  3693. <div
  3694. class="answerScore"
  3695. @click.stop="openScore(w)"
  3696. v-else-if="courseDetail.userid == userid"
  3697. :class="{
  3698. rightW:
  3699. w.userid == userid ||
  3700. tType == 1 ||
  3701. tType == 4 ||
  3702. w.ateacher == userid,
  3703. }"
  3704. >
  3705. 评分
  3706. </div>
  3707. <img
  3708. class="deleteImg"
  3709. src="../assets/deleteworks.png"
  3710. v-if="
  3711. w.userid == userid || tType == 1 || tType == 4
  3712. "
  3713. @click.stop="deleteWorks(w.wid)"
  3714. alt
  3715. />
  3716. </div>
  3717. <div class="comment" style="min-width: 200px">
  3718. <div class="worksName">
  3719. <div
  3720. style="cursor: pointer"
  3721. @click="
  3722. openSname(w.sName, w.wid, toolIndex, w.userid)
  3723. "
  3724. >
  3725. {{ w.sName }}
  3726. </div>
  3727. </div>
  3728. <div class="commentList">
  3729. <div class="commentList">
  3730. <div
  3731. class="commentImg"
  3732. @click="
  3733. isLikes(w.wid, userid, 1, null, w.isLikes)
  3734. "
  3735. >
  3736. <img
  3737. :src="w.isLikes == true ? likes : noLikes"
  3738. alt=""
  3739. />
  3740. </div>
  3741. <div>{{ w.likesCount }}</div>
  3742. </div>
  3743. <div class="commentList" style="margin-right: 15px">
  3744. <div
  3745. class="commentImg"
  3746. @click="commentOther(w, toolIndex, wIndex)"
  3747. >
  3748. <img
  3749. src="../assets/icon/comment/comment.png"
  3750. alt=""
  3751. />
  3752. </div>
  3753. <div>{{ w.commentCount }}</div>
  3754. </div>
  3755. </div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3760. 未提交
  3761. </div>
  3762. <div class="noWorksS">
  3763. <div
  3764. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3765. :key="sIndex"
  3766. class="noWorksName"
  3767. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3768. >
  3769. {{ s.student }}
  3770. </div>
  3771. </div>
  3772. </div>
  3773. <div
  3774. v-if="
  3775. tType &&
  3776. ((tType == 2 && sIsOpen == true) ||
  3777. tType == 1 ||
  3778. tType == 4) &&
  3779. tool.tool.indexOf(4) != -1 &&
  3780. (tool.askJson[0].answer ||
  3781. tool.askJson[0].answer === 0) &&
  3782. checkJson[toolIndex].length
  3783. "
  3784. class="xuan_right_box"
  3785. >
  3786. <div
  3787. class="tool_right_box"
  3788. v-for="(item, index) in tool.askJson"
  3789. :key="index"
  3790. >
  3791. <div>
  3792. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3793. </div>
  3794. <div class="right_box_xuan">
  3795. <span>正确率</span>
  3796. <span>{{
  3797. (checkJson[toolIndex][index].right
  3798. ? checkJson[toolIndex][index].right
  3799. : 0) + "%"
  3800. }}</span>
  3801. </div>
  3802. </div>
  3803. </div>
  3804. <div
  3805. class="xuan_right_box"
  3806. style="background: unset"
  3807. v-if="
  3808. tType &&
  3809. ((tType == 2 && sIsOpen == true) ||
  3810. tType == 1 ||
  3811. tType == 4) &&
  3812. tool.tool.indexOf(4) != -1
  3813. "
  3814. >
  3815. <AskStatic
  3816. v-if="
  3817. worksStudent.length &&
  3818. worksStudent[toolIndex].length > 0
  3819. "
  3820. :askJSON="tool"
  3821. :checkJson="checkJson[toolIndex]"
  3822. ></AskStatic>
  3823. </div>
  3824. <div
  3825. v-if="
  3826. tType &&
  3827. ((tType == 2 && sIsOpen == true) ||
  3828. tType == 1 ||
  3829. tType == 4) &&
  3830. tool.tool.indexOf(4) != -1
  3831. "
  3832. class="worksBox"
  3833. >
  3834. <div
  3835. class="zuoyeYulan"
  3836. v-if="
  3837. worksStudent.length &&
  3838. worksStudent[toolIndex].length > 0
  3839. "
  3840. >
  3841. <div class="worksTop">
  3842. <div>作业预览</div>
  3843. <div
  3844. class="corOpen"
  3845. @click="contract(toolIndex)"
  3846. v-if="
  3847. worksStudent[toolIndex].length > 6 &&
  3848. isCloseList[toolIndex].isClose == 0
  3849. "
  3850. >
  3851. 收缩
  3852. </div>
  3853. <div
  3854. class="corOpen"
  3855. @click="contract(toolIndex)"
  3856. v-if="isCloseList[toolIndex].isClose == 1"
  3857. >
  3858. 展开
  3859. </div>
  3860. </div>
  3861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3862. </div>
  3863. <div>
  3864. <div
  3865. class="worksDetailBox"
  3866. v-if="
  3867. worksStudent.length &&
  3868. worksStudent[toolIndex].length > 0
  3869. "
  3870. >
  3871. <div
  3872. v-for="(w, wIndex) in isCloseList[toolIndex]
  3873. .isClose == 0
  3874. ? worksStudent[toolIndex]
  3875. : worksStudent[toolIndex].slice(0, 6)"
  3876. :key="wIndex"
  3877. class="isWorksName"
  3878. @click="
  3879. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3880. "
  3881. >
  3882. {{ w.sName }}
  3883. <img
  3884. class="deleteImg deleteImg2"
  3885. src="../assets/deleteworks.png"
  3886. v-if="
  3887. w.userid == userid || tType == 1 || tType == 4
  3888. "
  3889. @click.stop="deleteWorks(w.wid)"
  3890. alt
  3891. />
  3892. </div>
  3893. <!-- <div class="works" style="
  3894. width: 200px;
  3895. height: 140px;
  3896. border-radius: 10px;
  3897. box-shadow: 0 0 6px 1px #dfdada;
  3898. overflow: hidden;
  3899. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3900. <div class="workImg">
  3901. <img src="../assets/icon/works/noImg.png" @click="
  3902. openTools(
  3903. 4,
  3904. toolIndex,
  3905. taskCount,
  3906. w.works,
  3907. w.sName
  3908. )
  3909. " alt />
  3910. </div>
  3911. <div class="worksName">
  3912. <div>{{ w.sName }}</div>
  3913. <div>{{ w.time }}</div>
  3914. </div>
  3915. </div> -->
  3916. </div>
  3917. </div>
  3918. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3919. 未提交
  3920. </div>
  3921. <div class="noWorksS">
  3922. <div
  3923. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3924. :key="sIndex"
  3925. class="noWorksName"
  3926. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3927. >
  3928. {{ s.student }}
  3929. </div>
  3930. </div>
  3931. </div>
  3932. <div
  3933. v-if="
  3934. tType &&
  3935. ((tType == 2 && sIsOpen == true) ||
  3936. tType == 1 ||
  3937. tType == 4) &&
  3938. tool.tool.indexOf(45) != -1 &&
  3939. (tool.testJson.testJson[0].answer ||
  3940. tool.testJson.testJson[0].answer === 0) &&
  3941. checkJson[toolIndex].length
  3942. "
  3943. class="xuan_right_box"
  3944. >
  3945. <div
  3946. class="tool_right_box"
  3947. v-for="(item, index) in tool.testJson.testJson"
  3948. :key="index"
  3949. >
  3950. <div>
  3951. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3952. </div>
  3953. <div class="right_box_xuan">
  3954. <span>正确率</span>
  3955. <span>{{
  3956. (checkJson[toolIndex][index].right
  3957. ? checkJson[toolIndex][index].right
  3958. : 0) + "%"
  3959. }}</span>
  3960. </div>
  3961. </div>
  3962. </div>
  3963. <div
  3964. class="xuan_right_box"
  3965. style="background: unset"
  3966. v-if="
  3967. tType &&
  3968. ((tType == 2 && sIsOpen == true) ||
  3969. tType == 1 ||
  3970. tType == 4) &&
  3971. tool.tool.indexOf(45) != -1
  3972. "
  3973. >
  3974. <AskStatic2
  3975. v-if="
  3976. worksStudent.length &&
  3977. worksStudent[toolIndex].length > 0
  3978. "
  3979. :askJSON="tool"
  3980. :checkJson="checkJson[toolIndex]"
  3981. ></AskStatic2>
  3982. </div>
  3983. <div
  3984. v-if="
  3985. tType &&
  3986. ((tType == 2 && sIsOpen == true) ||
  3987. tType == 1 ||
  3988. tType == 4) &&
  3989. tool.tool.indexOf(45) != -1
  3990. "
  3991. class="worksBox"
  3992. >
  3993. <div
  3994. class="zuoyeYulan"
  3995. v-if="
  3996. worksStudent.length &&
  3997. worksStudent[toolIndex].length > 0
  3998. "
  3999. >
  4000. <div class="worksTop">
  4001. <div>作业预览</div>
  4002. <div
  4003. class="corOpen"
  4004. @click="contract(toolIndex)"
  4005. v-if="
  4006. worksStudent[toolIndex].length > 6 &&
  4007. isCloseList[toolIndex].isClose == 0
  4008. "
  4009. >
  4010. 收缩
  4011. </div>
  4012. <div
  4013. class="corOpen"
  4014. @click="contract(toolIndex)"
  4015. v-if="isCloseList[toolIndex].isClose == 1"
  4016. >
  4017. 展开
  4018. </div>
  4019. </div>
  4020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4021. </div>
  4022. <div>
  4023. <div
  4024. class="worksDetailBox"
  4025. v-if="
  4026. worksStudent.length &&
  4027. worksStudent[toolIndex].length > 0
  4028. "
  4029. >
  4030. <div
  4031. v-for="(w, wIndex) in isCloseList[toolIndex]
  4032. .isClose == 0
  4033. ? worksStudent[toolIndex]
  4034. : worksStudent[toolIndex].slice(0, 6)"
  4035. :key="wIndex"
  4036. class="isWorksName"
  4037. @click="
  4038. openTools(
  4039. 45,
  4040. toolIndex,
  4041. taskCount,
  4042. w.works,
  4043. w.sName
  4044. )
  4045. "
  4046. >
  4047. {{ w.sName }}
  4048. <img
  4049. class="deleteImg deleteImg2"
  4050. src="../assets/deleteworks.png"
  4051. v-if="
  4052. w.userid == userid || tType == 1 || tType == 4
  4053. "
  4054. @click.stop="deleteWorks(w.wid)"
  4055. alt
  4056. />
  4057. </div>
  4058. </div>
  4059. </div>
  4060. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4061. 未提交
  4062. </div>
  4063. <div class="noWorksS">
  4064. <div
  4065. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4066. :key="sIndex"
  4067. class="noWorksName"
  4068. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4069. >
  4070. {{ s.student }}
  4071. </div>
  4072. </div>
  4073. </div>
  4074. <div
  4075. v-if="
  4076. tType &&
  4077. ((tType == 2 && sIsOpen == true) ||
  4078. tType == 1 ||
  4079. tType == 4) &&
  4080. tool.tool.indexOf(15) != -1
  4081. "
  4082. class="worksBox"
  4083. >
  4084. <div
  4085. class="zuoyeYulan"
  4086. v-if="
  4087. worksStudent.length &&
  4088. worksStudent[toolIndex].length > 0
  4089. "
  4090. >
  4091. <div class="worksTop">
  4092. <div>作业预览</div>
  4093. <div
  4094. class="corOpen"
  4095. @click="contract(toolIndex)"
  4096. v-if="
  4097. worksStudent[toolIndex].length > 6 &&
  4098. isCloseList[toolIndex].isClose == 0
  4099. "
  4100. >
  4101. 收缩
  4102. </div>
  4103. <div
  4104. class="corOpen"
  4105. @click="contract(toolIndex)"
  4106. v-if="isCloseList[toolIndex].isClose == 1"
  4107. >
  4108. 展开
  4109. </div>
  4110. </div>
  4111. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4112. </div>
  4113. <div
  4114. class="group_workBox"
  4115. v-for="(g, gindex) in courseGroup.group"
  4116. :key="gindex"
  4117. >
  4118. <div class="group_box">
  4119. <div class="group_title">
  4120. <el-tooltip
  4121. class="item"
  4122. effect="light"
  4123. :content="g.name"
  4124. placement="top"
  4125. >
  4126. <div class="group_name">{{ g.name }}</div>
  4127. </el-tooltip>
  4128. </div>
  4129. <div
  4130. class="group_work"
  4131. v-if="
  4132. g.works &&
  4133. g.works.length &&
  4134. g.works[toolIndex].length
  4135. "
  4136. >
  4137. <div
  4138. class="works"
  4139. v-for="(w, wIndex) in g.works[toolIndex]"
  4140. :key="wIndex"
  4141. >
  4142. <div
  4143. class="workImg"
  4144. style="
  4145. border-radius: 15px;
  4146. box-shadow: #eee 0px 0px 5px 5px;
  4147. "
  4148. >
  4149. <div
  4150. class="answerBg"
  4151. style="border-radius: 15px 15px 0 0"
  4152. @click="
  4153. commentOther(w, toolIndex, wIndex, null, g.id)
  4154. "
  4155. >
  4156. <div class="answerContent">
  4157. {{ JSON.parse(w.works)[0].answer }}
  4158. </div>
  4159. <div
  4160. class="answerScore"
  4161. v-if="w.score"
  4162. @click.stop="openScore(w)"
  4163. :class="{
  4164. rightW:
  4165. w.userid == userid ||
  4166. tType == 1 ||
  4167. tType == 4,
  4168. }"
  4169. >
  4170. {{ JSON.parse(w.score).wScore }}分
  4171. </div>
  4172. <div
  4173. class="answerScore"
  4174. @click.stop="openScore(w)"
  4175. v-else-if="courseDetail.userid == userid"
  4176. :class="{
  4177. rightW:
  4178. w.userid == userid ||
  4179. tType == 1 ||
  4180. tType == 4,
  4181. }"
  4182. >
  4183. 评分
  4184. </div>
  4185. <img
  4186. class="deleteImg"
  4187. src="../assets/deleteworks.png"
  4188. v-if="
  4189. w.userid == userid ||
  4190. tType == 1 ||
  4191. tType == 4
  4192. "
  4193. @click.stop="deleteWorks(w.wid)"
  4194. alt
  4195. />
  4196. </div>
  4197. <div class="comment">
  4198. <div class="worksName">
  4199. <div>{{ w.sName }}</div>
  4200. </div>
  4201. <div class="commentList">
  4202. <div
  4203. class="commentImg"
  4204. @click="
  4205. isLikes(w.wid, userid, 1, null, w.isLikes)
  4206. "
  4207. >
  4208. <img
  4209. :src="w.isLikes == true ? likes : noLikes"
  4210. alt=""
  4211. />
  4212. </div>
  4213. <div>{{ w.likesCount }}</div>
  4214. </div>
  4215. <div
  4216. class="commentList"
  4217. style="margin-right: 15px"
  4218. >
  4219. <div
  4220. class="commentImg"
  4221. @click="
  4222. commentOther(
  4223. w,
  4224. toolIndex,
  4225. wIndex,
  4226. null,
  4227. g.id
  4228. )
  4229. "
  4230. >
  4231. <img
  4232. src="../assets/icon/comment/comment.png"
  4233. alt=""
  4234. />
  4235. </div>
  4236. <div>{{ w.commentCount }}</div>
  4237. </div>
  4238. </div>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. <div class="group_work" v-else>暂无提交作业</div>
  4243. </div>
  4244. </div>
  4245. <div
  4246. class="worksDetailBox"
  4247. v-if="
  4248. worksStudent.length &&
  4249. worksStudent[toolIndex].length > 0
  4250. "
  4251. >
  4252. <div
  4253. class="works"
  4254. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4255. 0
  4256. ? worksStudent[toolIndex]
  4257. : worksStudent[toolIndex].slice(0, 6)"
  4258. :key="wIndex"
  4259. >
  4260. <div
  4261. class="workImg"
  4262. style="
  4263. border-radius: 15px;
  4264. box-shadow: #eee 0px 0px 5px 5px;
  4265. "
  4266. >
  4267. <!-- <img
  4268. src="../assets/icon/works/noImg.png"
  4269. @click="openTools(15, toolIndex, taskCount, w.works)"
  4270. alt=""
  4271. />-->
  4272. <div
  4273. class="answerBg"
  4274. style="border-radius: 15px 15px 0 0"
  4275. @click="commentOther(w, toolIndex, wIndex)"
  4276. >
  4277. <!-- <div>{{ w.sName }}</div> -->
  4278. <div class="answerContent">
  4279. {{ JSON.parse(w.works)[0].answer }}
  4280. </div>
  4281. <div
  4282. class="answerScore"
  4283. v-if="w.score"
  4284. @click.stop="openScore(w)"
  4285. :class="{
  4286. rightW:
  4287. w.userid == userid ||
  4288. tType == 1 ||
  4289. tType == 4,
  4290. }"
  4291. >
  4292. {{ JSON.parse(w.score).wScore }}分
  4293. </div>
  4294. <div
  4295. class="answerScore"
  4296. @click.stop="openScore(w)"
  4297. v-else-if="courseDetail.userid == userid"
  4298. :class="{
  4299. rightW:
  4300. w.userid == userid ||
  4301. tType == 1 ||
  4302. tType == 4,
  4303. }"
  4304. >
  4305. 评分
  4306. </div>
  4307. <img
  4308. class="deleteImg"
  4309. src="../assets/deleteworks.png"
  4310. v-if="
  4311. w.userid == userid || tType == 1 || tType == 4
  4312. "
  4313. @click.stop="deleteWorks(w.wid)"
  4314. alt
  4315. />
  4316. </div>
  4317. <div class="comment">
  4318. <div class="worksName">
  4319. <div>{{ w.sName }}</div>
  4320. </div>
  4321. <div class="commentList">
  4322. <div
  4323. class="commentImg"
  4324. @click="
  4325. isLikes(w.wid, userid, 1, null, w.isLikes)
  4326. "
  4327. >
  4328. <img
  4329. :src="w.isLikes == true ? likes : noLikes"
  4330. alt=""
  4331. />
  4332. </div>
  4333. <div>{{ w.likesCount }}</div>
  4334. </div>
  4335. <div class="commentList" style="margin-right: 15px">
  4336. <div
  4337. class="commentImg"
  4338. @click="commentOther(w, toolIndex, wIndex)"
  4339. >
  4340. <img
  4341. src="../assets/icon/comment/comment.png"
  4342. alt=""
  4343. />
  4344. </div>
  4345. <div>{{ w.commentCount }}</div>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. </div>
  4351. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4352. 未提交
  4353. </div>
  4354. <div class="noWorksS">
  4355. <div
  4356. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4357. :key="sIndex"
  4358. class="noWorksName"
  4359. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4360. >
  4361. {{ s.student }}
  4362. </div>
  4363. </div>
  4364. </div>
  4365. <div
  4366. v-if="
  4367. tType &&
  4368. ((tType == 2 && sIsOpen == true) ||
  4369. tType == 1 ||
  4370. tType == 4) &&
  4371. tool.tool.indexOf(1) != -1
  4372. "
  4373. class="worksBox"
  4374. >
  4375. <div
  4376. class="zuoyeYulan"
  4377. v-if="
  4378. worksStudent.length &&
  4379. worksStudent[toolIndex].length > 0
  4380. "
  4381. >
  4382. <div class="worksTop">
  4383. <div>作业预览</div>
  4384. <div
  4385. class="corOpen"
  4386. @click="contract(toolIndex)"
  4387. v-if="
  4388. worksStudent[toolIndex].length > 6 &&
  4389. isCloseList[toolIndex].isClose == 0
  4390. "
  4391. >
  4392. 收缩
  4393. </div>
  4394. <div
  4395. class="corOpen"
  4396. @click="contract(toolIndex)"
  4397. v-if="isCloseList[toolIndex].isClose == 1"
  4398. >
  4399. 展开
  4400. </div>
  4401. </div>
  4402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4403. </div>
  4404. <div
  4405. class="group_workBox"
  4406. v-for="(g, gindex) in courseGroup.group"
  4407. :key="gindex"
  4408. >
  4409. <div class="group_box">
  4410. <div class="group_title">
  4411. <el-tooltip
  4412. class="item"
  4413. effect="light"
  4414. :content="g.name"
  4415. placement="top"
  4416. >
  4417. <div class="group_name">{{ g.name }}</div>
  4418. </el-tooltip>
  4419. </div>
  4420. <div
  4421. class="group_work"
  4422. v-if="
  4423. g.works &&
  4424. g.works.length &&
  4425. g.works[toolIndex].length
  4426. "
  4427. >
  4428. <div
  4429. class="works"
  4430. style="
  4431. width: 200px;
  4432. height: 140px;
  4433. margin: 10px 10px 10px 0;
  4434. border-radius: 15px;
  4435. box-shadow: 0 0 6px 1px #dfdada;
  4436. "
  4437. v-for="(w, wIndex) in g.works[toolIndex]"
  4438. :key="wIndex"
  4439. :class="w.type == 1 ? 'isTypeOne' : ''"
  4440. >
  4441. <div class="workImg">
  4442. <img
  4443. :src="w.works"
  4444. @click="previewImg(w.works)"
  4445. alt
  4446. />
  4447. <div
  4448. class="answerScore"
  4449. v-if="w.score"
  4450. @click.stop="openScore(w)"
  4451. :class="{
  4452. rightW:
  4453. w.userid == userid ||
  4454. tType == 1 ||
  4455. tType == 4,
  4456. }"
  4457. >
  4458. {{ JSON.parse(w.score).wScore }}分
  4459. </div>
  4460. <div
  4461. class="answerScore"
  4462. @click.stop="openScore(w)"
  4463. v-else-if="courseDetail.userid == userid"
  4464. :class="{
  4465. rightW:
  4466. w.userid == userid ||
  4467. tType == 1 ||
  4468. tType == 4,
  4469. }"
  4470. >
  4471. 评分
  4472. </div>
  4473. <img
  4474. class="deleteImg"
  4475. src="../assets/deleteworks.png"
  4476. v-if="
  4477. w.userid == userid || tType == 1 || tType == 4
  4478. "
  4479. @click.stop="deleteWorks(w.wid)"
  4480. alt
  4481. />
  4482. </div>
  4483. <div class="comment" style="min-width: 200px">
  4484. <div class="worksName">
  4485. <div>{{ w.sName }}</div>
  4486. </div>
  4487. <div class="commentList">
  4488. <div class="commentList">
  4489. <div
  4490. class="commentImg"
  4491. @click="
  4492. isLikes(w.wid, userid, 1, null, w.isLikes)
  4493. "
  4494. >
  4495. <img
  4496. :src="w.isLikes == true ? likes : noLikes"
  4497. alt=""
  4498. />
  4499. </div>
  4500. <div>{{ w.likesCount }}</div>
  4501. </div>
  4502. <div
  4503. class="commentList"
  4504. style="margin-right: 15px"
  4505. >
  4506. <div
  4507. class="commentImg"
  4508. @click="
  4509. commentOther(
  4510. w,
  4511. toolIndex,
  4512. wIndex,
  4513. null,
  4514. g.id
  4515. )
  4516. "
  4517. >
  4518. <img
  4519. src="../assets/icon/comment/comment.png"
  4520. alt=""
  4521. />
  4522. </div>
  4523. <div>{{ w.commentCount }}</div>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <div class="group_work" v-else>暂无提交作业</div>
  4530. </div>
  4531. </div>
  4532. <div
  4533. class="worksDetailBox"
  4534. v-if="
  4535. worksStudent.length &&
  4536. worksStudent[toolIndex].length > 0
  4537. "
  4538. >
  4539. <div
  4540. class="works"
  4541. style="
  4542. width: 200px;
  4543. height: 140px;
  4544. margin: 10px 10px 10px 0;
  4545. border-radius: 15px;
  4546. box-shadow: 0 0 6px 1px #dfdada;
  4547. "
  4548. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4549. 0
  4550. ? worksStudent[toolIndex]
  4551. : worksStudent[toolIndex].slice(0, 6)"
  4552. :key="wIndex"
  4553. >
  4554. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4555. <div class="workImg">
  4556. <img
  4557. :src="w.works"
  4558. @click="previewImg(w.works)"
  4559. alt
  4560. />
  4561. <div
  4562. class="answerScore"
  4563. v-if="w.score"
  4564. @click.stop="openScore(w)"
  4565. :class="{
  4566. rightW:
  4567. w.userid == userid || tType == 1 || tType == 4,
  4568. }"
  4569. >
  4570. {{ JSON.parse(w.score).wScore }}分
  4571. </div>
  4572. <div
  4573. class="answerScore"
  4574. @click.stop="openScore(w)"
  4575. v-else-if="courseDetail.userid == userid"
  4576. :class="{
  4577. rightW:
  4578. w.userid == userid || tType == 1 || tType == 4,
  4579. }"
  4580. >
  4581. 评分
  4582. </div>
  4583. <img
  4584. class="deleteImg"
  4585. src="../assets/deleteworks.png"
  4586. v-if="
  4587. w.userid == userid || tType == 1 || tType == 4
  4588. "
  4589. @click.stop="deleteWorks(w.wid)"
  4590. alt
  4591. />
  4592. </div>
  4593. <div class="comment" style="min-width: 200px">
  4594. <div class="worksName">
  4595. <div>{{ w.sName }}</div>
  4596. </div>
  4597. <div class="commentList">
  4598. <div class="commentList">
  4599. <div
  4600. class="commentImg"
  4601. @click="
  4602. isLikes(w.wid, userid, 1, null, w.isLikes)
  4603. "
  4604. >
  4605. <img
  4606. :src="w.isLikes == true ? likes : noLikes"
  4607. alt=""
  4608. />
  4609. </div>
  4610. <div>{{ w.likesCount }}</div>
  4611. </div>
  4612. <div class="commentList" style="margin-right: 15px">
  4613. <div
  4614. class="commentImg"
  4615. @click="commentOther(w, toolIndex, wIndex)"
  4616. >
  4617. <img
  4618. src="../assets/icon/comment/comment.png"
  4619. alt=""
  4620. />
  4621. </div>
  4622. <div>{{ w.commentCount }}</div>
  4623. </div>
  4624. </div>
  4625. </div>
  4626. </div>
  4627. </div>
  4628. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4629. 未提交
  4630. </div>
  4631. <div class="noWorksS">
  4632. <div
  4633. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4634. :key="sIndex"
  4635. class="noWorksName"
  4636. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4637. >
  4638. {{ s.student }}
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div
  4643. v-if="
  4644. tType &&
  4645. ((tType == 2 && sIsOpen == true) ||
  4646. tType == 1 ||
  4647. tType == 4) &&
  4648. tool.tool.indexOf(3) != -1
  4649. "
  4650. class="worksBox"
  4651. >
  4652. <div
  4653. class="zuoyeYulan"
  4654. v-if="
  4655. worksStudent.length &&
  4656. worksStudent[toolIndex].length > 0
  4657. "
  4658. >
  4659. <div class="worksTop">
  4660. <div>作业预览</div>
  4661. <div
  4662. class="corOpen"
  4663. @click="contract(toolIndex)"
  4664. v-if="
  4665. worksStudent[toolIndex].length > 6 &&
  4666. isCloseList[toolIndex].isClose == 0
  4667. "
  4668. >
  4669. 收缩
  4670. </div>
  4671. <div
  4672. class="corOpen"
  4673. @click="contract(toolIndex)"
  4674. v-if="isCloseList[toolIndex].isClose == 1"
  4675. >
  4676. 展开
  4677. </div>
  4678. </div>
  4679. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4680. </div>
  4681. <div
  4682. class="group_workBox"
  4683. v-for="(g, gindex) in courseGroup.group"
  4684. :key="gindex"
  4685. >
  4686. <div class="group_box">
  4687. <div class="group_title">
  4688. <el-tooltip
  4689. class="item"
  4690. effect="light"
  4691. :content="g.name"
  4692. placement="top"
  4693. >
  4694. <div class="group_name">{{ g.name }}</div>
  4695. </el-tooltip>
  4696. </div>
  4697. <div
  4698. class="group_work"
  4699. v-if="
  4700. g.works &&
  4701. g.works.length &&
  4702. g.works[toolIndex].length
  4703. "
  4704. >
  4705. <div
  4706. class="works"
  4707. style="
  4708. width: 200px;
  4709. height: 140px;
  4710. margin: 10px 10px 10px 0;
  4711. border-radius: 15px;
  4712. box-shadow: 0 0 6px 1px #dfdada;
  4713. "
  4714. v-for="(w, wIndex) in g.works[toolIndex]"
  4715. :key="wIndex"
  4716. :class="w.type == 1 ? 'isTypeOne' : ''"
  4717. >
  4718. <div class="workImg">
  4719. <img
  4720. :src="w.works"
  4721. @click="previewImg(w.works)"
  4722. alt
  4723. />
  4724. <div
  4725. class="answerScore"
  4726. v-if="w.score"
  4727. @click.stop="openScore(w)"
  4728. :class="{
  4729. rightW:
  4730. w.userid == userid ||
  4731. tType == 1 ||
  4732. tType == 4,
  4733. }"
  4734. >
  4735. {{ JSON.parse(w.score).wScore }}分
  4736. </div>
  4737. <div
  4738. class="answerScore"
  4739. @click.stop="openScore(w)"
  4740. v-else-if="courseDetail.userid == userid"
  4741. :class="{
  4742. rightW:
  4743. w.userid == userid ||
  4744. tType == 1 ||
  4745. tType == 4,
  4746. }"
  4747. >
  4748. 评分
  4749. </div>
  4750. <img
  4751. class="deleteImg"
  4752. src="../assets/deleteworks.png"
  4753. v-if="
  4754. w.userid == userid || tType == 1 || tType == 4
  4755. "
  4756. @click.stop="deleteWorks(w.wid)"
  4757. alt
  4758. />
  4759. </div>
  4760. <div class="comment" style="min-width: 200px">
  4761. <div class="worksName">
  4762. <div>{{ w.sName }}</div>
  4763. </div>
  4764. <div class="commentList">
  4765. <div class="commentList">
  4766. <div
  4767. class="commentImg"
  4768. @click="
  4769. isLikes(w.wid, userid, 1, null, w.isLikes)
  4770. "
  4771. >
  4772. <img
  4773. :src="w.isLikes == true ? likes : noLikes"
  4774. alt=""
  4775. />
  4776. </div>
  4777. <div>{{ w.likesCount }}</div>
  4778. </div>
  4779. <div
  4780. class="commentList"
  4781. style="margin-right: 15px"
  4782. >
  4783. <div
  4784. class="commentImg"
  4785. @click="
  4786. commentOther(
  4787. w,
  4788. toolIndex,
  4789. wIndex,
  4790. null,
  4791. g.id
  4792. )
  4793. "
  4794. >
  4795. <img
  4796. src="../assets/icon/comment/comment.png"
  4797. alt=""
  4798. />
  4799. </div>
  4800. <div>{{ w.commentCount }}</div>
  4801. </div>
  4802. </div>
  4803. </div>
  4804. </div>
  4805. </div>
  4806. <div class="group_work" v-else>暂无提交作业</div>
  4807. </div>
  4808. </div>
  4809. <div
  4810. class="worksDetailBox"
  4811. v-if="
  4812. worksStudent.length &&
  4813. worksStudent[toolIndex].length > 0
  4814. "
  4815. >
  4816. <div
  4817. class="works"
  4818. style="
  4819. width: 200px;
  4820. height: 140px;
  4821. margin: 10px 10px 10px 0;
  4822. border-radius: 15px;
  4823. box-shadow: 0 0 6px 1px #dfdada;
  4824. "
  4825. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4826. 0
  4827. ? worksStudent[toolIndex]
  4828. : worksStudent[toolIndex].slice(0, 6)"
  4829. :key="wIndex"
  4830. >
  4831. <!-- @click="previewImg(w.works)" -->
  4832. <div class="workImg">
  4833. <img
  4834. :src="w.works"
  4835. @click="previewImg(w.works)"
  4836. alt
  4837. />
  4838. <div
  4839. class="answerScore"
  4840. v-if="w.score"
  4841. @click.stop="openScore(w)"
  4842. :class="{
  4843. rightW:
  4844. w.userid == userid || tType == 1 || tType == 4,
  4845. }"
  4846. >
  4847. {{ JSON.parse(w.score).wScore }}分
  4848. </div>
  4849. <div
  4850. class="answerScore"
  4851. @click.stop="openScore(w)"
  4852. v-else-if="courseDetail.userid == userid"
  4853. :class="{
  4854. rightW:
  4855. w.userid == userid || tType == 1 || tType == 4,
  4856. }"
  4857. >
  4858. 评分
  4859. </div>
  4860. <img
  4861. class="deleteImg"
  4862. src="../assets/deleteworks.png"
  4863. v-if="
  4864. w.userid == userid || tType == 1 || tType == 4
  4865. "
  4866. @click.stop="deleteWorks(w.wid)"
  4867. alt
  4868. />
  4869. </div>
  4870. <div class="comment" style="min-width: 200px">
  4871. <div class="worksName">
  4872. <div>{{ w.sName }}</div>
  4873. </div>
  4874. <div class="commentList">
  4875. <div class="commentList">
  4876. <div
  4877. class="commentImg"
  4878. @click="
  4879. isLikes(w.wid, userid, 1, null, w.isLikes)
  4880. "
  4881. >
  4882. <img
  4883. :src="w.isLikes == true ? likes : noLikes"
  4884. alt=""
  4885. />
  4886. </div>
  4887. <div>{{ w.likesCount }}</div>
  4888. </div>
  4889. <div class="commentList" style="margin-right: 15px">
  4890. <div
  4891. class="commentImg"
  4892. @click="commentOther(w, toolIndex, wIndex)"
  4893. >
  4894. <img
  4895. src="../assets/icon/comment/comment.png"
  4896. alt=""
  4897. />
  4898. </div>
  4899. <div>{{ w.commentCount }}</div>
  4900. </div>
  4901. </div>
  4902. </div>
  4903. </div>
  4904. </div>
  4905. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4906. 未提交
  4907. </div>
  4908. <div class="noWorksS">
  4909. <div
  4910. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4911. :key="sIndex"
  4912. class="noWorksName"
  4913. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4914. >
  4915. {{ s.student }}
  4916. </div>
  4917. </div>
  4918. </div>
  4919. <div
  4920. v-if="
  4921. tType &&
  4922. ((tType == 2 && sIsOpen == true) ||
  4923. tType == 1 ||
  4924. tType == 4) &&
  4925. tool.tool.indexOf(6) != -1
  4926. "
  4927. class="worksBox"
  4928. >
  4929. <div
  4930. class="zuoyeYulan"
  4931. v-if="
  4932. worksStudent.length &&
  4933. worksStudent[toolIndex].length > 0
  4934. "
  4935. >
  4936. <div class="worksTop">
  4937. <div>作业预览</div>
  4938. <div
  4939. class="corOpen"
  4940. @click="contract(toolIndex)"
  4941. v-if="
  4942. worksStudent[toolIndex].length > 6 &&
  4943. isCloseList[toolIndex].isClose == 0
  4944. "
  4945. >
  4946. 收缩
  4947. </div>
  4948. <div
  4949. class="corOpen"
  4950. @click="contract(toolIndex)"
  4951. v-if="isCloseList[toolIndex].isClose == 1"
  4952. >
  4953. 展开
  4954. </div>
  4955. </div>
  4956. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4957. </div>
  4958. <div
  4959. class="group_workBox"
  4960. v-for="(g, gindex) in courseGroup.group"
  4961. :key="gindex"
  4962. >
  4963. <div class="group_box">
  4964. <div class="group_title">
  4965. <el-tooltip
  4966. class="item"
  4967. effect="light"
  4968. :content="g.name"
  4969. placement="top"
  4970. >
  4971. <div class="group_name">{{ g.name }}</div>
  4972. </el-tooltip>
  4973. </div>
  4974. <div
  4975. class="group_work"
  4976. v-if="
  4977. g.works &&
  4978. g.works.length &&
  4979. g.works[toolIndex].length
  4980. "
  4981. >
  4982. <div
  4983. class="works"
  4984. style="
  4985. width: 200px;
  4986. height: 140px;
  4987. margin: 10px 10px 10px 0;
  4988. border-radius: 15px;
  4989. box-shadow: 0 0 6px 1px #dfdada;
  4990. "
  4991. v-for="(w, wIndex) in g.works[toolIndex]"
  4992. :key="wIndex"
  4993. :class="w.type == 1 ? 'isTypeOne' : ''"
  4994. >
  4995. <div class="workImg">
  4996. <img
  4997. :src="w.works"
  4998. @click="previewImg(w.works)"
  4999. alt
  5000. />
  5001. <div
  5002. class="answerScore"
  5003. v-if="w.score"
  5004. @click.stop="openScore(w)"
  5005. :class="{
  5006. rightW:
  5007. w.userid == userid ||
  5008. tType == 1 ||
  5009. tType == 4,
  5010. }"
  5011. >
  5012. {{ JSON.parse(w.score).wScore }}分
  5013. </div>
  5014. <div
  5015. class="answerScore"
  5016. @click.stop="openScore(w)"
  5017. v-else-if="courseDetail.userid == userid"
  5018. :class="{
  5019. rightW:
  5020. w.userid == userid ||
  5021. tType == 1 ||
  5022. tType == 4,
  5023. }"
  5024. >
  5025. 评分
  5026. </div>
  5027. <img
  5028. class="deleteImg"
  5029. src="../assets/deleteworks.png"
  5030. v-if="
  5031. w.userid == userid || tType == 1 || tType == 4
  5032. "
  5033. @click.stop="deleteWorks(w.wid)"
  5034. alt
  5035. />
  5036. </div>
  5037. <div class="comment" style="min-width: 200px">
  5038. <div class="worksName">
  5039. <div>{{ w.sName }}</div>
  5040. </div>
  5041. <div class="commentList">
  5042. <div class="commentList">
  5043. <div
  5044. class="commentImg"
  5045. @click="
  5046. isLikes(w.wid, userid, 1, null, w.isLikes)
  5047. "
  5048. >
  5049. <img
  5050. :src="w.isLikes == true ? likes : noLikes"
  5051. alt=""
  5052. />
  5053. </div>
  5054. <div>{{ w.likesCount }}</div>
  5055. </div>
  5056. <div
  5057. class="commentList"
  5058. style="margin-right: 15px"
  5059. >
  5060. <div
  5061. class="commentImg"
  5062. @click="
  5063. commentOther(
  5064. w,
  5065. toolIndex,
  5066. wIndex,
  5067. null,
  5068. g.id
  5069. )
  5070. "
  5071. >
  5072. <img
  5073. src="../assets/icon/comment/comment.png"
  5074. alt=""
  5075. />
  5076. </div>
  5077. <div>{{ w.commentCount }}</div>
  5078. </div>
  5079. </div>
  5080. </div>
  5081. </div>
  5082. </div>
  5083. <div class="group_work" v-else>暂无提交作业</div>
  5084. </div>
  5085. </div>
  5086. <div
  5087. class="worksDetailBox"
  5088. v-if="
  5089. worksStudent.length &&
  5090. worksStudent[toolIndex].length > 0
  5091. "
  5092. >
  5093. <div
  5094. class="works"
  5095. style="
  5096. width: 200px;
  5097. height: 140px;
  5098. margin: 10px 10px 10px 0;
  5099. border-radius: 15px;
  5100. box-shadow: 0 0 6px 1px #dfdada;
  5101. "
  5102. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5103. 0
  5104. ? worksStudent[toolIndex]
  5105. : worksStudent[toolIndex].slice(0, 6)"
  5106. :key="wIndex"
  5107. >
  5108. <!-- @click="previewImg(w.works)" -->
  5109. <div class="workImg">
  5110. <img
  5111. :src="w.works"
  5112. @click="previewImg(w.works)"
  5113. alt
  5114. />
  5115. <div
  5116. class="answerScore"
  5117. v-if="w.score"
  5118. @click.stop="openScore(w)"
  5119. :class="{
  5120. rightW:
  5121. w.userid == userid || tType == 1 || tType == 4,
  5122. }"
  5123. >
  5124. {{ JSON.parse(w.score).wScore }}分
  5125. </div>
  5126. <div
  5127. class="answerScore"
  5128. @click.stop="openScore(w)"
  5129. v-else-if="courseDetail.userid == userid"
  5130. :class="{
  5131. rightW:
  5132. w.userid == userid || tType == 1 || tType == 4,
  5133. }"
  5134. >
  5135. 评分
  5136. </div>
  5137. <img
  5138. class="deleteImg"
  5139. src="../assets/deleteworks.png"
  5140. v-if="
  5141. w.userid == userid || tType == 1 || tType == 4
  5142. "
  5143. @click.stop="deleteWorks(w.wid)"
  5144. alt
  5145. />
  5146. </div>
  5147. <div class="comment" style="min-width: 200px">
  5148. <div class="worksName">
  5149. <div>{{ w.sName }}</div>
  5150. </div>
  5151. <div class="commentList">
  5152. <div class="commentList">
  5153. <div
  5154. class="commentImg"
  5155. @click="
  5156. isLikes(w.wid, userid, 1, null, w.isLikes)
  5157. "
  5158. >
  5159. <img
  5160. :src="w.isLikes == true ? likes : noLikes"
  5161. alt=""
  5162. />
  5163. </div>
  5164. <div>{{ w.likesCount }}</div>
  5165. </div>
  5166. <div class="commentList" style="margin-right: 15px">
  5167. <div
  5168. class="commentImg"
  5169. @click="commentOther(w, toolIndex, wIndex)"
  5170. >
  5171. <img
  5172. src="../assets/icon/comment/comment.png"
  5173. alt=""
  5174. />
  5175. </div>
  5176. <div>{{ w.commentCount }}</div>
  5177. </div>
  5178. </div>
  5179. </div>
  5180. </div>
  5181. </div>
  5182. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5183. 未提交
  5184. </div>
  5185. <div class="noWorksS">
  5186. <div
  5187. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5188. :key="sIndex"
  5189. class="noWorksName"
  5190. >
  5191. {{ s.student }}
  5192. </div>
  5193. </div>
  5194. </div>
  5195. <div
  5196. v-if="
  5197. tType &&
  5198. ((tType == 2 && sIsOpen == true) ||
  5199. tType == 1 ||
  5200. tType == 4) &&
  5201. tool.tool.indexOf(7) != -1
  5202. "
  5203. class="worksBox"
  5204. >
  5205. <div
  5206. class="zuoyeYulan"
  5207. v-if="
  5208. worksStudent.length &&
  5209. worksStudent[toolIndex].length > 0
  5210. "
  5211. >
  5212. <div class="worksTop">
  5213. <div>作业预览</div>
  5214. <div
  5215. class="corOpen"
  5216. @click="contract(toolIndex)"
  5217. v-if="
  5218. worksStudent[toolIndex].length > 6 &&
  5219. isCloseList[toolIndex].isClose == 0
  5220. "
  5221. >
  5222. 收缩
  5223. </div>
  5224. <div
  5225. class="corOpen"
  5226. @click="contract(toolIndex)"
  5227. v-if="isCloseList[toolIndex].isClose == 1"
  5228. >
  5229. 展开
  5230. </div>
  5231. </div>
  5232. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5233. </div>
  5234. <div
  5235. class="group_workBox"
  5236. v-for="(g, gindex) in courseGroup.group"
  5237. :key="gindex"
  5238. >
  5239. <div class="group_box">
  5240. <div class="group_title">
  5241. <el-tooltip
  5242. class="item"
  5243. effect="light"
  5244. :content="g.name"
  5245. placement="top"
  5246. >
  5247. <div class="group_name">{{ g.name }}</div>
  5248. </el-tooltip>
  5249. </div>
  5250. <div
  5251. class="group_work"
  5252. v-if="
  5253. g.works &&
  5254. g.works.length &&
  5255. g.works[toolIndex].length
  5256. "
  5257. >
  5258. <div
  5259. class="works"
  5260. style="
  5261. width: 200px;
  5262. height: 140px;
  5263. margin: 10px 10px 10px 0;
  5264. border-radius: 15px;
  5265. box-shadow: 0 0 6px 1px #dfdada;
  5266. "
  5267. v-for="(w, wIndex) in g.works[toolIndex]"
  5268. :key="wIndex"
  5269. :class="w.type == 1 ? 'isTypeOne' : ''"
  5270. >
  5271. <div class="workImg">
  5272. <img
  5273. :src="w.works"
  5274. @click="previewImg(w.works)"
  5275. alt
  5276. />
  5277. <div
  5278. class="answerScore"
  5279. v-if="w.score"
  5280. @click.stop="openScore(w)"
  5281. :class="{
  5282. rightW:
  5283. w.userid == userid ||
  5284. tType == 1 ||
  5285. tType == 4,
  5286. }"
  5287. >
  5288. {{ JSON.parse(w.score).wScore }}分
  5289. </div>
  5290. <div
  5291. class="answerScore"
  5292. @click.stop="openScore(w)"
  5293. v-else-if="courseDetail.userid == userid"
  5294. :class="{
  5295. rightW:
  5296. w.userid == userid ||
  5297. tType == 1 ||
  5298. tType == 4,
  5299. }"
  5300. >
  5301. 评分
  5302. </div>
  5303. <img
  5304. class="deleteImg"
  5305. src="../assets/deleteworks.png"
  5306. v-if="
  5307. w.userid == userid || tType == 1 || tType == 4
  5308. "
  5309. @click.stop="deleteWorks(w.wid)"
  5310. alt
  5311. />
  5312. </div>
  5313. <div class="comment" style="min-width: 200px">
  5314. <div class="worksName">
  5315. <div>{{ w.sName }}</div>
  5316. </div>
  5317. <div class="commentList">
  5318. <div class="commentList">
  5319. <div
  5320. class="commentImg"
  5321. @click="
  5322. isLikes(w.wid, userid, 1, null, w.isLikes)
  5323. "
  5324. >
  5325. <img
  5326. :src="w.isLikes == true ? likes : noLikes"
  5327. alt=""
  5328. />
  5329. </div>
  5330. <div>{{ w.likesCount }}</div>
  5331. </div>
  5332. <div
  5333. class="commentList"
  5334. style="margin-right: 15px"
  5335. >
  5336. <div
  5337. class="commentImg"
  5338. @click="
  5339. commentOther(
  5340. w,
  5341. toolIndex,
  5342. wIndex,
  5343. null,
  5344. g.id
  5345. )
  5346. "
  5347. >
  5348. <img
  5349. src="../assets/icon/comment/comment.png"
  5350. alt=""
  5351. />
  5352. </div>
  5353. <div>{{ w.commentCount }}</div>
  5354. </div>
  5355. </div>
  5356. </div>
  5357. </div>
  5358. </div>
  5359. <div class="group_work" v-else>暂无提交作业</div>
  5360. </div>
  5361. </div>
  5362. <div
  5363. class="worksDetailBox"
  5364. v-if="
  5365. worksStudent.length &&
  5366. worksStudent[toolIndex].length > 0
  5367. "
  5368. >
  5369. <div
  5370. class="works"
  5371. style="
  5372. width: 200px;
  5373. height: 140px;
  5374. margin: 10px 10px 10px 0;
  5375. border-radius: 15px;
  5376. box-shadow: 0 0 6px 1px #dfdada;
  5377. "
  5378. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5379. 0
  5380. ? worksStudent[toolIndex]
  5381. : worksStudent[toolIndex].slice(0, 6)"
  5382. :key="wIndex"
  5383. >
  5384. <!-- @click="previewImg(w.works)" -->
  5385. <div class="workImg">
  5386. <img
  5387. :src="w.works"
  5388. @click="previewImg(w.works)"
  5389. alt
  5390. />
  5391. <div
  5392. class="answerScore"
  5393. v-if="w.score"
  5394. @click.stop="openScore(w)"
  5395. :class="{
  5396. rightW:
  5397. w.userid == userid || tType == 1 || tType == 4,
  5398. }"
  5399. >
  5400. {{ JSON.parse(w.score).wScore }}分
  5401. </div>
  5402. <div
  5403. class="answerScore"
  5404. @click.stop="openScore(w)"
  5405. v-else-if="courseDetail.userid == userid"
  5406. :class="{
  5407. rightW:
  5408. w.userid == userid || tType == 1 || tType == 4,
  5409. }"
  5410. >
  5411. 评分
  5412. </div>
  5413. <img
  5414. class="deleteImg"
  5415. src="../assets/deleteworks.png"
  5416. v-if="
  5417. w.userid == userid || tType == 1 || tType == 4
  5418. "
  5419. @click.stop="deleteWorks(w.wid)"
  5420. alt
  5421. />
  5422. </div>
  5423. <div class="comment" style="min-width: 200px">
  5424. <div class="worksName">
  5425. <div>{{ w.sName }}</div>
  5426. </div>
  5427. <div class="commentList">
  5428. <div class="commentList">
  5429. <div
  5430. class="commentImg"
  5431. @click="
  5432. isLikes(w.wid, userid, 1, null, w.isLikes)
  5433. "
  5434. >
  5435. <img
  5436. :src="w.isLikes == true ? likes : noLikes"
  5437. alt=""
  5438. />
  5439. </div>
  5440. <div>{{ w.likesCount }}</div>
  5441. </div>
  5442. <div class="commentList" style="margin-right: 15px">
  5443. <div
  5444. class="commentImg"
  5445. @click="commentOther(w, toolIndex, wIndex)"
  5446. >
  5447. <img
  5448. src="../assets/icon/comment/comment.png"
  5449. alt=""
  5450. />
  5451. </div>
  5452. <div>{{ w.commentCount }}</div>
  5453. </div>
  5454. </div>
  5455. </div>
  5456. </div>
  5457. </div>
  5458. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5459. 未提交
  5460. </div>
  5461. <div class="noWorksS">
  5462. <div
  5463. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5464. :key="sIndex"
  5465. class="noWorksName"
  5466. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5467. >
  5468. {{ s.student }}
  5469. </div>
  5470. </div>
  5471. </div>
  5472. <div
  5473. v-if="
  5474. tType &&
  5475. ((tType == 2 && sIsOpen == true) ||
  5476. tType == 1 ||
  5477. tType == 4) &&
  5478. tool.tool.indexOf(26) != -1
  5479. "
  5480. class="worksBox"
  5481. >
  5482. <div
  5483. class="zuoyeYulan"
  5484. v-if="
  5485. worksStudent.length &&
  5486. worksStudent[toolIndex].length > 0
  5487. "
  5488. >
  5489. <div class="worksTop">
  5490. <div>作业预览</div>
  5491. <div
  5492. class="corOpen"
  5493. @click="contract(toolIndex)"
  5494. v-if="
  5495. worksStudent[toolIndex].length > 6 &&
  5496. isCloseList[toolIndex].isClose == 0
  5497. "
  5498. >
  5499. 收缩
  5500. </div>
  5501. <div
  5502. class="corOpen"
  5503. @click="contract(toolIndex)"
  5504. v-if="isCloseList[toolIndex].isClose == 1"
  5505. >
  5506. 展开
  5507. </div>
  5508. </div>
  5509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5510. </div>
  5511. <div
  5512. class="worksDetailBox"
  5513. v-if="
  5514. worksStudent.length &&
  5515. worksStudent[toolIndex].length > 0
  5516. "
  5517. >
  5518. <div
  5519. class="works"
  5520. style="width: 240px; height: 140px; overflow: hidden"
  5521. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5522. 0
  5523. ? worksStudent[toolIndex]
  5524. : worksStudent[toolIndex].slice(0, 6)"
  5525. :key="wIndex"
  5526. :class="w.type == 1 ? 'isTypeOne' : ''"
  5527. >
  5528. <div class="workImg" v-if="w.type == 0">
  5529. <img
  5530. :src="w.works"
  5531. @click="previewImg(w.works)"
  5532. alt
  5533. />
  5534. <img
  5535. class="deleteImg"
  5536. src="../assets/deleteworks.png"
  5537. v-if="
  5538. w.userid == userid || tType == 1 || tType == 4
  5539. "
  5540. @click.stop="deleteWorks(w.wid)"
  5541. alt
  5542. />
  5543. </div>
  5544. <div class="workImg" v-if="w.type == 1">
  5545. <img :src="word" @click="openFile(w.works)" alt />
  5546. <img
  5547. class="deleteImg"
  5548. src="../assets/deleteworks.png"
  5549. v-if="
  5550. w.userid == userid || tType == 1 || tType == 4
  5551. "
  5552. @click.stop="deleteWorks(w.wid)"
  5553. alt
  5554. />
  5555. </div>
  5556. <div class="worksName">
  5557. <div>{{ w.sName }}</div>
  5558. </div>
  5559. </div>
  5560. </div>
  5561. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5562. 未提交
  5563. </div>
  5564. <div class="noWorksS">
  5565. <div
  5566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5567. :key="sIndex"
  5568. class="noWorksName"
  5569. >
  5570. {{ s.student }}
  5571. </div>
  5572. </div>
  5573. </div>
  5574. <div
  5575. v-if="
  5576. tType &&
  5577. ((tType == 2 && sIsOpen == true) ||
  5578. tType == 1 ||
  5579. tType == 4) &&
  5580. tool.tool.indexOf(40) != -1
  5581. "
  5582. class="worksBox"
  5583. >
  5584. <div
  5585. class="zuoyeYulan"
  5586. v-if="
  5587. worksStudent.length &&
  5588. worksStudent[toolIndex].length > 0
  5589. "
  5590. >
  5591. <div class="worksTop">
  5592. <div>作业预览</div>
  5593. <div
  5594. class="corOpen"
  5595. @click="contract(toolIndex)"
  5596. v-if="
  5597. worksStudent[toolIndex].length > 6 &&
  5598. isCloseList[toolIndex].isClose == 0
  5599. "
  5600. >
  5601. 收缩
  5602. </div>
  5603. <div
  5604. class="corOpen"
  5605. @click="contract(toolIndex)"
  5606. v-if="isCloseList[toolIndex].isClose == 1"
  5607. >
  5608. 展开
  5609. </div>
  5610. </div>
  5611. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5612. </div>
  5613. <div
  5614. class="worksDetailBox"
  5615. v-if="
  5616. worksStudent.length &&
  5617. worksStudent[toolIndex].length > 0
  5618. "
  5619. >
  5620. <div
  5621. class="works"
  5622. style="
  5623. width: 200px;
  5624. height: 140px;
  5625. margin: 10px 10px 10px 0;
  5626. border-radius: 15px;
  5627. box-shadow: 0 0 6px 1px #dfdada;
  5628. "
  5629. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5630. 0
  5631. ? worksStudent[toolIndex]
  5632. : worksStudent[toolIndex].slice(0, 6)"
  5633. :key="wIndex"
  5634. :class="w.type == 1 ? 'isTypeOne' : ''"
  5635. >
  5636. <div class="workImg">
  5637. <img
  5638. src="../assets/icon/works/noImg.png"
  5639. @click="openPj(w.works, toolIndex)"
  5640. alt
  5641. />
  5642. <img
  5643. class="deleteImg"
  5644. src="../assets/deleteworks.png"
  5645. v-if="
  5646. w.userid == userid || tType == 1 || tType == 4
  5647. "
  5648. @click.stop="deleteWorks(w.wid)"
  5649. alt
  5650. />
  5651. </div>
  5652. <div class="comment" style="min-width: 200px">
  5653. <div class="worksName">
  5654. <div>{{ w.sName }}</div>
  5655. </div>
  5656. <div class="commentList">
  5657. <div class="commentList">
  5658. <div
  5659. class="commentImg"
  5660. @click="
  5661. isLikes(w.wid, userid, 1, null, w.isLikes)
  5662. "
  5663. >
  5664. <img
  5665. :src="w.isLikes == true ? likes : noLikes"
  5666. alt=""
  5667. />
  5668. </div>
  5669. <div>{{ w.likesCount }}</div>
  5670. </div>
  5671. <div class="commentList" style="margin-right: 15px">
  5672. <div
  5673. class="commentImg"
  5674. @click="commentOther(w, toolIndex, wIndex)"
  5675. >
  5676. <img
  5677. src="../assets/icon/comment/comment.png"
  5678. alt=""
  5679. />
  5680. </div>
  5681. <div>{{ w.commentCount }}</div>
  5682. </div>
  5683. </div>
  5684. </div>
  5685. </div>
  5686. </div>
  5687. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5688. 未提交
  5689. </div>
  5690. <div class="noWorksS">
  5691. <div
  5692. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5693. :key="sIndex"
  5694. class="noWorksName"
  5695. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5696. >
  5697. {{ s.student }}
  5698. </div>
  5699. </div>
  5700. </div>
  5701. <div
  5702. v-if="
  5703. tType &&
  5704. tType == 2 &&
  5705. !sIsOpen &&
  5706. tool.tool.indexOf(40) != -1
  5707. "
  5708. class="worksBox"
  5709. >
  5710. <div
  5711. class="zuoyeYulan"
  5712. v-if="workStudent[toolIndex].length > 0"
  5713. >
  5714. <span>作业预览</span>
  5715. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5716. </div>
  5717. <div
  5718. class="worksDetailBox"
  5719. v-if="workStudent[toolIndex].length > 0"
  5720. >
  5721. <div
  5722. class="works"
  5723. style="
  5724. width: 200px;
  5725. height: 140px;
  5726. margin: 10px 10px 10px 0;
  5727. "
  5728. v-for="(w, wIndex) in workStudent[toolIndex]"
  5729. :key="wIndex"
  5730. >
  5731. <div class="workImg">
  5732. <img
  5733. src="../assets/icon/works/noImg.png"
  5734. @click="openPj(w.works, toolIndex)"
  5735. alt
  5736. />
  5737. <img
  5738. class="deleteImg"
  5739. src="../assets/deleteworks.png"
  5740. v-if="
  5741. w.userid == userid || tType == 1 || tType == 4
  5742. "
  5743. @click.stop="deleteWorks(w.wid)"
  5744. alt
  5745. />
  5746. </div>
  5747. <div class="worksName">
  5748. <div>{{ w.sName }}</div>
  5749. </div>
  5750. </div>
  5751. </div>
  5752. </div>
  5753. <div
  5754. v-if="
  5755. tType &&
  5756. ((tType == 2 && sIsOpen == true) ||
  5757. tType == 1 ||
  5758. tType == 4) &&
  5759. tool.tool.indexOf(41) != -1
  5760. "
  5761. >
  5762. <AnswerData2
  5763. v-if="
  5764. worksStudent.length &&
  5765. worksStudent[toolIndex].length > 0
  5766. "
  5767. :problemJson="tool.selectJson.answer"
  5768. :people="worksStudent[toolIndex]"
  5769. ></AnswerData2>
  5770. </div>
  5771. <div
  5772. v-if="
  5773. tType &&
  5774. ((tType == 2 && sIsOpen == true) ||
  5775. tType == 1 ||
  5776. tType == 4) &&
  5777. tool.tool.indexOf(41) != -1
  5778. "
  5779. class="worksBox"
  5780. >
  5781. <div
  5782. class="zuoyeYulan"
  5783. v-if="
  5784. worksStudent.length &&
  5785. worksStudent[toolIndex].length > 0
  5786. "
  5787. >
  5788. <div class="worksTop">
  5789. <div>作业预览</div>
  5790. <div
  5791. class="corOpen"
  5792. @click="contract(toolIndex)"
  5793. v-if="
  5794. worksStudent[toolIndex].length > 6 &&
  5795. isCloseList[toolIndex].isClose == 0
  5796. "
  5797. >
  5798. 收缩
  5799. </div>
  5800. <div
  5801. class="corOpen"
  5802. @click="contract(toolIndex)"
  5803. v-if="isCloseList[toolIndex].isClose == 1"
  5804. >
  5805. 展开
  5806. </div>
  5807. </div>
  5808. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5809. </div>
  5810. <div
  5811. class="worksDetailBox"
  5812. v-if="
  5813. worksStudent.length &&
  5814. worksStudent[toolIndex].length > 0
  5815. "
  5816. >
  5817. <div
  5818. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5819. 0
  5820. ? worksStudent[toolIndex]
  5821. : worksStudent[toolIndex].slice(0, 6)"
  5822. :key="wIndex"
  5823. class="isWorksName"
  5824. @click="openXz(w, toolIndex)"
  5825. >
  5826. {{ w.sName }}
  5827. <img
  5828. class="deleteImg deleteImg2"
  5829. src="../assets/deleteworks.png"
  5830. v-if="w.userid == userid || tType == 1 || tType == 4"
  5831. @click.stop="deleteWorks(w.wid)"
  5832. alt
  5833. />
  5834. </div>
  5835. <!-- <div
  5836. class="works"
  5837. style="
  5838. width: 200px;
  5839. height: 140px;
  5840. margin: 10px 10px 10px 0;
  5841. border-radius: 15px;
  5842. box-shadow: 0 0 6px 1px #dfdada;
  5843. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5844. :class="w.type == 5 ? 'isTypeOne' : ''">
  5845. <div class="workImg">
  5846. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5847. </div>
  5848. <div class="worksName">
  5849. <div>{{ w.sName }}</div>
  5850. </div>
  5851. </div> -->
  5852. </div>
  5853. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5854. 未提交
  5855. </div>
  5856. <div class="noWorksS">
  5857. <div
  5858. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5859. :key="sIndex"
  5860. class="noWorksName"
  5861. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5862. >
  5863. {{ s.student }}
  5864. </div>
  5865. </div>
  5866. </div>
  5867. <div
  5868. v-if="
  5869. tType &&
  5870. tType == 2 &&
  5871. !sIsOpen &&
  5872. tool.tool.indexOf(41) != -1
  5873. "
  5874. class="worksBox"
  5875. >
  5876. <div
  5877. class="zuoyeYulan"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <span>作业预览</span>
  5881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5882. </div>
  5883. <div
  5884. class="worksDetailBox"
  5885. v-if="workStudent[toolIndex].length > 0"
  5886. >
  5887. <div
  5888. class="works"
  5889. style="
  5890. width: 200px;
  5891. height: 140px;
  5892. margin: 10px 10px 10px 0;
  5893. "
  5894. v-for="(w, wIndex) in workStudent[toolIndex]"
  5895. :key="wIndex"
  5896. >
  5897. <div class="workImg">
  5898. <img
  5899. src="../assets/icon/works/noImg.png"
  5900. @click="openXz(w, toolIndex)"
  5901. alt
  5902. />
  5903. <img
  5904. class="deleteImg"
  5905. src="../assets/deleteworks.png"
  5906. v-if="
  5907. w.userid == userid || tType == 1 || tType == 4
  5908. "
  5909. @click.stop="deleteWorks(w.wid)"
  5910. alt
  5911. />
  5912. </div>
  5913. <div class="worksName">
  5914. <div>{{ w.sName }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div v-if="false" class="xuan_right_box">
  5920. <div
  5921. class="tool_right_box"
  5922. v-for="(item, index) in tool.sentenceList"
  5923. :key="index"
  5924. >
  5925. <div>
  5926. <span>{{ index + 1 + "、" + item.sentenceTitle }}</span>
  5927. </div>
  5928. <div class="right_box_xuan">
  5929. <span>正确率</span>
  5930. <span>{{
  5931. (checkJson[toolIndex][index].right
  5932. ? checkJson[toolIndex][index].right
  5933. : 0) + "%"
  5934. }}</span>
  5935. </div>
  5936. <div class="right_box_xuan">
  5937. <span>答对人数</span>
  5938. <span>{{
  5939. checkJson[toolIndex][index].rightPerson.length
  5940. }}</span>
  5941. </div>
  5942. </div>
  5943. </div>
  5944. <div
  5945. v-if="
  5946. tType &&
  5947. ((tType == 2 && sIsOpen == true) ||
  5948. tType == 1 ||
  5949. tType == 4) &&
  5950. tool.tool.indexOf(47) != -1
  5951. "
  5952. >
  5953. <AnswerData
  5954. v-if="
  5955. checkJson[toolIndex].length &&
  5956. (tool.sentenceList || tool.sentenceList.length > 0)
  5957. "
  5958. :people="checkJson[toolIndex]"
  5959. ></AnswerData>
  5960. </div>
  5961. <div
  5962. v-if="
  5963. tType &&
  5964. tType == 2 &&
  5965. !sIsOpen &&
  5966. tool.tool.indexOf(47) != -1
  5967. "
  5968. class="worksBox"
  5969. >
  5970. <div
  5971. class="zuoyeYulan"
  5972. v-if="workStudent[toolIndex].length > 0"
  5973. >
  5974. <span>作业预览</span>
  5975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5976. </div>
  5977. <div
  5978. class="worksDetailBox"
  5979. v-if="workStudent[toolIndex].length > 0"
  5980. >
  5981. <div
  5982. class="works"
  5983. style="
  5984. width: 200px;
  5985. height: 140px;
  5986. margin: 10px 10px 10px 0;
  5987. "
  5988. v-for="(w, wIndex) in workStudent[toolIndex]"
  5989. :key="wIndex"
  5990. >
  5991. <!-- @click="openXz(w, toolIndex)" -->
  5992. <div class="workImg" @click="openSen(w, toolIndex)">
  5993. <img src="../assets/icon/works/noImg.png" alt />
  5994. <img
  5995. class="deleteImg"
  5996. src="../assets/deleteworks.png"
  5997. v-if="
  5998. w.userid == userid || tType == 1 || tType == 4
  5999. "
  6000. @click.stop="deleteWorks(w.wid)"
  6001. alt
  6002. />
  6003. </div>
  6004. <div class="worksName">
  6005. <div>
  6006. {{ w.sName }}
  6007. </div>
  6008. </div>
  6009. </div>
  6010. </div>
  6011. </div>
  6012. <div
  6013. v-if="
  6014. tType &&
  6015. ((tType == 2 && sIsOpen == true) ||
  6016. tType == 1 ||
  6017. tType == 4) &&
  6018. tool.tool.indexOf(47) != -1
  6019. "
  6020. class="worksBox"
  6021. >
  6022. <div
  6023. class="zuoyeYulan"
  6024. v-if="
  6025. worksStudent.length &&
  6026. worksStudent[toolIndex].length > 0
  6027. "
  6028. >
  6029. <div class="worksTop">
  6030. <div>作业预览</div>
  6031. <div
  6032. class="corOpen"
  6033. @click="contract(toolIndex)"
  6034. v-if="
  6035. worksStudent[toolIndex].length > 6 &&
  6036. isCloseList[toolIndex].isClose == 0
  6037. "
  6038. >
  6039. 收缩
  6040. </div>
  6041. <div
  6042. class="corOpen"
  6043. @click="contract(toolIndex)"
  6044. v-if="isCloseList[toolIndex].isClose == 1"
  6045. >
  6046. 展开
  6047. </div>
  6048. </div>
  6049. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6050. </div>
  6051. <div
  6052. class="worksDetailBox"
  6053. v-if="
  6054. worksStudent.length &&
  6055. worksStudent[toolIndex].length > 0
  6056. "
  6057. >
  6058. <!-- @click="openXz(w, toolIndex)" -->
  6059. <div
  6060. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6061. 0
  6062. ? worksStudent[toolIndex]
  6063. : worksStudent[toolIndex].slice(0, 6)"
  6064. :key="wIndex"
  6065. class="isWorksName"
  6066. @click="openSen(w, toolIndex)"
  6067. >
  6068. {{ w.sName }}
  6069. <img
  6070. class="deleteImg deleteImg2"
  6071. src="../assets/deleteworks.png"
  6072. v-if="w.userid == userid || tType == 1 || tType == 4"
  6073. @click.stop="deleteWorks(w.wid)"
  6074. alt
  6075. />
  6076. </div>
  6077. </div>
  6078. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6079. 未提交
  6080. </div>
  6081. <div class="noWorksS">
  6082. <div
  6083. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6084. :key="sIndex"
  6085. class="noWorksName"
  6086. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6087. >
  6088. {{ s.student }}
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div
  6093. v-if="
  6094. tType &&
  6095. ((tType == 2 && sIsOpen == true) ||
  6096. tType == 1 ||
  6097. tType == 4) &&
  6098. tool.tool.indexOf(48) != -1
  6099. "
  6100. class="worksBox"
  6101. >
  6102. <div
  6103. class="zuoyeYulan"
  6104. v-if="
  6105. worksStudent.length &&
  6106. worksStudent[toolIndex].length > 0
  6107. "
  6108. >
  6109. <div class="worksTop">
  6110. <div>作业预览</div>
  6111. <div
  6112. class="corOpen"
  6113. @click="contract(toolIndex)"
  6114. v-if="
  6115. worksStudent[toolIndex].length > 6 &&
  6116. isCloseList[toolIndex].isClose == 0
  6117. "
  6118. >
  6119. 收缩
  6120. </div>
  6121. <div
  6122. class="corOpen"
  6123. @click="contract(toolIndex)"
  6124. v-if="isCloseList[toolIndex].isClose == 1"
  6125. >
  6126. 展开
  6127. </div>
  6128. </div>
  6129. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6130. </div>
  6131. <div
  6132. class="worksDetailBox"
  6133. v-if="
  6134. worksStudent.length &&
  6135. worksStudent[toolIndex].length > 0
  6136. "
  6137. >
  6138. <div
  6139. class="works"
  6140. style="
  6141. width: 200px;
  6142. height: 140px;
  6143. margin: 10px 10px 10px 0;
  6144. border-radius: 15px;
  6145. box-shadow: 0 0 6px 1px #dfdada;
  6146. "
  6147. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6148. 0
  6149. ? worksStudent[toolIndex]
  6150. : worksStudent[toolIndex].slice(0, 6)"
  6151. :key="wIndex"
  6152. :class="w.type == 1 ? 'isTypeOne' : ''"
  6153. >
  6154. <div class="workImg">
  6155. <img :src="word" @click="openTable(w)" alt />
  6156. <!-- @click="openFile(w.works)" -->
  6157. <div
  6158. class="answerScore"
  6159. v-if="w.score"
  6160. @click.stop="openScore(w)"
  6161. :class="{
  6162. rightW:
  6163. w.userid == userid ||
  6164. tType == 1 ||
  6165. tType == 4 ||
  6166. w.ateacher == userid,
  6167. }"
  6168. >
  6169. {{ JSON.parse(w.score).wScore }}分
  6170. </div>
  6171. <div
  6172. class="answerScore"
  6173. @click.stop="openScore(w)"
  6174. v-else-if="courseDetail.userid == userid"
  6175. :class="{
  6176. rightW:
  6177. w.userid == userid ||
  6178. tType == 1 ||
  6179. tType == 4 ||
  6180. w.ateacher == userid,
  6181. }"
  6182. >
  6183. 评分
  6184. </div>
  6185. <img
  6186. class="deleteImg"
  6187. src="../assets/deleteworks.png"
  6188. v-if="
  6189. w.userid == userid || tType == 1 || tType == 4
  6190. "
  6191. @click.stop="deleteWorks(w.wid)"
  6192. alt
  6193. />
  6194. </div>
  6195. <div class="comment" style="min-width: 200px">
  6196. <div class="worksName">
  6197. <div>{{ w.sName }}</div>
  6198. </div>
  6199. <div class="commentList">
  6200. <div class="commentList">
  6201. <div
  6202. class="commentImg"
  6203. @click="
  6204. isLikes(w.wid, userid, 1, null, w.isLikes)
  6205. "
  6206. >
  6207. <img
  6208. :src="w.isLikes == true ? likes : noLikes"
  6209. alt=""
  6210. />
  6211. </div>
  6212. <div>{{ w.likesCount }}</div>
  6213. </div>
  6214. <div class="commentList" style="margin-right: 15px">
  6215. <div
  6216. class="commentImg"
  6217. @click="commentOther(w, toolIndex, wIndex)"
  6218. >
  6219. <img
  6220. src="../assets/icon/comment/comment.png"
  6221. alt=""
  6222. />
  6223. </div>
  6224. <div>{{ w.commentCount }}</div>
  6225. </div>
  6226. </div>
  6227. </div>
  6228. </div>
  6229. </div>
  6230. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6231. 未提交
  6232. </div>
  6233. <div class="noWorksS">
  6234. <div
  6235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6236. :key="sIndex"
  6237. class="noWorksName"
  6238. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6239. >
  6240. {{ s.student }}
  6241. </div>
  6242. </div>
  6243. </div>
  6244. <div
  6245. v-if="
  6246. tType &&
  6247. tType == 2 &&
  6248. !sIsOpen &&
  6249. tool.tool.indexOf(48) != -1
  6250. "
  6251. class="worksBox"
  6252. >
  6253. <div
  6254. class="zuoyeYulan"
  6255. v-if="workStudent[toolIndex].length > 0"
  6256. >
  6257. <span>作业预览</span>
  6258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6259. </div>
  6260. <div
  6261. class="worksDetailBox"
  6262. v-if="workStudent[toolIndex].length > 0"
  6263. >
  6264. <div
  6265. class="works"
  6266. style="
  6267. width: 200px;
  6268. height: 140px;
  6269. margin: 10px 10px 10px 0;
  6270. box-shadow: 0 0 6px 1px #dfdada;
  6271. "
  6272. v-for="(w, wIndex) in workStudent[toolIndex]"
  6273. :key="wIndex"
  6274. >
  6275. <div class="workImg">
  6276. <img :src="word" @click="openTable(w)" alt />
  6277. <div
  6278. class="answerScore"
  6279. v-if="w.score"
  6280. @click.stop="openScore(w)"
  6281. :class="{
  6282. rightW:
  6283. w.userid == userid || tType == 1 || tType == 4,
  6284. }"
  6285. >
  6286. {{ JSON.parse(w.score).wScore }}分
  6287. </div>
  6288. <div
  6289. class="answerScore"
  6290. @click.stop="openScore(w)"
  6291. v-else-if="courseDetail.userid == userid"
  6292. :class="{
  6293. rightW:
  6294. w.userid == userid || tType == 1 || tType == 4,
  6295. }"
  6296. >
  6297. 评分
  6298. </div>
  6299. <img
  6300. class="deleteImg"
  6301. src="../assets/deleteworks.png"
  6302. v-if="
  6303. w.userid == userid || tType == 1 || tType == 4
  6304. "
  6305. @click.stop="deleteWorks(w.wid)"
  6306. alt
  6307. />
  6308. </div>
  6309. <div class="worksName">
  6310. <div>{{ w.sName }}</div>
  6311. </div>
  6312. </div>
  6313. </div>
  6314. </div>
  6315. <div
  6316. v-if="
  6317. tType &&
  6318. ((tType == 2 && sIsOpen == true) ||
  6319. tType == 1 ||
  6320. tType == 4) &&
  6321. tool.tool.indexOf(52) != -1
  6322. "
  6323. class="worksBox"
  6324. >
  6325. <div
  6326. class="zuoyeYulan"
  6327. v-if="
  6328. worksStudent.length &&
  6329. worksStudent[toolIndex].length > 0
  6330. "
  6331. >
  6332. <div class="worksTop">
  6333. <div>作业预览</div>
  6334. <div
  6335. class="corOpen"
  6336. @click="contract(toolIndex)"
  6337. v-if="
  6338. worksStudent[toolIndex].length > 6 &&
  6339. isCloseList[toolIndex].isClose == 0
  6340. "
  6341. >
  6342. 收缩
  6343. </div>
  6344. <div
  6345. class="corOpen"
  6346. @click="contract(toolIndex)"
  6347. v-if="isCloseList[toolIndex].isClose == 1"
  6348. >
  6349. 展开
  6350. </div>
  6351. </div>
  6352. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6353. </div>
  6354. <div
  6355. class="worksDetailBox"
  6356. v-if="
  6357. worksStudent.length &&
  6358. worksStudent[toolIndex].length > 0
  6359. "
  6360. >
  6361. <div
  6362. class="works"
  6363. style="
  6364. width: 200px;
  6365. height: 140px;
  6366. margin: 10px 10px 10px 0;
  6367. border-radius: 15px;
  6368. box-shadow: 0 0 6px 1px #dfdada;
  6369. "
  6370. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6371. 0
  6372. ? worksStudent[toolIndex]
  6373. : worksStudent[toolIndex].slice(0, 6)"
  6374. :key="wIndex"
  6375. :class="w.type == 1 ? 'isTypeOne' : ''"
  6376. >
  6377. <div class="workImg">
  6378. <img :src="word" @click="openWord(w)" alt />
  6379. <!-- @click="openFile(w.works)" -->
  6380. <div
  6381. class="answerScore"
  6382. v-if="w.score"
  6383. @click.stop="openScore(w)"
  6384. :class="{
  6385. rightW:
  6386. w.userid == userid ||
  6387. tType == 1 ||
  6388. tType == 4 ||
  6389. w.ateacher == userid,
  6390. }"
  6391. >
  6392. {{ JSON.parse(w.score).wScore }}分
  6393. </div>
  6394. <div
  6395. class="answerScore"
  6396. @click.stop="openScore(w)"
  6397. v-else-if="courseDetail.userid == userid"
  6398. :class="{
  6399. rightW:
  6400. w.userid == userid ||
  6401. tType == 1 ||
  6402. tType == 4 ||
  6403. w.ateacher == userid,
  6404. }"
  6405. >
  6406. 评分
  6407. </div>
  6408. <img
  6409. class="deleteImg"
  6410. src="../assets/deleteworks.png"
  6411. v-if="
  6412. w.userid == userid || tType == 1 || tType == 4
  6413. "
  6414. @click.stop="deleteWorks(w.wid)"
  6415. alt
  6416. />
  6417. </div>
  6418. <div class="comment" style="min-width: 200px">
  6419. <div class="worksName">
  6420. <div>{{ w.sName }}</div>
  6421. </div>
  6422. <div class="commentList">
  6423. <div class="commentList">
  6424. <div
  6425. class="commentImg"
  6426. @click="
  6427. isLikes(w.wid, userid, 1, null, w.isLikes)
  6428. "
  6429. >
  6430. <img
  6431. :src="w.isLikes == true ? likes : noLikes"
  6432. alt=""
  6433. />
  6434. </div>
  6435. <div>{{ w.likesCount }}</div>
  6436. </div>
  6437. <div class="commentList" style="margin-right: 15px">
  6438. <div
  6439. class="commentImg"
  6440. @click="commentOther(w, toolIndex, wIndex)"
  6441. >
  6442. <img
  6443. src="../assets/icon/comment/comment.png"
  6444. alt=""
  6445. />
  6446. </div>
  6447. <div>{{ w.commentCount }}</div>
  6448. </div>
  6449. </div>
  6450. </div>
  6451. </div>
  6452. </div>
  6453. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6454. 未提交
  6455. </div>
  6456. <div class="noWorksS">
  6457. <div
  6458. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6459. :key="sIndex"
  6460. class="noWorksName"
  6461. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6462. >
  6463. {{ s.student }}
  6464. </div>
  6465. </div>
  6466. </div>
  6467. <div
  6468. v-if="
  6469. tType &&
  6470. tType == 2 &&
  6471. !sIsOpen &&
  6472. tool.tool.indexOf(52) != -1
  6473. "
  6474. class="worksBox"
  6475. >
  6476. <div
  6477. class="zuoyeYulan"
  6478. v-if="workStudent[toolIndex].length > 0"
  6479. >
  6480. <span>作业预览</span>
  6481. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6482. </div>
  6483. <div
  6484. class="worksDetailBox"
  6485. v-if="workStudent[toolIndex].length > 0"
  6486. >
  6487. <div
  6488. class="works"
  6489. style="
  6490. width: 200px;
  6491. height: 140px;
  6492. margin: 10px 10px 10px 0;
  6493. box-shadow: 0 0 6px 1px #dfdada;
  6494. "
  6495. v-for="(w, wIndex) in workStudent[toolIndex]"
  6496. :key="wIndex"
  6497. >
  6498. <div class="workImg">
  6499. <img :src="word" @click="openWord(w)" alt />
  6500. <div
  6501. class="answerScore"
  6502. v-if="w.score"
  6503. @click.stop="openScore(w)"
  6504. :class="{
  6505. rightW:
  6506. w.userid == userid || tType == 1 || tType == 4,
  6507. }"
  6508. >
  6509. {{ JSON.parse(w.score).wScore }}分
  6510. </div>
  6511. <div
  6512. class="answerScore"
  6513. @click.stop="openScore(w)"
  6514. v-else-if="courseDetail.userid == userid"
  6515. :class="{
  6516. rightW:
  6517. w.userid == userid || tType == 1 || tType == 4,
  6518. }"
  6519. >
  6520. 评分
  6521. </div>
  6522. <img
  6523. class="deleteImg"
  6524. src="../assets/deleteworks.png"
  6525. v-if="
  6526. w.userid == userid || tType == 1 || tType == 4
  6527. "
  6528. @click.stop="deleteWorks(w.wid)"
  6529. alt
  6530. />
  6531. </div>
  6532. <div class="worksName">
  6533. <div>{{ w.sName }}</div>
  6534. </div>
  6535. </div>
  6536. </div>
  6537. </div>
  6538. <div
  6539. v-if="tool.tool.indexOf(49) != -1"
  6540. class="xuan_right_box"
  6541. >
  6542. <div
  6543. v-if="courseDetail.userid == userid"
  6544. style="display: flex; justify-content: flex-end"
  6545. >
  6546. <el-button
  6547. type="primary"
  6548. size="small"
  6549. @click="addTools(49, toolIndex, taskCount)"
  6550. >分组设置</el-button
  6551. >
  6552. </div>
  6553. <div
  6554. v-if="groupStudentUid[toolIndex]"
  6555. class="group_staic_box"
  6556. >
  6557. <div
  6558. v-for="(gp, gd) in tool.groupJson.group"
  6559. :key="gd"
  6560. class="group_staic"
  6561. >
  6562. <span> {{ gp.name }}</span>
  6563. <span>
  6564. 目前人数{{
  6565. groupStudentUid[toolIndex][gd].length
  6566. }}人</span
  6567. >
  6568. </div>
  6569. </div>
  6570. </div>
  6571. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6572. <div
  6573. class="zuoyeYulan"
  6574. v-if="
  6575. worksStudent.length &&
  6576. worksStudent[toolIndex].length > 0
  6577. "
  6578. >
  6579. <span>作业预览</span>
  6580. </div>
  6581. <div>
  6582. <div
  6583. class="group_workBox"
  6584. v-for="(g, gindex) in tool.groupJson.group"
  6585. :key="gindex"
  6586. >
  6587. <div
  6588. class="group_box"
  6589. v-if="
  6590. groupStudentUid[toolIndex] &&
  6591. worksStudent[toolIndex] &&
  6592. (worksStudent[toolIndex][gindex].length ||
  6593. groupStudentUid[toolIndex][gindex].indexOf(
  6594. userid
  6595. ) != -1)
  6596. "
  6597. >
  6598. <div class="group_title">
  6599. <el-tooltip
  6600. class="item"
  6601. effect="light"
  6602. :content="g.name"
  6603. placement="top"
  6604. >
  6605. <div class="group_name">{{ g.name }}</div>
  6606. </el-tooltip>
  6607. <el-button
  6608. type="primary"
  6609. v-if="
  6610. groupStudentUid[toolIndex][gindex].indexOf(
  6611. userid
  6612. ) != -1
  6613. "
  6614. @click="groupUpload(toolIndex, taskCount, gindex)"
  6615. >上传作业</el-button
  6616. >
  6617. </div>
  6618. <div class="group_work">
  6619. <div
  6620. class="works"
  6621. style="
  6622. width: 200px;
  6623. height: 140px;
  6624. margin: 10px 10px 10px 0;
  6625. border-radius: 15px;
  6626. box-shadow: 0 0 6px 1px #dfdada;
  6627. "
  6628. v-for="(w, wIndex) in worksStudent[toolIndex][
  6629. gindex
  6630. ]"
  6631. :key="wIndex"
  6632. :class="w.type == 1 ? 'isTypeOne' : ''"
  6633. >
  6634. <div class="workImg" v-if="w.type == 0">
  6635. <img
  6636. :src="w.works"
  6637. @click="previewImg(w.works)"
  6638. alt
  6639. />
  6640. <div
  6641. class="answerScore"
  6642. v-if="w.score"
  6643. @click.stop="openScore(w)"
  6644. :class="{
  6645. rightW:
  6646. w.userid == userid ||
  6647. tType == 1 ||
  6648. tType == 4 ||
  6649. w.ateacher == userid,
  6650. }"
  6651. >
  6652. {{ JSON.parse(w.score).wScore }}分
  6653. </div>
  6654. <div
  6655. class="answerScore"
  6656. @click.stop="openScore(w)"
  6657. v-else-if="courseDetail.userid == userid"
  6658. :class="{
  6659. rightW:
  6660. w.userid == userid ||
  6661. tType == 1 ||
  6662. tType == 4 ||
  6663. w.ateacher == userid,
  6664. }"
  6665. >
  6666. 评分
  6667. </div>
  6668. <img
  6669. class="deleteImg"
  6670. src="../assets/deleteworks.png"
  6671. v-if="
  6672. w.userid == userid ||
  6673. tType == 1 ||
  6674. tType == 4
  6675. "
  6676. @click.stop="deleteWorks(w.wid)"
  6677. alt
  6678. />
  6679. </div>
  6680. <div class="workImg" v-if="w.type == 1">
  6681. <img
  6682. :src="word"
  6683. @click="openFile(w.works)"
  6684. alt
  6685. />
  6686. <!-- @click="openFile(w.works)" -->
  6687. <div
  6688. class="answerScore"
  6689. v-if="w.score"
  6690. @click.stop="openScore(w)"
  6691. :class="{
  6692. rightW:
  6693. w.userid == userid ||
  6694. tType == 1 ||
  6695. tType == 4 ||
  6696. w.ateacher == userid,
  6697. }"
  6698. >
  6699. {{ JSON.parse(w.score).wScore }}分
  6700. </div>
  6701. <div
  6702. class="answerScore"
  6703. @click.stop="openScore(w)"
  6704. v-else-if="courseDetail.userid == userid"
  6705. :class="{
  6706. rightW:
  6707. w.userid == userid ||
  6708. tType == 1 ||
  6709. tType == 4 ||
  6710. w.ateacher == userid,
  6711. }"
  6712. >
  6713. 评分
  6714. </div>
  6715. <img
  6716. class="deleteImg"
  6717. src="../assets/deleteworks.png"
  6718. v-if="
  6719. w.userid == userid ||
  6720. tType == 1 ||
  6721. tType == 4
  6722. "
  6723. @click.stop="deleteWorks(w.wid)"
  6724. alt
  6725. />
  6726. </div>
  6727. <div class="workImg" v-if="w.type == 3">
  6728. <img
  6729. style="cursor: pointer"
  6730. :src="video"
  6731. @click="openVideo(w)"
  6732. alt
  6733. />
  6734. <!-- @click="openVideo(w.works)" -->
  6735. <div
  6736. class="answerScore"
  6737. v-if="w.score"
  6738. @click.stop="openScore(w)"
  6739. :class="{
  6740. rightW:
  6741. w.userid == userid ||
  6742. tType == 1 ||
  6743. tType == 4 ||
  6744. w.ateacher == userid,
  6745. }"
  6746. >
  6747. {{ JSON.parse(w.score).wScore }}分
  6748. </div>
  6749. <div
  6750. class="answerScore"
  6751. @click.stop="openScore(w)"
  6752. v-else-if="courseDetail.userid == userid"
  6753. :class="{
  6754. rightW:
  6755. w.userid == userid ||
  6756. tType == 1 ||
  6757. tType == 4 ||
  6758. w.ateacher == userid,
  6759. }"
  6760. >
  6761. 评分
  6762. </div>
  6763. <img
  6764. class="deleteImg"
  6765. src="../assets/deleteworks.png"
  6766. v-if="
  6767. w.userid == userid ||
  6768. tType == 1 ||
  6769. tType == 4
  6770. "
  6771. @click.stop="deleteWorks(w.wid)"
  6772. alt
  6773. />
  6774. </div>
  6775. <div class="workImg" v-if="w.type == 12">
  6776. <img
  6777. style="cursor: pointer"
  6778. :src="word2"
  6779. @click="downloadFile(w.works)"
  6780. alt
  6781. />
  6782. <!-- @click="openVideo(w.works)" -->
  6783. <div
  6784. class="answerScore"
  6785. v-if="w.score"
  6786. @click.stop="openScore(w)"
  6787. :class="{
  6788. rightW:
  6789. w.userid == userid ||
  6790. tType == 1 ||
  6791. tType == 4 ||
  6792. w.ateacher == userid,
  6793. }"
  6794. >
  6795. {{ JSON.parse(w.score).wScore }}分
  6796. </div>
  6797. <div
  6798. class="answerScore"
  6799. @click.stop="openScore(w)"
  6800. v-else-if="courseDetail.userid == userid"
  6801. :class="{
  6802. rightW:
  6803. w.userid == userid ||
  6804. tType == 1 ||
  6805. tType == 4 ||
  6806. w.ateacher == userid,
  6807. }"
  6808. >
  6809. 评分
  6810. </div>
  6811. <img
  6812. class="deleteImg"
  6813. src="../assets/deleteworks.png"
  6814. v-if="
  6815. w.userid == userid ||
  6816. tType == 1 ||
  6817. tType == 4
  6818. "
  6819. @click.stop="deleteWorks(w.wid)"
  6820. alt
  6821. />
  6822. </div>
  6823. <div class="comment" style="min-width: 200px">
  6824. <div class="worksName">
  6825. <div>{{ w.sName }}</div>
  6826. </div>
  6827. <div class="commentList">
  6828. <div class="commentList">
  6829. <div
  6830. class="commentImg"
  6831. @click="
  6832. isLikes(
  6833. w.wid,
  6834. userid,
  6835. 1,
  6836. null,
  6837. w.isLikes
  6838. )
  6839. "
  6840. >
  6841. <img
  6842. :src="
  6843. w.isLikes == true ? likes : noLikes
  6844. "
  6845. alt=""
  6846. />
  6847. </div>
  6848. <div>{{ w.likesCount }}</div>
  6849. </div>
  6850. <div
  6851. class="commentList"
  6852. style="margin-right: 15px"
  6853. >
  6854. <div
  6855. class="commentImg"
  6856. @click="
  6857. commentOther(
  6858. w,
  6859. toolIndex,
  6860. wIndex,
  6861. gindex
  6862. )
  6863. "
  6864. >
  6865. <img
  6866. src="../assets/icon/comment/comment.png"
  6867. alt=""
  6868. />
  6869. </div>
  6870. <div>{{ w.commentCount }}</div>
  6871. </div>
  6872. </div>
  6873. </div>
  6874. </div>
  6875. </div>
  6876. </div>
  6877. </div>
  6878. </div>
  6879. </div>
  6880. </div>
  6881. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6882. 上传文件
  6883. <input
  6884. type="file"
  6885. accept="image/png, image/gif, image/jpeg"
  6886. style="display: none"
  6887. @change="beforeUpload1($event, 2, index)"
  6888. />
  6889. </div>-->
  6890. </div>
  6891. </div>
  6892. <div
  6893. class="vedioBox"
  6894. v-if="
  6895. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6896. .eList &&
  6897. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6898. .eList.length &&
  6899. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6900. .eList.length > 0 &&
  6901. tType != 2
  6902. "
  6903. >
  6904. <div
  6905. class="queTop"
  6906. style="
  6907. font-size: 20px;
  6908. padding: 15px 0 15px 37px;
  6909. font-weight: bold;
  6910. "
  6911. >
  6912. <!-- <div class="question" style="width: 30px">
  6913. <img src="../assets/icon/toolIcon.png" alt />
  6914. </div>
  6915. <div class="queTitle">
  6916. <div>工具</div>
  6917. </div>-->
  6918. 评一评
  6919. </div>
  6920. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  6921. <div class="elist_input">
  6922. <el-table
  6923. :data="
  6924. chapInfoList[courseType].chapterInfo[0].taskJson[
  6925. taskCount
  6926. ].eList
  6927. "
  6928. :header-cell-style="{ background: '#F0F4FA' }"
  6929. :row-class-name="tableRowClassName"
  6930. border
  6931. stripe
  6932. style="width: 100%"
  6933. >
  6934. <el-table-column label="评价名称" width="180">
  6935. <template slot-scope="scope"
  6936. ><div>{{ scope.row.value }}</div></template
  6937. >
  6938. </el-table-column>
  6939. <el-table-column label="评价描述" width="180">
  6940. <template slot-scope="scope"
  6941. ><div>{{ scope.row.detail }}</div></template
  6942. >
  6943. </el-table-column>
  6944. <el-table-column label="目标">
  6945. <template slot-scope="scope"
  6946. ><div>{{ scope.row.target[0] }}</div></template
  6947. ></el-table-column
  6948. >
  6949. </el-table>
  6950. <!-- <div
  6951. v-for="(eItem, eIndex) in chapInfoList[courseType]
  6952. .chapterInfo[0].taskJson[taskCount].eList"
  6953. :key="eIndex"
  6954. class="elist_input_box"
  6955. >
  6956. <div style="width: 95%">
  6957. <div
  6958. style="
  6959. display: flex;
  6960. flex-direction: row;
  6961. flex-wrap: nowrap;
  6962. align-items: center;
  6963. "
  6964. >
  6965. <div style="max-width: calc(100% - 285px)">
  6966. <span>{{ eItem.value }}</span>
  6967. </div>
  6968. <div
  6969. style="
  6970. padding-left: 25px;
  6971. display: flex;
  6972. flex-direction: row;
  6973. align-items: center;
  6974. "
  6975. >
  6976. <el-rate
  6977. v-model="eItem.score"
  6978. :colors="colors"
  6979. disabled
  6980. ></el-rate>
  6981. </div>
  6982. </div>
  6983. <div class="elist_inptu_text" style="padding-left: 10px">
  6984. <span v-if="eItem.detail != ''">{{
  6985. eItem.detail
  6986. }}</span>
  6987. <span v-else style="color: #b2b1b3; font-size: 14px"
  6988. >暂无描述...</span
  6989. >
  6990. </div>
  6991. </div>
  6992. </div> -->
  6993. </div>
  6994. <div
  6995. v-if="evalua"
  6996. style="
  6997. border: 1px solid #e5e5e5;
  6998. max-width: 650px;
  6999. width: 100%;
  7000. margin-top: 20px;
  7001. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7002. "
  7003. >
  7004. <div class="e_add_top">
  7005. <div class="e_add_title">
  7006. <span>目标管理名称</span>
  7007. <span>{{ eTitle }}</span>
  7008. <img
  7009. src="../assets/line.png"
  7010. class="cru_line"
  7011. style="
  7012. width: 125px;
  7013. height: 20px;
  7014. bottom: -10px;
  7015. left: 120px;
  7016. "
  7017. />
  7018. <!-- <el-input
  7019. v-model="eTitle"
  7020. placeholder="请输入名称"
  7021. @change="setMindData"
  7022. ></el-input>-->
  7023. </div>
  7024. </div>
  7025. <div class="e_add_content">
  7026. <div class="e_add_list_pbox">
  7027. <div class="e_add_list_pbox_title">
  7028. <span class="type_title">切换模式</span>
  7029. <div class="type_content">
  7030. <span
  7031. :class="{ active: typeMode == 1 }"
  7032. @click="typeMode = 1"
  7033. >目标树</span
  7034. >
  7035. <span
  7036. :class="{ active: typeMode == 2 }"
  7037. @click="typeMode = 2"
  7038. >目标罗盘</span
  7039. >
  7040. <span
  7041. :class="{ active: typeMode == 3 }"
  7042. @click="typeMode = 3"
  7043. >目标看板</span
  7044. >
  7045. </div>
  7046. </div>
  7047. <div class="e_add_list_pbox_content">
  7048. <Mind
  7049. :showBar="false"
  7050. :mindData="data"
  7051. style="width: 100%"
  7052. v-show="typeMode == 1"
  7053. ></Mind>
  7054. <Sunburst
  7055. :Josn="eJson"
  7056. :num="eJSONNum"
  7057. style="width: 100%"
  7058. v-if="typeMode == 2"
  7059. ></Sunburst>
  7060. <SeeBoard
  7061. :Josn="eJson"
  7062. :num="eJSONNum"
  7063. :ename="eTitle"
  7064. style="width: 100%"
  7065. v-if="typeMode == 3"
  7066. >
  7067. </SeeBoard>
  7068. </div>
  7069. </div>
  7070. </div>
  7071. </div>
  7072. </div>
  7073. </div>
  7074. <!-- <div
  7075. class="project_box"
  7076. style="margin-top: 15px; padding-bottom: 30px"
  7077. >
  7078. <div
  7079. style="
  7080. display: flex;
  7081. flex-wrap: nowrap;
  7082. flex-direction: column;
  7083. position: relative;
  7084. "
  7085. >
  7086. <div class="queTop">
  7087. <div class="question">
  7088. <img src="../assets/icon/homeWork.png" alt="" />
  7089. </div>
  7090. <div class="queTitle">
  7091. <div>作业提交<span>(提交图文视频等)</span></div>
  7092. <div>:任务:{{ task.task }}</div>
  7093. </div>
  7094. </div>
  7095. <div class="ediBottom">
  7096. <div
  7097. class="addEditor"
  7098. style="margin-top: 23px"
  7099. @click="openAddWork"
  7100. v-if="!isNoHomeWork"
  7101. >
  7102. 选择文件
  7103. </div>
  7104. <div
  7105. class="addEditor"
  7106. style="margin-top: 23px"
  7107. @click="openAddWork"
  7108. v-else
  7109. >
  7110. 已提交
  7111. </div>
  7112. </div>
  7113. </div>
  7114. </div>-->
  7115. </div>
  7116. </div>
  7117. <el-dialog
  7118. title="作业提交"
  7119. :visible.sync="dialogVisible"
  7120. :append-to-body="true"
  7121. width="500px"
  7122. :before-close="handleClose"
  7123. class="dialog_change"
  7124. >
  7125. <div class="marginT">
  7126. <div>上传文件</div>
  7127. <div
  7128. class="chapter_add"
  7129. @click="addImg($event)"
  7130. v-if="studyJuri[0].cover.length == 0"
  7131. >
  7132. <div class="up_photo">
  7133. <img src="../assets/icon/uploadImg.png" alt />
  7134. </div>
  7135. <!-- <input
  7136. type="file"
  7137. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7138. style="display: none"
  7139. @change="beforeUpload1($event, 1)"
  7140. /> -->
  7141. <input
  7142. type="file"
  7143. accept="*"
  7144. style="display: none"
  7145. @change="beforeUpload1($event, 1)"
  7146. />
  7147. <!-- <input
  7148. type="file"
  7149. accept="image/*"
  7150. capture="camera"
  7151. style="display: none"
  7152. @change="beforeUpload1($event, 1)"
  7153. /> -->
  7154. </div>
  7155. <div
  7156. class="chapter_add"
  7157. style="
  7158. display: flex;
  7159. width: 100%;
  7160. flex-direction: row;
  7161. flex-wrap: wrap;
  7162. justify-content: flex-start;
  7163. padding: 15px 0;
  7164. "
  7165. v-if="studyJuri[0].cover.length > 0"
  7166. >
  7167. <div class="upCover">
  7168. <img
  7169. :src="studyJuri[0].cover[0].url"
  7170. alt
  7171. v-if="fileType == 0"
  7172. />
  7173. <img :src="word" alt v-else-if="fileType == 1" />
  7174. <img :src="video" alt v-else-if="fileType == 2" />
  7175. <img :src="word2" alt v-else-if="fileType == 3" />
  7176. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7177. <div class="deleteWord" @click="clean(1)">
  7178. <img src="../assets/icon/deleteWorks.png" alt />
  7179. </div>
  7180. </div>
  7181. </div>
  7182. </div>
  7183. <div
  7184. class="upload_send"
  7185. @click="addCourseWorks(taskCount)"
  7186. v-if="!proVisible"
  7187. >
  7188. 提交
  7189. </div>
  7190. </el-dialog>
  7191. </div>
  7192. </div>
  7193. <div
  7194. class="pButton"
  7195. @click="(pzDialog = true), selectPz()"
  7196. v-if="tType == 4 || ispzType == 4"
  7197. >
  7198. <!-- 批 -->
  7199. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  7200. </div>
  7201. <div v-if="pzDialog == true" class="newDialogCss">
  7202. <div class="pzTop2">
  7203. <!-- <div>批注</div>
  7204. <div @click="pzDialog = false">
  7205. <img src="../assets/close1.png" alt="" />
  7206. </div> -->
  7207. <div class="checkbox">
  7208. <div class="check" style="font-size: 25px">评课笔记</div>
  7209. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7210. </div>
  7211. </div>
  7212. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7213. <div class="pzListBox" v-if="pzList && pzList.length">
  7214. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7215. <div class="pzNavTop">
  7216. <div>批</div>
  7217. <div>
  7218. {{
  7219. pz.username && pz.username.length > 5
  7220. ? pz.username.substring(0, 5) + "..."
  7221. : pz.username
  7222. }}的批注
  7223. </div>
  7224. <div
  7225. class="pzDelete"
  7226. v-if="pz.userid == userid"
  7227. @click="deletePz(pz.id)"
  7228. >
  7229. 删除
  7230. </div>
  7231. </div>
  7232. <div
  7233. @click="checkImg(getImgList(pz.content))"
  7234. class="pzContent cont"
  7235. v-html="pz.content"
  7236. v-if="pz.type == '1'"
  7237. ></div>
  7238. <div class="pzContent" v-if="pz.type == '2'">
  7239. <audio :src="pz.content" controls="controls" ref="audio">
  7240. Your browser does not support the audio element.
  7241. </audio>
  7242. </div>
  7243. <div class="pzContent" v-if="pz.type == '3'">
  7244. <img
  7245. :src="pz.content"
  7246. style="width: 90%; margin: 0 auto; display: block"
  7247. @click="previewImg(pz.content)"
  7248. />
  7249. </div>
  7250. <div class="time">
  7251. {{ pz.time }}
  7252. </div>
  7253. </div>
  7254. </div>
  7255. <div class="noPz" v-else>
  7256. <img src="../assets/icon/noPz.png" alt="" />
  7257. </div>
  7258. <div class="addPzButton">
  7259. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7260. 添加批注
  7261. </div>
  7262. <!-- <div class="img1">
  7263. <div @click="(addPzDialog = true), (pzType = 2)">
  7264. <img src="../assets/audio.png" /><span>音频</span>
  7265. </div>
  7266. </div> -->
  7267. </div>
  7268. </div>
  7269. </div>
  7270. <div v-if="addPzDialog == true" class="addDialogCss">
  7271. <div class="pzTop">
  7272. <div class="teacherPz">
  7273. <div class="teacherPzImg">
  7274. <img src="../assets/icon/teacherPz.png" alt="" />
  7275. </div>
  7276. <div style="margin-left: 10px; height: 25px">教师批注</div>
  7277. </div>
  7278. <div @click="addPzDialog = false">
  7279. <img src="../assets/close1.png" alt="" />
  7280. </div>
  7281. </div>
  7282. <div class="addPzBox">
  7283. <div class="addPzCheck">
  7284. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  7285. >文本</span
  7286. >
  7287. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  7288. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  7289. >音频</span
  7290. >
  7291. </div>
  7292. <div style="height: calc(100% - 95px)">
  7293. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  7294. v-if="pzType == 1"></textarea> -->
  7295. <editor-bar
  7296. class="binfo_input pzConText"
  7297. style="width: 100% !important"
  7298. placeholder="请输入任务描述"
  7299. v-model="pzConText"
  7300. @change="change"
  7301. v-if="pzType == 1"
  7302. ></editor-bar>
  7303. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  7304. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  7305. <div @click="addImg($event)">
  7306. <el-button type="primary">上传图片</el-button>
  7307. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  7308. @change="beforeUpload1($event, 4)" />
  7309. </div>
  7310. </div> -->
  7311. </div>
  7312. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  7313. 确定
  7314. </div>
  7315. </div>
  7316. </div>
  7317. <div v-if="proVisible" class="mask">
  7318. <div class="progressBox">
  7319. <!-- <div id="closePro" class="closeCss">
  7320. <img src="../assets/icon/close.png" alt />
  7321. </div> -->
  7322. <div class="lbox">
  7323. <img src="../assets/loading.gif" />上传中,请稍后
  7324. </div>
  7325. <div style="margin-bottom: 10px">
  7326. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  7327. </div>
  7328. <el-progress
  7329. :text-inside="true"
  7330. :stroke-width="20"
  7331. :percentage="progress"
  7332. style="width: 80%"
  7333. ></el-progress>
  7334. </div>
  7335. </div>
  7336. <div v-if="proVisible2" class="mask">
  7337. <div class="progressBox">
  7338. <div class="lbox">
  7339. <img src="../assets/loading.gif" />上传中,请稍后
  7340. </div>
  7341. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  7342. </div>
  7343. </div>
  7344. <el-dialog :visible.sync="pictureDialog" size="tiny">
  7345. <img width="100%" :src="dialogImageUrl" alt />
  7346. </el-dialog>
  7347. <el-dialog
  7348. :title="noteName != '' ? noteName : '查看问卷'"
  7349. :visible.sync="dialogVisible5"
  7350. :append-to-body="true"
  7351. width="1000px"
  7352. :before-close="handleClose"
  7353. class="dialog_diy dialog_diy3"
  7354. >
  7355. <div>
  7356. <div
  7357. class="a_add_title"
  7358. style="
  7359. display: flex;
  7360. flex-direction: row;
  7361. align-items: center;
  7362. justify-content: center;
  7363. "
  7364. >
  7365. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7366. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7367. </div>
  7368. <div class="a_addBox">
  7369. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7370. <div
  7371. class="a_add_box"
  7372. v-for="(item1, index1) in askJson.askCount"
  7373. :key="index1"
  7374. >
  7375. <div class="a_add_head">
  7376. <div style="display: flex">
  7377. {{ index1 + 1 + "、" }}
  7378. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7379. </div>
  7380. <img
  7381. v-if="askJson.askJson[index1].img"
  7382. :src="askJson.askJson[index1].img"
  7383. style="height: 300px; margin-top: 10px; max-width: 100%"
  7384. />
  7385. </div>
  7386. <div class="a_add_body">
  7387. <div class="a_add_input">
  7388. <el-radio-group
  7389. v-model="radio[index1]"
  7390. v-if="
  7391. askJson.askJson[index1].type == '1' ||
  7392. !askJson.askJson[index1].type
  7393. "
  7394. >
  7395. <el-radio
  7396. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7397. .checkList"
  7398. :key="checkIndex"
  7399. :label="checkIndex"
  7400. :disabled="isAnswer"
  7401. class="redioStyle"
  7402. ><span v-html="item2"></span
  7403. ></el-radio>
  7404. </el-radio-group>
  7405. <el-checkbox-group
  7406. v-model="radio[index1]"
  7407. v-if="askJson.askJson[index1].type == '2'"
  7408. >
  7409. <el-checkbox
  7410. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7411. .checkList"
  7412. :key="checkIndex1"
  7413. :label="checkIndex1"
  7414. :disabled="isAnswer"
  7415. class="redioStyle"
  7416. ><span v-html="item2"></span>
  7417. </el-checkbox>
  7418. </el-checkbox-group>
  7419. </div>
  7420. </div>
  7421. </div>
  7422. </div>
  7423. </div>
  7424. <span slot="footer" class="dialog-footer">
  7425. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  7426. >取 消</el-button
  7427. >
  7428. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  7429. >确 定</el-button
  7430. >
  7431. </span>
  7432. </el-dialog>
  7433. <el-dialog
  7434. :title="noteName != '' ? noteName : '查看问卷'"
  7435. :visible.sync="dialogVisible5Teacher"
  7436. :append-to-body="true"
  7437. width="1000px"
  7438. :before-close="handleClose"
  7439. class="dialog_diy dialog_diy3"
  7440. >
  7441. <div>
  7442. <div class="w_name">
  7443. 学生姓名:<span>{{ sStudent.student }}</span>
  7444. </div>
  7445. <div
  7446. class="a_add_title"
  7447. style="
  7448. display: flex;
  7449. flex-direction: row;
  7450. align-items: center;
  7451. justify-content: center;
  7452. "
  7453. >
  7454. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7455. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  7456. </div>
  7457. <div class="a_addBox">
  7458. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7459. <div
  7460. class="a_add_box"
  7461. v-for="(item1, index1) in askJson.askCount"
  7462. :key="index1"
  7463. >
  7464. <div class="a_add_head">
  7465. <div style="display: flex">
  7466. {{ index1 + 1 + "、" }}
  7467. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  7468. </div>
  7469. <img
  7470. v-if="askJson.askJson[index1].img"
  7471. :src="askJson.askJson[index1].img"
  7472. style="height: 300px; margin-top: 10px; max-width: 100%"
  7473. />
  7474. </div>
  7475. <div class="a_add_body">
  7476. <div class="a_add_input">
  7477. <el-radio-group
  7478. v-model="radio[index1]"
  7479. v-if="
  7480. askJson.askJson[index1].type == '1' ||
  7481. !askJson.askJson[index1].type
  7482. "
  7483. >
  7484. <el-radio
  7485. v-for="(item2, checkIndex) in askJson.askJson[index1]
  7486. .checkList"
  7487. :key="checkIndex"
  7488. :label="checkIndex"
  7489. :disabled="isAnswer"
  7490. class="redioStyle"
  7491. ><span v-html="item2"></span
  7492. ></el-radio>
  7493. </el-radio-group>
  7494. <el-checkbox-group
  7495. v-model="radio[index1]"
  7496. v-if="askJson.askJson[index1].type == '2'"
  7497. >
  7498. <el-checkbox
  7499. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  7500. .checkList"
  7501. :key="checkIndex1"
  7502. :label="checkIndex1"
  7503. :disabled="isAnswer"
  7504. class="redioStyle"
  7505. ><span v-html="item2"></span>
  7506. </el-checkbox>
  7507. </el-checkbox-group>
  7508. </div>
  7509. </div>
  7510. </div>
  7511. </div>
  7512. </div>
  7513. <span slot="footer" class="dialog-footer">
  7514. <el-button
  7515. @click="dialogVisible5Teacher = false"
  7516. v-show="noteName == ''"
  7517. >取 消</el-button
  7518. >
  7519. <el-button
  7520. type="primary"
  7521. @click="addStudentAskTeacher"
  7522. v-show="noteName == ''"
  7523. >确 定</el-button
  7524. >
  7525. </span>
  7526. </el-dialog>
  7527. <el-dialog
  7528. :title="noteName != '' ? noteName : '查看选择题'"
  7529. :visible.sync="dialogVisibleChoice"
  7530. :append-to-body="true"
  7531. width="1000px"
  7532. :before-close="handleClose"
  7533. class="dialog_diy dialog_diy3"
  7534. >
  7535. <div>
  7536. <!-- <div class="a_add_title" style="
  7537. display: flex;
  7538. flex-direction: row;
  7539. align-items: center;
  7540. justify-content: center;
  7541. ">
  7542. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  7543. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  7544. </div> -->
  7545. <div class="a_addBox">
  7546. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7547. <div
  7548. class="a_add_box"
  7549. v-for="(item1, index1) in testJson.testCount"
  7550. :key="index1"
  7551. >
  7552. <div class="a_add_head">
  7553. <div style="display: flex">
  7554. {{ index1 + 1 + "、" }}
  7555. <div
  7556. v-if="testJson.testJson[index1].type == '1'"
  7557. style="margin-right: 5px; min-width: 70px"
  7558. >
  7559. (单选题)
  7560. </div>
  7561. <div
  7562. v-if="testJson.testJson[index1].type == '2'"
  7563. style="margin-right: 5px; min-width: 70px"
  7564. >
  7565. (多选题)
  7566. </div>
  7567. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7568. </div>
  7569. <img
  7570. v-if="testJson.testJson[index1].img"
  7571. :src="testJson.testJson[index1].img"
  7572. style="height: 300px; margin-top: 10px; max-width: 100%"
  7573. />
  7574. </div>
  7575. <div
  7576. class="timuImgBox"
  7577. v-if="
  7578. testJson.testJson[index1].timuList &&
  7579. testJson.testJson[index1].timuList.length
  7580. "
  7581. >
  7582. <div
  7583. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7584. :key="tIndex"
  7585. class="timuImg"
  7586. @click.stop="previewImg(timg.src)"
  7587. >
  7588. <img :src="timg.src" alt="" />
  7589. </div>
  7590. </div>
  7591. <div class="a_add_body">
  7592. <div class="a_add_input">
  7593. <el-radio-group
  7594. v-model="radio[index1]"
  7595. v-if="testJson.testJson[index1].type == '1'"
  7596. >
  7597. <div class="radioBox">
  7598. <el-radio
  7599. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7600. .checkList"
  7601. :key="checkIndex"
  7602. :label="checkIndex"
  7603. :disabled="isAnswer"
  7604. class="redioStyle"
  7605. >
  7606. <div
  7607. style="margin-right: 10px"
  7608. v-if="item2 && item2.imgType && item2.imgType == 1"
  7609. >
  7610. <div class="inImg" @click.stop="previewImg(item2.src)">
  7611. <img :src="item2.src" alt="" />
  7612. </div>
  7613. </div>
  7614. <span v-else v-html="item2"></span>
  7615. </el-radio>
  7616. </div>
  7617. </el-radio-group>
  7618. <el-checkbox-group
  7619. v-model="radio[index1]"
  7620. v-if="testJson.testJson[index1].type == '2'"
  7621. >
  7622. <div class="radioBox">
  7623. <el-checkbox
  7624. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7625. .checkList"
  7626. :key="checkIndex"
  7627. :label="checkIndex"
  7628. :disabled="isAnswer"
  7629. class="redioStyle"
  7630. >
  7631. <div
  7632. style="margin-right: 10px"
  7633. v-if="item2 && item2.imgType && item2.imgType == 1"
  7634. >
  7635. <div class="inImg" @click.stop="previewImg(item2.src)">
  7636. <img :src="item2.src" alt="" />
  7637. </div>
  7638. </div>
  7639. <span v-else v-html="item2"></span>
  7640. </el-checkbox>
  7641. </div>
  7642. </el-checkbox-group>
  7643. </div>
  7644. </div>
  7645. </div>
  7646. </div>
  7647. </div>
  7648. <span slot="footer" class="dialog-footer">
  7649. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  7650. >取 消</el-button
  7651. >
  7652. <el-button
  7653. type="primary"
  7654. @click="addStudentTest"
  7655. v-show="noteName == ''"
  7656. >确 定</el-button
  7657. >
  7658. </span>
  7659. </el-dialog>
  7660. <el-dialog
  7661. :title="noteName != '' ? noteName : '查看选择题'"
  7662. :visible.sync="dialogVisibleChoiceTeacher"
  7663. :append-to-body="true"
  7664. width="1000px"
  7665. :before-close="handleClose"
  7666. class="dialog_diy dialog_diy3"
  7667. >
  7668. <div>
  7669. <div class="w_name">
  7670. 学生姓名:<span>{{ sStudent.student }}</span>
  7671. </div>
  7672. <div class="a_addBox">
  7673. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  7674. <div
  7675. class="a_add_box"
  7676. v-for="(item1, index1) in testJson.testCount"
  7677. :key="index1"
  7678. >
  7679. <div class="a_add_head">
  7680. <div style="display: flex">
  7681. {{ index1 + 1 + "、" }}
  7682. <div
  7683. v-if="testJson.testJson[index1].type == '1'"
  7684. style="margin-right: 5px; min-width: 70px"
  7685. >
  7686. (单选题)
  7687. </div>
  7688. <div
  7689. v-if="testJson.testJson[index1].type == '2'"
  7690. style="margin-right: 5px; min-width: 70px"
  7691. >
  7692. (多选题)
  7693. </div>
  7694. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  7695. </div>
  7696. <img
  7697. v-if="testJson.testJson[index1].img"
  7698. :src="testJson.testJson[index1].img"
  7699. style="height: 300px; margin-top: 10px; max-width: 100%"
  7700. />
  7701. </div>
  7702. <div
  7703. class="timuImgBox"
  7704. v-if="
  7705. testJson.testJson[index1].timuList &&
  7706. testJson.testJson[index1].timuList.length
  7707. "
  7708. >
  7709. <div
  7710. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  7711. :key="tIndex"
  7712. class="timuImg"
  7713. @click.stop="previewImg(timg.src)"
  7714. >
  7715. <img :src="timg.src" alt="" />
  7716. </div>
  7717. </div>
  7718. <div class="a_add_body">
  7719. <div class="a_add_input">
  7720. <el-radio-group
  7721. v-model="radio[index1]"
  7722. v-if="testJson.testJson[index1].type == '1'"
  7723. >
  7724. <div class="radioBox">
  7725. <el-radio
  7726. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7727. .checkList"
  7728. :key="checkIndex"
  7729. :label="checkIndex"
  7730. :disabled="isAnswer"
  7731. class="redioStyle"
  7732. >
  7733. <div
  7734. style="margin-right: 10px"
  7735. v-if="item2 && item2.imgType && item2.imgType == 1"
  7736. >
  7737. <div class="inImg" @click.stop="previewImg(item2.src)">
  7738. <img :src="item2.src" alt="" />
  7739. </div>
  7740. </div>
  7741. <span v-else v-html="item2"></span>
  7742. </el-radio>
  7743. </div>
  7744. </el-radio-group>
  7745. <el-checkbox-group
  7746. v-model="radio[index1]"
  7747. v-if="testJson.testJson[index1].type == '2'"
  7748. >
  7749. <div class="radioBox">
  7750. <el-checkbox
  7751. v-for="(item2, checkIndex) in testJson.testJson[index1]
  7752. .checkList"
  7753. :key="checkIndex"
  7754. :label="checkIndex"
  7755. :disabled="isAnswer"
  7756. class="redioStyle"
  7757. >
  7758. <div
  7759. style="margin-right: 10px"
  7760. v-if="item2 && item2.imgType && item2.imgType == 1"
  7761. >
  7762. <div class="inImg" @click.stop="previewImg(item2.src)">
  7763. <img :src="item2.src" alt="" />
  7764. </div>
  7765. </div>
  7766. <span v-else v-html="item2"></span>
  7767. </el-checkbox>
  7768. </div>
  7769. </el-checkbox-group>
  7770. </div>
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div>
  7775. <span slot="footer" class="dialog-footer">
  7776. <el-button
  7777. @click="dialogVisibleChoiceTeacher = false"
  7778. v-show="noteName == ''"
  7779. >取 消</el-button
  7780. >
  7781. <el-button
  7782. type="primary"
  7783. @click="addStudentTestTeacher"
  7784. v-show="noteName == ''"
  7785. >确 定</el-button
  7786. >
  7787. </span>
  7788. </el-dialog>
  7789. <el-dialog
  7790. title="查看富文本"
  7791. :visible.sync="dialogVisible1"
  7792. :append-to-body="true"
  7793. width="500px"
  7794. :before-close="handleClose"
  7795. class="dialog_diy textCss"
  7796. >
  7797. <el-form style="font-size: 20px">
  7798. <el-form-item label="文本标题" class="textTitle">
  7799. <div style="font-size: 20px">{{ text.name }}</div>
  7800. </el-form-item>
  7801. <div>富文本内容</div>
  7802. <div
  7803. v-html="text.url"
  7804. style="font-size: 18px; padding: 40px 0 0 0"
  7805. ></div>
  7806. </el-form>
  7807. <span slot="footer" class="dialog-footer">
  7808. <el-button type="primary" @click="dialogVisible1 = false"
  7809. >确定</el-button
  7810. >
  7811. </span>
  7812. </el-dialog>
  7813. <el-dialog
  7814. title="文件预览"
  7815. :visible.sync="dialogVisible3"
  7816. width="50%"
  7817. :before-close="handleClose"
  7818. class="dialog_diy"
  7819. :class="{ fullStyle: full }"
  7820. >
  7821. <div slot="title" class="header-title">
  7822. <div style="color: #fff">文件预览</div>
  7823. <div style="position: absolute; top: 19px; right: 50px">
  7824. <img
  7825. src="../assets/full.png"
  7826. style="height: 16px; cursor: pointer"
  7827. alt=""
  7828. @click="fullTools"
  7829. />
  7830. </div>
  7831. </div>
  7832. <pdf
  7833. v-if="showPDF"
  7834. :pdfUrl="pptImgUrl"
  7835. style="width: 100%; height: 520px; overflow: auto"
  7836. :class="{ fullStyle: full }"
  7837. ></pdf>
  7838. <iframe
  7839. v-else
  7840. :src="pptImgUrl"
  7841. frameborder="0"
  7842. width="100%"
  7843. height="600"
  7844. :class="{ fullStyle: full }"
  7845. ></iframe>
  7846. </el-dialog>
  7847. <el-dialog
  7848. title="文件预览"
  7849. :visible.sync="dialogVisible6"
  7850. width="50%"
  7851. :before-close="handleClose"
  7852. class="dialog_diy"
  7853. >
  7854. <iframe
  7855. :src="pptImgUrl1"
  7856. frameborder="0"
  7857. width="100%"
  7858. height="600"
  7859. ></iframe>
  7860. </el-dialog>
  7861. <el-dialog
  7862. title="提示"
  7863. :visible.sync="dialogVisible4"
  7864. :append-to-body="true"
  7865. width="800px"
  7866. :before-close="handleClose"
  7867. class="dialog_diy notice"
  7868. >
  7869. <div>此功能暂未开放!</div>
  7870. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  7871. </el-dialog>
  7872. <el-dialog
  7873. title="问答"
  7874. :visible.sync="answerDialogVisible"
  7875. :append-to-body="true"
  7876. width="800px"
  7877. :before-close="handleClose"
  7878. class="dialog_diy"
  7879. >
  7880. <div>
  7881. <div
  7882. style="
  7883. display: flex;
  7884. flex-wrap: nowrap;
  7885. flex-direction: column;
  7886. position: relative;
  7887. "
  7888. >
  7889. <div class="queTop" style="padding: 20px 0 20px 0">
  7890. <div class="question">
  7891. <img src="../assets/icon/question.png" alt />
  7892. </div>
  7893. <div class="queTitle">
  7894. <div style="width: 90px; min-width: 90px">提问:</div>
  7895. <div>{{ answerQ }}</div>
  7896. </div>
  7897. </div>
  7898. <div class="ediBottom">
  7899. <textarea
  7900. rows="6"
  7901. class="binfo_input"
  7902. cols
  7903. style="width: 95%; height: 120px"
  7904. v-model="questionAnswer"
  7905. ></textarea>
  7906. </div>
  7907. </div>
  7908. </div>
  7909. <div slot="footer">
  7910. <el-button @click="answerDialogVisible = false">取 消</el-button>
  7911. <el-button type="primary" @click="addQuestion">提 交</el-button>
  7912. </div>
  7913. </el-dialog>
  7914. <el-dialog
  7915. title="问答"
  7916. :visible.sync="answerDialogVisibleTeacher"
  7917. :append-to-body="true"
  7918. width="800px"
  7919. :before-close="handleClose"
  7920. class="dialog_diy"
  7921. >
  7922. <div>
  7923. <div class="w_name">
  7924. 学生姓名:<span>{{ sStudent.student }}</span>
  7925. </div>
  7926. <div
  7927. style="
  7928. display: flex;
  7929. flex-wrap: nowrap;
  7930. flex-direction: column;
  7931. position: relative;
  7932. "
  7933. >
  7934. <div class="queTop" style="padding: 20px 0 20px 0">
  7935. <div class="question">
  7936. <img src="../assets/icon/question.png" alt />
  7937. </div>
  7938. <div class="queTitle">
  7939. <div style="width: 90px; min-width: 90px">提问:</div>
  7940. <div>{{ answerQ }}</div>
  7941. </div>
  7942. </div>
  7943. <div class="ediBottom">
  7944. <textarea
  7945. rows="6"
  7946. class="binfo_input"
  7947. cols
  7948. style="width: 95%; height: 120px"
  7949. v-model="questionAnswer"
  7950. ></textarea>
  7951. </div>
  7952. </div>
  7953. </div>
  7954. <div slot="footer">
  7955. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  7956. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  7957. </div>
  7958. </el-dialog>
  7959. <el-dialog
  7960. title="倒计时"
  7961. :visible.sync="timeDialogVisible"
  7962. :append-to-body="true"
  7963. width="800px"
  7964. :before-close="handleClose"
  7965. class="dialog_diy"
  7966. >
  7967. <div>
  7968. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  7969. </div>
  7970. <div slot="footer">
  7971. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  7972. </div>
  7973. </el-dialog>
  7974. <el-dialog
  7975. title="权限设置"
  7976. :visible.sync="juriVisible"
  7977. :append-to-body="true"
  7978. width="400px"
  7979. :before-close="handleClose"
  7980. class="dialog_diy"
  7981. >
  7982. <div>
  7983. <div class="open_box">
  7984. <div class="switch_box">
  7985. <span>允许学生查看所有作业</span>
  7986. <el-switch
  7987. v-model="sIsOpen"
  7988. active-text=""
  7989. class="switchCss"
  7990. @change="updateSLook"
  7991. ></el-switch>
  7992. </div>
  7993. <div
  7994. class="switch_box"
  7995. v-if="
  7996. courseDetail.userid == userid ||
  7997. (courseDetail.course_teacher &&
  7998. courseDetail.course_teacher.indexOf(userid) != -1)
  7999. "
  8000. >
  8001. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  8002. <span>禁止学生查看所有阶段</span>
  8003. <el-switch
  8004. v-model="IsLookOpen"
  8005. active-text=""
  8006. class="switchCss"
  8007. @change="updateLookOpen"
  8008. ></el-switch>
  8009. </div>
  8010. <div class="switch_box" v-if="courseDetail.userid == userid">
  8011. <span>开启跟随模式</span>
  8012. <el-switch
  8013. v-model="IsFollow"
  8014. active-text=""
  8015. class="switchCss"
  8016. @change="updateFollow"
  8017. ></el-switch>
  8018. </div>
  8019. </div>
  8020. </div>
  8021. <div slot="footer">
  8022. <el-button
  8023. style="background: #409efe; color: #fff"
  8024. @click="juriVisible = false"
  8025. >关 闭</el-button
  8026. >
  8027. </div>
  8028. </el-dialog>
  8029. <el-dialog
  8030. title="查看视频"
  8031. :visible.sync="videoVisible"
  8032. :append-to-body="true"
  8033. width="1000px"
  8034. :before-close="handleClose"
  8035. class="dialog_diy1"
  8036. >
  8037. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  8038. <video-player
  8039. class="video-player vjs-custom-skin"
  8040. :playsinline="true"
  8041. :options="videoDetail"
  8042. @play="onPlayerPlay($event)"
  8043. style="width: 100%; height: 100%"
  8044. ></video-player>
  8045. </div>
  8046. <div slot="footer">
  8047. <el-button
  8048. style="background: #409efe; color: #fff"
  8049. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8050. >
  8051. 关 闭</el-button
  8052. >
  8053. </div>
  8054. </el-dialog>
  8055. <el-dialog
  8056. title="查看详情"
  8057. :visible.sync="commentDialogVisible"
  8058. :append-to-body="true"
  8059. width="800px"
  8060. :before-close="handleClose"
  8061. class="dialog_diy"
  8062. >
  8063. <div class="commentTop">
  8064. <div class="studentDetail">
  8065. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8066. <div class="nameAndTime">
  8067. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8068. <div>{{ commentDetail.time }}</div>
  8069. </div>
  8070. <div
  8071. class="returnBtn"
  8072. style="margin-left: auto; width: 80px"
  8073. v-if="
  8074. commentDetail.works &&
  8075. commentDetail.type == 0 &&
  8076. (tType == 1 || tType == 4)
  8077. "
  8078. @click="
  8079. showPicturePaint(
  8080. commentDetail.img ? commentDetail.img : commentDetail.works
  8081. )
  8082. "
  8083. >
  8084. 教师批注
  8085. </div>
  8086. </div>
  8087. <div
  8088. class="worksAnswer"
  8089. v-if="commentDetail.works && commentDetail.type == 2"
  8090. >
  8091. {{ JSON.parse(commentDetail.works)[0].answer }}
  8092. </div>
  8093. <div
  8094. class="worksAnswer"
  8095. v-if="commentDetail.works && commentDetail.type == 1"
  8096. >
  8097. <img
  8098. src="../assets/teacherWork.png"
  8099. v-if="commentDetail.ateacher"
  8100. class="w_teachert"
  8101. />
  8102. <pdf
  8103. v-if="showPDF"
  8104. :pdfUrl="pptImgUrl"
  8105. style="width: 100%; height: 520px; overflow: auto"
  8106. :class="{ fullStyle: full }"
  8107. ></pdf>
  8108. <iframe
  8109. v-else
  8110. :src="pptImgUrl"
  8111. frameborder="0"
  8112. width="100%"
  8113. height="600"
  8114. :class="{ fullStyle: full }"
  8115. ></iframe>
  8116. </div>
  8117. <div
  8118. class="worksAnswer"
  8119. v-if="commentDetail.works && commentDetail.type == 0"
  8120. >
  8121. <img
  8122. src="../assets/teacherWork.png"
  8123. v-if="commentDetail.ateacher"
  8124. class="w_teachert"
  8125. style="right: 105px"
  8126. />
  8127. <img
  8128. :src="commentDetail.works"
  8129. alt=""
  8130. @click="previewImg(commentDetail.works)"
  8131. />
  8132. </div>
  8133. <div
  8134. class="worksAnswer"
  8135. v-if="commentDetail.works && commentDetail.type == 3"
  8136. >
  8137. <img
  8138. src="../assets/teacherWork.png"
  8139. v-if="commentDetail.ateacher"
  8140. class="w_teachert"
  8141. />
  8142. <video-player
  8143. class="video-player vjs-custom-skin"
  8144. :playsinline="true"
  8145. :options="videoDetail"
  8146. @play="onPlayerPlay($event)"
  8147. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8148. ></video-player>
  8149. </div>
  8150. <div
  8151. class="worksAnswer"
  8152. v-if="commentDetail.works && commentDetail.type == 10"
  8153. >
  8154. <div class="cont" v-html="commentDetail.works.text"></div>
  8155. </div>
  8156. <div
  8157. class="worksAnswer codeFileBox"
  8158. v-if="commentDetail.works && commentDetail.type == 12"
  8159. @click="downloadFile(commentDetail.works)"
  8160. >
  8161. <img src="../assets/icon/codeFile.png" />
  8162. <div>点击下载文件</div>
  8163. </div>
  8164. <div
  8165. class="worksAnswer codeFileBox"
  8166. v-if="commentDetail.works && commentDetail.type == 15"
  8167. @click="
  8168. openCocoPi(
  8169. 57,
  8170. commentIndexJson.toolIndex,
  8171. commentDetail.userid,
  8172. commentDetail.sName
  8173. )
  8174. "
  8175. >
  8176. <img src="../assets/icon/codeFile.png" />
  8177. <div>点击打开CocoPi</div>
  8178. </div>
  8179. <div
  8180. class="worksAnswer"
  8181. v-if="commentDetail.works && commentDetail.type == 13"
  8182. >
  8183. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8184. </div>
  8185. <div
  8186. class="worksAnswer"
  8187. v-if="commentDetail.works && commentDetail.type == 4"
  8188. >
  8189. <div class="evalCss">
  8190. <div class="nav">请选择星星进行评分</div>
  8191. <div class="middleBox" v-if="eScore.eStar">
  8192. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8193. <div class="nameAndrate">
  8194. <div>{{ e.value }}</div>
  8195. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  8196. </div>
  8197. <div v-if="e.detail">{{ e.detail }}</div>
  8198. </div>
  8199. <div class="bz">
  8200. <textarea
  8201. disabled
  8202. rows="4"
  8203. class="pj"
  8204. style="
  8205. padding: 10px 5px;
  8206. width: 70%;
  8207. background: #f7f6f9;
  8208. font-size: 14px;
  8209. text-indent: 10px;
  8210. color: #000;
  8211. "
  8212. cols
  8213. v-model="eScore.eBzText"
  8214. placeholder="请输入评价内容..."
  8215. ></textarea>
  8216. </div>
  8217. </div>
  8218. </div>
  8219. </div>
  8220. <div class="comment">
  8221. <div class="commentList">
  8222. <div class="commentImg">
  8223. <img
  8224. @click="
  8225. isLikes(
  8226. commentDetail.wid,
  8227. userid,
  8228. 1,
  8229. null,
  8230. commentDetail.isLikes
  8231. )
  8232. "
  8233. :src="commentDetail.isLikes == true ? likes : noLikes"
  8234. alt=""
  8235. />
  8236. </div>
  8237. <div>{{ commentDetail.likesCount }}</div>
  8238. </div>
  8239. <div class="commentList">
  8240. <div class="commentImg">
  8241. <img src="../assets/icon/comment/comment.png" alt="" />
  8242. </div>
  8243. <div>{{ commentDetail.commentCount }}</div>
  8244. </div>
  8245. </div>
  8246. <div class="drawPBox" v-if="commentDetail.img">
  8247. <span>教师批注</span>
  8248. <img
  8249. :src="commentDetail.img"
  8250. alt=""
  8251. @click="previewImg(commentDetail.img)"
  8252. />
  8253. <span
  8254. class="deleteImg"
  8255. v-if="tType == 1 || tType == 4"
  8256. @click.stop="deletePicturePaint(commentDetail.wid)"
  8257. style="
  8258. font-size: 14px;
  8259. width: auto !important;
  8260. color: #b4b4b4;
  8261. top: unset;
  8262. bottom: 0;
  8263. border: none;
  8264. padding: 0;
  8265. height: auto !important;
  8266. margin: 0;
  8267. "
  8268. >删除</span
  8269. >
  8270. </div>
  8271. </div>
  8272. <div class="commentBox">
  8273. <div class="pl">评论:</div>
  8274. <div style="max-height: 200px; overflow: auto">
  8275. <div
  8276. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  8277. style="padding: 10px 0 0 0"
  8278. >
  8279. <div
  8280. class="studentDetail"
  8281. style="padding-top: 10px"
  8282. v-for="(co, coIndex) in commentDetail.commentJson"
  8283. :key="coIndex"
  8284. >
  8285. <div class="tx" style="min-width: 50px">
  8286. <img src="../assets/avatar.png" alt="" />
  8287. </div>
  8288. <div class="plPerson">
  8289. <div class="plName">
  8290. <div>{{ co.commentPeople }}</div>
  8291. <div style="margin-left: 5px">
  8292. {{ co.commentTime }}
  8293. </div>
  8294. <div
  8295. class="deleteComment"
  8296. v-if="userid == co.userid"
  8297. @click="deleteComment(co.wid)"
  8298. >
  8299. 删除
  8300. </div>
  8301. </div>
  8302. <div class="plContent">{{ co.commentText }}</div>
  8303. </div>
  8304. </div>
  8305. </div>
  8306. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  8307. </div>
  8308. </div>
  8309. <div style="margin-top: 10px">
  8310. <div class="displayBox">
  8311. <div
  8312. style="
  8313. color: #556db4;
  8314. font-size: 14px;
  8315. font-weight: bold;
  8316. padding-bottom: 10px;
  8317. "
  8318. >
  8319. 评价
  8320. </div>
  8321. <div class="easy_comment" v-if="false">
  8322. <div
  8323. v-for="(p, pIndex) in PlTextList"
  8324. :key="pIndex"
  8325. @click="fastText(p, 1)"
  8326. >
  8327. {{ p }}
  8328. </div>
  8329. </div>
  8330. </div>
  8331. <div>
  8332. <textarea
  8333. rows="3"
  8334. class="pj"
  8335. style="padding: 10px 5px"
  8336. cols
  8337. v-model="commentText"
  8338. placeholder="请输入评论"
  8339. ></textarea>
  8340. </div>
  8341. </div>
  8342. <div slot="footer">
  8343. <el-button
  8344. @click="
  8345. (commentDialogVisible = false),
  8346. (commentIndexJson = {}),
  8347. videoDetail.sources && videoDetail.sources[0]
  8348. ? (videoDetail.sources[0].src = '')
  8349. : ''
  8350. "
  8351. >取 消</el-button
  8352. >
  8353. <el-button
  8354. type="primary"
  8355. @click="addComment(commentDetail.wid, userid, 2)"
  8356. >确 定</el-button
  8357. >
  8358. </div>
  8359. </el-dialog>
  8360. <el-dialog
  8361. title="查看文档"
  8362. :visible.sync="fullDialogVisible"
  8363. :append-to-body="true"
  8364. width="100%"
  8365. :before-close="handleClose"
  8366. :show-close="false"
  8367. class="dialog_diy full_diy"
  8368. :class="{ full_diy2: fulltype == 3 }"
  8369. >
  8370. <div slot="title" class="header-title">
  8371. <div style="color: #fff">查看文档</div>
  8372. <div
  8373. @click="fullDialogVisible = false"
  8374. style="
  8375. cursor: pointer;
  8376. position: absolute;
  8377. top: 20px;
  8378. right: 20px;
  8379. color: #fff;
  8380. "
  8381. >
  8382. 退出全屏
  8383. </div>
  8384. </div>
  8385. <div style="height: 100%">
  8386. <div
  8387. class="wheel"
  8388. v-if="
  8389. fulltype == 2 &&
  8390. fullUrl.indexOf(
  8391. 'https://view.officeapps.live.com/op/view.aspx?src='
  8392. ) != -1
  8393. "
  8394. style="width: 95%; margin: 0 auto"
  8395. >
  8396. <iframe
  8397. style="width: 100%; height: 100%; border: none"
  8398. :src="fullUrl"
  8399. ></iframe>
  8400. </div>
  8401. <iframe
  8402. v-else-if="fulltype == 2"
  8403. style="width: 100%; height: 100%; border: none"
  8404. :src="fullUrl"
  8405. security="restricted"
  8406. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  8407. ></iframe>
  8408. <pdf
  8409. v-else-if="fulltype == 3"
  8410. :pdfUrl="fullUrl"
  8411. style="width: 100%; height: 100%; overflow: auto"
  8412. ></pdf>
  8413. <div
  8414. class="wheel"
  8415. v-if="fulltype == 1"
  8416. style="
  8417. box-shadow: 0 0 6px 1px #f2f2f2;
  8418. width: 100%;
  8419. background: #f1f1f1;
  8420. "
  8421. >
  8422. <div class="title" style="width: 100%; box-sizing: border-box">
  8423. 查看文档
  8424. </div>
  8425. <el-form class="textBox" style="height: 90%">
  8426. <el-form-item class="textTitle">
  8427. <div style="font-size: 22px">
  8428. {{ fullUrl.name }}
  8429. </div>
  8430. </el-form-item>
  8431. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  8432. <div
  8433. v-html="fullUrl.url"
  8434. class="textContent"
  8435. style="height: auto"
  8436. ></div>
  8437. </el-form>
  8438. </div>
  8439. </div>
  8440. <!-- <div slot="footer">
  8441. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  8442. </div> -->
  8443. </el-dialog>
  8444. <el-dialog
  8445. title="个人评价"
  8446. :visible.sync="studentEvalDialogVisible"
  8447. :append-to-body="true"
  8448. width="800px"
  8449. :before-close="handleClose"
  8450. class="dialog_diy"
  8451. >
  8452. <div class="evalCss">
  8453. <div class="nav">请选择星星进行评分</div>
  8454. <div class="middleBox" v-if="eScore.eStar">
  8455. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8456. <div class="nameAndrate">
  8457. <div>{{ e.value }}</div>
  8458. <el-rate
  8459. v-model="eScore.eStar[eIndex]"
  8460. :disabled="isStar"
  8461. ></el-rate>
  8462. </div>
  8463. <div v-if="e.detail">{{ e.detail }}</div>
  8464. </div>
  8465. <div class="easy_comment" v-if="false">
  8466. <div
  8467. v-for="(p, pIndex) in PlTextList"
  8468. :key="pIndex"
  8469. @click="fastText(p, 2)"
  8470. >
  8471. {{ p }}
  8472. </div>
  8473. </div>
  8474. <div class="bz">
  8475. <textarea
  8476. :disabled="isStar"
  8477. rows="4"
  8478. class="pj"
  8479. style="
  8480. padding: 10px 5px;
  8481. width: 70%;
  8482. background: #f7f6f9;
  8483. font-size: 14px;
  8484. text-indent: 10px;
  8485. "
  8486. cols
  8487. v-model="eScore.eBzText"
  8488. placeholder="请输入评价内容..."
  8489. ></textarea>
  8490. </div>
  8491. </div>
  8492. </div>
  8493. <div slot="footer">
  8494. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  8495. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  8496. >确 定</el-button
  8497. >
  8498. </div>
  8499. </el-dialog>
  8500. <el-dialog
  8501. title="个人评价"
  8502. :visible.sync="studentEvalDialogVisibleTeacher"
  8503. :append-to-body="true"
  8504. width="800px"
  8505. :before-close="handleClose"
  8506. class="dialog_diy"
  8507. >
  8508. <div class="w_name">
  8509. 学生姓名:<span>{{ sStudent.student }}</span>
  8510. </div>
  8511. <div class="evalCss">
  8512. <div class="nav">请选择星星进行评分</div>
  8513. <div class="middleBox" v-if="eScore.eStar">
  8514. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  8515. <div class="nameAndrate">
  8516. <div>{{ e.value }}</div>
  8517. <el-rate
  8518. v-model="eScore.eStar[eIndex]"
  8519. :disabled="isStar"
  8520. ></el-rate>
  8521. </div>
  8522. <div v-if="e.detail">{{ e.detail }}</div>
  8523. </div>
  8524. <div class="easy_comment" v-if="false">
  8525. <div
  8526. v-for="(p, pIndex) in PlTextList"
  8527. :key="pIndex"
  8528. @click="fastText(p, 2)"
  8529. >
  8530. {{ p }}
  8531. </div>
  8532. </div>
  8533. <div class="bz">
  8534. <textarea
  8535. :disabled="isStar"
  8536. rows="4"
  8537. class="pj"
  8538. style="
  8539. padding: 10px 5px;
  8540. width: 70%;
  8541. background: #f7f6f9;
  8542. font-size: 14px;
  8543. text-indent: 10px;
  8544. "
  8545. cols
  8546. v-model="eScore.eBzText"
  8547. placeholder="请输入评价内容..."
  8548. ></textarea>
  8549. </div>
  8550. </div>
  8551. </div>
  8552. <div slot="footer">
  8553. <el-button @click="studentEvalDialogVisibleTeacher = false"
  8554. >取 消</el-button
  8555. >
  8556. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  8557. >确 定</el-button
  8558. >
  8559. </div>
  8560. </el-dialog>
  8561. <el-dialog
  8562. title="选择填空"
  8563. :visible.sync="dialogVisibleSelect"
  8564. :append-to-body="true"
  8565. width="90%"
  8566. :before-close="handleClose"
  8567. class="dialog_diy dialog_diy3"
  8568. >
  8569. <div v-if="selectJson">
  8570. <div class="select_box2">
  8571. <div class="select_box2_title">
  8572. <div>选择填空</div>
  8573. <div>请选择对应的答案进行答题!</div>
  8574. </div>
  8575. <div class="select_box2_box">
  8576. <div class="select_box2_img">
  8577. <img
  8578. :src="selectJson.url"
  8579. @click="previewImg(selectJson.url)"
  8580. alt=""
  8581. />
  8582. </div>
  8583. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8584. <div style="padding-top: 15px">
  8585. <div class="select_answer_title" v-if="isSelect">
  8586. {{ selectAnswer.stu }}
  8587. </div>
  8588. <div class="select_answer_title" v-else>
  8589. 根据题目选择对应答案
  8590. </div>
  8591. <div
  8592. class="select_box2_answer_box"
  8593. v-for="(item2, checkIndex) in selectJson.select"
  8594. :key="checkIndex"
  8595. >
  8596. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8597. <el-select
  8598. :disabled="isSelect"
  8599. v-model="selectAnswer.answer[checkIndex]"
  8600. placeholder="请选择正确答案"
  8601. >
  8602. <el-option
  8603. v-for="(e, eIndex) in selectJson.select"
  8604. :key="eIndex"
  8605. :label="e"
  8606. :value="eIndex"
  8607. >
  8608. </el-option>
  8609. </el-select>
  8610. </div>
  8611. </div>
  8612. <div
  8613. class="rightAnswerCss"
  8614. v-if="isSelect && (tType == 1 || tType == 4)"
  8615. >
  8616. <div
  8617. v-for="(a, aIndex) in selectJson.answer"
  8618. :key="aIndex"
  8619. class="rightAnswer"
  8620. >
  8621. <div
  8622. v-if="selectAnswer.answer[aIndex] === a"
  8623. style="color: #767de1"
  8624. >
  8625. 回答正确
  8626. </div>
  8627. <div v-else>回答错误</div>
  8628. <div
  8629. style="margin-left: 10px"
  8630. v-if="selectAnswer.answer[aIndex] !== a"
  8631. >
  8632. 正确答案:
  8633. </div>
  8634. <div
  8635. :class="
  8636. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8637. "
  8638. >
  8639. {{ selectJson.select[a] }}
  8640. </div>
  8641. </div>
  8642. </div>
  8643. </div>
  8644. <div class="upAnswerCss">
  8645. <el-button
  8646. type="primary"
  8647. @click="addSelectAnswer"
  8648. v-if="!isSelect"
  8649. >提交答案</el-button
  8650. >
  8651. </div>
  8652. </div>
  8653. </div>
  8654. </div>
  8655. </el-dialog>
  8656. <el-dialog
  8657. title="选择填空"
  8658. :visible.sync="dialogVisibleSelectTeacher"
  8659. :append-to-body="true"
  8660. width="90%"
  8661. :before-close="handleClose"
  8662. class="dialog_diy dialog_diy3"
  8663. >
  8664. <div v-if="selectJson">
  8665. <div class="w_name">
  8666. 学生姓名:<span>{{ sStudent.student }}</span>
  8667. </div>
  8668. <div class="select_box2">
  8669. <div class="select_box2_title">
  8670. <div>选择填空</div>
  8671. <div>请选择对应的答案进行答题!</div>
  8672. </div>
  8673. <div class="select_box2_box">
  8674. <div class="select_box2_img">
  8675. <img
  8676. :src="selectJson.url"
  8677. @click="previewImg(selectJson.url)"
  8678. alt=""
  8679. />
  8680. </div>
  8681. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  8682. <div style="padding-top: 15px">
  8683. <div class="select_answer_title" v-if="isSelect">
  8684. {{ selectAnswer.stu }}
  8685. </div>
  8686. <div class="select_answer_title" v-else>
  8687. 根据题目选择对应答案
  8688. </div>
  8689. <div
  8690. class="select_box2_answer_box"
  8691. v-for="(item2, checkIndex) in selectJson.select"
  8692. :key="checkIndex"
  8693. >
  8694. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  8695. <el-select
  8696. :disabled="isSelect"
  8697. v-model="selectAnswer.answer[checkIndex]"
  8698. placeholder="请选择正确答案"
  8699. >
  8700. <el-option
  8701. v-for="(e, eIndex) in selectJson.select"
  8702. :key="eIndex"
  8703. :label="e"
  8704. :value="eIndex"
  8705. >
  8706. </el-option>
  8707. </el-select>
  8708. </div>
  8709. </div>
  8710. <div
  8711. class="rightAnswerCss"
  8712. v-if="isSelect && (tType == 1 || tType == 4)"
  8713. >
  8714. <div
  8715. v-for="(a, aIndex) in selectJson.answer"
  8716. :key="aIndex"
  8717. class="rightAnswer"
  8718. >
  8719. <div
  8720. v-if="selectAnswer.answer[aIndex] === a"
  8721. style="color: #767de1"
  8722. >
  8723. 回答正确
  8724. </div>
  8725. <div v-else>回答错误</div>
  8726. <div
  8727. style="margin-left: 10px"
  8728. v-if="selectAnswer.answer[aIndex] !== a"
  8729. >
  8730. 正确答案:
  8731. </div>
  8732. <div
  8733. :class="
  8734. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  8735. "
  8736. >
  8737. {{ selectJson.select[a] }}
  8738. </div>
  8739. </div>
  8740. </div>
  8741. </div>
  8742. <div class="upAnswerCss">
  8743. <el-button
  8744. type="primary"
  8745. @click="addSelectAnswerTeacher"
  8746. v-if="!isSelect"
  8747. >提交答案</el-button
  8748. >
  8749. </div>
  8750. </div>
  8751. </div>
  8752. </div>
  8753. </el-dialog>
  8754. <el-dialog
  8755. title="教师评分"
  8756. :visible.sync="dialogVisibleScore"
  8757. :append-to-body="true"
  8758. width="800px"
  8759. :before-close="handleClose"
  8760. class="dialog_diy"
  8761. >
  8762. <div>
  8763. <div class="studentDetail">
  8764. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  8765. <div class="nameAndTime">
  8766. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  8767. <div>{{ commentDetail.time }}</div>
  8768. </div>
  8769. </div>
  8770. <div
  8771. class="worksAnswer"
  8772. v-if="commentDetail.works && commentDetail.type == 2"
  8773. >
  8774. {{ JSON.parse(commentDetail.works)[0].answer }}
  8775. </div>
  8776. <div
  8777. class="worksAnswer"
  8778. v-if="commentDetail.works && commentDetail.type == 1"
  8779. >
  8780. <pdf
  8781. v-if="showPDF"
  8782. :pdfUrl="pptImgUrl"
  8783. style="width: 100%; height: 520px; overflow: auto"
  8784. :class="{ fullStyle: full }"
  8785. ></pdf>
  8786. <iframe
  8787. v-else
  8788. :src="pptImgUrl"
  8789. frameborder="0"
  8790. width="100%"
  8791. height="600"
  8792. :class="{ fullStyle: full }"
  8793. ></iframe>
  8794. </div>
  8795. <div
  8796. class="worksAnswer"
  8797. v-if="commentDetail.works && commentDetail.type == 0"
  8798. >
  8799. <img
  8800. :src="commentDetail.works"
  8801. alt=""
  8802. @click="previewImg(commentDetail.works)"
  8803. />
  8804. </div>
  8805. <div
  8806. class="worksAnswer"
  8807. v-if="commentDetail.works && commentDetail.type == 3"
  8808. >
  8809. <video-player
  8810. class="video-player vjs-custom-skin"
  8811. :playsinline="true"
  8812. :options="videoDetail"
  8813. @play="onPlayerPlay($event)"
  8814. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  8815. ></video-player>
  8816. </div>
  8817. <div
  8818. class="worksAnswer codeFileBox"
  8819. v-if="commentDetail.works && commentDetail.type == 12"
  8820. @click="downloadFile(commentDetail.works)"
  8821. >
  8822. <img src="../assets/icon/codeFile.png" />
  8823. <div>点击下载文件</div>
  8824. </div>
  8825. <div
  8826. class="worksAnswer codeFileBox"
  8827. v-if="commentDetail.works && commentDetail.type == 15"
  8828. @click="
  8829. openCocoPi(
  8830. 57,
  8831. commentIndexJson.toolIndex,
  8832. commentDetail.userid,
  8833. commentDetail.sName
  8834. )
  8835. "
  8836. >
  8837. <img src="../assets/icon/codeFile.png" />
  8838. <div>点击打开CocoPi</div>
  8839. </div>
  8840. <div
  8841. class="worksAnswer"
  8842. v-if="commentDetail.works && commentDetail.type == 13"
  8843. >
  8844. <div v-html="JSON.parse(commentDetail.works).text"></div>
  8845. </div>
  8846. <div class="scoreBox">
  8847. <span class="t">请输入分数</span>
  8848. <el-input-number
  8849. :disabled="courseDetail.userid != userid"
  8850. v-model="wScore"
  8851. :controls="false"
  8852. :min="0"
  8853. :max="100"
  8854. ></el-input-number>
  8855. </div>
  8856. <div class="scoreDetailBox">
  8857. <span class="t">评分评论</span>
  8858. <el-input
  8859. type="textarea"
  8860. :rows="5"
  8861. :disabled="courseDetail.userid != userid"
  8862. resize="none"
  8863. v-model="scoreDetail"
  8864. placeholder="请输入对学生的评价"
  8865. >
  8866. </el-input>
  8867. </div>
  8868. </div>
  8869. <span slot="footer" class="dialog-footer">
  8870. <el-button
  8871. @click="
  8872. (dialogVisibleScore = false),
  8873. (commentIndexJson = {}),
  8874. videoDetail.sources && videoDetail.sources[0]
  8875. ? (videoDetail.sources[0].src = '')
  8876. : ''
  8877. "
  8878. >取 消</el-button
  8879. >
  8880. <el-button
  8881. type="primary"
  8882. v-if="courseDetail.userid == userid"
  8883. @click="scoreWork(commentDetail.wid)"
  8884. >确 定
  8885. </el-button>
  8886. </span>
  8887. </el-dialog>
  8888. <el-dialog
  8889. title="连词成句"
  8890. :visible.sync="dialogVisibleSentence"
  8891. :append-to-body="true"
  8892. width="1000px"
  8893. :before-close="handleClose"
  8894. class="dialog_diy dialog_diy3"
  8895. >
  8896. <div>
  8897. <div class="sentenBox">
  8898. <div
  8899. v-for="(st, stIndex) in sentenceList"
  8900. :key="stIndex"
  8901. style="padding-bottom: 20px"
  8902. >
  8903. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8904. <div class="cardList" v-if="st.chooseSenList">
  8905. <div class="cardBox">
  8906. <div
  8907. v-for="(r, rIndex) in st.chooseSenList"
  8908. :key="rIndex"
  8909. @click="returnCard(r, stIndex, rIndex)"
  8910. >
  8911. <el-tooltip
  8912. class="item"
  8913. effect="light"
  8914. :content="r"
  8915. placement="top"
  8916. v-if="r != '' && r != undefined"
  8917. >
  8918. <div
  8919. :class="{
  8920. isCard: r,
  8921. isChooseCard: r == '' || r == undefined,
  8922. }"
  8923. >
  8924. <div>{{ r }}</div>
  8925. </div>
  8926. </el-tooltip>
  8927. <div
  8928. :class="{
  8929. isCard: r,
  8930. isChooseCard: r == '' || r == undefined,
  8931. }"
  8932. v-else
  8933. >
  8934. <div>{{ r }}</div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. <div class="cardList" v-if="st.addChangeSen">
  8940. <div class="cardBox">
  8941. <div
  8942. v-for="(s, sIndex) in st.addChangeSen"
  8943. :key="sIndex"
  8944. @click="setRightAnswer(s, stIndex, sIndex)"
  8945. >
  8946. <el-tooltip
  8947. class="item"
  8948. effect="light"
  8949. :content="s"
  8950. placement="top"
  8951. v-if="s != '' && s != undefined"
  8952. >
  8953. <div
  8954. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8955. >
  8956. <div>{{ s }}</div>
  8957. </div>
  8958. </el-tooltip>
  8959. <div
  8960. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  8961. v-else
  8962. >
  8963. <div>{{ s }}</div>
  8964. </div>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. </div>
  8969. </div>
  8970. </div>
  8971. <span slot="footer" class="dialog-footer">
  8972. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  8973. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  8974. </span>
  8975. </el-dialog>
  8976. <el-dialog
  8977. title="连词成句"
  8978. :visible.sync="dialogVisibleSentenceTeacher"
  8979. :append-to-body="true"
  8980. width="1000px"
  8981. :before-close="handleClose"
  8982. class="dialog_diy dialog_diy3"
  8983. >
  8984. <div>
  8985. <div class="w_name">
  8986. 学生姓名:<span>{{ sStudent.student }}</span>
  8987. </div>
  8988. <div class="sentenBox">
  8989. <div
  8990. v-for="(st, stIndex) in sentenceList"
  8991. :key="stIndex"
  8992. style="padding-bottom: 20px"
  8993. >
  8994. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  8995. <div class="cardList" v-if="st.chooseSenList">
  8996. <div class="cardBox">
  8997. <div
  8998. v-for="(r, rIndex) in st.chooseSenList"
  8999. :key="rIndex"
  9000. @click="returnCard(r, stIndex, rIndex)"
  9001. >
  9002. <el-tooltip
  9003. class="item"
  9004. effect="light"
  9005. :content="r"
  9006. placement="top"
  9007. v-if="r != '' && r != undefined"
  9008. >
  9009. <div
  9010. :class="{
  9011. isCard: r,
  9012. isChooseCard: r == '' || r == undefined,
  9013. }"
  9014. >
  9015. <div>{{ r }}</div>
  9016. </div>
  9017. </el-tooltip>
  9018. <div
  9019. :class="{
  9020. isCard: r,
  9021. isChooseCard: r == '' || r == undefined,
  9022. }"
  9023. v-else
  9024. >
  9025. <div>{{ r }}</div>
  9026. </div>
  9027. </div>
  9028. </div>
  9029. </div>
  9030. <div class="cardList" v-if="st.addChangeSen">
  9031. <div class="cardBox">
  9032. <div
  9033. v-for="(s, sIndex) in st.addChangeSen"
  9034. :key="sIndex"
  9035. @click="setRightAnswer(s, stIndex, sIndex)"
  9036. >
  9037. <el-tooltip
  9038. class="item"
  9039. effect="light"
  9040. :content="s"
  9041. placement="top"
  9042. v-if="s != '' && s != undefined"
  9043. >
  9044. <div
  9045. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9046. >
  9047. <div>{{ s }}</div>
  9048. </div>
  9049. </el-tooltip>
  9050. <div
  9051. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9052. v-else
  9053. >
  9054. <div>{{ s }}</div>
  9055. </div>
  9056. </div>
  9057. </div>
  9058. </div>
  9059. </div>
  9060. </div>
  9061. </div>
  9062. <span slot="footer" class="dialog-footer">
  9063. <el-button @click="dialogVisibleSentenceTeacher = false"
  9064. >取 消</el-button
  9065. >
  9066. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  9067. </span>
  9068. </el-dialog>
  9069. <el-dialog
  9070. title="连词成句"
  9071. :visible.sync="dialogVisibleSentence1"
  9072. :append-to-body="true"
  9073. width="1000px"
  9074. :before-close="handleClose"
  9075. class="dialog_diy dialog_diy3"
  9076. >
  9077. <div>
  9078. <div class="sentenBox">
  9079. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9080. {{ sentenceList1.stuName }}的作业
  9081. </div>
  9082. <div
  9083. v-for="(st, stIndex) in sentenceList1"
  9084. :key="stIndex"
  9085. style="padding-bottom: 20px"
  9086. >
  9087. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  9088. 第{{ stIndex + 1 }}题
  9089. </div>
  9090. <div class="isWrong">
  9091. <div class="cardList1" v-if="st.chooseSenList">
  9092. <div class="cardBox">
  9093. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  9094. <el-tooltip
  9095. class="item"
  9096. effect="light"
  9097. :content="s"
  9098. placement="top"
  9099. >
  9100. <div class="isCard">
  9101. <div>{{ s }}</div>
  9102. </div>
  9103. </el-tooltip>
  9104. </div>
  9105. </div>
  9106. <div class="cardAnswerBox">
  9107. 组成句子:{{ st.chooseSenList.join(" ") }}
  9108. </div>
  9109. </div>
  9110. <div v-if="tType == 2" class="isTj">
  9111. <div class="isTjImg">
  9112. <img src="../assets/icon/conSentences/right.png" alt="" />
  9113. </div>
  9114. <div>已提交</div>
  9115. </div>
  9116. <div
  9117. class="answerRight isTj"
  9118. v-if="
  9119. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  9120. (tType == 1 || tType == 4)
  9121. "
  9122. >
  9123. <div class="isTjImg">
  9124. <img src="../assets/icon/conSentences/right.png" alt="" />
  9125. </div>
  9126. <div>回答正确</div>
  9127. </div>
  9128. <div
  9129. class="answerRight isTj"
  9130. v-if="
  9131. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9132. (tType == 1 || tType == 4)
  9133. "
  9134. >
  9135. <div class="isTjImg">
  9136. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  9137. </div>
  9138. <div>回答错误</div>
  9139. </div>
  9140. </div>
  9141. <div
  9142. v-if="
  9143. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  9144. (tType == 1 || tType == 4)
  9145. "
  9146. >
  9147. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  9148. <div
  9149. class="cardList"
  9150. v-if="st.rightAnswer"
  9151. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  9152. >
  9153. <div class="cardBox">
  9154. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  9155. <el-tooltip
  9156. class="item"
  9157. effect="light"
  9158. :content="r"
  9159. placement="top"
  9160. >
  9161. <div class="isCard1">
  9162. <div>{{ r }}</div>
  9163. </div>
  9164. </el-tooltip>
  9165. </div>
  9166. </div>
  9167. <div class="cardAnswerBox">
  9168. 组成句子:{{ st.rightAnswer.join(" ") }}
  9169. </div>
  9170. </div>
  9171. </div>
  9172. </div>
  9173. </div>
  9174. </div>
  9175. <span slot="footer" class="dialog-footer">
  9176. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  9177. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  9178. >确 定</el-button
  9179. >
  9180. </span>
  9181. </el-dialog>
  9182. <el-dialog
  9183. title="教师提交作业"
  9184. :visible.sync="dialogVisibleWorks"
  9185. :append-to-body="true"
  9186. width="500px"
  9187. :before-close="handleClose"
  9188. class="dialog_change"
  9189. >
  9190. <div class="marginT">
  9191. <div class="w_name">
  9192. 学生姓名:<span>{{ sStudent.student }}</span>
  9193. </div>
  9194. <div>上传文件</div>
  9195. <div
  9196. class="chapter_add"
  9197. @click="addImg($event)"
  9198. v-if="studyJuri[0].cover.length == 0"
  9199. >
  9200. <div class="up_photo">
  9201. <img src="../assets/uploadImg2.png" alt />
  9202. </div>
  9203. <!-- <input
  9204. type="file"
  9205. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9206. style="display: none"
  9207. @change="beforeUpload1($event, 1)"
  9208. /> -->
  9209. <input
  9210. type="file"
  9211. accept="*"
  9212. style="display: none"
  9213. @change="beforeUpload1($event, 1)"
  9214. />
  9215. </div>
  9216. <!-- capture="camera" -->
  9217. <div
  9218. class="chapter_add"
  9219. style="
  9220. display: flex;
  9221. width: 100%;
  9222. flex-direction: row;
  9223. flex-wrap: wrap;
  9224. justify-content: flex-start;
  9225. padding: 15px 0;
  9226. "
  9227. v-if="studyJuri[0].cover.length > 0"
  9228. >
  9229. <div class="upCover">
  9230. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9231. <img :src="word" alt v-else-if="fileType == 1" />
  9232. <img :src="video" alt v-else-if="fileType == 2" />
  9233. <img :src="word2" alt v-else-if="fileType == 3" />
  9234. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9235. <div class="deleteWord" @click="clean(1)">
  9236. <img src="../assets/icon/deleteWorks.png" alt />
  9237. </div>
  9238. </div>
  9239. </div>
  9240. </div>
  9241. <div
  9242. class="upload_send"
  9243. @click="addCourseWorksTeacher(taskCount)"
  9244. v-if="!proVisible"
  9245. >
  9246. 提交
  9247. </div>
  9248. </el-dialog>
  9249. <ImgDraw
  9250. :drawShow="drawShow"
  9251. @closeDraw="closeDraw"
  9252. @addImgDraw="addImgDraw"
  9253. :bg="bg"
  9254. ></ImgDraw>
  9255. <el-dialog
  9256. title="表格"
  9257. :visible.sync="dialogVisibleTable"
  9258. :append-to-body="true"
  9259. width="95%"
  9260. :before-close="handleClose"
  9261. class="dialog_diy"
  9262. >
  9263. <el-form>
  9264. <div
  9265. style="
  9266. display: flex;
  9267. align-items: center;
  9268. justify-content: space-between;
  9269. "
  9270. >
  9271. <span>表格内容</span>
  9272. <el-button type="primary" size="small" @click="returnTableText"
  9273. >还原模板</el-button
  9274. >
  9275. </div>
  9276. <Table
  9277. v-model="tableJson.text"
  9278. @change="change"
  9279. v-if="dialogVisibleTable"
  9280. ></Table>
  9281. </el-form>
  9282. <span slot="footer" class="dialog-footer">
  9283. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  9284. <el-button type="primary" @click="addTableWorks">确定</el-button>
  9285. </span>
  9286. </el-dialog>
  9287. <el-dialog
  9288. title="表格"
  9289. :visible.sync="dialogVisibleTableTeacher"
  9290. :append-to-body="true"
  9291. width="95%"
  9292. :before-close="handleClose"
  9293. class="dialog_diy"
  9294. >
  9295. <el-form>
  9296. <div class="w_name">
  9297. 学生姓名:<span>{{ sStudent.student }}</span>
  9298. </div>
  9299. <div>表格内容</div>
  9300. <Table
  9301. v-model="tableJson.text"
  9302. @change="change"
  9303. v-if="dialogVisibleTableTeacher"
  9304. ></Table>
  9305. </el-form>
  9306. <span slot="footer" class="dialog-footer">
  9307. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  9308. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  9309. </span>
  9310. </el-dialog>
  9311. <el-dialog
  9312. title="文档"
  9313. :visible.sync="dialogVisibleWord"
  9314. :append-to-body="true"
  9315. width="95%"
  9316. :before-close="handleClose"
  9317. class="dialog_diy"
  9318. >
  9319. <el-form>
  9320. <div
  9321. style="
  9322. display: flex;
  9323. align-items: center;
  9324. justify-content: space-between;
  9325. "
  9326. >
  9327. <span>文档内容</span>
  9328. <el-button type="primary" size="small" @click="returnWordText"
  9329. >还原模板</el-button
  9330. >
  9331. </div>
  9332. <editor-bar
  9333. v-model="wordJson.text"
  9334. v-if="dialogVisibleWord"
  9335. ></editor-bar>
  9336. </el-form>
  9337. <span slot="footer" class="dialog-footer">
  9338. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  9339. <el-button type="primary" @click="addWordWorks">确定</el-button>
  9340. </span>
  9341. </el-dialog>
  9342. <el-dialog
  9343. title="文档"
  9344. :visible.sync="dialogVisibleWordTeacher"
  9345. :append-to-body="true"
  9346. width="95%"
  9347. :before-close="handleClose"
  9348. class="dialog_diy"
  9349. >
  9350. <el-form>
  9351. <div class="w_name">
  9352. 学生姓名:<span>{{ sStudent.student }}</span>
  9353. </div>
  9354. <div>文档内容</div>
  9355. <editor-bar
  9356. v-model="wordJson.text"
  9357. v-if="dialogVisibleWordTeacher"
  9358. ></editor-bar>
  9359. </el-form>
  9360. <span slot="footer" class="dialog-footer">
  9361. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  9362. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  9363. </span>
  9364. </el-dialog>
  9365. <el-dialog
  9366. title="表格"
  9367. :visible.sync="dialogVisibleTable2"
  9368. :append-to-body="true"
  9369. width="95%"
  9370. :before-close="handleClose"
  9371. class="dialog_diy"
  9372. >
  9373. <el-form>
  9374. <div class="cont" v-html="tableJson.text"></div>
  9375. </el-form>
  9376. <span slot="footer" class="dialog-footer">
  9377. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  9378. </span>
  9379. </el-dialog>
  9380. <el-dialog
  9381. title="文档"
  9382. :visible.sync="dialogVisibleTable3"
  9383. :append-to-body="true"
  9384. width="95%"
  9385. :before-close="handleClose"
  9386. class="dialog_diy"
  9387. >
  9388. <el-form>
  9389. <div class="cont" v-html="tableJson.text"></div>
  9390. </el-form>
  9391. <span slot="footer" class="dialog-footer">
  9392. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  9393. </span>
  9394. </el-dialog>
  9395. <el-dialog
  9396. title="分组设置"
  9397. :visible.sync="dialogVisibleGroup"
  9398. :append-to-body="true"
  9399. width="95%"
  9400. :before-close="handleClose"
  9401. class="dialog_diy"
  9402. >
  9403. <div v-if="dialogVisibleGroup">
  9404. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  9405. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  9406. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  9407. </div>
  9408. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  9409. @click="lockChair">
  9410. 锁定位置
  9411. </div>
  9412. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  9413. 解锁位置
  9414. </div> -->
  9415. <div class="group_switch">
  9416. <span>开放选座</span>
  9417. <el-switch
  9418. v-model="islock"
  9419. active-text=""
  9420. class="switchCss"
  9421. @change="lockChair"
  9422. ></el-switch>
  9423. </div>
  9424. <div
  9425. type="primary"
  9426. @click="updateGroup"
  9427. class="returnBtn"
  9428. style="background-color: #225bc7"
  9429. >
  9430. 分组设置
  9431. </div>
  9432. </div>
  9433. <div>
  9434. <div
  9435. class="g_d_box"
  9436. v-if="groupJson.group && groupStudent[toolindex]"
  9437. >
  9438. <div
  9439. class="g_d_group"
  9440. v-for="(g, gindex) in groupJson.group"
  9441. :key="gindex"
  9442. >
  9443. <div class="g_d_group_chair">
  9444. <div v-if="groupJson.number > 1">
  9445. <span
  9446. :class="{
  9447. isChair:
  9448. groupStudent[toolindex][gindex] &&
  9449. groupStudent[toolindex][gindex][0],
  9450. updateChair:
  9451. courseDetail.userid == userid &&
  9452. groupStudent[toolindex][gindex] &&
  9453. groupStudent[toolindex][gindex][0] &&
  9454. groupJson.islock == 2,
  9455. }"
  9456. ><span
  9457. class="updateChairBtn"
  9458. @click="
  9459. updateGroupChair(
  9460. groupStudent[toolindex][gindex] &&
  9461. groupStudent[toolindex][gindex][0]
  9462. )
  9463. "
  9464. >修改</span
  9465. ></span
  9466. ><span>{{
  9467. groupStudent[toolindex][gindex] &&
  9468. groupStudent[toolindex][gindex][0]
  9469. ? groupStudent[toolindex][gindex] &&
  9470. groupStudent[toolindex][gindex][0].name
  9471. : "空位置"
  9472. }}</span>
  9473. </div>
  9474. <div v-if="groupJson.number > 4">
  9475. <span
  9476. :class="{
  9477. isChair:
  9478. groupStudent[toolindex][gindex] &&
  9479. groupStudent[toolindex][gindex][4],
  9480. updateChair:
  9481. courseDetail.userid == userid &&
  9482. groupStudent[toolindex][gindex] &&
  9483. groupStudent[toolindex][gindex][4] &&
  9484. groupJson.islock == 2,
  9485. }"
  9486. ><span
  9487. class="updateChairBtn"
  9488. @click="
  9489. updateGroupChair(
  9490. groupStudent[toolindex][gindex] &&
  9491. groupStudent[toolindex][gindex][4]
  9492. )
  9493. "
  9494. >修改</span
  9495. ></span
  9496. ><span>{{
  9497. groupStudent[toolindex][gindex] &&
  9498. groupStudent[toolindex][gindex][4]
  9499. ? groupStudent[toolindex][gindex] &&
  9500. groupStudent[toolindex][gindex][4].name
  9501. : "空位置"
  9502. }}</span>
  9503. </div>
  9504. <div v-if="groupJson.number > 8">
  9505. <span
  9506. :class="{
  9507. isChair:
  9508. groupStudent[toolindex][gindex] &&
  9509. groupStudent[toolindex][gindex][8],
  9510. updateChair:
  9511. courseDetail.userid == userid &&
  9512. groupStudent[toolindex][gindex] &&
  9513. groupStudent[toolindex][gindex][8] &&
  9514. groupJson.islock == 2,
  9515. }"
  9516. ><span
  9517. class="updateChairBtn"
  9518. @click="
  9519. updateGroupChair(
  9520. groupStudent[toolindex][gindex] &&
  9521. groupStudent[toolindex][gindex][8]
  9522. )
  9523. "
  9524. >修改</span
  9525. ></span
  9526. ><span>{{
  9527. groupStudent[toolindex][gindex] &&
  9528. groupStudent[toolindex][gindex][8]
  9529. ? groupStudent[toolindex][gindex] &&
  9530. groupStudent[toolindex][gindex][8].name
  9531. : "空位置"
  9532. }}</span>
  9533. </div>
  9534. </div>
  9535. <div class="g_d_group_tableBox">
  9536. <div class="g_d_group_chair2">
  9537. <div v-if="groupJson.number > 2">
  9538. <span
  9539. :class="{
  9540. isChair:
  9541. groupStudent[toolindex][gindex] &&
  9542. groupStudent[toolindex][gindex][2],
  9543. updateChair:
  9544. courseDetail.userid == userid &&
  9545. groupStudent[toolindex][gindex] &&
  9546. groupStudent[toolindex][gindex][2] &&
  9547. groupJson.islock == 2,
  9548. }"
  9549. ><span
  9550. class="updateChairBtn"
  9551. @click="
  9552. updateGroupChair(
  9553. groupStudent[toolindex][gindex] &&
  9554. groupStudent[toolindex][gindex][2]
  9555. )
  9556. "
  9557. >修改</span
  9558. ></span
  9559. ><span>{{
  9560. groupStudent[toolindex][gindex] &&
  9561. groupStudent[toolindex][gindex][2]
  9562. ? groupStudent[toolindex][gindex] &&
  9563. groupStudent[toolindex][gindex][2].name
  9564. : "空位置"
  9565. }}</span>
  9566. </div>
  9567. <div v-if="groupJson.number > 6">
  9568. <span
  9569. :class="{
  9570. isChair:
  9571. groupStudent[toolindex][gindex] &&
  9572. groupStudent[toolindex][gindex][6],
  9573. updateChair:
  9574. courseDetail.userid == userid &&
  9575. groupStudent[toolindex][gindex] &&
  9576. groupStudent[toolindex][gindex][6] &&
  9577. groupJson.islock == 2,
  9578. }"
  9579. ><span
  9580. class="updateChairBtn"
  9581. @click="
  9582. updateGroupChair(
  9583. groupStudent[toolindex][gindex] &&
  9584. groupStudent[toolindex][gindex][6]
  9585. )
  9586. "
  9587. >修改</span
  9588. ></span
  9589. ><span>{{
  9590. groupStudent[toolindex][gindex] &&
  9591. groupStudent[toolindex][gindex][6]
  9592. ? groupStudent[toolindex][gindex] &&
  9593. groupStudent[toolindex][gindex][6].name
  9594. : "空位置"
  9595. }}</span>
  9596. </div>
  9597. </div>
  9598. <div class="g_d_group_table">
  9599. <div>
  9600. {{ g.name }}
  9601. </div>
  9602. <div>
  9603. <div
  9604. v-if="
  9605. courseDetail.userid == userid && groupJson.islock == 2
  9606. "
  9607. @click="deleteGroupChair(gindex)"
  9608. >
  9609. 移除组员
  9610. </div>
  9611. <div
  9612. @click="selectGroup(gindex)"
  9613. v-else-if="
  9614. groupStudentUid[toolindex] &&
  9615. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  9616. "
  9617. >
  9618. 加入分组
  9619. </div>
  9620. <div
  9621. @click="
  9622. exitGroup(
  9623. groupStudent[toolindex][gindex] &&
  9624. groupStudent[toolindex][gindex][
  9625. groupStudentUid[toolindex][gindex].indexOf(userid)
  9626. ].id
  9627. )
  9628. "
  9629. v-else-if="
  9630. groupStudentUid[toolindex] &&
  9631. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  9632. "
  9633. >
  9634. 退出分组
  9635. </div>
  9636. </div>
  9637. </div>
  9638. <div class="g_d_group_chair2">
  9639. <div v-if="groupJson.number > 3">
  9640. <span
  9641. :class="{
  9642. isChair:
  9643. groupStudent[toolindex][gindex] &&
  9644. groupStudent[toolindex][gindex][3],
  9645. updateChair:
  9646. courseDetail.userid == userid &&
  9647. groupStudent[toolindex][gindex] &&
  9648. groupStudent[toolindex][gindex][3] &&
  9649. groupJson.islock == 2,
  9650. }"
  9651. ><span
  9652. class="updateChairBtn"
  9653. @click="
  9654. updateGroupChair(
  9655. groupStudent[toolindex][gindex] &&
  9656. groupStudent[toolindex][gindex][3]
  9657. )
  9658. "
  9659. >修改</span
  9660. ></span
  9661. ><span>{{
  9662. groupStudent[toolindex][gindex] &&
  9663. groupStudent[toolindex][gindex][3]
  9664. ? groupStudent[toolindex][gindex] &&
  9665. groupStudent[toolindex][gindex][3].name
  9666. : "空位置"
  9667. }}</span>
  9668. </div>
  9669. <div v-if="groupJson.number > 7">
  9670. <span
  9671. :class="{
  9672. isChair:
  9673. groupStudent[toolindex][gindex] &&
  9674. groupStudent[toolindex][gindex][7],
  9675. updateChair:
  9676. courseDetail.userid == userid &&
  9677. groupStudent[toolindex][gindex] &&
  9678. groupStudent[toolindex][gindex][7] &&
  9679. groupJson.islock == 2,
  9680. }"
  9681. ><span
  9682. class="updateChairBtn"
  9683. @click="
  9684. updateGroupChair(
  9685. groupStudent[toolindex][gindex] &&
  9686. groupStudent[toolindex][gindex][7]
  9687. )
  9688. "
  9689. >修改</span
  9690. ></span
  9691. ><span>{{
  9692. groupStudent[toolindex][gindex] &&
  9693. groupStudent[toolindex][gindex][7]
  9694. ? groupStudent[toolindex][gindex] &&
  9695. groupStudent[toolindex][gindex][7].name
  9696. : "空位置"
  9697. }}</span>
  9698. </div>
  9699. </div>
  9700. </div>
  9701. <div class="g_d_group_chair">
  9702. <div v-if="groupJson.number > 1">
  9703. <span
  9704. :class="{
  9705. isChair:
  9706. groupStudent[toolindex][gindex] &&
  9707. groupStudent[toolindex][gindex][1],
  9708. updateChair:
  9709. courseDetail.userid == userid &&
  9710. groupStudent[toolindex][gindex] &&
  9711. groupStudent[toolindex][gindex][1] &&
  9712. groupJson.islock == 2,
  9713. }"
  9714. ><span
  9715. class="updateChairBtn"
  9716. @click="
  9717. updateGroupChair(
  9718. groupStudent[toolindex][gindex] &&
  9719. groupStudent[toolindex][gindex][1]
  9720. )
  9721. "
  9722. >修改</span
  9723. ></span
  9724. ><span>{{
  9725. groupStudent[toolindex][gindex] &&
  9726. groupStudent[toolindex][gindex][1]
  9727. ? groupStudent[toolindex][gindex] &&
  9728. groupStudent[toolindex][gindex][1].name
  9729. : "空位置"
  9730. }}</span>
  9731. </div>
  9732. <div v-if="groupJson.number > 5">
  9733. <span
  9734. :class="{
  9735. isChair:
  9736. groupStudent[toolindex][gindex] &&
  9737. groupStudent[toolindex][gindex][5],
  9738. updateChair:
  9739. courseDetail.userid == userid &&
  9740. groupStudent[toolindex][gindex] &&
  9741. groupStudent[toolindex][gindex][5] &&
  9742. groupJson.islock == 2,
  9743. }"
  9744. ><span
  9745. class="updateChairBtn"
  9746. @click="
  9747. updateGroupChair(
  9748. groupStudent[toolindex][gindex] &&
  9749. groupStudent[toolindex][gindex][5]
  9750. )
  9751. "
  9752. >修改</span
  9753. ></span
  9754. ><span>{{
  9755. groupStudent[toolindex][gindex] &&
  9756. groupStudent[toolindex][gindex][5]
  9757. ? groupStudent[toolindex][gindex] &&
  9758. groupStudent[toolindex][gindex][5].name
  9759. : "空位置"
  9760. }}</span>
  9761. </div>
  9762. <div v-if="groupJson.number > 9">
  9763. <span
  9764. :class="{
  9765. isChair:
  9766. groupStudent[toolindex][gindex] &&
  9767. groupStudent[toolindex][gindex][9],
  9768. updateChair:
  9769. courseDetail.userid == userid &&
  9770. groupStudent[toolindex][gindex] &&
  9771. groupStudent[toolindex][gindex][9] &&
  9772. groupJson.islock == 2,
  9773. }"
  9774. ><span
  9775. class="updateChairBtn"
  9776. @click="
  9777. updateGroupChair(
  9778. groupStudent[toolindex][gindex] &&
  9779. groupStudent[toolindex][gindex][9]
  9780. )
  9781. "
  9782. >修改</span
  9783. ></span
  9784. ><span>{{
  9785. groupStudent[toolindex][gindex] &&
  9786. groupStudent[toolindex][gindex][9]
  9787. ? groupStudent[toolindex][gindex] &&
  9788. groupStudent[toolindex][gindex][9].name
  9789. : "空位置"
  9790. }}</span>
  9791. </div>
  9792. </div>
  9793. </div>
  9794. </div>
  9795. </div>
  9796. </div>
  9797. <span slot="footer" class="dialog-footer">
  9798. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  9799. </span>
  9800. </el-dialog>
  9801. <el-dialog
  9802. title="分组设置"
  9803. :visible.sync="dialogVisibleGroup2"
  9804. :append-to-body="true"
  9805. width="650px"
  9806. :before-close="handleClose"
  9807. class="dialog_diy"
  9808. >
  9809. <div class="groupBox">
  9810. <div v-if="groupJson2.group" class="groupContent">
  9811. <div class="groupTitle">请设置小组数量</div>
  9812. <div
  9813. v-for="(item, index) in groupJson2.group"
  9814. :key="index"
  9815. class="groupName"
  9816. >
  9817. <span class="groupn">组{{ index + 1 }}名称:</span>
  9818. <el-input
  9819. v-model="item.name"
  9820. placeholder="请输入名称..."
  9821. style="width: 250px"
  9822. ></el-input>
  9823. <!-- <div class="groupBtn">
  9824. <el-button type="primary" size="small" @click="addGroup(index)">
  9825. 添加</el-button>
  9826. <el-button type="primary" size="small" @click="deleteGroup(index)"
  9827. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  9828. </div> -->
  9829. </div>
  9830. </div>
  9831. <div class="groupContent">
  9832. <div class="groupTitle">请设置每组人数数量</div>
  9833. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  9834. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  9835. <el-input-number
  9836. v-model="groupJson2.number"
  9837. :controls="false"
  9838. :min="2"
  9839. :max="10"
  9840. placeholder="2-10人以内"
  9841. ></el-input-number>
  9842. </div>
  9843. </div>
  9844. <span slot="footer" class="dialog-footer">
  9845. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  9846. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  9847. </span>
  9848. </el-dialog>
  9849. <el-dialog
  9850. title="作业提交"
  9851. :visible.sync="dialogVisibleGroupWork"
  9852. :append-to-body="true"
  9853. width="500px"
  9854. :before-close="handleClose"
  9855. class="dialog_change"
  9856. >
  9857. <div class="marginT">
  9858. <div>上传文件</div>
  9859. <div
  9860. class="chapter_add"
  9861. @click="addImg($event)"
  9862. v-if="studyJuri[0].cover.length == 0"
  9863. >
  9864. <div class="up_photo">
  9865. <img src="../assets/icon/uploadImg.png" alt />
  9866. </div>
  9867. <!-- <input
  9868. type="file"
  9869. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9870. style="display: none"
  9871. @change="beforeUpload1($event, 1)"
  9872. /> -->
  9873. <input
  9874. type="file"
  9875. accept="*"
  9876. style="display: none"
  9877. @change="beforeUpload1($event, 1)"
  9878. />
  9879. </div>
  9880. <!-- capture="camera" -->
  9881. <div
  9882. class="chapter_add"
  9883. style="
  9884. display: flex;
  9885. width: 100%;
  9886. flex-direction: row;
  9887. flex-wrap: wrap;
  9888. justify-content: flex-start;
  9889. padding: 15px 0;
  9890. "
  9891. v-if="studyJuri[0].cover.length > 0"
  9892. >
  9893. <div class="upCover">
  9894. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  9895. <img :src="word" alt v-else-if="fileType == 1" />
  9896. <img :src="video" alt v-else-if="fileType == 2" />
  9897. <img :src="word2" alt v-else-if="fileType == 3" />
  9898. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9899. <div class="deleteWord" @click="clean(1)">
  9900. <img src="../assets/icon/deleteWorks.png" alt />
  9901. </div>
  9902. </div>
  9903. </div>
  9904. </div>
  9905. <div
  9906. class="upload_send"
  9907. @click="addCourseWorks2(taskCount)"
  9908. v-if="!proVisible"
  9909. >
  9910. 提交
  9911. </div>
  9912. </el-dialog>
  9913. <el-dialog
  9914. title="修改分组"
  9915. :visible.sync="dialogVisibleUpdateGroup"
  9916. :append-to-body="true"
  9917. width="350px"
  9918. :before-close="handleClose"
  9919. class="dialog_diy"
  9920. >
  9921. <div>
  9922. <h2>
  9923. {{ this.updateGroupUser.name }}
  9924. </h2>
  9925. <div style="color: rgb(171 171 171); margin-top: 10px">
  9926. 请选择要进入的分组
  9927. </div>
  9928. <el-radio-group v-model="checkChair">
  9929. <el-radio
  9930. style="display: block; margin-top: 20px"
  9931. v-for="(item, index) in updateGroupArray"
  9932. :label="item.label"
  9933. :key="index"
  9934. >{{ item.name }}</el-radio
  9935. >
  9936. </el-radio-group>
  9937. </div>
  9938. <span slot="footer" class="dialog-footer">
  9939. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  9940. <el-button type="primary" @click="updateChair">确定</el-button>
  9941. </span>
  9942. </el-dialog>
  9943. <el-dialog
  9944. title="移除组员"
  9945. :visible.sync="dialogVisibleDeleteGroup"
  9946. :append-to-body="true"
  9947. width="350px"
  9948. :before-close="handleClose"
  9949. class="dialog_diy"
  9950. >
  9951. <div>
  9952. <h2>
  9953. {{ this.deleteGroupArray.name }}
  9954. </h2>
  9955. <div style="color: rgb(171 171 171); margin-top: 10px">
  9956. 请选择要删除的组员
  9957. </div>
  9958. <el-checkbox-group v-model="checkDeleteGroup">
  9959. <el-checkbox
  9960. style="display: block; margin-top: 20px"
  9961. v-for="(item, index) in deleteGroupUser"
  9962. :label="item.userid"
  9963. :key="index"
  9964. >{{ item.name }}</el-checkbox
  9965. >
  9966. </el-checkbox-group>
  9967. </div>
  9968. <span slot="footer" class="dialog-footer">
  9969. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  9970. <el-button type="primary" @click="deleteChair">确定</el-button>
  9971. </span>
  9972. </el-dialog>
  9973. <el-dialog
  9974. title="批量上传"
  9975. :visible.sync="dialogVisiblePl"
  9976. :append-to-body="true"
  9977. width="700px"
  9978. :before-close="handleClose"
  9979. class="dialog_change"
  9980. >
  9981. <div class="marginT">
  9982. <div class="plworkBox">
  9983. <div
  9984. class="chapter_add"
  9985. style="
  9986. display: flex;
  9987. width: 150px;
  9988. flex-direction: row;
  9989. flex-wrap: wrap;
  9990. justify-content: flex-start;
  9991. margin: 0 10px 10px 0;
  9992. "
  9993. v-for="(item, index) in plworkFile"
  9994. :key="index"
  9995. >
  9996. <div class="upCover2">
  9997. <img
  9998. :src="item.url"
  9999. alt
  10000. v-if="item.fileType == 1"
  10001. @click="previewImg(item.url)"
  10002. />
  10003. <img :src="word" alt v-else-if="item.fileType == 4" />
  10004. <img :src="video" alt v-else />
  10005. <!-- <span class="picName">{{ item.name }}</span> -->
  10006. <!-- <el-input
  10007. v-model="item.username"
  10008. placeholder="请输入学生名字"
  10009. style="margin-top: 10px"
  10010. ></el-input> -->
  10011. <div
  10012. class="pl_select_box"
  10013. @click="
  10014. getUpdateMore(true, checkUpload(), item.username, index)
  10015. "
  10016. >
  10017. {{ getSName(item.username) }}
  10018. </div>
  10019. <!-- <el-select
  10020. style="margin-top: 10px"
  10021. v-model="item.username"
  10022. filterable
  10023. allow-create
  10024. placeholder="请选择学生"
  10025. >
  10026. <el-option
  10027. v-for="item1 in checkUpload()"
  10028. :key="item1.userid"
  10029. :label="item1.name ? item1.name : item1.username"
  10030. :value="item1.userid"
  10031. >
  10032. </el-option>
  10033. </el-select> -->
  10034. <div class="deleteWord" @click="clean2(index)">
  10035. <img src="../assets/icon/deleteWorks.png" alt />
  10036. </div>
  10037. </div>
  10038. </div>
  10039. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  10040. <div class="up_photo2">
  10041. <img src="../assets/icon/plwork.png" alt />
  10042. <span>点击上传文件</span>
  10043. </div>
  10044. <input
  10045. type="file"
  10046. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10047. multiple="multiple"
  10048. style="display: none"
  10049. @change="beforeUpload3($event, 6)"
  10050. />
  10051. </div>
  10052. </div>
  10053. </div>
  10054. <!-- capture="camera" -->
  10055. <div
  10056. class="upload_send"
  10057. @click="addCourseWorksPl(taskCount)"
  10058. v-if="!proVisible2"
  10059. >
  10060. 提交
  10061. </div>
  10062. </el-dialog>
  10063. <el-dialog
  10064. title="修改名称"
  10065. :visible.sync="dialogVisibleSname"
  10066. width="500px"
  10067. :before-close="handleClose"
  10068. class="dialog_diy"
  10069. center
  10070. >
  10071. <div
  10072. style="
  10073. text-align: center;
  10074. display: flex;
  10075. align-items: center;
  10076. justify-content: center;
  10077. "
  10078. >
  10079. <span class="tian1">名称</span>
  10080. <div
  10081. class="pl_select_box"
  10082. style="margin-left: 10px; width: 200px"
  10083. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  10084. >
  10085. {{ getSName(worksSName) }}
  10086. </div>
  10087. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  10088. placeholder="请选择学生">
  10089. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  10090. :value="item.userid">
  10091. </el-option>
  10092. </el-select> -->
  10093. <!-- <el-input
  10094. v-model="worksSName"
  10095. style="width: 250px; margin: 15px 0px"
  10096. ></el-input> -->
  10097. </div>
  10098. <span slot="footer" class="dialog-footer">
  10099. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  10100. <el-button type="primary" @click="updateName">确 定</el-button>
  10101. </span>
  10102. </el-dialog>
  10103. <interVideo
  10104. :dialogVisibleVideo.sync="dialogVisibleVideo"
  10105. :videoJson="videoJson"
  10106. :userid="userid"
  10107. :id="id"
  10108. :courseType="courseType"
  10109. :taskCount="taskCount"
  10110. :toolindex="toolindex"
  10111. ></interVideo>
  10112. <UpdateMore
  10113. :dialogVisibleMember.sync="dialogVisibleMember"
  10114. :cList="uploadStudentJuri"
  10115. :userid="userid"
  10116. :searchTN="worksSName2"
  10117. @setPlname="setPlname"
  10118. ></UpdateMore>
  10119. </div>
  10120. </template>
  10121. <script>
  10122. import "../common/aws-sdk-2.235.1.min.js";
  10123. // import pdf from "./components/pdf3";
  10124. import pdf from "./components/vpdf";
  10125. import AskStatic from "./components/askStatic";
  10126. import AskStatic2 from "./components/askStatic2";
  10127. import AnswerData2 from "./components/answerData2";
  10128. import AnswerData from "./components/answerData";
  10129. import EditorBar from "./tools/wangEnduit.vue";
  10130. import Table from "./tools/table.vue";
  10131. import Time from "./tools/time.vue";
  10132. import Mind from "./tools/jsmind.vue";
  10133. import Sunburst from "./tools/sunburst";
  10134. import SeeBoard from "./tools/seeBoard";
  10135. import * as imageConversion from "image-conversion";
  10136. import Audio from "./components/audio.vue";
  10137. import ImgDraw from "./tools/imgDraw/imgDraw";
  10138. import { Empty } from "element-ui";
  10139. import RecordRTC from "recordrtc";
  10140. import interVideo from "./interVideo/index.vue";
  10141. import UpdateMore from "./updateMore/updateMore.vue";
  10142. export default {
  10143. components: {
  10144. EditorBar,
  10145. Time,
  10146. pdf,
  10147. AskStatic,
  10148. AskStatic2,
  10149. Mind,
  10150. Sunburst,
  10151. SeeBoard,
  10152. AnswerData2,
  10153. AnswerData,
  10154. Audio,
  10155. ImgDraw,
  10156. Table,
  10157. interVideo,
  10158. UpdateMore,
  10159. },
  10160. data() {
  10161. return {
  10162. bg: null,
  10163. drawShow: false,
  10164. dialogVisible: false,
  10165. dialogVisiblePl: false,
  10166. commentDialogVisible: false,
  10167. dialogVisibleMember: false,
  10168. videoVisible: false,
  10169. isStar: false,
  10170. studentEvalDialogVisible: false,
  10171. studentEvalDialogVisibleTeacher: false,
  10172. dialogVisibleSelect: false,
  10173. dialogVisibleSelectTeacher: false,
  10174. dialogVisibleScore: false,
  10175. dialogVisibleSentence: false,
  10176. dialogVisibleSentenceTeacher: false,
  10177. dialogVisibleSentence1: false,
  10178. dialogVisibleWorks: false,
  10179. dialogVisibleTable: false,
  10180. dialogVisibleTableTeacher: false,
  10181. dialogVisibleWord: false,
  10182. dialogVisibleWordTeacher: false,
  10183. dialogVisibleTable2: false,
  10184. dialogVisibleTable3: false,
  10185. dialogVisibleGroupWork: false,
  10186. dialogVisibleUpdateGroup: false,
  10187. dialogVisibleDeleteGroup: false,
  10188. dialogVisibleSname: false,
  10189. dialogVisibleVideo: false,
  10190. worksSName: "",
  10191. classJuri: [],
  10192. uploadStudentJuri: [],
  10193. uploadCid: "",
  10194. snameWid: "",
  10195. sStudent: {},
  10196. sTool: "",
  10197. bzText: "",
  10198. commentDetail: [],
  10199. selectAnswer: [],
  10200. videoDetail: {},
  10201. selectJson: {},
  10202. eScore: { eBzText: "", eStar: [] },
  10203. id: this.$route.query.courseId,
  10204. userid: this.$route.query.userid,
  10205. classId: this.$route.query.cid,
  10206. // courseTypeLine: this.$route.query.type,
  10207. oid: this.$route.query.oid,
  10208. org: this.$route.query.org,
  10209. tType: this.$route.query.tType,
  10210. courseType: this.$route.query.type,
  10211. screenType: this.$route.query.screenType,
  10212. tcid2: this.$route.query.tcid,
  10213. tcid: "",
  10214. pptImgUrl: "",
  10215. pptImgUrl1: "",
  10216. commentText: "",
  10217. full: false,
  10218. sIsOpen: false,
  10219. IsLookOpen: false,
  10220. IsFollow: false,
  10221. pzDialog: false,
  10222. contentDialog: false,
  10223. mlDialog: false,
  10224. type: 1,
  10225. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  10226. sentenceList1: [],
  10227. tableJson: [],
  10228. tableJsonO: [],
  10229. wordJson: [],
  10230. wordJsonO: [],
  10231. vedio: [],
  10232. text: [],
  10233. textList: [],
  10234. line: [],
  10235. lineList: [],
  10236. chapTools: [],
  10237. chapToolList: [],
  10238. file: [],
  10239. fileC: [],
  10240. vedioTime: [],
  10241. upToolImg: "",
  10242. preTime: 0,
  10243. rateList: {
  10244. ca: 0,
  10245. },
  10246. rateParams: [],
  10247. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  10248. studyJuri: [
  10249. {
  10250. content: "",
  10251. cover: [],
  10252. upVedio: [],
  10253. upFile: [],
  10254. },
  10255. ],
  10256. plworkFile: [],
  10257. mr: require("../assets/vedioPic.png"),
  10258. word: require("../assets/icon/isWord.png"),
  10259. word2: require("../assets/icon/word2.png"),
  10260. video: require("../assets/icon/isVideo.png"),
  10261. noLikes: require("../assets/icon/comment/noLikes.png"),
  10262. likes: require("../assets/icon/comment/likes.png"),
  10263. scoreImg: require("../assets/score.png"),
  10264. courseDetail: {},
  10265. isSelect: false,
  10266. chapInfo: [],
  10267. chapInfoList: [],
  10268. taskCount: 0,
  10269. imgList: [],
  10270. noImgList: [],
  10271. pzList: [],
  10272. PlTextList: [
  10273. "Excellent!",
  10274. "nice!",
  10275. "很有创意!",
  10276. "还不错哦~",
  10277. "继续努力哦~",
  10278. ],
  10279. isClickNav: "",
  10280. navId: "",
  10281. playerOptions: {
  10282. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10283. autoplay: false, //如果true,浏览器准备好时开始回放。
  10284. muted: false, // 默认情况下将会消除任何音频。
  10285. loop: false, // 导致视频一结束就重新开始。
  10286. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10287. language: "zh-CN",
  10288. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10289. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10290. sources: [
  10291. {
  10292. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10293. src: "", //url地址require("../../assets/media/aaa.mp4")
  10294. },
  10295. ],
  10296. // poster: require("../../assets/tu31.png"), //你的封面地址
  10297. // poster: dataRes.imgUrl, //你的封面地址
  10298. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10299. controlBar: {
  10300. timeDivider: true, //当前时间和持续时间的分隔符
  10301. durationDisplay: true, //显示持续时间
  10302. remainingTimeDisplay: false, //是否显示剩余时间功能
  10303. fullscreenToggle: true, //全屏按钮
  10304. },
  10305. },
  10306. playerOptions1: {
  10307. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  10308. autoplay: false, //如果true,浏览器准备好时开始回放。
  10309. muted: false, // 默认情况下将会消除任何音频。
  10310. loop: false, // 导致视频一结束就重新开始。
  10311. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  10312. language: "zh-CN",
  10313. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  10314. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  10315. sources: [
  10316. {
  10317. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  10318. src: "", //url地址require("../../assets/media/aaa.mp4")
  10319. },
  10320. ],
  10321. // poster: require("../../assets/tu31.png"), //你的封面地址
  10322. // poster: dataRes.imgUrl, //你的封面地址
  10323. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  10324. controlBar: {
  10325. timeDivider: true, //当前时间和持续时间的分隔符
  10326. durationDisplay: true, //显示持续时间
  10327. remainingTimeDisplay: false, //是否显示剩余时间功能
  10328. fullscreenToggle: true, //全屏按钮
  10329. },
  10330. },
  10331. playerO: {},
  10332. noneBtnImg: false,
  10333. proVisible: false,
  10334. proVisible2: false,
  10335. progress: 0,
  10336. isFinishSize: 0,
  10337. isAllSize: 0,
  10338. questionAnswer: "",
  10339. answerQ: "", //问答标题
  10340. rateJson: [],
  10341. wbCount: 0,
  10342. wordCount: 0,
  10343. mindCount: 0,
  10344. askCount: 0,
  10345. noteCount: 0,
  10346. mindNetWorkCount: 0,
  10347. libraryCount: 0,
  10348. workCount: 0,
  10349. timeCount: 0,
  10350. answerCount: 0,
  10351. trainCount: 0,
  10352. evalCount: 0,
  10353. dialogImageUrl: "",
  10354. pictureDialog: false,
  10355. toolTypeList: [],
  10356. dialogVisible1: false,
  10357. dialogVisible2: false,
  10358. dialogVisible3: false,
  10359. dialogVisible6: false,
  10360. dialogVisible4: false,
  10361. isNoHomeWork: false,
  10362. dialogVisible5: false,
  10363. dialogVisible5Teacher: false,
  10364. dialogVisibleChoice: false,
  10365. dialogVisibleChoiceTeacher: false,
  10366. answerDialogVisible: false,
  10367. answerDialogVisibleTeacher: false,
  10368. juriVisible: false,
  10369. timeDialogVisible: false,
  10370. radio: [],
  10371. isAsk: false,
  10372. askJson: {
  10373. askCount: 1,
  10374. askTitle: "",
  10375. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10376. },
  10377. testJson: {},
  10378. checkJson: [],
  10379. askList: [],
  10380. answerList: [],
  10381. navList: [],
  10382. addPzDialog: false,
  10383. pzConText: "",
  10384. worksStudent: [],
  10385. isCloseList: [],
  10386. workStudent: [],
  10387. groupStudent: [],
  10388. groupStudentUid: [],
  10389. noWorksS: [],
  10390. isWorksS: [],
  10391. noWorksStudent: [],
  10392. toolindex: 0,
  10393. groupIndex: 0,
  10394. workTypeB: false,
  10395. workTypeC: false,
  10396. isAnswer: false,
  10397. timer: null,
  10398. opertimer: null,
  10399. showType: 0,
  10400. fileType: 0,
  10401. showPDF: false,
  10402. noteName: "",
  10403. evaJuri: [],
  10404. evalua: "",
  10405. eTitle: "",
  10406. eName: "",
  10407. eJson: {},
  10408. fid: "", //一级
  10409. sid: "", //二级
  10410. tid: "", //二级
  10411. typeMode: 1,
  10412. eJSONNum: 0,
  10413. Etype: 1,
  10414. data: {
  10415. meta: {
  10416. name: "example",
  10417. author: "dd@163.com",
  10418. version: "0.2",
  10419. },
  10420. format: "node_array",
  10421. data: [{ id: "root", isroot: true, topic: "" }],
  10422. },
  10423. fullDialogVisible: false,
  10424. fulltype: "",
  10425. fullUrl: "",
  10426. commentIndexJson: {},
  10427. Stbodywidth: 0,
  10428. ispzType: 0,
  10429. pzType: 1,
  10430. wScore: 0,
  10431. scoreDetail: "",
  10432. videoStart: false,
  10433. recorder: null,
  10434. groupJson: {},
  10435. islock: false,
  10436. groupJson2: {},
  10437. dialogVisibleGroup: false,
  10438. dialogVisibleGroup2: false,
  10439. updateGroupArray: [],
  10440. updateGroupUser: {},
  10441. deleteGroupUser: [],
  10442. deleteGroupArray: {},
  10443. checkChair: "",
  10444. checkDeleteGroup: [],
  10445. inviteCode: "",
  10446. courseGroupStudent: [],
  10447. courseGroupStudentUid: [],
  10448. courseGroup: {},
  10449. isGroup: false,
  10450. toolIndex: null,
  10451. tool: {},
  10452. isWorkTool: [
  10453. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  10454. ], //, 40
  10455. videoJson: {},
  10456. toolType: 1,
  10457. checktoolArray: [],
  10458. vChapterData: [],
  10459. isUpdateToolDetail: false,
  10460. checkboxList: [],
  10461. plIndex: "",
  10462. worksSName2: "",
  10463. worksSid: "",
  10464. };
  10465. },
  10466. methods: {
  10467. addToolChoose() {
  10468. if (!this.checktoolArray.length) {
  10469. this.$message.error("请选择要添加的任务");
  10470. return;
  10471. }
  10472. if (
  10473. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10474. this.taskCount
  10475. ].toolChoose[0].tool.length
  10476. ) {
  10477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10478. this.taskCount
  10479. ].toolChoose[0].tool = this.checktoolArray;
  10480. } else {
  10481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10482. this.taskCount
  10483. ].toolChoose.push({
  10484. tool: this.checktoolArray,
  10485. toolDetail: "",
  10486. toolType: 1,
  10487. askCount: 1,
  10488. askTitle: "",
  10489. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  10490. });
  10491. }
  10492. let params = [
  10493. {
  10494. cid: this.id,
  10495. chapters: JSON.stringify(this.chapInfoList),
  10496. uid: this.userid,
  10497. unitIndex: this.courseType,
  10498. },
  10499. ];
  10500. this.ajax
  10501. .post(this.$store.state.api + "updateWorkNew4", params)
  10502. .then((res) => {
  10503. this.$message({
  10504. message: "添加成功",
  10505. type: "success",
  10506. });
  10507. this.checktoolArray = [];
  10508. this.getCourseDetail(2);
  10509. this.checkBz(
  10510. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10511. this.taskCount
  10512. ].toolChoose.length - 1
  10513. );
  10514. this.$forceUpdate();
  10515. })
  10516. .catch((err) => {
  10517. console.error(err);
  10518. });
  10519. },
  10520. checkBz(index) {
  10521. this.isUpdateToolDetail = false;
  10522. this.$forceUpdate();
  10523. setTimeout(()=>{
  10524. document.scrollingElement.scrollTop = document.querySelectorAll(".filebox")[index].offsetTop + document.querySelector(".student_body").offsetTop
  10525. },500)
  10526. },
  10527. addTools2(i) {
  10528. if (i == 4) {
  10529. // this.openTools2(4);
  10530. this.$message.error("暂未开放");
  10531. return;
  10532. }
  10533. if (i == 45) {
  10534. // this.openTools2(45);
  10535. this.$message.error("暂未开放");
  10536. return;
  10537. }
  10538. if (i == 47) {
  10539. // this.openTools2(47);
  10540. this.$message.error("暂未开放");
  10541. return;
  10542. }
  10543. if (i == 49) {
  10544. // this.openTools2(49);
  10545. this.$message.error("暂未开放");
  10546. return;
  10547. }
  10548. if (i == 62) {
  10549. // this.openTools(itemTaskIndex, 62, toolIndex);
  10550. this.$message.error("暂未开放");
  10551. return;
  10552. }
  10553. if (i == 15) {
  10554. // this.openTools(itemTaskIndex, 15, toolIndex);
  10555. this.$message.error("暂未开放");
  10556. return;
  10557. }
  10558. if (i == 40) {
  10559. // this.openTools(itemTaskIndex, 40, toolIndex);
  10560. this.$message.error("暂未开放");
  10561. return;
  10562. }
  10563. if (i == 41) {
  10564. // this.openTools(itemTaskIndex, 41, toolIndex);
  10565. this.$message.error("暂未开放");
  10566. return;
  10567. }
  10568. if (i == 42) {
  10569. // this.openTools(itemTaskIndex, 42, toolIndex);
  10570. this.$message.error("暂未开放");
  10571. return;
  10572. }
  10573. if (this.checktoolArray.length > 0) {
  10574. if (this.checktoolArray.indexOf(i) != -1) {
  10575. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  10576. } else {
  10577. this.checktoolArray = [];
  10578. this.checktoolArray.push(i);
  10579. }
  10580. } else {
  10581. this.checktoolArray.push(i);
  10582. }
  10583. this.$forceUpdate();
  10584. },
  10585. jump() {
  10586. window.parent.postMessage({ tools: "43" }, "*");
  10587. },
  10588. getUpdateMore(f, checkboxList, searchTN, index) {
  10589. this.dialogVisibleMember = f;
  10590. this.checkboxList = checkboxList;
  10591. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  10592. this.plIndex = index;
  10593. },
  10594. setPlname(a) {
  10595. if (this.plworkFile.length) {
  10596. this.plworkFile[this.plIndex].username = a;
  10597. } else {
  10598. this.worksSName = a;
  10599. }
  10600. this.dialogVisibleMember = false;
  10601. },
  10602. previewImg(url) {
  10603. this.$hevueImgPreview(url);
  10604. },
  10605. checkImg(list){
  10606. if(!list.length){
  10607. return
  10608. }
  10609. this.$hevueImgPreview({
  10610. multiple: true, // 开启多图预览模式
  10611. imgList: list, // 需要预览的多图数组
  10612. })
  10613. },
  10614. change(val) {
  10615. console.log(val);
  10616. },
  10617. goTo(path) {
  10618. this.$router.push(path);
  10619. },
  10620. handlePictureCardPreview(url) {
  10621. this.dialogImageUrl = url;
  10622. this.pictureDialog = true;
  10623. },
  10624. clean(type) {
  10625. if (type == 1) {
  10626. this.studyJuri[0].cover.splice(0, 1);
  10627. } else if (type == 2) {
  10628. this.studyJuri[0].upVedio.splice(0, 1);
  10629. } else {
  10630. this.studyJuri[0].upFile.splice(0, 1);
  10631. }
  10632. },
  10633. clean2(index) {
  10634. this.plworkFile.splice(index, 1);
  10635. },
  10636. handleClose(done) {
  10637. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  10638. this.videoDetail.sources[0].src = "";
  10639. }
  10640. this.commentIndexJson = {};
  10641. done();
  10642. },
  10643. fullTools() {
  10644. this.full = !this.full;
  10645. },
  10646. imgChange(file, fileList, type) {
  10647. if (type == 1) {
  10648. var _tmp = this.studyJuri[0].cover;
  10649. } else if (type == 2) {
  10650. var _tmp = this.studyJuri[0].upVedio;
  10651. } else {
  10652. var _tmp = this.studyJuri[0].upFile;
  10653. }
  10654. this.noneBtnImg = _tmp.length >= 1;
  10655. },
  10656. setContent(bool) {
  10657. this.contentDialog = bool;
  10658. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  10659. document.querySelector(".workd_media").style.height = "650px";
  10660. } else if (document.querySelector(".workd_media")) {
  10661. document.querySelector(".workd_media").style.height = "auto";
  10662. }
  10663. },
  10664. setContent2(bool) {
  10665. this.mlDialog = bool;
  10666. if (
  10667. bool &&
  10668. this.contentDialog &&
  10669. document.querySelector(".workd_media")
  10670. ) {
  10671. document.querySelector(".workd_media").style.height = "650px";
  10672. } else if (document.querySelector(".workd_media")) {
  10673. document.querySelector(".workd_media").style.height = "auto";
  10674. }
  10675. },
  10676. addImg(e) {
  10677. var el = e.currentTarget;
  10678. // this.$message.success('触发上传')
  10679. el.getElementsByTagName("input")[0].click();
  10680. e.target.value = "";
  10681. },
  10682. addSelectAnswer() {
  10683. let params = [
  10684. {
  10685. uid: this.userid,
  10686. cid: this.id,
  10687. stage: this.courseType,
  10688. task: this.taskCount,
  10689. tool: this.toolindex,
  10690. content: this.selectAnswer.answer,
  10691. type: 7,
  10692. },
  10693. ];
  10694. this.ajax
  10695. .post(this.$store.state.api + "addCourseWorks", params)
  10696. .then((res) => {
  10697. this.$message({
  10698. message: "提交成功",
  10699. type: "success",
  10700. });
  10701. this.dialogVisibleSelect = false;
  10702. // this.selectAnswer = {};
  10703. this.selectSWorks();
  10704. this.selectStudent();
  10705. })
  10706. .catch((err) => {
  10707. this.$message.error("提交失败");
  10708. console.error(err);
  10709. });
  10710. },
  10711. addSelectAnswerTeacher() {
  10712. let params = [
  10713. {
  10714. uid: this.sStudent.userid,
  10715. cid: this.id,
  10716. stage: this.courseType,
  10717. task: this.taskCount,
  10718. tool: this.toolindex,
  10719. content: this.selectAnswer.answer,
  10720. type: 7,
  10721. },
  10722. ];
  10723. this.ajax
  10724. .post(this.$store.state.api + "addCourseWorks", params)
  10725. .then((res) => {
  10726. this.$message({
  10727. message: "提交成功",
  10728. type: "success",
  10729. });
  10730. this.dialogVisibleSelectTeacher = false;
  10731. // this.selectAnswer = {};
  10732. this.selectSWorks();
  10733. this.selectStudent();
  10734. })
  10735. .catch((err) => {
  10736. this.$message.error("提交失败");
  10737. console.error(err);
  10738. });
  10739. },
  10740. addSenWorks() {
  10741. for (var i = 0; i < this.sentenceList.length; i++) {
  10742. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10743. if (
  10744. this.sentenceList[i].chooseSenList[j] == undefined ||
  10745. this.sentenceList[i].chooseSenList[j] == ""
  10746. ) {
  10747. this.$message.error("请将答案填写完整!");
  10748. return;
  10749. }
  10750. }
  10751. }
  10752. let params = [
  10753. {
  10754. uid: this.userid,
  10755. cid: this.id,
  10756. stage: this.courseType,
  10757. task: this.taskCount,
  10758. tool: this.toolindex,
  10759. content: JSON.stringify(this.sentenceList),
  10760. type: 9,
  10761. },
  10762. ];
  10763. this.ajax
  10764. .post(this.$store.state.api + "addCourseWorks", params)
  10765. .then((res) => {
  10766. this.$message({
  10767. message: "提交成功",
  10768. type: "success",
  10769. });
  10770. this.dialogVisibleSentence = false;
  10771. // this.selectAnswer = {};
  10772. this.selectSWorks();
  10773. this.selectStudent();
  10774. })
  10775. .catch((err) => {
  10776. this.$message.error("提交失败");
  10777. console.error(err);
  10778. });
  10779. },
  10780. addSenWorksTeacher() {
  10781. for (var i = 0; i < this.sentenceList.length; i++) {
  10782. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  10783. if (
  10784. this.sentenceList[i].chooseSenList[j] == undefined ||
  10785. this.sentenceList[i].chooseSenList[j] == ""
  10786. ) {
  10787. this.$message.error("请将答案填写完整!");
  10788. return;
  10789. }
  10790. }
  10791. }
  10792. let params = [
  10793. {
  10794. uid: this.sStudent.userid,
  10795. cid: this.id,
  10796. stage: this.courseType,
  10797. task: this.taskCount,
  10798. tool: this.toolindex,
  10799. content: JSON.stringify(this.sentenceList),
  10800. type: 9,
  10801. },
  10802. ];
  10803. this.ajax
  10804. .post(this.$store.state.api + "addCourseWorks", params)
  10805. .then((res) => {
  10806. this.$message({
  10807. message: "提交成功",
  10808. type: "success",
  10809. });
  10810. this.dialogVisibleSentenceTeacher = false;
  10811. // this.selectAnswer = {};
  10812. this.selectSWorks();
  10813. this.selectStudent();
  10814. })
  10815. .catch((err) => {
  10816. this.$message.error("提交失败");
  10817. console.error(err);
  10818. });
  10819. },
  10820. returnTableText() {
  10821. this.$confirm("确定还原此模板吗?", "提示", {
  10822. confirmButtonText: "确定",
  10823. cancelButtonText: "取消",
  10824. type: "warning",
  10825. })
  10826. .then(() => {
  10827. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  10828. })
  10829. .catch(() => {});
  10830. },
  10831. addTableWorks() {
  10832. let params = [
  10833. {
  10834. uid: this.userid,
  10835. cid: this.id,
  10836. stage: this.courseType,
  10837. task: this.taskCount,
  10838. tool: this.toolindex,
  10839. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10840. type: 10,
  10841. },
  10842. ];
  10843. this.ajax
  10844. .post(this.$store.state.api + "addCourseWorks", params)
  10845. .then((res) => {
  10846. this.$message({
  10847. message: "提交成功",
  10848. type: "success",
  10849. });
  10850. this.dialogVisibleTable = false;
  10851. // this.selectAnswer = {};
  10852. this.selectSWorks();
  10853. this.selectStudent();
  10854. })
  10855. .catch((err) => {
  10856. this.$message.error("提交失败");
  10857. console.error(err);
  10858. });
  10859. },
  10860. tableRowClassName({ row, rowIndex }) {
  10861. if ((rowIndex + 1) % 2 === 0) {
  10862. return "even_row";
  10863. } else {
  10864. return "";
  10865. }
  10866. },
  10867. addTableWorksTeacher() {
  10868. let params = [
  10869. {
  10870. uid: this.sStudent.userid,
  10871. cid: this.id,
  10872. stage: this.courseType,
  10873. task: this.taskCount,
  10874. tool: this.toolindex,
  10875. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  10876. type: 10,
  10877. },
  10878. ];
  10879. this.ajax
  10880. .post(this.$store.state.api + "addCourseWorks", params)
  10881. .then((res) => {
  10882. this.$message({
  10883. message: "提交成功",
  10884. type: "success",
  10885. });
  10886. this.dialogVisibleTableTeacher = false;
  10887. // this.selectAnswer = {};
  10888. this.selectSWorks();
  10889. this.selectStudent();
  10890. })
  10891. .catch((err) => {
  10892. this.$message.error("提交失败");
  10893. console.error(err);
  10894. });
  10895. },
  10896. returnWordText() {
  10897. this.$confirm("确定还原此模板吗?", "提示", {
  10898. confirmButtonText: "确定",
  10899. cancelButtonText: "取消",
  10900. type: "warning",
  10901. })
  10902. .then(() => {
  10903. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  10904. })
  10905. .catch(() => {});
  10906. },
  10907. addWordWorks() {
  10908. let params = [
  10909. {
  10910. uid: this.userid,
  10911. cid: this.id,
  10912. stage: this.courseType,
  10913. task: this.taskCount,
  10914. tool: this.toolindex,
  10915. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  10916. type: 13,
  10917. atool: 52,
  10918. },
  10919. ];
  10920. console.log(params);
  10921. this.ajax
  10922. .post(this.$store.state.api + "addCourseWorks3-2", params)
  10923. .then((res) => {
  10924. this.$message({
  10925. message: "提交成功",
  10926. type: "success",
  10927. });
  10928. this.dialogVisibleWord = false;
  10929. // this.selectAnswer = {};
  10930. this.selectSWorks();
  10931. this.selectStudent();
  10932. })
  10933. .catch((err) => {
  10934. this.$message.error("提交失败");
  10935. console.error(err);
  10936. });
  10937. },
  10938. addWordWorksTeacher() {
  10939. let params = [
  10940. {
  10941. uid: this.sStudent.userid,
  10942. cid: this.id,
  10943. stage: this.courseType,
  10944. task: this.taskCount,
  10945. tool: this.toolindex,
  10946. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  10947. type: 13,
  10948. atool: 52,
  10949. },
  10950. ];
  10951. console.log(params);
  10952. this.ajax
  10953. .post(this.$store.state.api + "addCourseWorks3-2", params)
  10954. .then((res) => {
  10955. this.$message({
  10956. message: "提交成功",
  10957. type: "success",
  10958. });
  10959. this.dialogVisibleWordTeacher = false;
  10960. // this.selectAnswer = {};
  10961. this.selectSWorks();
  10962. this.selectStudent();
  10963. })
  10964. .catch((err) => {
  10965. this.$message.error("提交失败");
  10966. console.error(err);
  10967. });
  10968. },
  10969. addCourseWorks(i) {
  10970. var typesql;
  10971. if (this.fileType === 0) {
  10972. typesql = 1;
  10973. } else if (this.fileType === 1) {
  10974. typesql = 4;
  10975. } else if (this.fileType === 2) {
  10976. typesql = 5;
  10977. } else if (this.fileType === 3) {
  10978. typesql = 12;
  10979. }
  10980. if (!this.studyJuri[0].cover[0].url) {
  10981. this.$message.error("请上传文件");
  10982. return;
  10983. }
  10984. let params = [
  10985. {
  10986. uid: this.userid,
  10987. cid: this.id,
  10988. stage: this.courseType,
  10989. task: i,
  10990. tool: this.toolindex,
  10991. content: this.studyJuri[0].cover[0].url,
  10992. type: typesql,
  10993. },
  10994. ];
  10995. this.ajax
  10996. .post(this.$store.state.api + "addCourseWorksR", params)
  10997. .then((res) => {
  10998. this.$message({
  10999. message: "提交成功",
  11000. type: "success",
  11001. });
  11002. this.studyJuri[0].cover = [];
  11003. this.dialogVisible = false;
  11004. this.getCourseDetail(2);
  11005. })
  11006. .catch((err) => {
  11007. this.$message.error("提交失败");
  11008. console.error(err);
  11009. });
  11010. },
  11011. addCourseWorksPl(i) {
  11012. let _files = this.plworkFile;
  11013. var c = 1;
  11014. for (var k = 0; k < _files.length; k++) {
  11015. if (!_files[k].username) {
  11016. c = 2;
  11017. }
  11018. }
  11019. if (c == 2) {
  11020. this.$message.error("请填写学生姓名");
  11021. return;
  11022. }
  11023. let params = [
  11024. {
  11025. ateacher: this.userid,
  11026. cid: this.id,
  11027. stage: this.courseType,
  11028. task: i,
  11029. tool: this.toolindex,
  11030. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  11031. },
  11032. ];
  11033. this.ajax
  11034. .post(this.$store.state.api + "addCourseWorksPl", params)
  11035. .then((res) => {
  11036. this.$message({
  11037. message: "提交成功",
  11038. type: "success",
  11039. });
  11040. this.plworkFile = [];
  11041. this.dialogVisiblePl = false;
  11042. this.getCourseDetail(2);
  11043. })
  11044. .catch((err) => {
  11045. this.$message.error("提交失败");
  11046. console.error(err);
  11047. });
  11048. },
  11049. addCourseWorks2(i) {
  11050. var typesql;
  11051. if (this.fileType === 0) {
  11052. typesql = 0;
  11053. } else if (this.fileType === 1) {
  11054. typesql = 1;
  11055. } else if (this.fileType === 2) {
  11056. typesql = 3;
  11057. } else if (this.fileType === 3) {
  11058. typesql = 12;
  11059. }
  11060. if (!this.studyJuri[0].cover[0].url) {
  11061. this.$message.error("请上传文件");
  11062. return;
  11063. }
  11064. let params = [
  11065. {
  11066. uid: this.userid,
  11067. cid: this.id,
  11068. stage: this.courseType,
  11069. task: i,
  11070. tool: this.toolindex,
  11071. content: JSON.stringify({
  11072. type: typesql,
  11073. groupIndex: this.groupIndex,
  11074. url: this.studyJuri[0].cover[0].url,
  11075. }).replaceAll(/%/g, "%25"),
  11076. type: 11,
  11077. atool: 49,
  11078. text: "",
  11079. },
  11080. ];
  11081. this.ajax
  11082. .post(this.$store.state.api + "addCourseWorks5", params)
  11083. .then((res) => {
  11084. this.$message({
  11085. message: "提交成功",
  11086. type: "success",
  11087. });
  11088. this.studyJuri[0].cover = [];
  11089. this.dialogVisibleGroupWork = false;
  11090. this.getCourseDetail(2);
  11091. })
  11092. .catch((err) => {
  11093. this.$message.error("提交失败");
  11094. console.error(err);
  11095. });
  11096. },
  11097. addCourseWorksGong(i, data, tool) {
  11098. let params = [
  11099. {
  11100. uid: this.userid,
  11101. cid: this.id,
  11102. stage: this.courseType,
  11103. task: this.taskCount,
  11104. tool: i,
  11105. content: data,
  11106. type: 12,
  11107. atool: tool,
  11108. text: "",
  11109. },
  11110. ];
  11111. this.ajax
  11112. .post(this.$store.state.api + "addCourseWorks5", params)
  11113. .then((res) => {
  11114. this.$message({
  11115. message: "提交成功",
  11116. type: "success",
  11117. });
  11118. this.studyJuri[0].cover = [];
  11119. this.selectSWorks();
  11120. this.selectStudent();
  11121. })
  11122. .catch((err) => {
  11123. this.$message.error("提交失败");
  11124. console.error(err);
  11125. });
  11126. },
  11127. addCourseWorksGongTeacher(i, data, tool) {
  11128. let params = [
  11129. {
  11130. uid: this.sStudent.userid,
  11131. cid: this.id,
  11132. stage: this.courseType,
  11133. task: this.taskCount,
  11134. tool: i,
  11135. content: data,
  11136. type: 12,
  11137. atool: tool,
  11138. text: "",
  11139. },
  11140. ];
  11141. this.ajax
  11142. .post(this.$store.state.api + "addCourseWorks5", params)
  11143. .then((res) => {
  11144. this.$message({
  11145. message: "提交成功",
  11146. type: "success",
  11147. });
  11148. this.studyJuri[0].cover = [];
  11149. this.dialogVisibleWorks = false;
  11150. this.selectSWorks();
  11151. this.selectStudent();
  11152. })
  11153. .catch((err) => {
  11154. this.$message.error("提交失败");
  11155. console.error(err);
  11156. });
  11157. },
  11158. addCourseWorksGongPl(i, data, tool, type) {
  11159. let params = [
  11160. {
  11161. uid: this.sStudent.userid,
  11162. cid: this.id,
  11163. stage: this.courseType,
  11164. task: this.taskCount,
  11165. tool: i,
  11166. content: data,
  11167. type: type,
  11168. atool: tool,
  11169. text: "",
  11170. },
  11171. ];
  11172. this.ajax
  11173. .post(this.$store.state.api + "addCourseWorks5", params)
  11174. .then((res) => {
  11175. this.$message({
  11176. message: "提交成功",
  11177. type: "success",
  11178. });
  11179. this.studyJuri[0].cover = [];
  11180. this.dialogVisibleWorks = false;
  11181. this.selectSWorks();
  11182. this.selectStudent();
  11183. })
  11184. .catch((err) => {
  11185. this.$message.error("提交失败");
  11186. console.error(err);
  11187. });
  11188. },
  11189. addCourseWorksTeacher(i) {
  11190. var typesql;
  11191. if (this.sTool == 32) {
  11192. this.addCourseWorksGongTeacher(
  11193. this.toolindex,
  11194. this.studyJuri[0].cover[0].url,
  11195. this.sTool
  11196. );
  11197. return;
  11198. }
  11199. if (this.fileType === 0) {
  11200. typesql = 1;
  11201. } else if (this.fileType === 1) {
  11202. typesql = 4;
  11203. } else if (this.fileType === 2) {
  11204. typesql = 5;
  11205. } else if (this.fileType === 3) {
  11206. typesql = 12;
  11207. }
  11208. if (this.sTool == 50) {
  11209. this.addCourseWorksGongPl(
  11210. this.toolindex,
  11211. this.studyJuri[0].cover[0].url,
  11212. this.sTool,
  11213. typesql
  11214. );
  11215. return;
  11216. }
  11217. if (!this.studyJuri[0].cover[0].url) {
  11218. this.$message.error("请上传文件");
  11219. return;
  11220. }
  11221. let params = [
  11222. {
  11223. uid: this.sStudent.userid,
  11224. cid: this.id,
  11225. stage: this.courseType,
  11226. task: i,
  11227. tool: this.toolindex,
  11228. content: this.studyJuri[0].cover[0].url,
  11229. type: typesql,
  11230. ateacher: this.userid,
  11231. },
  11232. ];
  11233. this.ajax
  11234. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  11235. .then((res) => {
  11236. this.$message({
  11237. message: "提交成功",
  11238. type: "success",
  11239. });
  11240. this.studyJuri[0].cover = [];
  11241. this.dialogVisibleWorks = false;
  11242. this.getCourseDetail(2);
  11243. })
  11244. .catch((err) => {
  11245. this.$message.error("提交失败");
  11246. console.error(err);
  11247. });
  11248. },
  11249. selectUploadStudent(type) {
  11250. const loading = this.$loading.service({
  11251. background: "rgba(255, 255, 255, 0.7)",
  11252. target: document.body,
  11253. });
  11254. let params = {
  11255. cid: this.uploadCid,
  11256. oid: this.oid,
  11257. cn: "",
  11258. };
  11259. this.ajax
  11260. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  11261. .then((res) => {
  11262. loading.close();
  11263. var studentK = [];
  11264. if (this.isWorksS[this.toolindex].length > 0) {
  11265. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  11266. studentK.push(this.isWorksS[this.toolindex][z].uid);
  11267. }
  11268. studentK = studentK.join(",");
  11269. }
  11270. this.uploadStudentJuri = res.data[0].filter((el) => {
  11271. return studentK.indexOf(el.userid) == -1;
  11272. });
  11273. if (this.worksSName && this.worksSid) {
  11274. this.uploadStudentJuri.push({
  11275. userid: this.worksSid,
  11276. name: this.worksSName,
  11277. });
  11278. }
  11279. if (type == 1) {
  11280. this.plworkFile = [];
  11281. this.dialogVisibleSname = true;
  11282. } else if (type == 2) {
  11283. this.dialogVisiblePl = true;
  11284. }
  11285. })
  11286. .catch((err) => {
  11287. loading.close();
  11288. console.error(err);
  11289. });
  11290. },
  11291. arrayToArray(arrayo, arrayt) {
  11292. let array1 = arrayo;
  11293. let array2 = arrayt;
  11294. let commonElements = [];
  11295. for (let i = 0; i < array1.length; i++) {
  11296. for (let j = 0; j < array2.length; j++) {
  11297. if (array1[i] === array2[j]) {
  11298. commonElements.push(array1[i]);
  11299. }
  11300. }
  11301. }
  11302. return commonElements;
  11303. },
  11304. selectWorksStudent() {
  11305. let params = {
  11306. oid: this.oid,
  11307. cid: this.courseDetail.juri,
  11308. };
  11309. this.ajax
  11310. .get(this.$store.state.api + "selectWorksStudent", params)
  11311. .then((res) => {
  11312. var a = res.data[0];
  11313. for (var i = 0; i < this.isWorksS.length; i++) {
  11314. this.noWorksS[i] = [];
  11315. var studentK = [];
  11316. if (this.isWorksS[i].length > 0) {
  11317. for (var z = 0; z < this.isWorksS[i].length; z++) {
  11318. studentK.push(this.isWorksS[i][z].uid);
  11319. }
  11320. studentK = studentK.join(",");
  11321. for (var j = 0; j < a.length; j++) {
  11322. if (studentK.indexOf(a[j].userid) == -1) {
  11323. if (this.tcid) {
  11324. // a[j].classid.indexOf(this.tcid) != -1
  11325. if (
  11326. this.arrayToArray(
  11327. a[j].classid.split(","),
  11328. this.tcid.split(",")
  11329. ).length
  11330. ) {
  11331. this.noWorksS[i].push({
  11332. student: a[j].name,
  11333. userid: a[j].userid,
  11334. });
  11335. }
  11336. } else {
  11337. this.noWorksS[i].push({
  11338. student: a[j].name,
  11339. userid: a[j].userid,
  11340. });
  11341. }
  11342. }
  11343. }
  11344. } else {
  11345. for (var k = 0; k < a.length; k++) {
  11346. if (this.tcid) {
  11347. if (
  11348. this.arrayToArray(
  11349. a[k].classid.split(","),
  11350. this.tcid.split(",")
  11351. ).length
  11352. ) {
  11353. this.noWorksS[i].push({
  11354. student: a[k].name,
  11355. userid: a[k].userid,
  11356. });
  11357. }
  11358. } else {
  11359. this.noWorksS[i].push({
  11360. student: a[k].name,
  11361. userid: a[k].userid,
  11362. });
  11363. }
  11364. }
  11365. }
  11366. }
  11367. this.$forceUpdate();
  11368. if (
  11369. Object.keys(this.commentDetail).length &&
  11370. Object.keys(this.commentIndexJson).length &&
  11371. !this.dialogVisibleScore
  11372. ) {
  11373. let a = 1;
  11374. let c = this.commentIndexJson;
  11375. console.log(c);
  11376. if (
  11377. this.commentIndexJson.gindex ||
  11378. this.commentIndexJson.gindex === 0
  11379. ) {
  11380. for (
  11381. var i = 0;
  11382. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11383. i++
  11384. ) {
  11385. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  11386. groupA: for (var k = 0; k < _el.length; k++) {
  11387. let el = _el[k];
  11388. if (el.wid == this.commentDetail.wid) {
  11389. a = 2;
  11390. this.commentOther(
  11391. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  11392. this.commentIndexJson.toolIndex,
  11393. k,
  11394. this.commentIndexJson.gindex
  11395. );
  11396. break groupA;
  11397. }
  11398. }
  11399. }
  11400. if (a === 1) {
  11401. this.commentDetail = [];
  11402. this.commentIndexJson = {};
  11403. this.commentDialogVisible = false;
  11404. this.$message("此作业已被删除");
  11405. }
  11406. } else {
  11407. if (this.isGroup && this.commentIndexJson.gid) {
  11408. groupA: for (
  11409. var i = 0;
  11410. i < this.courseGroup.group.length;
  11411. i++
  11412. ) {
  11413. let _group = this.courseGroup.group[i];
  11414. if (_group.id == this.commentIndexJson.gid) {
  11415. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  11416. for (var k = 0; k < _el2.length; k++) {
  11417. let el2 = _el2[k];
  11418. if (el2.wid == this.commentDetail.wid) {
  11419. a = 2;
  11420. this.commentOther(
  11421. _el2[k],
  11422. this.commentIndexJson.toolIndex,
  11423. k,
  11424. null,
  11425. this.commentIndexJson.gid
  11426. );
  11427. break groupA;
  11428. }
  11429. }
  11430. }
  11431. }
  11432. }
  11433. if (a == 1) {
  11434. for (
  11435. var i = 0;
  11436. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  11437. i++
  11438. ) {
  11439. let el =
  11440. this.worksStudent[this.commentIndexJson.toolIndex][i];
  11441. if (el.wid == this.commentDetail.wid) {
  11442. a = 2;
  11443. this.commentOther(
  11444. this.worksStudent[this.commentIndexJson.toolIndex][i],
  11445. this.commentIndexJson.toolIndex,
  11446. i
  11447. );
  11448. break;
  11449. }
  11450. }
  11451. }
  11452. if (a === 1) {
  11453. this.commentDetail = [];
  11454. this.commentIndexJson = {};
  11455. this.commentDialogVisible = false;
  11456. this.$message("此作业已被删除");
  11457. }
  11458. }
  11459. }
  11460. })
  11461. .catch((err) => {
  11462. console.error(err);
  11463. });
  11464. },
  11465. selectStudent() {
  11466. //学生查看自己作业
  11467. let params = {
  11468. uid: this.userid,
  11469. cid: this.id,
  11470. s: this.courseType,
  11471. t: this.taskCount,
  11472. };
  11473. this.ajax
  11474. .get(this.$store.state.api + "selectStudentWorks", params)
  11475. .then((res) => {
  11476. var a =
  11477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11478. this.taskCount
  11479. ].toolChoose;
  11480. var b = res.data[0];
  11481. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  11482. var y = [
  11483. "AVI",
  11484. "NAVI",
  11485. "MPEG",
  11486. "ASF",
  11487. "MOV",
  11488. "WMV",
  11489. "3GP",
  11490. "RM",
  11491. "RMVB",
  11492. "FLV",
  11493. "F4V",
  11494. "H.264",
  11495. "H.265",
  11496. "REAL VIDEO",
  11497. "MKV",
  11498. "WebM",
  11499. "HDDVD",
  11500. "MP4",
  11501. "MPG",
  11502. "M4V",
  11503. "MGV",
  11504. "OGV",
  11505. "QTM",
  11506. "STR",
  11507. "AMC",
  11508. "DVX",
  11509. "EVO",
  11510. "DAT",
  11511. "OGG",
  11512. "OGM",
  11513. ];
  11514. for (var i = 0; i < a.length; i++) {
  11515. this.workStudent[i] = [];
  11516. for (var j = 0; j < b.length; j++) {
  11517. if (i == b[j].tool) {
  11518. if (
  11519. (b[j].type == 1 ||
  11520. b[j].type == 4 ||
  11521. b[j].type == 5 ||
  11522. b[j].type == 6 ||
  11523. b[j].type == 12 ||
  11524. b[j].type == 7) &&
  11525. a[i].tool[0] != 15 &&
  11526. a[i].tool[0] != 4 &&
  11527. a[i].tool[0] != 45 &&
  11528. a[i].tool[0] != 50 &&
  11529. a[i].tool[0] != 32 &&
  11530. a[i].tool[0] != 57 &&
  11531. a[i].tool[0] != 52
  11532. ) {
  11533. if (
  11534. c.indexOf(
  11535. b[j].content
  11536. .split(".")
  11537. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11538. ) != -1 &&
  11539. a[i].tool[0] == 16 &&
  11540. b[j].atool != 50
  11541. ) {
  11542. this.workStudent[i].push({
  11543. works: b[j].content,
  11544. sName: b[j].name,
  11545. score: b[j].score,
  11546. img: b[j].img,
  11547. type: 1,
  11548. time: b[j].time,
  11549. userid: b[j].userid,
  11550. wid: b[j].id,
  11551. });
  11552. } else if (
  11553. y.indexOf(
  11554. b[j].content
  11555. .split(".")
  11556. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  11557. ) != -1 &&
  11558. a[i].tool[0] == 16 &&
  11559. b[j].atool != 50
  11560. ) {
  11561. this.workStudent[i].push({
  11562. userid: b[j].userid,
  11563. wid: b[j].id,
  11564. works: b[j].content,
  11565. sName: b[j].name,
  11566. score: b[j].score,
  11567. img: b[j].img,
  11568. type: 3,
  11569. time: b[j].time,
  11570. });
  11571. } else if (b[j].type == 6 && b[j].atool != 50) {
  11572. this.workStudent[i].push({
  11573. userid: b[j].userid,
  11574. wid: b[j].id,
  11575. works: b[j].content,
  11576. sName: b[j].name,
  11577. score: b[j].score,
  11578. img: b[j].img,
  11579. type: 4,
  11580. time: b[j].time,
  11581. });
  11582. } else if (b[j].type == 7 && b[j].atool != 50) {
  11583. this.workStudent[i].push({
  11584. userid: b[j].userid,
  11585. wid: b[j].id,
  11586. works: b[j].content,
  11587. sName: b[j].name,
  11588. score: b[j].score,
  11589. img: b[j].img,
  11590. type: 5,
  11591. time: b[j].time,
  11592. });
  11593. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  11594. this.workStudent[i].push({
  11595. works: b[j].content,
  11596. sName: b[j].name,
  11597. score: b[j].score,
  11598. img: b[j].img,
  11599. type: 12,
  11600. time: b[j].time,
  11601. userid: b[j].userid,
  11602. wid: b[j].id,
  11603. });
  11604. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  11605. this.workStudent[i].push({
  11606. works: b[j].content,
  11607. sName: b[j].name,
  11608. score: b[j].score,
  11609. img: b[j].img,
  11610. type: 0,
  11611. time: b[j].time,
  11612. userid: b[j].userid,
  11613. wid: b[j].id,
  11614. });
  11615. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  11616. this.workStudent[i].push({
  11617. works: b[j].content,
  11618. sName: b[j].name,
  11619. score: b[j].score,
  11620. img: b[j].img,
  11621. type: 0,
  11622. time: b[j].time,
  11623. userid: b[j].userid,
  11624. wid: b[j].id,
  11625. });
  11626. }
  11627. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  11628. this.workStudent[i].push({
  11629. works: b[j].content,
  11630. sName: b[j].name,
  11631. score: b[j].score,
  11632. img: b[j].img,
  11633. type: 2,
  11634. time: b[j].time,
  11635. userid: b[j].userid,
  11636. wid: b[j].id,
  11637. });
  11638. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  11639. //问卷
  11640. this.workStudent[i].push({
  11641. works: b[j].content,
  11642. sName: b[j].name,
  11643. score: b[j].score,
  11644. img: b[j].img,
  11645. type: 2,
  11646. time: b[j].time,
  11647. userid: b[j].userid,
  11648. wid: b[j].id,
  11649. });
  11650. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  11651. //选择题
  11652. this.workStudent[i].push({
  11653. works: b[j].content,
  11654. sName: b[j].name,
  11655. score: b[j].score,
  11656. img: b[j].img,
  11657. type: 8,
  11658. time: b[j].time,
  11659. userid: b[j].userid,
  11660. wid: b[j].id,
  11661. });
  11662. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  11663. //选择题
  11664. this.workStudent[i].push({
  11665. works: b[j].content,
  11666. sName: b[j].name,
  11667. score: b[j].score,
  11668. img: b[j].img,
  11669. type: 9,
  11670. time: b[j].time,
  11671. userid: b[j].userid,
  11672. wid: b[j].id,
  11673. });
  11674. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  11675. //选择题
  11676. this.workStudent[i].push({
  11677. works: b[j].content,
  11678. sName: b[j].name,
  11679. score: b[j].score,
  11680. img: b[j].img,
  11681. type: 10,
  11682. time: b[j].time,
  11683. userid: b[j].userid,
  11684. wid: b[j].id,
  11685. });
  11686. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  11687. //选择题
  11688. this.workStudent[i].push({
  11689. works: b[j].content,
  11690. sName: b[j].name,
  11691. score: b[j].score,
  11692. img: b[j].img,
  11693. type: 13,
  11694. time: b[j].time,
  11695. userid: b[j].userid,
  11696. wid: b[j].id,
  11697. });
  11698. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  11699. //选择题
  11700. this.workStudent[i].push({
  11701. works: b[j].content,
  11702. sName: b[j].name,
  11703. score: b[j].score,
  11704. img: b[j].img,
  11705. type: 12,
  11706. time: b[j].time,
  11707. userid: b[j].userid,
  11708. wid: b[j].id,
  11709. });
  11710. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  11711. //选择题
  11712. this.workStudent[i].push({
  11713. works: b[j].content,
  11714. sName: b[j].name,
  11715. score: b[j].score,
  11716. img: b[j].img,
  11717. type: 12,
  11718. time: b[j].time,
  11719. userid: b[j].userid,
  11720. wid: b[j].id,
  11721. });
  11722. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  11723. //选择题
  11724. this.workStudent[i].push({
  11725. works: b[j].content,
  11726. sName: b[j].name,
  11727. score: b[j].score,
  11728. img: b[j].img,
  11729. type: 15,
  11730. time: b[j].time,
  11731. userid: b[j].userid,
  11732. wid: b[j].id,
  11733. });
  11734. }
  11735. }
  11736. }
  11737. }
  11738. })
  11739. .catch((err) => {
  11740. console.error(err);
  11741. });
  11742. },
  11743. openVideo(w) {
  11744. this.videoDetail = {};
  11745. this.playerOptions1.sources[0].src = w.works;
  11746. this.videoDetail = this.playerOptions1;
  11747. this.videoVisible = true;
  11748. },
  11749. isLikes(wid, uid, t, c, isLikes) {
  11750. if (isLikes == false) {
  11751. let params = [
  11752. {
  11753. wid: wid,
  11754. lid: uid,
  11755. t: t,
  11756. c: c,
  11757. },
  11758. ];
  11759. this.ajax
  11760. .post(this.$store.state.api + "insertComment", params)
  11761. .then((res) => {
  11762. this.$message({
  11763. message: "点赞成功",
  11764. type: "success",
  11765. });
  11766. this.selectSWorks();
  11767. this.selectStudent();
  11768. })
  11769. .catch((err) => {
  11770. this.$message.error("点赞失败");
  11771. console.error(err);
  11772. });
  11773. } else {
  11774. let params = {
  11775. wid: wid,
  11776. lid: uid,
  11777. type: t,
  11778. };
  11779. this.ajax
  11780. .get(this.$store.state.api + "deleteComment", params)
  11781. .then((res) => {
  11782. this.$message({
  11783. message: "取消点赞成功",
  11784. type: "success",
  11785. });
  11786. this.selectSWorks();
  11787. this.selectStudent();
  11788. })
  11789. .catch((err) => {
  11790. console.error(err);
  11791. });
  11792. }
  11793. },
  11794. deleteComment(wid) {
  11795. this.$confirm("确定删除此评论吗?", "提示", {
  11796. confirmButtonText: "确定",
  11797. cancelButtonText: "取消",
  11798. type: "warning",
  11799. })
  11800. .then(() => {
  11801. let params = {
  11802. id: wid,
  11803. };
  11804. this.ajax
  11805. .get(this.$store.state.api + "deleteComment2", params)
  11806. .then((res) => {
  11807. this.$message({
  11808. message: "删除评论成功",
  11809. type: "success",
  11810. });
  11811. this.selectSWorks();
  11812. this.selectStudent();
  11813. })
  11814. .catch((err) => {
  11815. console.error(err);
  11816. });
  11817. })
  11818. .catch(() => {});
  11819. },
  11820. commentOther(w, toolIndex, wIndex, gindex, gid) {
  11821. this.commentIndexJson = {
  11822. toolIndex: toolIndex,
  11823. wIndex: wIndex,
  11824. gindex: gindex,
  11825. gid: gid,
  11826. };
  11827. this.commentDetail = [];
  11828. this.commentDialogVisible = true;
  11829. this.commentDetail = w;
  11830. if (w.works && w.type == 1) {
  11831. this.pptImgUrl = "";
  11832. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11833. if (
  11834. a.indexOf(
  11835. w.works
  11836. .split(".")
  11837. [w.works.split(".").length - 1].toLocaleUpperCase()
  11838. ) != -1
  11839. ) {
  11840. this.pptImgUrl =
  11841. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11842. this.showPDF = false;
  11843. } else if (
  11844. w.works
  11845. .split(".")
  11846. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  11847. ) {
  11848. this.pptImgUrl = w.works;
  11849. this.showPDF = true;
  11850. }
  11851. } else if (w.works && w.type == 3) {
  11852. this.videoDetail = {};
  11853. this.playerOptions1.sources[0].src = w.works;
  11854. this.videoDetail = this.playerOptions1;
  11855. // this.videoVisible = true;
  11856. } else if (w.works && w.type == 4) {
  11857. this.eScore = JSON.parse(w.works);
  11858. this.rateJson =
  11859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11860. this.taskCount
  11861. ].toolChoose[toolIndex].rateJson;
  11862. } else if (w.works && w.type == 10) {
  11863. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  11864. } else if (w.works && w.type == 13) {
  11865. this.wordJson =
  11866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11867. this.taskCount
  11868. ].toolChoose[toolIndex].wordJson;
  11869. }
  11870. },
  11871. openScore(w) {
  11872. this.wScore = 0;
  11873. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  11874. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  11875. this.commentDetail = [];
  11876. this.dialogVisibleScore = true;
  11877. this.commentDetail = w;
  11878. if (w.works && w.type == 1) {
  11879. this.pptImgUrl = "";
  11880. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  11881. if (
  11882. a.indexOf(
  11883. w.works
  11884. .split(".")
  11885. [w.works.split(".").length - 1].toLocaleUpperCase()
  11886. ) != -1
  11887. ) {
  11888. this.pptImgUrl =
  11889. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  11890. this.showPDF = false;
  11891. } else if (
  11892. w.works
  11893. .split(".")
  11894. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  11895. ) {
  11896. this.pptImgUrl = w.works;
  11897. this.showPDF = true;
  11898. }
  11899. } else if (w.works && w.type == 3) {
  11900. this.videoDetail = {};
  11901. this.playerOptions1.sources[0].src = w.works;
  11902. this.videoDetail = this.playerOptions1;
  11903. }
  11904. },
  11905. addComment(wid, uid, t) {
  11906. if (this.commentText == "") {
  11907. this.$message.error("请输入评论");
  11908. return;
  11909. }
  11910. let params2 = [
  11911. {
  11912. wid: wid,
  11913. lid: uid,
  11914. t: t,
  11915. },
  11916. ];
  11917. this.ajax
  11918. .post(this.$store.state.api + "getComment", params2)
  11919. .then((res) => {
  11920. if (res.data[0].length > 0) {
  11921. this.$message.error("一个作业只能评论一条");
  11922. } else {
  11923. let params = [
  11924. {
  11925. wid: wid,
  11926. lid: uid,
  11927. t: t,
  11928. c: this.commentText,
  11929. },
  11930. ];
  11931. this.ajax
  11932. .post(this.$store.state.api + "insertComment", params)
  11933. .then((res) => {
  11934. this.$message({
  11935. message: "评论成功",
  11936. type: "success",
  11937. });
  11938. this.commentText = "";
  11939. this.selectSWorks();
  11940. this.selectStudent();
  11941. })
  11942. .catch((err) => {
  11943. this.$message.error("评论失败");
  11944. console.error(err);
  11945. });
  11946. }
  11947. })
  11948. .catch((err) => {
  11949. // this.$message.error("评论失败");
  11950. console.error(err);
  11951. });
  11952. },
  11953. scoreWork(wid) {
  11954. if (this.wScore == 0) {
  11955. this.$message.error("请评分");
  11956. return;
  11957. }
  11958. let params = [
  11959. {
  11960. wid: wid,
  11961. score: JSON.stringify({
  11962. wScore: this.wScore,
  11963. detail: this.scoreDetail,
  11964. }),
  11965. },
  11966. ];
  11967. this.ajax
  11968. .post(this.$store.state.api + "scoreWork", params)
  11969. .then((res) => {
  11970. this.$message({
  11971. message: "评分成功",
  11972. type: "success",
  11973. });
  11974. this.wScore = 0;
  11975. this.scoreDetail = "";
  11976. this.dialogVisibleScore = false;
  11977. this.selectSWorks();
  11978. this.selectStudent();
  11979. })
  11980. .catch((err) => {
  11981. this.$message.error("评分失败");
  11982. console.error(err);
  11983. });
  11984. },
  11985. openXz(w, i) {
  11986. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  11987. .taskJson[this.taskCount].toolChoose[i].selectJson
  11988. ? JSON.parse(
  11989. JSON.stringify(
  11990. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11991. this.taskCount
  11992. ].toolChoose[i].selectJson
  11993. )
  11994. )
  11995. : { url: "", select: [], answer: [] };
  11996. var a = w.works.split(",");
  11997. for (var k = 0; k < a.length; k++) {
  11998. a[k] = parseInt(a[k]);
  11999. }
  12000. this.selectAnswer = { answer: a, stu: w.sName };
  12001. this.isSelect = true;
  12002. this.dialogVisibleSelect = true;
  12003. },
  12004. openSen(w, i) {
  12005. this.sentenceList1 = JSON.parse(w.works);
  12006. this.sentenceList1.stuName = w.sName;
  12007. this.dialogVisibleSentence1 = true;
  12008. },
  12009. openPj(w, toolindex) {
  12010. this.isStar = true;
  12011. this.eScore = JSON.parse(w);
  12012. this.rateJson =
  12013. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12014. this.taskCount
  12015. ].toolChoose[toolindex].rateJson;
  12016. this.studentEvalDialogVisible = true;
  12017. },
  12018. deleteWorks(id) {
  12019. this.$confirm("确定删除此作业吗?", "提示", {
  12020. confirmButtonText: "确定",
  12021. cancelButtonText: "取消",
  12022. type: "warning",
  12023. })
  12024. .then(() => {
  12025. let params = [
  12026. {
  12027. id: id,
  12028. },
  12029. ];
  12030. this.ajax
  12031. .post(this.$store.state.api + "deleteCourseWork", params)
  12032. .then((res) => {
  12033. this.$message({
  12034. message: "删除成功",
  12035. type: "success",
  12036. });
  12037. this.selectStudent();
  12038. this.selectSWorks();
  12039. this.selectSLook();
  12040. })
  12041. .catch((err) => {
  12042. this.$message.error("网络异常");
  12043. console.error(err);
  12044. });
  12045. })
  12046. .catch(() => {});
  12047. },
  12048. selectSWorks(gindex) {
  12049. //教师查看全部作业
  12050. let params = {
  12051. cid: this.id,
  12052. s: this.courseType,
  12053. t: this.taskCount,
  12054. };
  12055. this.ajax
  12056. .get(this.$store.state.api + "selectSWorks", params)
  12057. .then((res) => {
  12058. var a =
  12059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12060. this.taskCount
  12061. ].toolChoose;
  12062. var b = res.data[0];
  12063. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12064. var y = [
  12065. "AVI",
  12066. "NAVI",
  12067. "MPEG",
  12068. "ASF",
  12069. "MOV",
  12070. "WMV",
  12071. "3GP",
  12072. "RM",
  12073. "RMVB",
  12074. "FLV",
  12075. "F4V",
  12076. "H.264",
  12077. "H.265",
  12078. "REAL VIDEO",
  12079. "MKV",
  12080. "WebM",
  12081. "HDDVD",
  12082. "MP4",
  12083. "MPG",
  12084. "M4V",
  12085. "MGV",
  12086. "OGV",
  12087. "QTM",
  12088. "STR",
  12089. "AMC",
  12090. "DVX",
  12091. "EVO",
  12092. "DAT",
  12093. "OGG",
  12094. "OGM",
  12095. ];
  12096. var d = res.data[1];
  12097. var e = res.data[2];
  12098. var f = res.data[3];
  12099. let _worksStudent = [];
  12100. for (var i = 0; i < a.length; i++) {
  12101. _worksStudent[i] = [];
  12102. if (
  12103. !this.isCloseList[i] ||
  12104. this.isCloseList[i].isClose == undefined
  12105. ) {
  12106. this.isCloseList[i] = { isClose: 0 };
  12107. }
  12108. this.groupStudent[i] = [];
  12109. this.groupStudentUid[i] = [];
  12110. if (this.isGroup) {
  12111. for (
  12112. var groupI = 0;
  12113. groupI < this.courseGroup.group.length;
  12114. groupI++
  12115. ) {
  12116. this.courseGroup.group[groupI].works[i] = [];
  12117. }
  12118. }
  12119. this.isWorksS[i] = [];
  12120. this.checkJson[i] = [];
  12121. if (a[i].tool[0] == 49) {
  12122. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  12123. this.groupStudent[i][gA] = [];
  12124. this.groupStudentUid[i][gA] = [];
  12125. _worksStudent[i][gA] = [];
  12126. this.isCloseList[i][gA] = [];
  12127. for (var g = 0; g < f.length; g++) {
  12128. if (
  12129. f[g].ttype == 2 &&
  12130. this.tcid &&
  12131. this.arrayToArray(
  12132. f[g].classid.split(","),
  12133. this.tcid.split(",")
  12134. ).length == 0
  12135. ) {
  12136. continue;
  12137. }
  12138. if (gA == f[g].group && f[g].tool == i) {
  12139. this.groupStudent[i][gA].push(f[g]);
  12140. this.groupStudentUid[i][gA].push(f[g].userid);
  12141. }
  12142. }
  12143. }
  12144. this.$forceUpdate();
  12145. }
  12146. for (var j = 0; j < b.length; j++) {
  12147. if (
  12148. b[j].ttype == 2 &&
  12149. this.tcid &&
  12150. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  12151. .length == 0
  12152. ) {
  12153. continue;
  12154. }
  12155. var likesCount = 0;
  12156. var commentCount = 0;
  12157. var isLikes = false;
  12158. var commentJson = [];
  12159. var data = b[j];
  12160. if (i == b[j].tool) {
  12161. if (data.type == 2 && a[i].tool[0] == 4) {
  12162. // if(JSON.parse(data.content)[0].anwer){
  12163. var checkL =
  12164. JSON.parse(data.content)[0].anwer instanceof Array
  12165. ? JSON.parse(data.content)[0].anwer
  12166. : JSON.parse(data.content)[0].anwer.split(",");
  12167. for (var z = 0; z < checkL.length; z++) {
  12168. if (!this.checkJson[i][z]) {
  12169. this.checkJson[i].push({
  12170. checkCount: [],
  12171. checkPerson: [],
  12172. rightPerson: [],
  12173. });
  12174. }
  12175. if (!this.checkJson[i][z].checkCount.length) {
  12176. this.checkJson[i][z].checkCount = [];
  12177. let _askItemCount = JSON.parse(data.content)[0].askJson
  12178. .askJson[z].askItem;
  12179. for (var aic = 0; aic < _askItemCount; aic++) {
  12180. this.checkJson[i][z].checkCount.push(0);
  12181. }
  12182. }
  12183. if (checkL[z] instanceof Array) {
  12184. if (
  12185. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  12186. checkL[z].sort().join(",")
  12187. ) {
  12188. this.checkJson[i][z].rightPerson.push(data.name);
  12189. }
  12190. for (var q = 0; q < checkL[z].length; q++) {
  12191. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12192. ? this.checkJson[i][z].checkPerson[
  12193. parseInt(checkL[z][q])
  12194. ].push(data.name)
  12195. : (this.checkJson[i][z].checkPerson[
  12196. parseInt(checkL[z][q])
  12197. ] = [data.name]);
  12198. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12199. ? this.checkJson[i][z].checkCount[
  12200. parseInt(checkL[z][q])
  12201. ]++
  12202. : (this.checkJson[i][z].checkCount[
  12203. parseInt(checkL[z][q])
  12204. ] = 1);
  12205. }
  12206. } else {
  12207. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  12208. this.checkJson[i][z].rightPerson.push(data.name);
  12209. }
  12210. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12211. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12212. ? this.checkJson[i][z].checkPerson[
  12213. parseInt(checkL[z])
  12214. ].push(data.name)
  12215. : (this.checkJson[i][z].checkPerson[
  12216. parseInt(checkL[z])
  12217. ] = [data.name]);
  12218. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12219. ? this.checkJson[i][z].checkCount[
  12220. parseInt(checkL[z])
  12221. ]++
  12222. : (this.checkJson[i][z].checkCount[
  12223. parseInt(checkL[z])
  12224. ] = 1);
  12225. }
  12226. }
  12227. }
  12228. } else if (data.type == 8 && a[i].tool[0] == 45) {
  12229. var checkL = JSON.parse(data.content)[0].anwer;
  12230. for (var z = 0; z < checkL.length; z++) {
  12231. if (!this.checkJson[i][z]) {
  12232. this.checkJson[i].push({
  12233. checkCount: [],
  12234. checkPerson: [],
  12235. rightPerson: [],
  12236. });
  12237. }
  12238. if (!this.checkJson[i][z].checkCount.length) {
  12239. this.checkJson[i][z].checkCount = [];
  12240. let _askItemCount = JSON.parse(data.content)[0].testJson
  12241. .testJson[z].testItem;
  12242. console.log(_askItemCount);
  12243. for (var aic = 0; aic < _askItemCount; aic++) {
  12244. this.checkJson[i][z].checkCount.push(0);
  12245. }
  12246. }
  12247. if (checkL[z] instanceof Array) {
  12248. if (
  12249. JSON.parse(data.content)[0]
  12250. .testJson.testJson[z].answer.sort()
  12251. .join(",") == checkL[z].sort().join(",")
  12252. ) {
  12253. this.checkJson[i][z].rightPerson.push(data.name);
  12254. }
  12255. for (var q = 0; q < checkL[z].length; q++) {
  12256. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  12257. ? this.checkJson[i][z].checkPerson[
  12258. parseInt(checkL[z][q])
  12259. ].push(data.name)
  12260. : (this.checkJson[i][z].checkPerson[
  12261. parseInt(checkL[z][q])
  12262. ] = [data.name]);
  12263. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  12264. ? this.checkJson[i][z].checkCount[
  12265. parseInt(checkL[z][q])
  12266. ]++
  12267. : (this.checkJson[i][z].checkCount[
  12268. parseInt(checkL[z][q])
  12269. ] = 1);
  12270. }
  12271. } else {
  12272. if (
  12273. JSON.parse(data.content)[0].testJson.testJson[z]
  12274. .answer == checkL[z]
  12275. ) {
  12276. this.checkJson[i][z].rightPerson.push(data.name);
  12277. }
  12278. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  12279. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  12280. ? this.checkJson[i][z].checkPerson[
  12281. parseInt(checkL[z])
  12282. ].push(data.name)
  12283. : (this.checkJson[i][z].checkPerson[
  12284. parseInt(checkL[z])
  12285. ] = [data.name]);
  12286. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  12287. ? this.checkJson[i][z].checkCount[
  12288. parseInt(checkL[z])
  12289. ]++
  12290. : (this.checkJson[i][z].checkCount[
  12291. parseInt(checkL[z])
  12292. ] = 1);
  12293. }
  12294. }
  12295. }
  12296. } else if (data.type == 9 && a[i].tool[0] == 47) {
  12297. var checkL = JSON.parse(data.content);
  12298. for (var z = 0; z < checkL.length; z++) {
  12299. if (!this.checkJson[i][z]) {
  12300. this.checkJson[i].push({
  12301. checkCount: [],
  12302. checkPerson: [],
  12303. rightPerson: [],
  12304. });
  12305. }
  12306. this.checkJson[i][z].checkPerson.push(data.name);
  12307. if (
  12308. checkL[z].chooseSenList.toString() ==
  12309. checkL[z].rightAnswer.toString()
  12310. ) {
  12311. this.checkJson[i][z].rightPerson.push(data.name);
  12312. }
  12313. }
  12314. }
  12315. for (var k = 0; k < d.length; k++) {
  12316. //点赞
  12317. if (d[k].workId == b[j].id) {
  12318. likesCount++;
  12319. if (d[k].likesId == this.userid) {
  12320. isLikes = true;
  12321. }
  12322. }
  12323. }
  12324. for (var l = 0; l < e.length; l++) {
  12325. //评论
  12326. if (e[l].workId == b[j].id) {
  12327. if (e[l].comment != "") {
  12328. commentCount++;
  12329. commentJson.push({
  12330. commentText: e[l].comment,
  12331. commentTime: e[l].commentTime,
  12332. commentPeople: e[l].commentPeople,
  12333. userid: e[l].userid,
  12334. wid: e[l].id,
  12335. });
  12336. }
  12337. }
  12338. }
  12339. if (
  12340. (b[j].type == 1 ||
  12341. b[j].type == 4 ||
  12342. b[j].type == 5 ||
  12343. b[j].type == 6 ||
  12344. b[j].type == 12 ||
  12345. b[j].type == 7) &&
  12346. a[i].tool[0] != 15 &&
  12347. a[i].tool[0] != 4 &&
  12348. a[i].tool[0] != 45 &&
  12349. a[i].tool[0] != 50 &&
  12350. a[i].tool[0] != 32 &&
  12351. a[i].tool[0] != 57 &&
  12352. a[i].tool[0] != 52
  12353. ) {
  12354. if (
  12355. c.indexOf(
  12356. b[j].content
  12357. .split(".")
  12358. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12359. ) != -1 &&
  12360. a[i].tool[0] == 16 &&
  12361. b[j].atool != 50
  12362. ) {
  12363. let _works = {
  12364. userid: b[j].userid,
  12365. ateacher: b[j].ateacher,
  12366. wid: b[j].id,
  12367. works: b[j].content,
  12368. sName: b[j].name,
  12369. type: 1,
  12370. time: b[j].time,
  12371. score: b[j].score,
  12372. img: b[j].img,
  12373. likesCount: likesCount,
  12374. commentCount: commentCount,
  12375. isLikes: isLikes,
  12376. commentJson: commentJson,
  12377. };
  12378. if (this.isGroup) {
  12379. let isGw = 1;
  12380. for (
  12381. var groupI = 0;
  12382. groupI < this.courseGroup.group.length;
  12383. groupI++
  12384. ) {
  12385. let gid = this.courseGroup.group[groupI].id;
  12386. if (
  12387. this.courseGroupStudentUid[gid].indexOf(
  12388. b[j].userid
  12389. ) != -1
  12390. ) {
  12391. isGw = 2;
  12392. this.courseGroup.group[groupI].works[i].push(_works);
  12393. break;
  12394. }
  12395. }
  12396. if (isGw == 1) {
  12397. _worksStudent[i].push(_works);
  12398. }
  12399. } else {
  12400. _worksStudent[i].push(_works);
  12401. }
  12402. this.isWorksS[i].push({
  12403. uid: b[j].userid,
  12404. sName: b[j].name,
  12405. });
  12406. } else if (
  12407. y.indexOf(
  12408. b[j].content
  12409. .split(".")
  12410. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12411. ) != -1 &&
  12412. a[i].tool[0] == 16 &&
  12413. b[j].atool != 50
  12414. ) {
  12415. let _works = {
  12416. userid: b[j].userid,
  12417. ateacher: b[j].ateacher,
  12418. wid: b[j].id,
  12419. works: b[j].content,
  12420. sName: b[j].name,
  12421. type: 3,
  12422. time: b[j].time,
  12423. score: b[j].score,
  12424. img: b[j].img,
  12425. likesCount: likesCount,
  12426. commentCount: commentCount,
  12427. isLikes: isLikes,
  12428. commentJson: commentJson,
  12429. };
  12430. if (this.isGroup) {
  12431. let isGw = 1;
  12432. for (
  12433. var groupI = 0;
  12434. groupI < this.courseGroup.group.length;
  12435. groupI++
  12436. ) {
  12437. let gid = this.courseGroup.group[groupI].id;
  12438. if (
  12439. this.courseGroupStudentUid[gid].indexOf(
  12440. b[j].userid
  12441. ) != -1
  12442. ) {
  12443. isGw = 2;
  12444. this.courseGroup.group[groupI].works[i].push(_works);
  12445. break;
  12446. }
  12447. }
  12448. if (isGw == 1) {
  12449. _worksStudent[i].push(_works);
  12450. }
  12451. } else {
  12452. _worksStudent[i].push(_works);
  12453. }
  12454. this.isWorksS[i].push({
  12455. uid: b[j].userid,
  12456. sName: b[j].name,
  12457. });
  12458. } else if (b[j].type == 6 && b[j].atool != 50) {
  12459. _worksStudent[i].push({
  12460. userid: b[j].userid,
  12461. ateacher: b[j].ateacher,
  12462. wid: b[j].id,
  12463. works: b[j].content,
  12464. sName: b[j].name,
  12465. type: 4,
  12466. time: b[j].time,
  12467. score: b[j].score,
  12468. img: b[j].img,
  12469. likesCount: likesCount,
  12470. commentCount: commentCount,
  12471. isLikes: isLikes,
  12472. commentJson: commentJson,
  12473. });
  12474. this.isWorksS[i].push({
  12475. uid: b[j].userid,
  12476. sName: b[j].name,
  12477. });
  12478. } else if (b[j].type == 7 && b[j].atool != 50) {
  12479. _worksStudent[i].push({
  12480. userid: b[j].userid,
  12481. ateacher: b[j].ateacher,
  12482. wid: b[j].id,
  12483. works: b[j].content,
  12484. sName: b[j].name,
  12485. type: 5,
  12486. time: b[j].time,
  12487. score: b[j].score,
  12488. img: b[j].img,
  12489. likesCount: likesCount,
  12490. commentCount: commentCount,
  12491. isLikes: isLikes,
  12492. commentJson: commentJson,
  12493. });
  12494. this.isWorksS[i].push({
  12495. uid: b[j].userid,
  12496. sName: b[j].name,
  12497. });
  12498. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12499. let _works = {
  12500. userid: b[j].userid,
  12501. ateacher: b[j].ateacher,
  12502. wid: b[j].id,
  12503. works: b[j].content,
  12504. sName: b[j].name,
  12505. type: 12,
  12506. time: b[j].time,
  12507. score: b[j].score,
  12508. img: b[j].img,
  12509. likesCount: likesCount,
  12510. commentCount: commentCount,
  12511. isLikes: isLikes,
  12512. commentJson: commentJson,
  12513. };
  12514. if (this.isGroup) {
  12515. let isGw = 1;
  12516. for (
  12517. var groupI = 0;
  12518. groupI < this.courseGroup.group.length;
  12519. groupI++
  12520. ) {
  12521. let gid = this.courseGroup.group[groupI].id;
  12522. if (
  12523. this.courseGroupStudentUid[gid].indexOf(
  12524. b[j].userid
  12525. ) != -1
  12526. ) {
  12527. isGw = 2;
  12528. this.courseGroup.group[groupI].works[i].push(_works);
  12529. break;
  12530. }
  12531. }
  12532. if (isGw == 1) {
  12533. _worksStudent[i].push(_works);
  12534. }
  12535. } else {
  12536. _worksStudent[i].push(_works);
  12537. }
  12538. this.isWorksS[i].push({
  12539. uid: b[j].userid,
  12540. sName: b[j].name,
  12541. });
  12542. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12543. let _works = {
  12544. userid: b[j].userid,
  12545. ateacher: b[j].ateacher,
  12546. wid: b[j].id,
  12547. works: b[j].content,
  12548. sName: b[j].name,
  12549. type: 0,
  12550. time: b[j].time,
  12551. score: b[j].score,
  12552. img: b[j].img,
  12553. likesCount: likesCount,
  12554. commentCount: commentCount,
  12555. isLikes: isLikes,
  12556. commentJson: commentJson,
  12557. };
  12558. if (this.isGroup) {
  12559. let isGw = 1;
  12560. for (
  12561. var groupI = 0;
  12562. groupI < this.courseGroup.group.length;
  12563. groupI++
  12564. ) {
  12565. let gid = this.courseGroup.group[groupI].id;
  12566. if (
  12567. this.courseGroupStudentUid[gid].indexOf(
  12568. b[j].userid
  12569. ) != -1
  12570. ) {
  12571. isGw = 2;
  12572. this.courseGroup.group[groupI].works[i].push(_works);
  12573. break;
  12574. }
  12575. }
  12576. if (isGw == 1) {
  12577. _worksStudent[i].push(_works);
  12578. }
  12579. } else {
  12580. _worksStudent[i].push(_works);
  12581. }
  12582. this.isWorksS[i].push({
  12583. uid: b[j].userid,
  12584. sName: b[j].name,
  12585. });
  12586. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12587. let _works = {
  12588. userid: b[j].userid,
  12589. ateacher: b[j].ateacher,
  12590. wid: b[j].id,
  12591. works: b[j].content,
  12592. sName: b[j].name,
  12593. type: 0,
  12594. time: b[j].time,
  12595. score: b[j].score,
  12596. img: b[j].img,
  12597. likesCount: likesCount,
  12598. commentCount: commentCount,
  12599. isLikes: isLikes,
  12600. commentJson: commentJson,
  12601. };
  12602. if (this.isGroup) {
  12603. let isGw = 1;
  12604. for (
  12605. var groupI = 0;
  12606. groupI < this.courseGroup.group.length;
  12607. groupI++
  12608. ) {
  12609. let gid = this.courseGroup.group[groupI].id;
  12610. if (
  12611. this.courseGroupStudentUid[gid].indexOf(
  12612. b[j].userid
  12613. ) != -1
  12614. ) {
  12615. isGw = 2;
  12616. this.courseGroup.group[groupI].works[i].push(_works);
  12617. break;
  12618. }
  12619. }
  12620. if (isGw == 1) {
  12621. _worksStudent[i].push(_works);
  12622. }
  12623. } else {
  12624. _worksStudent[i].push(_works);
  12625. }
  12626. this.isWorksS[i].push({
  12627. uid: b[j].userid,
  12628. sName: b[j].name,
  12629. });
  12630. }
  12631. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  12632. let _works = {
  12633. userid: b[j].userid,
  12634. ateacher: b[j].ateacher,
  12635. wid: b[j].id,
  12636. works: b[j].content,
  12637. sName: b[j].name,
  12638. type: 2,
  12639. time: b[j].time,
  12640. score: b[j].score,
  12641. img: b[j].img,
  12642. likesCount: likesCount,
  12643. commentCount: commentCount,
  12644. isLikes: isLikes,
  12645. commentJson: commentJson,
  12646. };
  12647. if (this.isGroup) {
  12648. let isGw = 1;
  12649. for (
  12650. var groupI = 0;
  12651. groupI < this.courseGroup.group.length;
  12652. groupI++
  12653. ) {
  12654. let gid = this.courseGroup.group[groupI].id;
  12655. if (
  12656. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  12657. -1
  12658. ) {
  12659. isGw = 2;
  12660. this.courseGroup.group[groupI].works[i].push(_works);
  12661. break;
  12662. }
  12663. }
  12664. if (isGw == 1) {
  12665. _worksStudent[i].push(_works);
  12666. }
  12667. } else {
  12668. _worksStudent[i].push(_works);
  12669. }
  12670. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12671. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12672. //问卷
  12673. _worksStudent[i].push({
  12674. userid: b[j].userid,
  12675. ateacher: b[j].ateacher,
  12676. wid: b[j].id,
  12677. works: b[j].content,
  12678. sName: b[j].name,
  12679. type: 2,
  12680. time: b[j].time,
  12681. score: b[j].score,
  12682. img: b[j].img,
  12683. likesCount: likesCount,
  12684. commentCount: commentCount,
  12685. isLikes: isLikes,
  12686. commentJson: commentJson,
  12687. });
  12688. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12689. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12690. //选择题
  12691. _worksStudent[i].push({
  12692. userid: b[j].userid,
  12693. ateacher: b[j].ateacher,
  12694. wid: b[j].id,
  12695. works: b[j].content,
  12696. sName: b[j].name,
  12697. type: 8,
  12698. time: b[j].time,
  12699. score: b[j].score,
  12700. img: b[j].img,
  12701. likesCount: likesCount,
  12702. commentCount: commentCount,
  12703. isLikes: isLikes,
  12704. commentJson: commentJson,
  12705. });
  12706. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12707. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12708. //选择题
  12709. _worksStudent[i].push({
  12710. userid: b[j].userid,
  12711. ateacher: b[j].ateacher,
  12712. wid: b[j].id,
  12713. works: b[j].content,
  12714. sName: b[j].name,
  12715. type: 9,
  12716. time: b[j].time,
  12717. score: b[j].score,
  12718. img: b[j].img,
  12719. likesCount: likesCount,
  12720. commentCount: commentCount,
  12721. isLikes: isLikes,
  12722. commentJson: commentJson,
  12723. });
  12724. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12725. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12726. //选择题
  12727. _worksStudent[i].push({
  12728. userid: b[j].userid,
  12729. ateacher: b[j].ateacher,
  12730. wid: b[j].id,
  12731. works: b[j].content,
  12732. sName: b[j].name,
  12733. type: 10,
  12734. time: b[j].time,
  12735. score: b[j].score,
  12736. img: b[j].img,
  12737. likesCount: likesCount,
  12738. commentCount: commentCount,
  12739. isLikes: isLikes,
  12740. commentJson: commentJson,
  12741. });
  12742. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12743. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12744. //选择题
  12745. _worksStudent[i].push({
  12746. userid: b[j].userid,
  12747. ateacher: b[j].ateacher,
  12748. wid: b[j].id,
  12749. works: b[j].content,
  12750. sName: b[j].name,
  12751. type: 13,
  12752. time: b[j].time,
  12753. score: b[j].score,
  12754. img: b[j].img,
  12755. likesCount: likesCount,
  12756. commentCount: commentCount,
  12757. isLikes: isLikes,
  12758. commentJson: commentJson,
  12759. });
  12760. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12761. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  12762. let _gindex = JSON.parse(b[j].content);
  12763. if (
  12764. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  12765. b[j].userid
  12766. ) != -1
  12767. ) {
  12768. _worksStudent[i][_gindex.groupIndex].push({
  12769. userid: b[j].userid,
  12770. ateacher: b[j].ateacher,
  12771. wid: b[j].id,
  12772. works: _gindex.url,
  12773. sName: b[j].name,
  12774. type: _gindex.type,
  12775. time: b[j].time,
  12776. score: b[j].score,
  12777. img: b[j].img,
  12778. likesCount: likesCount,
  12779. commentCount: commentCount,
  12780. isLikes: isLikes,
  12781. commentJson: commentJson,
  12782. });
  12783. }
  12784. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12785. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  12786. _worksStudent[i].push({
  12787. userid: b[j].userid,
  12788. ateacher: b[j].ateacher,
  12789. wid: b[j].id,
  12790. works: b[j].content,
  12791. sName: b[j].name ? b[j].name : b[j].userid,
  12792. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  12793. time: b[j].time,
  12794. score: b[j].score,
  12795. img: b[j].img,
  12796. likesCount: likesCount,
  12797. commentCount: commentCount,
  12798. isLikes: isLikes,
  12799. commentJson: commentJson,
  12800. });
  12801. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12802. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  12803. _worksStudent[i].push({
  12804. userid: b[j].userid,
  12805. ateacher: b[j].ateacher,
  12806. wid: b[j].id,
  12807. works: b[j].content,
  12808. sName: b[j].name ? b[j].name : b[j].userid,
  12809. type: 12,
  12810. time: b[j].time,
  12811. score: b[j].score,
  12812. img: b[j].img,
  12813. likesCount: likesCount,
  12814. commentCount: commentCount,
  12815. isLikes: isLikes,
  12816. commentJson: commentJson,
  12817. });
  12818. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12819. } else if (
  12820. a[i].tool[0] == 57 &&
  12821. b[j].atool == 57 &&
  12822. b[j].type == 12
  12823. ) {
  12824. _worksStudent[i].push({
  12825. userid: b[j].userid,
  12826. ateacher: b[j].ateacher,
  12827. wid: b[j].id,
  12828. works: b[j].content,
  12829. sName: b[j].name ? b[j].name : b[j].userid,
  12830. type: 12,
  12831. time: b[j].time,
  12832. score: b[j].score,
  12833. img: b[j].img,
  12834. likesCount: likesCount,
  12835. commentCount: commentCount,
  12836. isLikes: isLikes,
  12837. commentJson: commentJson,
  12838. });
  12839. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12840. } else if (
  12841. a[i].tool[0] == 57 &&
  12842. b[j].atool == 57 &&
  12843. b[j].type == 15
  12844. ) {
  12845. _worksStudent[i].push({
  12846. userid: b[j].userid,
  12847. ateacher: b[j].ateacher,
  12848. wid: b[j].id,
  12849. works: b[j].content,
  12850. sName: b[j].name ? b[j].name : b[j].userid,
  12851. type: 15,
  12852. time: b[j].time,
  12853. score: b[j].score,
  12854. img: b[j].img,
  12855. likesCount: likesCount,
  12856. commentCount: commentCount,
  12857. isLikes: isLikes,
  12858. commentJson: commentJson,
  12859. });
  12860. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  12861. }
  12862. }
  12863. }
  12864. if (_worksStudent[i] && _worksStudent[i].length) {
  12865. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  12866. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12867. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12868. var scoreA = parseFloat(jscoreA);
  12869. var scoreB = parseFloat(jscoreB);
  12870. if (scoreA == scoreB) {
  12871. return b.likesCount - a.likesCount;
  12872. }
  12873. return scoreB - scoreA;
  12874. });
  12875. if (this.isGroup) {
  12876. for (
  12877. var groupI = 0;
  12878. groupI < this.courseGroup.group.length;
  12879. groupI++
  12880. ) {
  12881. this.courseGroup.group[groupI].works[i] =
  12882. this.courseGroup.group[groupI].works[i].sort(function (
  12883. a,
  12884. b
  12885. ) {
  12886. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  12887. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  12888. var scoreA = parseFloat(jscoreA);
  12889. var scoreB = parseFloat(jscoreB);
  12890. if (scoreA == scoreB) {
  12891. return b.likesCount - a.likesCount;
  12892. }
  12893. return scoreB - scoreA;
  12894. });
  12895. }
  12896. }
  12897. }
  12898. }
  12899. for (var i = 0; i < a.length; i++) {
  12900. for (var j = 0; j < b.length; j++) {
  12901. var data = b[j];
  12902. if (i == b[j].tool) {
  12903. if (data.type == 2 || data.type == 8) {
  12904. for (var z = 0; z < this.checkJson[i].length; z++) {
  12905. this.checkJson[i][z].checkPerent = [];
  12906. this.checkJson[i][z].right = Math.round(
  12907. (this.checkJson[i][z].rightPerson.length /
  12908. parseInt(_worksStudent[i].length)) *
  12909. 100
  12910. );
  12911. let aaaa = this.checkJson[i][z];
  12912. console.log(aaaa);
  12913. for (
  12914. var k = 0;
  12915. k < this.checkJson[i][z].checkCount.length;
  12916. k++
  12917. ) {
  12918. this.checkJson[i][z].checkPerent.push(
  12919. Math.round(
  12920. (this.checkJson[i][z].checkCount[k] /
  12921. parseInt(_worksStudent[i].length)) *
  12922. 100
  12923. )
  12924. );
  12925. }
  12926. }
  12927. } else if (data.type == 9) {
  12928. for (var z = 0; z < this.checkJson[i].length; z++) {
  12929. this.checkJson[i][z].checkPerent = [];
  12930. this.checkJson[i][z].right = Math.round(
  12931. (this.checkJson[i][z].rightPerson.length /
  12932. this.checkJson[i][z].checkPerson.length) *
  12933. 100
  12934. );
  12935. }
  12936. }
  12937. }
  12938. }
  12939. }
  12940. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  12941. this.joinGroup(gindex);
  12942. }
  12943. this.worksStudent = _worksStudent;
  12944. this.selectWorksStudent();
  12945. })
  12946. .catch((err) => {
  12947. console.error(err);
  12948. });
  12949. },
  12950. pngToWhiteBg(file) {
  12951. const _file = file;
  12952. let read = new FileReader();
  12953. read.readAsDataURL(file); // 文件转base64
  12954. return new Promise((resolve, reject) => {
  12955. read.onload = (e) => {
  12956. let img = new Image();
  12957. img.src = e.target.result;
  12958. img.onload = async () => {
  12959. // 生成canvas
  12960. let canvas = document.createElement("canvas");
  12961. let context = canvas.getContext("2d");
  12962. // 绘制图片到canvas上
  12963. canvas.width = img.width;
  12964. canvas.height = img.height;
  12965. // 在canvas绘制前填充白色背景
  12966. context.fillStyle = "#fff";
  12967. context.fillRect(0, 0, canvas.width, canvas.height);
  12968. context.drawImage(img, 0, 0);
  12969. let base64 = canvas.toDataURL(file["type"], 1);
  12970. let newFile = this.dataUrlToFile(base64, _file);
  12971. resolve(newFile);
  12972. };
  12973. };
  12974. });
  12975. },
  12976. dataUrlToFile(dataurl, file) {
  12977. let arr = dataurl.split(","),
  12978. mime = arr[0].match(/:(.*?);/)[1],
  12979. bstr = atob(arr[1]),
  12980. n = bstr.length,
  12981. u8arr = new Uint8Array(n);
  12982. while (n--) {
  12983. u8arr[n] = bstr.charCodeAt(n);
  12984. }
  12985. // return new Blob([u8arr], { type: mime });
  12986. return new File([new Blob([u8arr], { type: mime })], file.name, {
  12987. type: mime,
  12988. });
  12989. },
  12990. async beforeUpload1(event, type, i) {
  12991. // this.$message.success('进入上传')
  12992. var file = "";
  12993. if (type == 5) {
  12994. file = event;
  12995. } else {
  12996. file = event.target.files[0];
  12997. }
  12998. var credentials = {
  12999. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13000. secretAccessKey: "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",
  13001. }; //秘钥形式的登录上传
  13002. window.AWS.config.update(credentials);
  13003. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13004. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13005. var _this = this;
  13006. _this.progress = 0;
  13007. _this.proVisible = true;
  13008. _this.isFinishSize = 0;
  13009. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13010. var b = [
  13011. "DOC",
  13012. "DOCX",
  13013. "DOCM",
  13014. "DOTM",
  13015. "DOTX",
  13016. "PPTX",
  13017. "PPSX",
  13018. "PPT",
  13019. "PPS",
  13020. "PPTM",
  13021. "POTM",
  13022. "PPAM",
  13023. "POTX",
  13024. "PPSM",
  13025. ];
  13026. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13027. var photoA = [
  13028. "BMP",
  13029. "GIF",
  13030. "PNG",
  13031. "JPGE",
  13032. "JPEG",
  13033. "JPG",
  13034. "TIF",
  13035. "PCX",
  13036. "TGA",
  13037. "EXIF",
  13038. "FPX",
  13039. "SVG",
  13040. "APNG",
  13041. ];
  13042. // if (
  13043. // b.indexOf(
  13044. // file.name
  13045. // .split(".")
  13046. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13047. // ) != -1
  13048. // ) {
  13049. // if (file.size / 1024 / 1024 > 10) {
  13050. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13051. // return;
  13052. // }
  13053. // } else if (
  13054. // excelA.indexOf(
  13055. // file.name
  13056. // .split(".")
  13057. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13058. // ) != "-1"
  13059. // ) {
  13060. // if (file.size / 1024 / 1024 > 5) {
  13061. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13062. // return;
  13063. // }
  13064. // }
  13065. if (
  13066. photoA.indexOf(
  13067. file.name
  13068. .split(".")
  13069. [file.name.split(".").length - 1].toLocaleUpperCase()
  13070. ) != -1 &&
  13071. type != 4
  13072. ) {
  13073. // const blob = await imageConversion.compress(file, 0.8)
  13074. file = await this.pngToWhiteBg(file);
  13075. const blob = await imageConversion.compressAccurately(file, 256);
  13076. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13077. file = new File([blob], file.name, { type: file.type });
  13078. }
  13079. if (file) {
  13080. var params = {
  13081. Key:
  13082. file.name.split(".")[0] +
  13083. new Date().getTime() +
  13084. "." +
  13085. file.name.split(".")[file.name.split(".").length - 1],
  13086. ContentType: file.type,
  13087. Body: file,
  13088. "Access-Control-Allow-Credentials": "*",
  13089. ACL: "public-read",
  13090. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13091. var options = {
  13092. // partSize: 2048 * 1024 * 1024,
  13093. partSize: 1024 * 1024 * 1024,
  13094. queueSize: 2,
  13095. leavePartsOnError: true,
  13096. };
  13097. bucket
  13098. .upload(params, options)
  13099. .on("httpUploadProgress", function (evt) {
  13100. //这里可以写进度条
  13101. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13102. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13103. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13104. })
  13105. .send(function (err, data) {
  13106. _this.progress = 100;
  13107. _this.isFinishSize = _this.isAllSize;
  13108. setTimeout(() => {
  13109. _this.proVisible = false;
  13110. }, 1000);
  13111. if (err) {
  13112. var a = _this.$refs.upload1.uploadFiles;
  13113. a.splice(a.length - 1, a.length);
  13114. _this.$message.error("上传失败");
  13115. } else {
  13116. // _this.$message.success('上传成功')
  13117. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13118. var c = [
  13119. "AVI",
  13120. "NAVI",
  13121. "MPEG",
  13122. "ASF",
  13123. "MOV",
  13124. "WMV",
  13125. "3GP",
  13126. "RM",
  13127. "RMVB",
  13128. "FLV",
  13129. "F4V",
  13130. "H.264",
  13131. "H.265",
  13132. "REAL VIDEO",
  13133. "MKV",
  13134. "WebM",
  13135. "HDDVD",
  13136. "MP4",
  13137. "MPG",
  13138. "M4V",
  13139. "MGV",
  13140. "OGV",
  13141. "QTM",
  13142. "STR",
  13143. "AMC",
  13144. "DVX",
  13145. "EVO",
  13146. "DAT",
  13147. "OGG",
  13148. "OGM",
  13149. ];
  13150. if (type == 1) {
  13151. _this.studyJuri[0].cover.push({
  13152. name: file.name,
  13153. url: data.Location,
  13154. uid: file.uid,
  13155. });
  13156. if (
  13157. c.indexOf(
  13158. _this.studyJuri[0].cover[0].url
  13159. .split(".")
  13160. [
  13161. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13162. ].toLocaleUpperCase()
  13163. ) != -1
  13164. ) {
  13165. _this.fileType = 2;
  13166. } else if (
  13167. b.indexOf(
  13168. _this.studyJuri[0].cover[0].url
  13169. .split(".")
  13170. [
  13171. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13172. ].toLocaleUpperCase()
  13173. ) != -1
  13174. ) {
  13175. _this.fileType = 1;
  13176. } else if (
  13177. photoA.indexOf(
  13178. _this.studyJuri[0].cover[0].url
  13179. .split(".")
  13180. [
  13181. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13182. ].toLocaleUpperCase()
  13183. ) != -1
  13184. ) {
  13185. _this.fileType = 0;
  13186. } else {
  13187. _this.fileType = 3;
  13188. }
  13189. _this.imgChange(null, null, type);
  13190. } else if (type == 2) {
  13191. _this.upToolImg = data.Location;
  13192. _this.imgChange(null, null, type);
  13193. _this.addCourseWorks(i);
  13194. } else if (type == 4) {
  13195. _this.addPz("3", data.Location);
  13196. } else if (type == 5) {
  13197. _this.addImgDrawImG(data.Location);
  13198. } else if (type == 6) {
  13199. var _ftype = 1;
  13200. if (
  13201. c.indexOf(
  13202. data.Location.split(".")[
  13203. data.Location.split(".").length - 1
  13204. ].toLocaleUpperCase()
  13205. ) != -1
  13206. ) {
  13207. _ftype = 5;
  13208. } else if (
  13209. b.indexOf(
  13210. data.Location.split(".")[
  13211. data.Location.split(".").length - 1
  13212. ].toLocaleUpperCase()
  13213. ) != -1
  13214. ) {
  13215. _ftype = 4;
  13216. } else {
  13217. _ftype = 1;
  13218. }
  13219. _this.plworkFile.push({
  13220. name: file.name,
  13221. url: data.Location,
  13222. uid: file.uid,
  13223. fileType: _ftype,
  13224. username:
  13225. _this.plworkFile.length > 10
  13226. ? _this.plworkFile.length + 1
  13227. : "0" + (_this.plworkFile.length + 1),
  13228. });
  13229. } else if (type == 7) {
  13230. _this.addCourseWorksGong(i, data.Location, 32);
  13231. } else if (type == 8) {
  13232. _this.addCourseWorksGong(i, data.Location, 57);
  13233. }
  13234. _this.imgChange(null, null, type);
  13235. console.log(data.Location);
  13236. // _this.$message.success('上传成功'+data.Location)
  13237. }
  13238. });
  13239. }
  13240. },
  13241. async beforeUpload3(event, type, i) {
  13242. // this.$message.success('进入上传')
  13243. let file = "";
  13244. let cfindex2 = 0;
  13245. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  13246. file = event.target.files[cfindex];
  13247. var credentials = {
  13248. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13249. secretAccessKey: "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",
  13250. }; //秘钥形式的登录上传
  13251. window.AWS.config.update(credentials);
  13252. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13253. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13254. var _this = this;
  13255. // _this.progress = 0;
  13256. _this.proVisible2 = true;
  13257. var b = [
  13258. "DOC",
  13259. "DOCX",
  13260. "DOCM",
  13261. "DOTM",
  13262. "DOTX",
  13263. "PPTX",
  13264. "PPSX",
  13265. "PPT",
  13266. "PPS",
  13267. "PPTM",
  13268. "POTM",
  13269. "PPAM",
  13270. "POTX",
  13271. "PPSM",
  13272. ];
  13273. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13274. var photoA = [
  13275. "BMP",
  13276. "GIF",
  13277. "PNG",
  13278. "JPGE",
  13279. "JPG",
  13280. "TIF",
  13281. "PCX",
  13282. "TGA",
  13283. "EXIF",
  13284. "FPX",
  13285. "SVG",
  13286. "APNG",
  13287. ];
  13288. if (
  13289. photoA.indexOf(
  13290. file.name
  13291. .split(".")
  13292. [file.name.split(".").length - 1].toLocaleUpperCase()
  13293. ) != -1 &&
  13294. type != 4
  13295. ) {
  13296. // const blob = await imageConversion.compress(file, 0.8)
  13297. file = await this.pngToWhiteBg(file);
  13298. const blob = await imageConversion.compressAccurately(file, 256);
  13299. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13300. file = new File([blob], file.name, { type: file.type });
  13301. }
  13302. if (file) {
  13303. var params = {
  13304. Key:
  13305. file.name.split(".")[0] +
  13306. new Date().getTime() +
  13307. "." +
  13308. file.name.split(".")[file.name.split(".").length - 1],
  13309. ContentType: file.type,
  13310. Body: file,
  13311. "Access-Control-Allow-Credentials": "*",
  13312. ACL: "public-read",
  13313. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13314. var options = {
  13315. // partSize: 2048 * 1024 * 1024,
  13316. partSize: 1024 * 1024 * 1024,
  13317. queueSize: 2,
  13318. leavePartsOnError: true,
  13319. };
  13320. bucket
  13321. .upload(params, options)
  13322. .on("httpUploadProgress", function (evt) {
  13323. //这里可以写进度条
  13324. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13325. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13326. })
  13327. .send(function (err, data) {
  13328. // _this.progress = 100;
  13329. cfindex2++;
  13330. setTimeout(() => {
  13331. if (
  13332. cfindex2 == event.target.files.length - 1 ||
  13333. cfindex2 > event.target.files.length - 1
  13334. ) {
  13335. _this.proVisible2 = false;
  13336. }
  13337. }, 1000);
  13338. if (err) {
  13339. var a = _this.$refs.upload1.uploadFiles;
  13340. a.splice(a.length - 1, a.length);
  13341. _this.$message.error("上传失败");
  13342. } else {
  13343. // _this.$message.success('上传成功')
  13344. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13345. var c = [
  13346. "AVI",
  13347. "NAVI",
  13348. "MPEG",
  13349. "ASF",
  13350. "MOV",
  13351. "WMV",
  13352. "3GP",
  13353. "RM",
  13354. "RMVB",
  13355. "FLV",
  13356. "F4V",
  13357. "H.264",
  13358. "H.265",
  13359. "REAL VIDEO",
  13360. "MKV",
  13361. "WebM",
  13362. "HDDVD",
  13363. "MP4",
  13364. "MPG",
  13365. "M4V",
  13366. "MGV",
  13367. "OGV",
  13368. "QTM",
  13369. "STR",
  13370. "AMC",
  13371. "DVX",
  13372. "EVO",
  13373. "DAT",
  13374. "OGG",
  13375. "OGM",
  13376. ];
  13377. if (type == 1) {
  13378. _this.studyJuri[0].cover.push({
  13379. name: file.name,
  13380. url: data.Location,
  13381. uid: file.uid,
  13382. });
  13383. if (
  13384. c.indexOf(
  13385. _this.studyJuri[0].cover[0].url
  13386. .split(".")
  13387. [
  13388. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13389. ].toLocaleUpperCase()
  13390. ) != -1
  13391. ) {
  13392. _this.fileType = 2;
  13393. } else if (
  13394. b.indexOf(
  13395. _this.studyJuri[0].cover[0].url
  13396. .split(".")
  13397. [
  13398. _this.studyJuri[0].cover[0].url.split(".").length - 1
  13399. ].toLocaleUpperCase()
  13400. ) != -1
  13401. ) {
  13402. _this.fileType = 1;
  13403. } else {
  13404. _this.fileType = 0;
  13405. }
  13406. _this.imgChange(null, null, type);
  13407. } else if (type == 2) {
  13408. _this.upToolImg = data.Location;
  13409. _this.imgChange(null, null, type);
  13410. _this.addCourseWorks(i);
  13411. } else if (type == 4) {
  13412. _this.addPz("3", data.Location);
  13413. } else if (type == 5) {
  13414. _this.addImgDrawImG(data.Location);
  13415. } else if (type == 6) {
  13416. var _ftype = 1;
  13417. if (
  13418. c.indexOf(
  13419. data.Location.split(".")[
  13420. data.Location.split(".").length - 1
  13421. ].toLocaleUpperCase()
  13422. ) != -1
  13423. ) {
  13424. _ftype = 5;
  13425. } else if (
  13426. b.indexOf(
  13427. data.Location.split(".")[
  13428. data.Location.split(".").length - 1
  13429. ].toLocaleUpperCase()
  13430. ) != -1
  13431. ) {
  13432. _ftype = 4;
  13433. } else {
  13434. _ftype = 1;
  13435. }
  13436. _this.plworkFile.push({
  13437. name: file.name,
  13438. url: data.Location,
  13439. uid: file.uid,
  13440. fileType: _ftype,
  13441. username:
  13442. _this.plworkFile.length + 1 > 9
  13443. ? _this.plworkFile.length + 1
  13444. : "0" + (_this.plworkFile.length + 1),
  13445. });
  13446. }
  13447. _this.imgChange(null, null, type);
  13448. console.log(data.Location);
  13449. // _this.$message.success('上传成功'+data.Location)
  13450. }
  13451. });
  13452. }
  13453. }
  13454. },
  13455. beforeUpload2(event, type) {
  13456. var file = event.target.files[0];
  13457. var credentials = {
  13458. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13459. secretAccessKey: "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",
  13460. }; //秘钥形式的登录上传
  13461. window.AWS.config.update(credentials);
  13462. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13463. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13464. var _this = this;
  13465. _this.progress = 0;
  13466. _this.proVisible = true;
  13467. if (file) {
  13468. var params = {
  13469. Key:
  13470. file.name.split(".")[0] +
  13471. new Date().getTime() +
  13472. "." +
  13473. file.name.split(".")[file.name.split(".").length - 1],
  13474. ContentType: file.type,
  13475. Body: file,
  13476. "Access-Control-Allow-Credentials": "*",
  13477. ACL: "public-read",
  13478. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13479. var options = {
  13480. partSize: 2048 * 1024 * 1024,
  13481. queueSize: 2,
  13482. leavePartsOnError: true,
  13483. };
  13484. bucket
  13485. .upload(params, options)
  13486. .on("httpUploadProgress", function (evt) {
  13487. //这里可以写进度条
  13488. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13489. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  13490. })
  13491. .send(function (err, data) {
  13492. _this.progress = 100;
  13493. setTimeout(() => {
  13494. _this.proVisible = false;
  13495. }, 1000);
  13496. if (err) {
  13497. var a = _this.$refs.upload1.uploadFiles;
  13498. a.splice(a.length - 1, a.length);
  13499. _this.$message.error("上传失败");
  13500. } else {
  13501. if (type == 2) {
  13502. _this.studyJuri[0].upVedio.push({
  13503. name: file.name,
  13504. url: data.Location,
  13505. uid: file.uid,
  13506. });
  13507. _this.imgChange(null, null, type);
  13508. } else if (type == 3) {
  13509. _this.studyJuri[0].upFile.push({
  13510. name: file.name,
  13511. url: data.Location,
  13512. uid: file.uid,
  13513. });
  13514. _this.imgChange(null, null, type);
  13515. }
  13516. console.log(data.Location);
  13517. }
  13518. });
  13519. }
  13520. },
  13521. allScrell() {
  13522. window.parent.postMessage({ allScreen: this.screenType }, "*");
  13523. },
  13524. nextOrpreSteps(t) {
  13525. if (this.IsFollow && this.tType == 2) {
  13526. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13527. return;
  13528. }
  13529. var b = this.chapInfoList.length - 1;
  13530. if (t == 0) {
  13531. if (this.courseType == 0) {
  13532. if (this.taskCount == 0) {
  13533. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  13534. if (this.IsLookOpen) {
  13535. if (
  13536. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  13537. ) {
  13538. if (
  13539. this.courseDetail.userid != this.userid &&
  13540. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13541. ) {
  13542. this.$message.error("任务未解锁");
  13543. } else {
  13544. this.$message.error("上一任务未解锁");
  13545. }
  13546. return;
  13547. }
  13548. }
  13549. this.navList[this.courseType].isOpen = false;
  13550. this.courseType = b;
  13551. this.taskCount =
  13552. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13553. .length - 1;
  13554. this.navList[this.courseType].isOpen = true;
  13555. } else {
  13556. this.taskCount--;
  13557. }
  13558. } else {
  13559. if (this.taskCount == 0) {
  13560. this.navList[this.courseType].isOpen = false;
  13561. this.courseType--;
  13562. this.taskCount =
  13563. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  13564. .length - 1;
  13565. this.navList[this.courseType].isOpen = true;
  13566. } else {
  13567. this.taskCount--;
  13568. }
  13569. }
  13570. } else {
  13571. if (this.courseType == b) {
  13572. if (
  13573. this.taskCount ==
  13574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13575. 1
  13576. ) {
  13577. this.navList[this.courseType].isOpen = false;
  13578. this.courseType = 0;
  13579. this.taskCount = 0;
  13580. this.navList[this.courseType].isOpen = true;
  13581. } else {
  13582. var bbb = parseInt(this.taskCount) + 1;
  13583. if (
  13584. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13585. .isLook &&
  13586. this.courseDetail.userid != this.userid &&
  13587. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13588. this.IsLookOpen
  13589. ) {
  13590. this.$message.error("任务未解锁");
  13591. return;
  13592. }
  13593. this.taskCount++;
  13594. if (this.IsLookOpen) {
  13595. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13596. this.taskCount
  13597. ].isLook = true;
  13598. this.addCourseState(3);
  13599. }
  13600. }
  13601. } else {
  13602. if (
  13603. this.taskCount ==
  13604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  13605. 1
  13606. ) {
  13607. var bbb = parseInt(this.courseType) + 1;
  13608. if (
  13609. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  13610. this.courseDetail.userid != this.userid &&
  13611. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13612. this.IsLookOpen
  13613. ) {
  13614. this.$message.error("任务未解锁");
  13615. return;
  13616. }
  13617. this.navList[this.courseType].isOpen = false;
  13618. this.courseType++;
  13619. this.taskCount = 0;
  13620. this.navList[this.courseType].isOpen = true;
  13621. } else {
  13622. var bbb = parseInt(this.taskCount) + 1;
  13623. if (
  13624. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  13625. .isLook &&
  13626. this.courseDetail.userid != this.userid &&
  13627. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  13628. this.IsLookOpen
  13629. ) {
  13630. this.$message.error("任务未解锁");
  13631. return;
  13632. }
  13633. this.taskCount++;
  13634. }
  13635. if (this.IsLookOpen) {
  13636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13637. this.taskCount
  13638. ].isLook = true;
  13639. this.addCourseState(3);
  13640. }
  13641. }
  13642. // if (
  13643. // this.taskCount ==
  13644. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  13645. // ) {
  13646. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  13647. // } else {
  13648. // this.taskCount++;
  13649. // }
  13650. }
  13651. document.scrollingElement.scrollTop = 0;
  13652. this.showType = 0;
  13653. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13654. // if (this.vedio[this.taskCount].length > 0) {
  13655. // var a =
  13656. // document.getElementsByClassName("box_course")[this.taskCount]
  13657. // .offsetHeight;
  13658. // document.getElementsByClassName("vedioList")[
  13659. // this.taskCount
  13660. // ].style.height = a + "px";
  13661. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  13662. // a - 40 + "px";
  13663. // }
  13664. this.isNoHomeWork = false;
  13665. (this.studyJuri = [
  13666. {
  13667. content: "",
  13668. cover: [],
  13669. upVedio: [],
  13670. upFile: [],
  13671. },
  13672. ]),
  13673. (this.radio = []);
  13674. this.isClickNav = "";
  13675. this.selectPz();
  13676. this.getHomeWork();
  13677. this.getCourseDetail(2);
  13678. this.$forceUpdate();
  13679. },
  13680. openTask(s, n, i) {
  13681. if (this.IsFollow && this.tType == 2) {
  13682. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13683. return;
  13684. }
  13685. if (this.IsLookOpen) {
  13686. if (
  13687. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  13688. this.courseDetail.userid != this.userid &&
  13689. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  13690. ) {
  13691. this.$message.error("任务未解锁");
  13692. return;
  13693. }
  13694. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  13695. if (
  13696. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  13697. .isLook
  13698. ) {
  13699. this.$message.error("上一任务未解锁");
  13700. return;
  13701. }
  13702. } else if (s > this.courseType) {
  13703. if (n > 0) {
  13704. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  13705. this.$message.error("上一任务未解锁");
  13706. return;
  13707. }
  13708. } else {
  13709. if (
  13710. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  13711. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  13712. ].isLook
  13713. ) {
  13714. this.$message.error("上一任务未解锁");
  13715. return;
  13716. }
  13717. }
  13718. }
  13719. }
  13720. this.courseType = s;
  13721. this.navId = i;
  13722. this.taskCount = n;
  13723. if (this.IsLookOpen) {
  13724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13725. this.taskCount
  13726. ].isLook = true;
  13727. this.addCourseState(3);
  13728. }
  13729. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  13730. this.isCloseList[ci].isClose = 0;
  13731. }
  13732. this.showType = 0;
  13733. this.isNoHomeWork = false;
  13734. (this.studyJuri = [
  13735. {
  13736. content: "",
  13737. cover: [],
  13738. upVedio: [],
  13739. upFile: [],
  13740. },
  13741. ]),
  13742. (this.radio = []);
  13743. document.scrollingElement.scrollTop = 0;
  13744. // setTimeout(() => {
  13745. // let a = document.getElementById(i);
  13746. // if (a.offsetTop - 110 == 0) {
  13747. // window.scrollTo(0, 0);
  13748. // } else {
  13749. // window.scrollTo(0, a.offsetTop);
  13750. // }
  13751. // }, 0);
  13752. this.selectPz();
  13753. this.getHomeWork();
  13754. this.getCourseDetail(2);
  13755. },
  13756. get(i) {
  13757. if (this.IsFollow && this.tType == 2) {
  13758. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  13759. return;
  13760. }
  13761. this.navList[i].isOpen = !this.navList[i].isOpen;
  13762. },
  13763. addQuestion() {
  13764. this.answerList.push({
  13765. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13766. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13767. });
  13768. let params = [
  13769. {
  13770. uid: this.userid,
  13771. cid: this.id,
  13772. stage: this.courseType,
  13773. task: this.taskCount,
  13774. tool: this.toolindex,
  13775. content: JSON.stringify(this.answerList),
  13776. type: 3,
  13777. },
  13778. ];
  13779. this.ajax
  13780. .post(this.$store.state.api + "addCourseWorks", params)
  13781. .then((res) => {
  13782. this.$message({
  13783. message: "提交成功",
  13784. type: "success",
  13785. });
  13786. this.answerList = [];
  13787. this.answerDialogVisible = false;
  13788. this.selectStudent();
  13789. this.selectSWorks();
  13790. this.selectSLook();
  13791. })
  13792. .catch((err) => {
  13793. this.$message.error("提交失败");
  13794. console.error(err);
  13795. });
  13796. },
  13797. addQuestionTeacher() {
  13798. this.answerList.push({
  13799. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  13800. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  13801. });
  13802. let params = [
  13803. {
  13804. uid: this.sStudent.userid,
  13805. cid: this.id,
  13806. stage: this.courseType,
  13807. task: this.taskCount,
  13808. tool: this.toolindex,
  13809. content: JSON.stringify(this.answerList),
  13810. type: 3,
  13811. ateacher: this.userid,
  13812. },
  13813. ];
  13814. this.ajax
  13815. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13816. .then((res) => {
  13817. this.$message({
  13818. message: "提交成功",
  13819. type: "success",
  13820. });
  13821. this.answerList = [];
  13822. this.questionAnswer = "";
  13823. this.answerDialogVisibleTeacher = false;
  13824. this.selectStudent();
  13825. this.selectSWorks();
  13826. this.selectSLook();
  13827. })
  13828. .catch((err) => {
  13829. this.$message.error("提交失败");
  13830. console.error(err);
  13831. });
  13832. },
  13833. refreshCourse() {
  13834. // window.location.reload();
  13835. this.navList = [];
  13836. this.getCourseDetail(1);
  13837. },
  13838. getCourseDetail(type, gindex) {
  13839. let loading;
  13840. if (type != 2) {
  13841. loading = this.$loading.service({
  13842. background: "rgba(255, 255, 255, 0.7)",
  13843. target: document.querySelector(".student_table"),
  13844. });
  13845. }
  13846. // this.navList[0].isOpen = false;
  13847. // this.navList[this.courseType].isOpen = true;
  13848. // this.courseType = this.courseTypeLine;
  13849. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  13850. let params = {
  13851. courseId: this.id,
  13852. };
  13853. this.ajax
  13854. .get(this.$store.state.api + "selectCourseDetail3", params)
  13855. .then((res) => {
  13856. if (type != 2) {
  13857. loading.close();
  13858. if (
  13859. this.courseType >
  13860. JSON.parse(res.data[0][0].chapters).length - 1
  13861. ) {
  13862. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  13863. }
  13864. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  13865. .chapterInfo[0].taskJson;
  13866. var b = [
  13867. "AVI",
  13868. "NAVI",
  13869. "MPEG",
  13870. "ASF",
  13871. "MOV",
  13872. "WMV",
  13873. "3GP",
  13874. "RM",
  13875. "RMVB",
  13876. "FLV",
  13877. "F4V",
  13878. "H.264",
  13879. "H.265",
  13880. "REAL VIDEO",
  13881. "MKV",
  13882. "WebM",
  13883. "HDDVD",
  13884. "MP4",
  13885. "MPG",
  13886. "M4V",
  13887. "MGV",
  13888. "OGV",
  13889. "QTM",
  13890. "STR",
  13891. "AMC",
  13892. "DVX",
  13893. "EVO",
  13894. "DAT",
  13895. "OGG",
  13896. "OGM",
  13897. "MP3",
  13898. ];
  13899. let _chapterData = [];
  13900. for (var i = 0; i < a.length; i++) {
  13901. var c = a[i].chapterData;
  13902. this.vedio[i] = [];
  13903. this.textList[i] = [];
  13904. this.lineList[i] = [];
  13905. this.chapToolList[i] = [];
  13906. this.file[i] = [];
  13907. this.fileC[i] = [];
  13908. _chapterData[i] = c.filter((el) => {
  13909. return el.type != 12;
  13910. });
  13911. this.fileC[i] = c.filter((el) => {
  13912. return el.type == 12;
  13913. });
  13914. // else if (c[j].type == 12) {
  13915. // this.fileC[i].push(c[j]);
  13916. // }
  13917. for (var j = 0; j < c.length; j++) {
  13918. if (c[j].type == 7) {
  13919. this.chapToolList[i].push(c[j]);
  13920. } else if (c[j].type == 8) {
  13921. this.lineList[i].push(c[j]);
  13922. } else if (c[j].type == 6) {
  13923. this.textList[i].push(c[j]);
  13924. } else {
  13925. if (
  13926. b.indexOf(
  13927. c[j].url
  13928. .split(".")
  13929. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  13930. ) != -1
  13931. ) {
  13932. this.vedio[i].push(c[j]);
  13933. } else {
  13934. this.file[i].push(c[j]);
  13935. }
  13936. }
  13937. }
  13938. var d = JSON.parse(JSON.stringify(this.playerOptions));
  13939. d.sources[0].src =
  13940. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  13941. this.playerO[i] = d;
  13942. }
  13943. this.courseDetail = res.data[0][0];
  13944. this.tcid = this.arrayToArray(
  13945. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  13946. this.tcid2 ? this.tcid2.split(",") : []
  13947. ).join(",");
  13948. console.log(this.tcid);
  13949. this.evalua = res.data[0][0].evaId;
  13950. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  13951. this.courseType
  13952. ];
  13953. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  13954. if (this.tcid && res.data[1].length) {
  13955. let _inviteA = [];
  13956. for (var ik = 0; ik < res.data[1].length; ik++) {
  13957. _inviteA.push({
  13958. cid: res.data[1][ik].classid,
  13959. ic: res.data[1][ik].code,
  13960. });
  13961. }
  13962. for (var ik = 0; ik < _inviteA.length; ik++) {
  13963. if (
  13964. this.arrayToArray(
  13965. _inviteA[ik].cid.split(","),
  13966. this.tcid.split(",")
  13967. ).length
  13968. ) {
  13969. this.inviteCode = _inviteA[ik].ic;
  13970. break;
  13971. }
  13972. }
  13973. }
  13974. for (var l = 0; l < this.chapInfoList.length; l++) {
  13975. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  13976. for (var m = 0; m < w.length; m++) {
  13977. w[m].id = l + "-" + m;
  13978. }
  13979. }
  13980. if (
  13981. _chapterData[this.taskCount].length &&
  13982. _chapterData[this.taskCount][0].type == 2
  13983. ) {
  13984. this.showType = 0;
  13985. } else {
  13986. if (_chapterData[this.taskCount].length > 0) {
  13987. let _url = _chapterData[this.taskCount][0].url;
  13988. if (_chapterData[this.taskCount][0].type == 8) {
  13989. this.showType = 2;
  13990. if (
  13991. _url.indexOf("https://") == -1 &&
  13992. _url.indexOf("http://") == -1
  13993. ) {
  13994. _url = "https://" + _url;
  13995. }
  13996. this.pptImgUrl1 = _url;
  13997. } else if (_chapterData[this.taskCount][0].type == 3) {
  13998. if (
  13999. _url
  14000. .split(".")
  14001. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14002. ) {
  14003. this.showType = 3;
  14004. this.pptImgUrl1 = _url;
  14005. } else if (
  14006. this.isAssetTypeAnImage(
  14007. _url
  14008. .split(".")
  14009. [_url.split(".").length - 1].toLocaleLowerCase()
  14010. )
  14011. ) {
  14012. this.showType = 4;
  14013. this.pptImgUrl1 = _url;
  14014. } else {
  14015. this.showType = 2;
  14016. this.pptImgUrl1 =
  14017. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14018. _url;
  14019. }
  14020. } else if (_chapterData[this.taskCount][0].type == 13) {
  14021. this.showType = 4;
  14022. this.pptImgUrl1 = _url;
  14023. } else if (_chapterData[this.taskCount][0].type == 6) {
  14024. this.showType = 1;
  14025. this.text = this.textList[this.taskCount][0];
  14026. }
  14027. }
  14028. }
  14029. this.isClickNav = 0;
  14030. if (
  14031. !_chapterData[this.taskCount].length ||
  14032. _chapterData[this.taskCount][0].type == 12
  14033. ) {
  14034. this.isClickNav = "";
  14035. this.showType = "";
  14036. }
  14037. this.vChapterData = _chapterData;
  14038. } else {
  14039. this.showType = 0;
  14040. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14041. .chapterInfo[0].taskJson;
  14042. var b = [
  14043. "AVI",
  14044. "NAVI",
  14045. "MPEG",
  14046. "ASF",
  14047. "MOV",
  14048. "WMV",
  14049. "3GP",
  14050. "RM",
  14051. "RMVB",
  14052. "FLV",
  14053. "F4V",
  14054. "H.264",
  14055. "H.265",
  14056. "REAL VIDEO",
  14057. "MKV",
  14058. "WebM",
  14059. "HDDVD",
  14060. "MP4",
  14061. "MPG",
  14062. "M4V",
  14063. "MGV",
  14064. "OGV",
  14065. "QTM",
  14066. "STR",
  14067. "AMC",
  14068. "DVX",
  14069. "EVO",
  14070. "DAT",
  14071. "OGG",
  14072. "OGM",
  14073. "MP3",
  14074. ];
  14075. let _chapterData = [];
  14076. for (var i = 0; i < a.length; i++) {
  14077. var c = a[i].chapterData;
  14078. this.vedio[i] = [];
  14079. this.textList[i] = [];
  14080. this.lineList[i] = [];
  14081. this.chapToolList[i] = [];
  14082. this.file[i] = [];
  14083. this.fileC[i] = [];
  14084. _chapterData[i] = c.filter((el) => {
  14085. return el.type != 12;
  14086. });
  14087. this.fileC[i] = c.filter((el) => {
  14088. return el.type == 12;
  14089. });
  14090. for (var j = 0; j < c.length; j++) {
  14091. if (c[j].type == 7) {
  14092. this.chapToolList[i].push(c[j]);
  14093. } else if (c[j].type == 8) {
  14094. this.lineList[i].push(c[j]);
  14095. } else if (c[j].type == 6) {
  14096. this.textList[i].push(c[j]);
  14097. } else {
  14098. if (
  14099. b.indexOf(
  14100. c[j].url
  14101. .split(".")
  14102. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14103. ) != -1
  14104. ) {
  14105. this.vedio[i].push(c[j]);
  14106. } else {
  14107. this.file[i].push(c[j]);
  14108. }
  14109. }
  14110. }
  14111. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14112. d.sources[0].src =
  14113. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14114. this.playerO[i] = d;
  14115. }
  14116. if (
  14117. _chapterData[this.taskCount].length &&
  14118. _chapterData[this.taskCount][0].type == 2
  14119. ) {
  14120. this.showType = 0;
  14121. } else {
  14122. if (_chapterData[this.taskCount].length > 0) {
  14123. let _url = _chapterData[this.taskCount][0].url;
  14124. if (_chapterData[this.taskCount][0].type == 8) {
  14125. this.showType = 2;
  14126. if (
  14127. _url.indexOf("https://") == -1 &&
  14128. _url.indexOf("http://") == -1
  14129. ) {
  14130. _url = "https://" + _url;
  14131. }
  14132. this.pptImgUrl1 = _url;
  14133. } else if (_chapterData[this.taskCount][0].type == 3) {
  14134. if (
  14135. _url
  14136. .split(".")
  14137. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14138. ) {
  14139. this.showType = 3;
  14140. this.pptImgUrl1 = _url;
  14141. } else if (
  14142. this.isAssetTypeAnImage(
  14143. _url
  14144. .split(".")
  14145. [_url.split(".").length - 1].toLocaleLowerCase()
  14146. )
  14147. ) {
  14148. this.showType = 4;
  14149. this.pptImgUrl1 = _url;
  14150. } else {
  14151. this.showType = 2;
  14152. this.pptImgUrl1 =
  14153. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14154. _url;
  14155. }
  14156. } else if (_chapterData[this.taskCount][0].type == 13) {
  14157. this.showType = 4;
  14158. this.pptImgUrl1 = _url;
  14159. } else if (_chapterData[this.taskCount][0].type == 6) {
  14160. this.showType = 1;
  14161. this.text = this.textList[this.taskCount][0];
  14162. }
  14163. }
  14164. }
  14165. this.isClickNav = 0;
  14166. if (
  14167. !_chapterData[this.taskCount].length ||
  14168. _chapterData[this.taskCount][0].type == 12
  14169. ) {
  14170. this.isClickNav = "";
  14171. this.showType = "";
  14172. }
  14173. this.vChapterData = _chapterData;
  14174. this.$forceUpdate();
  14175. }
  14176. // else {
  14177. // this.courseDetail = res.data[0][0];
  14178. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14179. // }
  14180. let _this = this;
  14181. if (_this.timer) {
  14182. clearInterval(_this.timer);
  14183. _this.timer = null;
  14184. }
  14185. if (_this.tcid) {
  14186. _this.getCourseGroup(gindex);
  14187. } else {
  14188. _this.selectSWorks(gindex);
  14189. }
  14190. _this.selectStudent();
  14191. _this.selectSLook();
  14192. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14193. _this.setCTask();
  14194. }
  14195. if (_this.dialogVisibleGroup) {
  14196. _this.groupJson =
  14197. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14198. _this.taskCount
  14199. ].toolChoose[_this.toolindex].groupJson;
  14200. }
  14201. _this.$nextTick(() => {
  14202. setTimeout(() => {
  14203. _this.checkEva();
  14204. }, 1000);
  14205. });
  14206. _this.timer = setInterval(function () {
  14207. // _this.getCourseDetail(2);
  14208. if (_this.tcid) {
  14209. _this.getCourseGroup(gindex);
  14210. } else {
  14211. _this.selectSWorks(gindex);
  14212. }
  14213. _this.selectStudent();
  14214. _this.selectSLook();
  14215. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14216. _this.setCTask();
  14217. }
  14218. if (_this.dialogVisibleGroup) {
  14219. _this.groupJson =
  14220. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14221. _this.taskCount
  14222. ].toolChoose[_this.toolindex].groupJson;
  14223. }
  14224. if (_this.tType == 4 || _this.ispzType == 4) {
  14225. _this.selectPz();
  14226. }
  14227. }, 5000);
  14228. _this.$nextTick(function () {
  14229. setTimeout(() => {
  14230. // var a =
  14231. // document.getElementsByClassName("box_course")[0].offsetHeight;
  14232. // document.getElementsByClassName("vedioList")[0].style.height =
  14233. // a + "px";
  14234. // document.getElementsByClassName("navBox")[0].style.height =
  14235. // a - 40 + "px";
  14236. // if (_this.vedio[_this.taskCount].length > 0) {
  14237. // _this.vedioTime = [];
  14238. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  14239. // _this.vedioTime[i] = document.getElementsByClassName(
  14240. // "vjs-duration-display"
  14241. // )[i].textContent;
  14242. // }
  14243. // }
  14244. }, 1000);
  14245. });
  14246. })
  14247. .catch((err) => {
  14248. loading.close();
  14249. console.error(err);
  14250. });
  14251. },
  14252. getCourseGroup(gindex) {
  14253. let params = {
  14254. cid: this.id,
  14255. classid: this.tcid ? this.tcid : "1",
  14256. };
  14257. this.ajax
  14258. .get(this.$store.state.api + "getCourseGroup", params)
  14259. .then((res) => {
  14260. if (res.data && res.data[0].length) {
  14261. if (!this.isGroup) {
  14262. let courseGroup = JSON.parse(res.data[0][0].group);
  14263. courseGroup.group = courseGroup.group.filter((el) => {
  14264. el.works = [];
  14265. return el;
  14266. });
  14267. if (courseGroup.isopen == 2) {
  14268. this.isGroup = false;
  14269. this.selectSWorks(gindex);
  14270. return;
  14271. }
  14272. this.courseGroup = courseGroup;
  14273. let groupPerson = res.data[1];
  14274. let group = JSON.parse(res.data[0][0].group).group;
  14275. let courseGroupStudent = {};
  14276. let courseGroupStudentUid = {};
  14277. for (var i = 0; i < group.length; i++) {
  14278. courseGroupStudent[group[i].id] = [];
  14279. courseGroupStudentUid[group[i].id] = [];
  14280. for (var j = 0; j < groupPerson.length; j++) {
  14281. if (groupPerson[j].groupCid == group[i].id) {
  14282. courseGroupStudent[group[i].id].push(groupPerson[j]);
  14283. courseGroupStudentUid[group[i].id].push(
  14284. groupPerson[j].userid
  14285. );
  14286. }
  14287. }
  14288. }
  14289. this.courseGroupStudent = courseGroupStudent;
  14290. this.courseGroupStudentUid = courseGroupStudentUid;
  14291. }
  14292. if (this.courseGroup.isopen == 2) {
  14293. this.isGroup = false;
  14294. } else {
  14295. this.isGroup = true;
  14296. }
  14297. this.selectSWorks(gindex);
  14298. } else {
  14299. this.selectSWorks(gindex);
  14300. this.isGroup = false;
  14301. }
  14302. })
  14303. .catch((err) => {
  14304. // this.$message.error("网络不佳");
  14305. console.error(err);
  14306. });
  14307. },
  14308. setOperationTime() {
  14309. let _this = this;
  14310. if (_this.opertimer) {
  14311. clearInterval(_this.opertimer);
  14312. _this.opertimer = null;
  14313. }
  14314. _this.opertimer = setInterval(() => {
  14315. _this.setoTime("600");
  14316. }, 600000);
  14317. },
  14318. setoTime(time) {
  14319. let params = [
  14320. {
  14321. uid: this.userid,
  14322. cid: this.id,
  14323. type: "2",
  14324. time: time,
  14325. },
  14326. ];
  14327. this.ajax
  14328. .post(this.$store.state.api + "addOperationTimeT2", params)
  14329. .then((res) => {})
  14330. .catch((err) => {
  14331. console.error(err);
  14332. });
  14333. },
  14334. addPz(type, content) {
  14335. if (type == "1" && this.pzConText == "") {
  14336. this.$message.error("批注不能为空!");
  14337. return;
  14338. }
  14339. let params = [
  14340. {
  14341. cid: this.id,
  14342. uid: this.userid,
  14343. s: this.courseType,
  14344. t: this.taskCount,
  14345. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  14346. type: type,
  14347. },
  14348. ];
  14349. this.ajax
  14350. .post(this.$store.state.api + "addPz2", params)
  14351. .then((res) => {
  14352. this.$message({
  14353. message: "添加成功",
  14354. type: "success",
  14355. });
  14356. this.pzConText = "";
  14357. this.addPzDialog = false;
  14358. this.selectPz();
  14359. })
  14360. .catch((err) => {
  14361. this.$message.error("添加失败");
  14362. console.error(err);
  14363. });
  14364. },
  14365. deletePz(id) {
  14366. this.$confirm("确定删除此批注吗?", "提示", {
  14367. confirmButtonText: "确定",
  14368. cancelButtonText: "取消",
  14369. type: "warning",
  14370. })
  14371. .then(() => {
  14372. let params = [
  14373. {
  14374. id: id,
  14375. },
  14376. ];
  14377. this.ajax
  14378. .post(this.$store.state.api + "deletePz", params)
  14379. .then((res) => {
  14380. this.$message({
  14381. message: "删除成功",
  14382. type: "success",
  14383. });
  14384. this.selectPz();
  14385. })
  14386. .catch((err) => {
  14387. this.$message.error("网络异常");
  14388. console.error(err);
  14389. });
  14390. })
  14391. .catch(() => {});
  14392. },
  14393. setPz() {
  14394. if (this.ispzType == 4) {
  14395. this.ispzType = 0;
  14396. this.pzDialog = false;
  14397. return;
  14398. }
  14399. this.ispzType = 4;
  14400. this.pzDialog = true;
  14401. this.selectPz();
  14402. },
  14403. selectPz() {
  14404. let params = {
  14405. cid: this.id,
  14406. s: this.courseType,
  14407. t: this.taskCount,
  14408. };
  14409. this.ajax
  14410. .get(this.$store.state.api + "selectPzList", params)
  14411. .then((res) => {
  14412. this.pzList = res.data[0];
  14413. })
  14414. .catch((err) => {
  14415. console.error(err);
  14416. });
  14417. },
  14418. updateSLook() {
  14419. let params = {
  14420. sopen: this.sIsOpen == false ? 1 : 2,
  14421. cid: this.id,
  14422. };
  14423. this.ajax
  14424. .get(this.$store.state.api + "updateCourseSLook", params)
  14425. .then((res) => {
  14426. if (this.sIsOpen == true) {
  14427. this.$message({
  14428. message: "权限设置成功",
  14429. type: "success",
  14430. });
  14431. } else {
  14432. this.$message({
  14433. message: "权限关闭成功",
  14434. type: "success",
  14435. });
  14436. }
  14437. })
  14438. .catch((err) => {
  14439. console.error(err);
  14440. });
  14441. },
  14442. updateFollow() {
  14443. let params = [
  14444. {
  14445. sopen: this.IsFollow == false ? 1 : 2,
  14446. cid: this.id,
  14447. },
  14448. ];
  14449. this.ajax
  14450. .post(this.$store.state.api + "updateCourseFollow", params)
  14451. .then((res) => {
  14452. if (this.IsFollow == true) {
  14453. this.$message({
  14454. message: "开启成功",
  14455. type: "success",
  14456. });
  14457. } else {
  14458. this.$message({
  14459. message: "关闭成功",
  14460. type: "success",
  14461. });
  14462. }
  14463. this.setCTask();
  14464. })
  14465. .catch((err) => {
  14466. console.error(err);
  14467. });
  14468. },
  14469. setCTask() {
  14470. let params = [
  14471. {
  14472. sopen: this.courseType + "-" + this.taskCount,
  14473. cid: this.id,
  14474. },
  14475. ];
  14476. this.ajax
  14477. .post(this.$store.state.api + "updateCourseFollowC", params)
  14478. .then((res) => {})
  14479. .catch((err) => {
  14480. console.error(err);
  14481. });
  14482. },
  14483. updateLookOpen() {
  14484. let params = [
  14485. {
  14486. sopen: this.IsLookOpen == false ? 1 : 2,
  14487. cid: this.id,
  14488. },
  14489. ];
  14490. this.ajax
  14491. .post(this.$store.state.api + "updateCourseLookOpen", params)
  14492. .then((res) => {
  14493. if (this.IsLookOpen == true) {
  14494. // if (this.courseType != 0 && this.taskCount != 0) {
  14495. // this.openTask(0, 0, "0-0");
  14496. // }
  14497. this.$message({
  14498. message: "权限设置成功",
  14499. type: "success",
  14500. });
  14501. } else {
  14502. this.$message({
  14503. message: "权限关闭成功",
  14504. type: "success",
  14505. });
  14506. }
  14507. this.getCourseState(2);
  14508. })
  14509. .catch((err) => {
  14510. console.error(err);
  14511. });
  14512. },
  14513. selectSLook() {
  14514. let params = {
  14515. cid: this.id,
  14516. };
  14517. this.ajax
  14518. .get(this.$store.state.api + "selectCourseSLook", params)
  14519. .then((res) => {
  14520. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  14521. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  14522. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  14523. if (!this.IsLookOpen) {
  14524. this.setNavList();
  14525. } else {
  14526. this.getCourseState(1);
  14527. }
  14528. if (this.IsFollow && this.tType == 2) {
  14529. this.setContent2(false);
  14530. let _followC = res.data[0][0].followC.split("-");
  14531. if (
  14532. this.courseType != _followC[0] ||
  14533. this.taskCount != _followC[1]
  14534. ) {
  14535. this.navList[this.courseType].isOpen = false;
  14536. this.courseType = _followC[0];
  14537. this.navList[this.courseType].isOpen = true;
  14538. this.taskCount = parseInt(_followC[1]);
  14539. this.navId = res.data[0][0].followC;
  14540. document.scrollingElement.scrollTop = 0;
  14541. this.getCourseDetail(2);
  14542. }
  14543. }
  14544. })
  14545. .catch((err) => {
  14546. console.error(err);
  14547. });
  14548. },
  14549. setNavList() {
  14550. if (this.navList.length == 0) {
  14551. this.navList = [];
  14552. for (var l = 0; l < this.chapInfoList.length; l++) {
  14553. var q = this.chapInfoList[l].dyName;
  14554. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14555. var e;
  14556. this.navList.push({
  14557. dyName: q,
  14558. isOpen: l === 0 ? true : false,
  14559. task: [],
  14560. });
  14561. for (var r = 0; r < w.length; r++) {
  14562. e = w[r].task;
  14563. if (this.chapInfoList[l].easy == 1) {
  14564. this.navList[l].task.push({
  14565. taskName: q,
  14566. id: l + "-" + r,
  14567. isLook: w[r].isLook,
  14568. });
  14569. } else {
  14570. this.navList[l].task.push({
  14571. taskName: e,
  14572. id: l + "-" + r,
  14573. isLook: w[r].isLook,
  14574. });
  14575. }
  14576. // this.navId = this.navId ? this.navId : l + "-" + r;
  14577. // this.navId = l + "-" + r;
  14578. }
  14579. }
  14580. this.navList[0].isOpen = false;
  14581. this.navList[this.courseType].isOpen = true;
  14582. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14583. } else {
  14584. this.setNavList2();
  14585. }
  14586. },
  14587. setNavList2() {
  14588. for (var l = 0; l < this.chapInfoList.length; l++) {
  14589. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14590. for (var r = 0; r < w.length; r++) {
  14591. this.navList[l].task[r].isLook = w[r].isLook;
  14592. }
  14593. }
  14594. if (
  14595. this.IsLookOpen &&
  14596. !this.navList[this.courseType].task[this.taskCount].isLook
  14597. ) {
  14598. this.openTask(0, 0, "0-0");
  14599. }
  14600. this.$forceUpdate();
  14601. },
  14602. getCourseState(type) {
  14603. let params = {
  14604. cid: this.id,
  14605. };
  14606. this.ajax
  14607. .get(this.$store.state.api + "getCourseState", params)
  14608. .then((res) => {
  14609. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  14610. this.chapInfoList = JSON.parse(res.data[0][0].state);
  14611. this.setNavList();
  14612. this.$forceUpdate();
  14613. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  14614. this.addCourseState(2);
  14615. } else {
  14616. this.addCourseState(1);
  14617. }
  14618. })
  14619. .catch((err) => {
  14620. console.error(err);
  14621. });
  14622. },
  14623. addCourseState(type) {
  14624. let _state = this.chapInfoList;
  14625. // this.courseType this.taskCount
  14626. if (type == 1 || type == 2) {
  14627. for (var i = 0; i < _state.length; i++) {
  14628. let el = _state[i].chapterInfo[0].taskJson;
  14629. for (var j = 0; j < el.length; j++) {
  14630. // if (i == 0 && j == 0) {
  14631. // el[j].isLook = true;
  14632. // } else {
  14633. // el[j].isLook = false;
  14634. // }
  14635. if (
  14636. this.courseType > i ||
  14637. (this.courseType == i && this.taskCount + 1 > j)
  14638. ) {
  14639. el[j].isLook = true;
  14640. } else {
  14641. el[j].isLook = false;
  14642. }
  14643. }
  14644. }
  14645. }
  14646. let params = [
  14647. {
  14648. cid: this.id,
  14649. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  14650. },
  14651. ];
  14652. this.ajax
  14653. .post(
  14654. this.$store.state.api +
  14655. (type == 1 ? "addCourseState" : "updateCourseSate"),
  14656. params
  14657. )
  14658. .then((res) => {
  14659. if (this.IsLookOpen) {
  14660. this.setNavList();
  14661. }
  14662. if (type == 3 && type == 2) {
  14663. this.getCourseState(1);
  14664. }
  14665. })
  14666. .catch((err) => {
  14667. console.error(err);
  14668. });
  14669. },
  14670. getHomeWork() {
  14671. let params = {
  14672. cid: this.id,
  14673. stage: this.courseType,
  14674. task: this.taskCount,
  14675. uid: this.userid,
  14676. };
  14677. this.ajax
  14678. .get(this.$store.state.api + "selectWork", params)
  14679. .then((res) => {
  14680. if (res.data[0].length > 0) {
  14681. this.studyJuri = JSON.parse(res.data[0][0].content);
  14682. this.isNoHomeWork = true;
  14683. }
  14684. })
  14685. .catch((err) => {
  14686. console.error(err);
  14687. });
  14688. },
  14689. isAssetTypeAnImage(ext) {
  14690. return (
  14691. [
  14692. "png",
  14693. "jpg",
  14694. "jpeg",
  14695. "bmp",
  14696. "gif",
  14697. "webp",
  14698. "psd",
  14699. "svg",
  14700. "tiff",
  14701. ].indexOf(ext) !== -1
  14702. );
  14703. },
  14704. switchVideo(media) {
  14705. this.playerO = {};
  14706. this.playerOptions.poster = "";
  14707. this.playerOptions.sources[0].src = media;
  14708. this.playerO = this.playerOptions;
  14709. },
  14710. onPlayerPlay() {},
  14711. onPlayerTimeupdate(player) {
  14712. let gklog = player.cache_.currentTime; //当前播放的秒数
  14713. let a = player.cache_.duration; //视频的总时长
  14714. let gklog2 = parseInt(gklog);
  14715. // if(gklog2 == '3'){
  14716. // player.pause()
  14717. // setTimeout(()=>{
  14718. // player.currentTime(gklog2+1)
  14719. // player.play()
  14720. // },1000)
  14721. // }
  14722. console.log(" onPlayerTimeupdate!", gklog);
  14723. console.log(" onPlayerTimeupdate!", gklog2);
  14724. },
  14725. lookVedio(u, i) {
  14726. this.isClickNav = "";
  14727. // this.playerOptions.sources[0].src = u;
  14728. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14729. d.sources[0].src = u;
  14730. this.playerO[this.taskCount] = d;
  14731. this.showType = 0;
  14732. // this.isClickNav = "video" + i;
  14733. this.isClickNav = i;
  14734. this.$forceUpdate();
  14735. },
  14736. lookText(i, t) {
  14737. this.isClickNav = "";
  14738. // this.text = this.textList[i][t];
  14739. this.text = this.vChapterData[i][t];
  14740. // this.dialogVisible1 = true;
  14741. this.showType = 1;
  14742. // this.isClickNav = "text" + t;
  14743. this.isClickNav = t;
  14744. },
  14745. lookTools(i, t) {
  14746. this.chapTools = this.chapToolList[i][t];
  14747. this.dialogVisible2 = true;
  14748. },
  14749. openFile(f) {
  14750. this.pptImgUrl = "";
  14751. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14752. if (
  14753. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  14754. -1
  14755. ) {
  14756. this.pptImgUrl =
  14757. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  14758. this.showPDF = false;
  14759. this.dialogVisible3 = true;
  14760. } else if (
  14761. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14762. ) {
  14763. this.pptImgUrl = f;
  14764. this.showPDF = true;
  14765. this.dialogVisible3 = true;
  14766. }
  14767. },
  14768. openTable(f) {
  14769. this.tableJson = JSON.parse(f.works);
  14770. this.dialogVisibleTable2 = true;
  14771. },
  14772. openWord(f) {
  14773. this.tableJson = JSON.parse(f.works);
  14774. this.dialogVisibleTable3 = true;
  14775. },
  14776. doUrl(url, i) {
  14777. this.isClickNav = "";
  14778. this.pptImgUrl1 = "";
  14779. this.showType = 2;
  14780. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  14781. url = "https://" + url;
  14782. }
  14783. this.pptImgUrl1 = "";
  14784. setTimeout(() => {
  14785. this.pptImgUrl1 = url;
  14786. }, 500);
  14787. // this.isClickNav = "line" + i;
  14788. this.isClickNav = i;
  14789. this.$forceUpdate();
  14790. },
  14791. checkPhoto(f, i) {
  14792. this.showType = 4;
  14793. this.pptImgUrl1 = f.url;
  14794. this.isClickNav = i;
  14795. this.$forceUpdate();
  14796. },
  14797. downFile(f, i) {
  14798. this.isClickNav = "";
  14799. this.pptImgUrl1 = "";
  14800. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  14801. if (
  14802. a.indexOf(
  14803. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  14804. ) != -1
  14805. ) {
  14806. this.pptImgUrl1 =
  14807. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  14808. // this.dialogVisible3 = true;
  14809. this.showType = 2;
  14810. } else if (
  14811. this.isAssetTypeAnImage(
  14812. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  14813. )
  14814. ) {
  14815. this.showType = 4;
  14816. this.pptImgUrl1 = f.url;
  14817. } else if (
  14818. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  14819. "PDF"
  14820. ) {
  14821. this.pptImgUrl1 = f.url;
  14822. // this.dialogVisible3 = true;
  14823. this.showType = 3;
  14824. } else {
  14825. window.open(this.file[i].url);
  14826. }
  14827. // this.isClickNav = "word" + i;
  14828. this.isClickNav = i;
  14829. },
  14830. downFileList(i) {
  14831. window.open(this.noImgList[i].url);
  14832. },
  14833. openAddWork() {
  14834. this.dialogVisible = true;
  14835. },
  14836. addBzWorks() {
  14837. let params = [
  14838. {
  14839. uid: this.userid,
  14840. cid: this.id,
  14841. stage: this.courseType,
  14842. task: this.taskCount,
  14843. tool: this.toolindex,
  14844. content: JSON.stringify(this.eScore),
  14845. type: 6,
  14846. },
  14847. ];
  14848. this.ajax
  14849. .post(this.$store.state.api + "addCourseWorks", params)
  14850. .then((res) => {
  14851. this.$message({
  14852. message: "提交成功",
  14853. type: "success",
  14854. });
  14855. this.eScore = { eBzText: "", eStar: [] };
  14856. this.studentEvalDialogVisible = false;
  14857. this.selectSWorks();
  14858. })
  14859. .catch((err) => {
  14860. this.$message.error("提交失败");
  14861. console.error(err);
  14862. });
  14863. },
  14864. addBzWorksTeacher() {
  14865. let params = [
  14866. {
  14867. uid: this.sStudent.userid,
  14868. cid: this.id,
  14869. stage: this.courseType,
  14870. task: this.taskCount,
  14871. tool: this.toolindex,
  14872. content: JSON.stringify(this.eScore),
  14873. type: 6,
  14874. },
  14875. ];
  14876. this.ajax
  14877. .post(this.$store.state.api + "addCourseWorks", params)
  14878. .then((res) => {
  14879. this.$message({
  14880. message: "提交成功",
  14881. type: "success",
  14882. });
  14883. this.eScore = { eBzText: "", eStar: [] };
  14884. this.studentEvalDialogVisibleTeacher = false;
  14885. this.selectSWorks();
  14886. })
  14887. .catch((err) => {
  14888. this.$message.error("提交失败");
  14889. console.error(err);
  14890. });
  14891. },
  14892. addStudentAsk() {
  14893. if (!this.radio.length) {
  14894. this.$message.error("请选择选项");
  14895. return;
  14896. }
  14897. for (var i = 0; i < this.askJson.askCount; i++) {
  14898. if (
  14899. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14900. (this.radio[i] !== 0 && !this.radio[i])
  14901. ) {
  14902. this.$message.error("请选择选项");
  14903. return;
  14904. }
  14905. }
  14906. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14907. let params = [
  14908. {
  14909. uid: this.userid,
  14910. cid: this.id,
  14911. stage: this.courseType,
  14912. task: this.taskCount,
  14913. tool: this.toolindex,
  14914. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14915. type: 2,
  14916. },
  14917. ];
  14918. this.ajax
  14919. .post(this.$store.state.api + "addCourseWorks", params)
  14920. .then((res) => {
  14921. this.$message({
  14922. message: "提交成功",
  14923. type: "success",
  14924. });
  14925. this.askList = [];
  14926. this.dialogVisible5 = false;
  14927. this.selectStudent();
  14928. this.selectSWorks();
  14929. this.selectSLook();
  14930. })
  14931. .catch((err) => {
  14932. this.$message.error("提交失败");
  14933. console.error(err);
  14934. });
  14935. },
  14936. addStudentAskTeacher() {
  14937. if (!this.radio.length) {
  14938. this.$message.error("请选择选项");
  14939. return;
  14940. }
  14941. for (var i = 0; i < this.askJson.askCount; i++) {
  14942. if (
  14943. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14944. (this.radio[i] !== 0 && !this.radio[i])
  14945. ) {
  14946. this.$message.error("请选择选项");
  14947. return;
  14948. }
  14949. }
  14950. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  14951. let params = [
  14952. {
  14953. uid: this.sStudent.userid,
  14954. cid: this.id,
  14955. stage: this.courseType,
  14956. task: this.taskCount,
  14957. tool: this.toolindex,
  14958. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  14959. type: 2,
  14960. },
  14961. ];
  14962. this.ajax
  14963. .post(this.$store.state.api + "addCourseWorks", params)
  14964. .then((res) => {
  14965. this.$message({
  14966. message: "提交成功",
  14967. type: "success",
  14968. });
  14969. this.askList = [];
  14970. this.dialogVisible5Teacher = false;
  14971. this.selectStudent();
  14972. this.selectSWorks();
  14973. this.selectSLook();
  14974. })
  14975. .catch((err) => {
  14976. this.$message.error("提交失败");
  14977. console.error(err);
  14978. });
  14979. },
  14980. addStudentTest() {
  14981. if (!this.radio.length) {
  14982. this.$message.error("请选择选项");
  14983. return;
  14984. }
  14985. for (var i = 0; i < this.testJson.testCount; i++) {
  14986. if (
  14987. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  14988. (this.radio[i] !== 0 && !this.radio[i])
  14989. ) {
  14990. this.$message.error("请选择选项");
  14991. return;
  14992. }
  14993. }
  14994. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  14995. let params = [
  14996. {
  14997. uid: this.userid,
  14998. cid: this.id,
  14999. stage: this.courseType,
  15000. task: this.taskCount,
  15001. tool: this.toolindex,
  15002. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15003. type: 8,
  15004. },
  15005. ];
  15006. this.ajax
  15007. .post(this.$store.state.api + "addCourseWorks", params)
  15008. .then((res) => {
  15009. this.$message({
  15010. message: "提交成功",
  15011. type: "success",
  15012. });
  15013. this.askList = [];
  15014. this.dialogVisibleChoice = false;
  15015. this.selectStudent();
  15016. this.selectSWorks();
  15017. this.selectSLook();
  15018. })
  15019. .catch((err) => {
  15020. this.$message.error("提交失败");
  15021. console.error(err);
  15022. });
  15023. },
  15024. addStudentTestTeacher() {
  15025. if (!this.radio.length) {
  15026. this.$message.error("请选择选项");
  15027. return;
  15028. }
  15029. for (var i = 0; i < this.testJson.testCount; i++) {
  15030. if (
  15031. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15032. (this.radio[i] !== 0 && !this.radio[i])
  15033. ) {
  15034. this.$message.error("请选择选项");
  15035. return;
  15036. }
  15037. }
  15038. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15039. let params = [
  15040. {
  15041. uid: this.sStudent.userid,
  15042. cid: this.id,
  15043. stage: this.courseType,
  15044. task: this.taskCount,
  15045. tool: this.toolindex,
  15046. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15047. type: 8,
  15048. },
  15049. ];
  15050. this.ajax
  15051. .post(this.$store.state.api + "addCourseWorks", params)
  15052. .then((res) => {
  15053. this.$message({
  15054. message: "提交成功",
  15055. type: "success",
  15056. });
  15057. this.askList = [];
  15058. this.dialogVisibleChoiceTeacher = false;
  15059. this.selectStudent();
  15060. this.selectSWorks();
  15061. this.selectSLook();
  15062. })
  15063. .catch((err) => {
  15064. this.$message.error("提交失败");
  15065. console.error(err);
  15066. });
  15067. },
  15068. addWork() {
  15069. if (this.studyJuri[0].content == "") {
  15070. this.$message.error("请将信息填写完整");
  15071. return;
  15072. } else if (this.studyJuri[0].cover.length == 0) {
  15073. this.$message.error("请将信息填写完整");
  15074. return;
  15075. } else if (this.studyJuri[0].upVedio.length == 0) {
  15076. this.$message.error("请将信息填写完整");
  15077. return;
  15078. }
  15079. if (this.isNoHomeWork) {
  15080. this.$confirm(
  15081. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15082. "提示",
  15083. {
  15084. confirmButtonText: "确定",
  15085. cancelButtonText: "取消",
  15086. type: "warning",
  15087. }
  15088. )
  15089. .then(() => {
  15090. let params = [
  15091. {
  15092. uid: this.userid,
  15093. cid: this.id,
  15094. stage: this.courseType,
  15095. task: this.taskCount,
  15096. content: JSON.stringify(this.studyJuri),
  15097. },
  15098. ];
  15099. this.ajax
  15100. .post(this.$store.state.api + "addWorks", params)
  15101. .then((res) => {
  15102. this.$message({
  15103. message: "提交成功",
  15104. type: "success",
  15105. });
  15106. this.isNoHomeWork = true;
  15107. this.dialogVisible = false;
  15108. })
  15109. .catch((err) => {
  15110. this.$message.error("提交失败");
  15111. console.error(err);
  15112. });
  15113. })
  15114. .catch(() => {});
  15115. } else {
  15116. let params = [
  15117. {
  15118. uid: this.userid,
  15119. cid: this.id,
  15120. stage: this.courseType,
  15121. task: this.taskCount,
  15122. content: JSON.stringify(this.studyJuri),
  15123. },
  15124. ];
  15125. this.ajax
  15126. .post(this.$store.state.api + "addWorks", params)
  15127. .then((res) => {
  15128. this.$message({
  15129. message: "提交成功",
  15130. type: "success",
  15131. });
  15132. this.isNoHomeWork = true;
  15133. this.dialogVisible = false;
  15134. })
  15135. .catch((err) => {
  15136. this.$message.error("提交失败");
  15137. console.error(err);
  15138. });
  15139. }
  15140. },
  15141. selectCount() {
  15142. let params = {
  15143. cid: this.id,
  15144. chid: this.courseType,
  15145. uid: this.userid,
  15146. };
  15147. this.ajax
  15148. .get(this.$store.state.api + "selectToolsCount", params)
  15149. .then((res) => {
  15150. for (var i = 0; i < res.data[0].length; i++) {
  15151. if (res.data[0][i].tools == 1) {
  15152. this.wbCount = res.data[0][i].count;
  15153. } else if (res.data[0][i].tools == 2) {
  15154. this.wordCount = res.data[0][i].count;
  15155. } else if (res.data[0][i].tools == 3) {
  15156. this.mindCount = res.data[0][i].count;
  15157. } else if (res.data[0][i].tools == 4) {
  15158. this.askCount = res.data[0][i].count;
  15159. } else if (res.data[0][i].tools == 6) {
  15160. this.noteCount = res.data[0][i].count;
  15161. } else if (res.data[0][i].tools == 7) {
  15162. this.mindNetWorkCount = res.data[0][i].count;
  15163. } else if (res.data[0][i].tools == 8) {
  15164. this.libraryCount = res.data[0][i].count;
  15165. } else if (res.data[0][i].tools == 16) {
  15166. this.workCount = res.data[0][i].count;
  15167. } else if (res.data[0][i].tools == 10) {
  15168. this.timeCount = res.data[0][i].count;
  15169. } else if (res.data[0][i].tools == 15) {
  15170. this.answerCount = res.data[0][i].count;
  15171. } else if (res.data[0][i].tools == 18) {
  15172. this.trainCount = res.data[0][i].count;
  15173. }
  15174. }
  15175. })
  15176. .catch((err) => {
  15177. console.error(err);
  15178. });
  15179. },
  15180. openTools(t, i, index, c, sName) {
  15181. var z = JSON.parse(c);
  15182. this.noteName = sName;
  15183. if (t == 4) {
  15184. this.radio = [];
  15185. this.isAnswer = false;
  15186. let b = z[0].anwer;
  15187. this.radio = b;
  15188. this.askJson = z[0].askJson;
  15189. this.isAnswer = true;
  15190. this.dialogVisible5 = true;
  15191. } else if (t == 45) {
  15192. this.radio = [];
  15193. this.isAnswer = false;
  15194. let b = z[0].anwer;
  15195. this.radio = b;
  15196. this.testJson = z[0].testJson;
  15197. this.isAnswer = true;
  15198. this.dialogVisibleChoice = true;
  15199. }
  15200. // else if (t == 15) {
  15201. // this.answerQ = "";
  15202. // this.questionAnswer = "";
  15203. // this.answerQ = z[0].answerTitle;
  15204. // this.questionAnswer = z[0].answer;
  15205. // this.answerDialogVisible = true;
  15206. // }
  15207. },
  15208. fastText(p, t) {
  15209. if (t == 1) {
  15210. this.commentText += p;
  15211. } else {
  15212. this.eScore.eBzText += p;
  15213. }
  15214. },
  15215. addTools(t, i, index) {
  15216. var a = 0;
  15217. // this.taskCount = index;
  15218. this.toolindex = i;
  15219. if (t == 1) {
  15220. if (this.wbCount > 0) {
  15221. this.updateCount(this.wbCount, t);
  15222. } else {
  15223. this.wbCount++;
  15224. a = this.wbCount;
  15225. this.toolsCount(a, t);
  15226. }
  15227. window.parent.postMessage(
  15228. {
  15229. tools: "1",
  15230. cid: this.id,
  15231. stage: this.courseType,
  15232. task: this.taskCount,
  15233. tool: i,
  15234. },
  15235. "*"
  15236. );
  15237. } else if (t == 2) {
  15238. if (this.wordCount > 0) {
  15239. this.updateCount(this.wordCount, t);
  15240. } else {
  15241. this.wordCount++;
  15242. a = this.wordCount;
  15243. this.toolsCount(a, t);
  15244. }
  15245. window.parent.postMessage({ tools: "2" }, "*");
  15246. } else if (t == 3) {
  15247. if (this.mindCount > 0) {
  15248. this.updateCount(this.mindCount, t);
  15249. } else {
  15250. this.mindCount++;
  15251. a = this.mindCount;
  15252. this.toolsCount(a, t);
  15253. }
  15254. window.parent.postMessage(
  15255. {
  15256. tools: "3",
  15257. cid: this.id,
  15258. stage: this.courseType,
  15259. task: this.taskCount,
  15260. tool: i,
  15261. },
  15262. "*"
  15263. );
  15264. } else if (t == 4) {
  15265. this.radio = [];
  15266. this.noteName = "";
  15267. this.isAnswer = false;
  15268. if (this.askCount > 0) {
  15269. this.updateCount(this.askCount, t);
  15270. } else {
  15271. this.askCount++;
  15272. a = this.askCount;
  15273. this.toolsCount(a, t);
  15274. }
  15275. if (!this.dialogVisible2) {
  15276. this.askJson.askJson =
  15277. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15278. index
  15279. ].toolChoose[i].askJson;
  15280. this.askJson.askTitle =
  15281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15282. index
  15283. ].toolChoose[i].askTitle;
  15284. this.askJson.askCount =
  15285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15286. index
  15287. ].toolChoose[i].askCount;
  15288. } else {
  15289. this.askJson.askJson = this.chapTools.askJson.askJson;
  15290. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15291. this.askJson.askCount = this.chapTools.askJson.askCount;
  15292. }
  15293. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15294. if (this.askJson.askJson[k].type == "2") {
  15295. this.radio.push([]);
  15296. } else {
  15297. this.radio.push("");
  15298. }
  15299. }
  15300. this.dialogVisible5 = true;
  15301. // window.parent.postMessage({ tools: "4" }, "*");
  15302. } else if (t == 45) {
  15303. this.noteName = "";
  15304. this.radio = [];
  15305. this.isAnswer = false;
  15306. if (this.askCount > 0) {
  15307. this.updateCount(this.askCount, t);
  15308. } else {
  15309. this.askCount++;
  15310. a = this.askCount;
  15311. this.toolsCount(a, t);
  15312. }
  15313. this.testJson =
  15314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15315. index
  15316. ].toolChoose[i].testJson;
  15317. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15318. if (this.testJson.testJson[k].type == "2") {
  15319. this.radio.push([]);
  15320. } else {
  15321. this.radio.push("");
  15322. }
  15323. }
  15324. this.dialogVisibleChoice = true;
  15325. // window.parent.postMessage({ tools: "4" }, "*");
  15326. } else if (t == 5) {
  15327. if (this.scoreCount > 0) {
  15328. this.updateCount(this.scoreCount, t);
  15329. } else {
  15330. this.scoreCount++;
  15331. a = this.scoreCount;
  15332. this.toolsCount(a, t);
  15333. }
  15334. this.dialogVisible4 = true;
  15335. // window.parent.postMessage({ tools: "5" }, "*");
  15336. } else if (t == 6) {
  15337. if (this.noteCount > 0) {
  15338. this.updateCount(this.noteCount, t);
  15339. } else {
  15340. this.noteCount++;
  15341. a = this.noteCount;
  15342. this.toolsCount(a, t);
  15343. }
  15344. window.parent.postMessage(
  15345. {
  15346. tools: "6",
  15347. cid: this.id,
  15348. stage: this.courseType,
  15349. task: this.taskCount,
  15350. tool: i,
  15351. },
  15352. "*"
  15353. );
  15354. } else if (t == 7) {
  15355. if (this.mindNetWorkCount > 0) {
  15356. this.updateCount(this.mindNetWorkCount, t);
  15357. } else {
  15358. this.mindNetWorkCount++;
  15359. a = this.mindNetWorkCount;
  15360. this.toolsCount(a, t);
  15361. }
  15362. window.parent.postMessage(
  15363. {
  15364. tools: "7",
  15365. cid: this.id,
  15366. stage: this.courseType,
  15367. task: this.taskCount,
  15368. tool: i,
  15369. },
  15370. "*"
  15371. );
  15372. } else if (t == 16) {
  15373. if (this.workCount > 0) {
  15374. this.updateCount(this.workCount, t);
  15375. } else {
  15376. this.workCount++;
  15377. a = this.workCount;
  15378. this.toolsCount(a, t);
  15379. }
  15380. this.dialogVisible = true;
  15381. } else if (t == 50) {
  15382. if (this.tType == 2) {
  15383. this.$message.error("不支持学生使用");
  15384. return;
  15385. }
  15386. this.plworkFile = [];
  15387. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  15388. if (!this.uploadCid) {
  15389. this.$message.error(
  15390. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  15391. );
  15392. return;
  15393. }
  15394. // this.uploadCid =
  15395. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15396. // index
  15397. // ].toolChoose[i].uploadJson[0];
  15398. this.selectUploadStudent(2);
  15399. } else if (t == 8) {
  15400. if (this.libraryCount > 0) {
  15401. this.updateCount(this.libraryCount, t);
  15402. } else {
  15403. this.libraryCount++;
  15404. a = this.libraryCount;
  15405. this.toolsCount(a, t);
  15406. }
  15407. window.parent.postMessage({ tools: "8" }, "*");
  15408. } else if (t == 17) {
  15409. if (this.libraryCount > 0) {
  15410. this.updateCount(this.libraryCount, t);
  15411. } else {
  15412. this.libraryCount++;
  15413. a = this.libraryCount;
  15414. this.toolsCount(a, t);
  15415. }
  15416. window.parent.postMessage({ tools: "17" }, "*");
  15417. } else if (t == 18) {
  15418. if (this.trainCount > 0) {
  15419. this.updateCount(this.trainCount, t);
  15420. } else {
  15421. this.trainCount++;
  15422. a = this.trainCount;
  15423. this.toolsCount(a, t);
  15424. }
  15425. window.parent.postMessage({ tools: "18" }, "*");
  15426. } else if (t == 10) {
  15427. if (this.timeCount > 0) {
  15428. this.updateCount(this.timeCount, t);
  15429. } else {
  15430. this.timeCount++;
  15431. a = this.timeCount;
  15432. this.toolsCount(a, t);
  15433. }
  15434. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  15435. .taskJson[index].toolChoose[i].preTime
  15436. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15437. .toolChoose[i].preTime
  15438. : "";
  15439. this.timeDialogVisible = true;
  15440. } else if (t == 15) {
  15441. this.answerQ = "";
  15442. this.questionAnswer = "";
  15443. if (this.answerCount > 0) {
  15444. this.updateCount(this.answerCount, t);
  15445. } else {
  15446. this.answerCount++;
  15447. a = this.answerCount;
  15448. this.toolsCount(a, t);
  15449. }
  15450. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15451. .taskJson[index].toolChoose[i].answerQ
  15452. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15453. .toolChoose[i].answerQ
  15454. : "";
  15455. this.answerDialogVisible = true;
  15456. } else if (t == 21) {
  15457. window.parent.postMessage({ tools: "21" }, "*");
  15458. } else if (t == 22) {
  15459. window.parent.postMessage({ tools: "22" }, "*");
  15460. } else if (t == 23) {
  15461. window.parent.postMessage({ tools: "23" }, "*");
  15462. } else if (t == 24) {
  15463. window.parent.postMessage({ tools: "24" }, "*");
  15464. } else if (t == 25) {
  15465. window.parent.postMessage({ tools: "25" }, "*");
  15466. } else if (t == 31) {
  15467. window.parent.postMessage({ tools: "31" }, "*");
  15468. } else if (t == 28) {
  15469. window.parent.postMessage({ tools: "28" }, "*");
  15470. } else if (t == 37) {
  15471. window.parent.postMessage({ tools: "37" }, "*");
  15472. } else if (t == 38) {
  15473. window.parent.postMessage({ tools: "38" }, "*");
  15474. } else if (t == 39) {
  15475. window.parent.postMessage({ tools: "39" }, "*");
  15476. } else if (t == 32) {
  15477. window.parent.postMessage({ tools: "32" }, "*");
  15478. } else if (t == 57) {
  15479. // window.parent.postMessage({ tools: "57" }, "*");
  15480. window.parent.postMessage(
  15481. {
  15482. tools: "57u",
  15483. cid: this.id,
  15484. stage: this.courseType,
  15485. task: this.taskCount,
  15486. tool: i,
  15487. },
  15488. "*"
  15489. );
  15490. } else if (t == 58) {
  15491. window.parent.postMessage({ tools: "58" }, "*");
  15492. } else if (t == 59) {
  15493. window.parent.postMessage({ tools: "59" }, "*");
  15494. } else if (t == 60) {
  15495. window.parent.postMessage({ tools: "60" }, "*");
  15496. } else if (t == 61) {
  15497. window.parent.postMessage({ tools: "61" }, "*");
  15498. } else if (t == 63) {
  15499. window.parent.postMessage({ tools: "63" }, "*");
  15500. } else if (t == 26) {
  15501. window.parent.postMessage(
  15502. {
  15503. tools: "26",
  15504. cid: this.id,
  15505. stage: this.courseType,
  15506. task: this.taskCount,
  15507. tool: i,
  15508. },
  15509. "*"
  15510. );
  15511. } else if (t == 40) {
  15512. if (this.evalCount > 0) {
  15513. this.updateCount(this.evalCount, t);
  15514. } else {
  15515. this.evalCount++;
  15516. a = this.evalCount;
  15517. this.toolsCount(a, t);
  15518. }
  15519. this.eScore = { eBzText: "", eStar: [] };
  15520. if (this.worksStudent[i].length) {
  15521. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15522. if (this.userid == this.worksStudent[i][k].userid) {
  15523. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15524. this.rateJson =
  15525. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15526. index
  15527. ].toolChoose[i].rateJson;
  15528. break;
  15529. } else {
  15530. this.rateJson =
  15531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15532. index
  15533. ].toolChoose[i].rateJson;
  15534. }
  15535. }
  15536. } else {
  15537. this.rateJson =
  15538. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15539. index
  15540. ].toolChoose[i].rateJson;
  15541. }
  15542. this.isStar = false;
  15543. this.studentEvalDialogVisible = true;
  15544. } else if (t == 41) {
  15545. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15546. .taskJson[index].toolChoose[i].selectJson
  15547. ? JSON.parse(
  15548. JSON.stringify(
  15549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15550. index
  15551. ].toolChoose[i].selectJson
  15552. )
  15553. )
  15554. : { url: "", select: [], answer: [] };
  15555. if (this.worksStudent[i].length) {
  15556. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15557. if (this.userid == this.worksStudent[i][k].userid) {
  15558. var a = this.worksStudent[i][k].works.split(",");
  15559. for (var ki = 0; ki < a.length; ki++) {
  15560. a[ki] = parseInt(a[ki]);
  15561. }
  15562. this.selectAnswer = {
  15563. answer: a,
  15564. stu: this.worksStudent[i][k].sName,
  15565. };
  15566. break;
  15567. } else {
  15568. this.selectAnswer = { answer: [], stu: "" };
  15569. }
  15570. }
  15571. } else {
  15572. this.selectAnswer = { answer: [], stu: "" };
  15573. }
  15574. this.isSelect = false;
  15575. this.dialogVisibleSelect = true;
  15576. } else if (t == 44) {
  15577. window.parent.postMessage({ tools: "44" }, "*");
  15578. } else if (t == 47) {
  15579. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15580. .taskJson[index].toolChoose[i].sentenceList
  15581. ? JSON.parse(
  15582. JSON.stringify(
  15583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15584. index
  15585. ].toolChoose[i].sentenceList
  15586. )
  15587. )
  15588. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15589. for (var q = 0; q < this.sentenceList.length; q++) {
  15590. this.sentenceList[q].chooseSenList = [];
  15591. this.sentenceList[q].addChangeSen = [];
  15592. this.sentenceList[q].addChangeSen = JSON.parse(
  15593. JSON.stringify(this.sentenceList[q].addSentence)
  15594. );
  15595. this.sentenceList[q].chooseSenList.length =
  15596. this.sentenceList[q].rightAnswer.length;
  15597. }
  15598. this.dialogVisibleSentence = true;
  15599. } else if (t == 48) {
  15600. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15601. .taskJson[index].toolChoose[i].tableJson
  15602. ? JSON.parse(
  15603. JSON.stringify(
  15604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15605. index
  15606. ].toolChoose[i].tableJson
  15607. )
  15608. )
  15609. : { text: "" };
  15610. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  15611. if (this.worksStudent[i].length) {
  15612. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15613. if (this.userid == this.worksStudent[i][k].userid) {
  15614. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15615. break;
  15616. }
  15617. }
  15618. }
  15619. this.dialogVisibleTable = true;
  15620. } else if (t == 52) {
  15621. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15622. .taskJson[index].toolChoose[i].wordJson
  15623. ? JSON.parse(
  15624. JSON.stringify(
  15625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15626. index
  15627. ].toolChoose[i].wordJson
  15628. )
  15629. )
  15630. : { text: "" };
  15631. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  15632. if (this.worksStudent[i].length) {
  15633. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15634. if (this.userid == this.worksStudent[i][k].userid) {
  15635. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15636. break;
  15637. }
  15638. }
  15639. }
  15640. this.dialogVisibleWord = true;
  15641. } else if (t == 49) {
  15642. this.groupJson =
  15643. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15644. index
  15645. ].toolChoose[i].groupJson;
  15646. this.islock = this.groupJson.islock == 1 ? true : false;
  15647. this.dialogVisibleGroup = true;
  15648. } else if (t == 62) {
  15649. this.videoJson =
  15650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15651. index
  15652. ].toolChoose[i].videoJson;
  15653. this.dialogVisibleVideo = true;
  15654. }
  15655. },
  15656. teacherWorkSubmit(t, i, index, s) {
  15657. this.sStudent = s;
  15658. this.toolindex = i;
  15659. this.sTool = t;
  15660. if (this.tType !== "1" && this.tType !== "4") {
  15661. return;
  15662. }
  15663. if (t == 16 || t == 32 || t == 50) {
  15664. this.dialogVisibleWorks = true;
  15665. } else if (t == 15) {
  15666. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  15667. .taskJson[index].toolChoose[i].answerQ
  15668. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  15669. .toolChoose[i].answerQ
  15670. : "";
  15671. this.questionAnswer = "";
  15672. this.answerDialogVisibleTeacher = true; //问答
  15673. } else if (t == 52) {
  15674. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15675. .taskJson[index].toolChoose[i].wordJson
  15676. ? JSON.parse(
  15677. JSON.stringify(
  15678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15679. index
  15680. ].toolChoose[i].wordJson
  15681. )
  15682. )
  15683. : { text: "" };
  15684. if (this.worksStudent[i].length) {
  15685. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15686. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15687. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  15688. break;
  15689. }
  15690. }
  15691. }
  15692. this.dialogVisibleWordTeacher = true; //文档
  15693. } else if (t == 4) {
  15694. this.radio = [];
  15695. this.noteName = "";
  15696. this.isAnswer = false;
  15697. if (this.askCount > 0) {
  15698. this.updateCount(this.askCount, t);
  15699. } else {
  15700. this.askCount++;
  15701. a = this.askCount;
  15702. this.toolsCount(a, t);
  15703. }
  15704. if (!this.dialogVisible2) {
  15705. this.askJson.askJson =
  15706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15707. index
  15708. ].toolChoose[i].askJson;
  15709. this.askJson.askTitle =
  15710. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15711. index
  15712. ].toolChoose[i].askTitle;
  15713. this.askJson.askCount =
  15714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15715. index
  15716. ].toolChoose[i].askCount;
  15717. } else {
  15718. this.askJson.askJson = this.chapTools.askJson.askJson;
  15719. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  15720. this.askJson.askCount = this.chapTools.askJson.askCount;
  15721. }
  15722. this.dialogVisible5Teacher = true;
  15723. } else if (t == 45) {
  15724. this.noteName = "";
  15725. this.radio = [];
  15726. this.isAnswer = false;
  15727. if (this.askCount > 0) {
  15728. this.updateCount(this.askCount, t);
  15729. } else {
  15730. this.askCount++;
  15731. a = this.askCount;
  15732. this.toolsCount(a, t);
  15733. }
  15734. this.testJson =
  15735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15736. index
  15737. ].toolChoose[i].testJson;
  15738. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15739. if (this.testJson.testJson[k].type == "2") {
  15740. this.radio.push([]);
  15741. } else {
  15742. this.radio.push("");
  15743. }
  15744. }
  15745. this.dialogVisibleChoiceTeacher = true;
  15746. } else if (t == 41) {
  15747. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15748. .taskJson[index].toolChoose[i].selectJson
  15749. ? JSON.parse(
  15750. JSON.stringify(
  15751. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15752. index
  15753. ].toolChoose[i].selectJson
  15754. )
  15755. )
  15756. : { url: "", select: [], answer: [] };
  15757. if (this.worksStudent[i].length) {
  15758. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15759. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15760. var a = this.worksStudent[i][k].works.split(",");
  15761. for (var ki = 0; ki < a.length; ki++) {
  15762. a[ki] = parseInt(a[ki]);
  15763. }
  15764. this.selectAnswer = {
  15765. answer: a,
  15766. stu: this.worksStudent[i][k].sName,
  15767. };
  15768. break;
  15769. } else {
  15770. this.selectAnswer = { answer: [], stu: "" };
  15771. }
  15772. }
  15773. } else {
  15774. this.selectAnswer = { answer: [], stu: "" };
  15775. }
  15776. this.isSelect = false;
  15777. this.dialogVisibleSelectTeacher = true;
  15778. } else if (t == 47) {
  15779. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  15780. .taskJson[index].toolChoose[i].sentenceList
  15781. ? JSON.parse(
  15782. JSON.stringify(
  15783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15784. index
  15785. ].toolChoose[i].sentenceList
  15786. )
  15787. )
  15788. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  15789. for (var q = 0; q < this.sentenceList.length; q++) {
  15790. this.sentenceList[q].chooseSenList = [];
  15791. this.sentenceList[q].addChangeSen = [];
  15792. this.sentenceList[q].addChangeSen = JSON.parse(
  15793. JSON.stringify(this.sentenceList[q].addSentence)
  15794. );
  15795. this.sentenceList[q].chooseSenList.length =
  15796. this.sentenceList[q].rightAnswer.length;
  15797. }
  15798. this.dialogVisibleSentenceTeacher = true;
  15799. } else if (t == 48) {
  15800. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15801. .taskJson[index].toolChoose[i].tableJson
  15802. ? JSON.parse(
  15803. JSON.stringify(
  15804. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15805. index
  15806. ].toolChoose[i].tableJson
  15807. )
  15808. )
  15809. : { text: "" };
  15810. if (this.worksStudent[i].length) {
  15811. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15812. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15813. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  15814. break;
  15815. }
  15816. }
  15817. }
  15818. this.dialogVisibleTableTeacher = true;
  15819. } else if (t == 40) {
  15820. if (this.evalCount > 0) {
  15821. this.updateCount(this.evalCount, t);
  15822. } else {
  15823. this.evalCount++;
  15824. a = this.evalCount;
  15825. this.toolsCount(a, t);
  15826. }
  15827. this.eScore = { eBzText: "", eStar: [] };
  15828. if (this.worksStudent[i].length) {
  15829. for (var k = 0; k < this.worksStudent[i].length; k++) {
  15830. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  15831. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  15832. this.rateJson =
  15833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15834. index
  15835. ].toolChoose[i].rateJson;
  15836. break;
  15837. } else {
  15838. this.rateJson =
  15839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15840. index
  15841. ].toolChoose[i].rateJson;
  15842. }
  15843. }
  15844. } else {
  15845. this.rateJson =
  15846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15847. index
  15848. ].toolChoose[i].rateJson;
  15849. }
  15850. this.isStar = false;
  15851. this.studentEvalDialogVisibleTeacher = true;
  15852. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  15853. window.parent.postMessage(
  15854. {
  15855. tools: t + "teacher",
  15856. cid: this.id,
  15857. stage: this.courseType,
  15858. task: this.taskCount,
  15859. tool: i,
  15860. student: this.sStudent,
  15861. },
  15862. "*"
  15863. );
  15864. }
  15865. },
  15866. openCocoPi(tool, i, uid, uname) {
  15867. let student = {
  15868. userid: uid,
  15869. student: uname,
  15870. };
  15871. if (tool == 57) {
  15872. window.parent.postMessage(
  15873. {
  15874. tools: tool + "teacher",
  15875. cid: this.id,
  15876. stage: this.courseType,
  15877. task: this.taskCount,
  15878. tool: i,
  15879. student: student,
  15880. },
  15881. "*"
  15882. );
  15883. }
  15884. },
  15885. setRightAnswer(s, i, j) {
  15886. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  15887. if (
  15888. this.sentenceList[i].chooseSenList[q] == undefined ||
  15889. this.sentenceList[i].chooseSenList[q] == ""
  15890. ) {
  15891. this.sentenceList[i].chooseSenList[q] = s;
  15892. this.sentenceList[i].addChangeSen[j] = "";
  15893. break;
  15894. }
  15895. }
  15896. this.$forceUpdate();
  15897. },
  15898. returnCard(r, i, j) {
  15899. var a = this.sentenceList[i].addSentence.indexOf(r);
  15900. this.sentenceList[i].chooseSenList[j] = "";
  15901. this.sentenceList[i].addChangeSen[a] = r;
  15902. this.$forceUpdate();
  15903. },
  15904. // addSentenceTool() {
  15905. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15906. // this.taskCount
  15907. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  15908. // this.sentenceList = [
  15909. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  15910. // ];
  15911. // this.dialogVisibleSentence = false;
  15912. // },
  15913. toolsCount(a, t) {
  15914. let params = {
  15915. cid: this.id,
  15916. chid: this.courseType,
  15917. uid: this.userid,
  15918. tid: t,
  15919. count: a,
  15920. };
  15921. this.ajax
  15922. .get(this.$store.state.api + "insertToolsCount", params)
  15923. .then((res) => {
  15924. this.selectCount();
  15925. })
  15926. .catch((err) => {
  15927. console.error(err);
  15928. });
  15929. },
  15930. updateCount(c, t) {
  15931. c++;
  15932. let params = {
  15933. cid: this.id,
  15934. chid: this.courseType,
  15935. uid: this.userid,
  15936. tid: t,
  15937. count: c,
  15938. };
  15939. this.ajax
  15940. .get(this.$store.state.api + "updateToolsCount", params)
  15941. .then((res) => {
  15942. this.selectCount();
  15943. })
  15944. .catch((err) => {
  15945. console.error(err);
  15946. });
  15947. },
  15948. checkEva() {
  15949. if (this.evalua != "") {
  15950. for (var i = 0; i < this.evaJuri.length; i++) {
  15951. if (this.evalua == this.evaJuri[i].id) {
  15952. this.eTitle = this.evaJuri[i].title;
  15953. this.eJson = JSON.parse(this.evaJuri[i].content);
  15954. }
  15955. }
  15956. this.$forceUpdate();
  15957. setTimeout(() => {
  15958. this.setMindData();
  15959. }, 0);
  15960. }
  15961. },
  15962. selectEva() {
  15963. let params = {
  15964. oid: this.oid,
  15965. };
  15966. this.ajax
  15967. .get(this.$store.state.api + "selectAllEvaluation", params)
  15968. .then((res) => {
  15969. this.evaJuri = res.data[0];
  15970. })
  15971. .catch((err) => {
  15972. console.error(err);
  15973. });
  15974. },
  15975. setMindData() {
  15976. this.data.data = [];
  15977. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  15978. let _eJson = Object.keys(this.eJson);
  15979. let _e = this.eJson;
  15980. for (let i = 0; i < _eJson.length; i++) {
  15981. let element = _e[_eJson[i]];
  15982. this.data.data.push({
  15983. id: element.id,
  15984. parentid: "root",
  15985. topic: element.name,
  15986. });
  15987. let _eJsonc = Object.keys(element.child);
  15988. let _e2 = element.child;
  15989. for (let j = 0; j < _eJsonc.length; j++) {
  15990. let _ec = _e2[_eJsonc[j]];
  15991. this.data.data.push({
  15992. id: _ec.id,
  15993. parentid: element.id,
  15994. topic: _ec.name,
  15995. });
  15996. let _eJsonz = Object.keys(_ec.child);
  15997. let _e3 = _ec.child;
  15998. for (let z = 0; z < _eJsonz.length; z++) {
  15999. let _ez = _e3[_eJsonz[z]];
  16000. this.data.data.push({
  16001. id: _ez.id,
  16002. parentid: _ec.id,
  16003. topic: _ez.name,
  16004. });
  16005. }
  16006. }
  16007. }
  16008. this.$forceUpdate();
  16009. },
  16010. checkFileFull(type, url) {
  16011. this.fullDialogVisible = true;
  16012. this.fulltype = type;
  16013. this.fullUrl = url;
  16014. },
  16015. openSname(n, id, i, uid) {
  16016. this.snameWid = id;
  16017. this.worksSName = n;
  16018. this.worksSid = uid == n ? "" : uid;
  16019. this.toolindex = i;
  16020. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16021. if (!this.uploadCid) {
  16022. this.$message.error(
  16023. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16024. );
  16025. return;
  16026. }
  16027. this.selectUploadStudent(1);
  16028. },
  16029. updateName() {
  16030. let params = {
  16031. n: this.worksSName,
  16032. cid: this.snameWid,
  16033. };
  16034. this.ajax
  16035. .get(this.$store.state.api + "updateCourseWorksName", params)
  16036. .then((res) => {
  16037. this.$message({
  16038. message: "修改成功",
  16039. type: "success",
  16040. });
  16041. this.dialogVisibleSname = false;
  16042. this.getCourseDetail(2);
  16043. this.snameWid = "";
  16044. this.worksSName = "";
  16045. })
  16046. .catch((err) => {
  16047. console.error(err);
  16048. });
  16049. },
  16050. downloadFile2(f) {
  16051. const loading = this.$loading.service({
  16052. background: "rgba(255, 255, 255, 0.7)",
  16053. target: document.body,
  16054. text: "文件加载中...",
  16055. });
  16056. let url2 = f.url;
  16057. let _url2 = "";
  16058. if (
  16059. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16060. ) {
  16061. _url2 = url2.split(
  16062. "https://view.officeapps.live.com/op/view.aspx?src="
  16063. )[1];
  16064. } else {
  16065. _url2 = url2;
  16066. }
  16067. let params = {
  16068. url: _url2,
  16069. name: f.name,
  16070. };
  16071. this.ajax
  16072. .get(this.$store.state.api + "download", params)
  16073. .then((res) => {
  16074. console.log(res);
  16075. loading.close();
  16076. let content = res.data.data.data;
  16077. let ab = new ArrayBuffer(content.length);
  16078. let view = new Uint8Array(ab);
  16079. for (var i = 0; i < content.length; ++i) {
  16080. view[i] = content[i];
  16081. }
  16082. let elink = document.createElement("a");
  16083. elink.download = f.name;
  16084. elink.style.display = "none";
  16085. let blob = new Blob([ab], {
  16086. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16087. });
  16088. elink.href = URL.createObjectURL(blob);
  16089. document.body.appendChild(elink);
  16090. elink.click();
  16091. document.body.removeChild(elink);
  16092. })
  16093. .catch((err) => {
  16094. loading.close();
  16095. console.error(err);
  16096. });
  16097. },
  16098. downloadFile(url) {
  16099. let _this = this;
  16100. let _url = "";
  16101. if (
  16102. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16103. ) {
  16104. _url = url.split(
  16105. "https://view.officeapps.live.com/op/view.aspx?src="
  16106. )[1];
  16107. } else {
  16108. _url = url;
  16109. }
  16110. const x = new XMLHttpRequest();
  16111. x.open("GET", _url, true);
  16112. x.responseType = "blob";
  16113. const loading = _this.$loading.service({
  16114. background: "rgba(255, 255, 255, 0.7)",
  16115. target: document.body,
  16116. text: "文件加载中...",
  16117. });
  16118. // _this.$message.success("文件下载中...");
  16119. x.onload = function (e) {
  16120. loading.close();
  16121. let content = x.response;
  16122. let elink = document.createElement("a");
  16123. elink.download = decodeURI(
  16124. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16125. );
  16126. elink.style.display = "none";
  16127. let blob = new Blob([content]);
  16128. elink.href = URL.createObjectURL(blob);
  16129. document.body.appendChild(elink);
  16130. elink.click();
  16131. document.body.removeChild(elink);
  16132. };
  16133. x.send();
  16134. },
  16135. openLine(url) {
  16136. window.open(url);
  16137. },
  16138. resize() {
  16139. if (document.getElementsByClassName("box_course").length) {
  16140. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16141. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16142. if (this.showType == 2 || this.showType == 3) {
  16143. document.getElementsByClassName("navBox")[0].style.height =
  16144. a - 40 + 46 + "px";
  16145. } else {
  16146. document.getElementsByClassName("navBox")[0].style.height =
  16147. a - 40 + "px";
  16148. }
  16149. }
  16150. this.Stbodywidth =
  16151. document.getElementsByClassName("student_body").length &&
  16152. document.getElementsByClassName("student_body")[0].offsetWidth;
  16153. },
  16154. closeDraw() {
  16155. this.bg = null;
  16156. this.drawShow = false;
  16157. },
  16158. showPicturePaint(url) {
  16159. let params = {
  16160. img: url,
  16161. };
  16162. this.ajax
  16163. .get(this.$store.state.api + "imgToBase64", params)
  16164. .then((res) => {
  16165. console.log(res);
  16166. this.drawShow = true;
  16167. this.bg = res.data[0].img;
  16168. })
  16169. .catch((err) => {
  16170. console.error(err);
  16171. });
  16172. },
  16173. addImgDraw(base64) {
  16174. let file = { name: "批注图.png" };
  16175. let img = this.dataUrlToFile(base64, file);
  16176. this.beforeUpload1(img, 5);
  16177. },
  16178. addImgDrawImG(url) {
  16179. // console.log(url);
  16180. let params = [
  16181. {
  16182. wid: this.commentDetail.wid,
  16183. img: url,
  16184. },
  16185. ];
  16186. this.ajax
  16187. .post(this.$store.state.api + "updateCourseWorks", params)
  16188. .then((res) => {
  16189. this.$message({
  16190. message: "提交成功",
  16191. type: "success",
  16192. });
  16193. this.drawShow = false;
  16194. this.bg = "";
  16195. this.selectSWorks();
  16196. this.selectStudent();
  16197. })
  16198. .catch((err) => {
  16199. this.$message.error("提交失败");
  16200. console.error(err);
  16201. });
  16202. },
  16203. deletePicturePaint() {
  16204. this.$confirm("确定删除此批注吗?", "提示", {
  16205. confirmButtonText: "确定",
  16206. cancelButtonText: "取消",
  16207. type: "warning",
  16208. })
  16209. .then(() => {
  16210. let params = [
  16211. {
  16212. wid: this.commentDetail.wid,
  16213. img: "",
  16214. },
  16215. ];
  16216. this.ajax
  16217. .post(this.$store.state.api + "updateCourseWorks", params)
  16218. .then((res) => {
  16219. this.$message({
  16220. message: "删除成功",
  16221. type: "success",
  16222. });
  16223. this.selectSWorks();
  16224. this.selectStudent();
  16225. })
  16226. .catch((err) => {
  16227. this.$message.error("删除失败");
  16228. console.error(err);
  16229. });
  16230. })
  16231. .catch(() => {});
  16232. },
  16233. getAudioVideo(constraintsData) {
  16234. if (navigator.mediaDevices === undefined) {
  16235. navigator.mediaDevices = {};
  16236. }
  16237. if (navigator.mediaDevices.getUserMedia === undefined) {
  16238. navigator.mediaDevices.getUserMedia = function (constraints) {
  16239. // 首先,如果有getUserMedia的话,就获得它
  16240. var getUserMedia =
  16241. navigator.getUserMedia ||
  16242. navigator.webkitGetUserMedia ||
  16243. navigator.mozGetUserMedia ||
  16244. navigator.msGetUserMedia;
  16245. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16246. if (!getUserMedia) {
  16247. return Promise.reject({ code: 404 });
  16248. }
  16249. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16250. return new Promise(function (resolve, reject) {
  16251. getUserMedia.call(navigator, constraints, resolve, reject);
  16252. });
  16253. };
  16254. }
  16255. return navigator.mediaDevices.getUserMedia(constraintsData);
  16256. },
  16257. /**
  16258. * 开始录制
  16259. */
  16260. startRecording(callback) {
  16261. let _function = (screenStream) => {
  16262. this.addStreamStopListener(screenStream, () => {
  16263. console.log("流停止监听");
  16264. this.stopRecording();
  16265. this.$emit("streamStop", {});
  16266. // this.stopRecording();
  16267. });
  16268. var options = {
  16269. type: "video",
  16270. mimeType: "video/webm",
  16271. disableLogs: false,
  16272. getNativeBlob: false, // enable it for longer recordings
  16273. ignoreMutedMedia: false,
  16274. };
  16275. // this.video.srcObject = screenStream;
  16276. this.recorder = RecordRTC(screenStream, options);
  16277. this.recorder.startRecording();
  16278. this.recorder.screen = screenStream;
  16279. this.videoStart = true;
  16280. // callback(true);
  16281. };
  16282. this.getAudioVideo({ audio: true })
  16283. .then((res) => {
  16284. this.captureScreen(_function, true);
  16285. console.log("已点击允许,开启成功");
  16286. })
  16287. .catch((err) => {
  16288. // console.log('浏览器不支持,请更换浏览器')
  16289. // } else {
  16290. this.captureScreen(_function, false);
  16291. console.log("请检查是否存在麦克风");
  16292. });
  16293. },
  16294. /**
  16295. * 停止录制
  16296. */
  16297. stopRecording(callback) {
  16298. this.recorder.stopRecording(() => {
  16299. // this.video.src = this.video.srcObject = null;
  16300. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16301. const url = URL.createObjectURL(this.recorder.getBlob());
  16302. const a = document.createElement("a"); //this.fileName+
  16303. let videoFile = new File(
  16304. [this.recorder.getBlob()],
  16305. this.courseDetail.title + "录屏.mp4",
  16306. {
  16307. type: "video/mp4",
  16308. }
  16309. );
  16310. let downloadUrl = URL.createObjectURL(videoFile);
  16311. document.body.appendChild(a);
  16312. a.style.display = "none";
  16313. a.href = url;
  16314. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16315. a.click();
  16316. this.recorder.screen.stop();
  16317. this.recorder.destroy();
  16318. this.recorder = null;
  16319. this.videoStart = false;
  16320. // callback(false);
  16321. });
  16322. },
  16323. //初始化
  16324. captureScreen(callback, type) {
  16325. if (navigator.getDisplayMedia) {
  16326. //录制结束,文件下载
  16327. navigator
  16328. .getDisplayMedia({
  16329. video: true,
  16330. })
  16331. .then((screenStream) => {
  16332. if (type) {
  16333. navigator.mediaDevices
  16334. .getUserMedia({ audio: true })
  16335. .then((mic) => {
  16336. screenStream.addTrack(mic.getTracks()[0]);
  16337. callback(screenStream);
  16338. });
  16339. } else {
  16340. callback(screenStream);
  16341. }
  16342. })
  16343. .catch(function (error) {
  16344. console.log("error", error);
  16345. });
  16346. } else if (navigator.mediaDevices.getDisplayMedia) {
  16347. navigator.mediaDevices
  16348. .getDisplayMedia({
  16349. video: true,
  16350. })
  16351. .then((screenStream) => {
  16352. if (type) {
  16353. navigator.mediaDevices
  16354. .getUserMedia({ audio: true })
  16355. .then((mic) => {
  16356. screenStream.addTrack(mic.getTracks()[0]);
  16357. callback(screenStream);
  16358. });
  16359. } else {
  16360. callback(screenStream);
  16361. }
  16362. })
  16363. .catch(function (error) {
  16364. console.log("error", error);
  16365. });
  16366. } else {
  16367. var error = "getDisplayMedia API are not supported in this browser.";
  16368. console.log("error", error);
  16369. alert(error);
  16370. }
  16371. },
  16372. //流监听
  16373. addStreamStopListener(stream, callback) {
  16374. stream.addEventListener(
  16375. "ended",
  16376. function () {
  16377. callback();
  16378. callback = function () {};
  16379. },
  16380. false
  16381. );
  16382. stream.addEventListener(
  16383. "inactive",
  16384. function () {
  16385. callback();
  16386. callback = function () {};
  16387. },
  16388. false
  16389. );
  16390. stream.getTracks().forEach(function (track) {
  16391. track.addEventListener(
  16392. "ended",
  16393. function () {
  16394. callback();
  16395. callback = function () {};
  16396. },
  16397. false
  16398. );
  16399. track.addEventListener(
  16400. "inactive",
  16401. function () {
  16402. callback();
  16403. callback = function () {};
  16404. },
  16405. false
  16406. );
  16407. });
  16408. },
  16409. updateGroup() {
  16410. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16411. this.dialogVisibleGroup2 = true;
  16412. },
  16413. updateGroupJson() {
  16414. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  16415. if (
  16416. this.groupStudentUid[this.toolindex][i].length >
  16417. this.groupJson2.number
  16418. ) {
  16419. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  16420. return;
  16421. }
  16422. }
  16423. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  16424. this.islock = this.groupJson.islock == 1 ? true : false;
  16425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16426. this.taskCount
  16427. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  16428. let params = [
  16429. {
  16430. cid: this.id,
  16431. chapters: JSON.stringify(this.chapInfoList),
  16432. uid: this.userid,
  16433. unitIndex: this.courseType,
  16434. },
  16435. ];
  16436. this.ajax
  16437. .post(this.$store.state.api + "updateWorkNew4", params)
  16438. .then((res) => {
  16439. this.$message.success("设置成功");
  16440. this.getCourseDetail(2);
  16441. this.dialogVisibleGroup2 = false;
  16442. this.groupJson2 = {};
  16443. this.$forceUpdate();
  16444. })
  16445. .catch((err) => {
  16446. this.$message.error("网络不佳");
  16447. console.error(err);
  16448. });
  16449. },
  16450. lockChair() {
  16451. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  16452. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  16453. this.updateGroupJson();
  16454. },
  16455. selectGroup(index) {
  16456. this.getCourseDetail(2, index);
  16457. },
  16458. joinGroup(index) {
  16459. if (this.groupJson.islock == 2) {
  16460. this.$message.error("位置已被锁定,无法加入");
  16461. return;
  16462. }
  16463. if (
  16464. this.groupStudent[this.toolindex][index].length >
  16465. this.groupJson.number ||
  16466. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  16467. ) {
  16468. this.$message.error("位置已满,无法加入");
  16469. return;
  16470. }
  16471. let params = [
  16472. {
  16473. cid: this.id,
  16474. stage: this.courseType,
  16475. task: this.taskCount,
  16476. tool: this.toolindex,
  16477. g: index,
  16478. uid: this.userid,
  16479. },
  16480. ];
  16481. this.ajax
  16482. .post(this.$store.state.api + "joinGroup", params)
  16483. .then((res) => {
  16484. this.$message.success("加入成功");
  16485. this.getCourseDetail(2);
  16486. })
  16487. .catch((err) => {
  16488. this.$message.error("网络不佳");
  16489. console.error(err);
  16490. });
  16491. },
  16492. exitGroup(id) {
  16493. if (this.groupJson.islock == 2) {
  16494. this.$message.error("位置已被锁定,无法退出");
  16495. return;
  16496. }
  16497. let params = [
  16498. {
  16499. gid: id,
  16500. },
  16501. ];
  16502. this.ajax
  16503. .post(this.$store.state.api + "exitGroup", params)
  16504. .then((res) => {
  16505. this.$message.success("退出成功");
  16506. this.getCourseDetail(2);
  16507. })
  16508. .catch((err) => {
  16509. this.$message.error("网络不佳");
  16510. console.error(err);
  16511. });
  16512. },
  16513. groupUpload(index, task, gindex) {
  16514. this.taskCount = task;
  16515. this.toolindex = index;
  16516. this.groupIndex = gindex;
  16517. this.dialogVisibleGroupWork = true;
  16518. },
  16519. updateGroupChair(user) {
  16520. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  16521. el.label = index;
  16522. return index != user.group;
  16523. });
  16524. this.updateGroupUser = user;
  16525. this.dialogVisibleUpdateGroup = true;
  16526. },
  16527. updateChair() {
  16528. if (
  16529. this.groupStudent[this.toolindex][this.checkChair].length >
  16530. this.groupJson.number ||
  16531. this.groupStudent[this.toolindex][this.checkChair].length ==
  16532. this.groupJson.number
  16533. ) {
  16534. this.$message.error("位置已满,无法加入");
  16535. return;
  16536. }
  16537. let params = [
  16538. {
  16539. cid: this.id,
  16540. stage: this.courseType,
  16541. task: this.taskCount,
  16542. tool: this.toolindex,
  16543. g: this.checkChair,
  16544. uid: this.updateGroupUser.userid,
  16545. },
  16546. ];
  16547. this.ajax
  16548. .post(this.$store.state.api + "joinGroup", params)
  16549. .then((res) => {
  16550. this.$message.success("修改成功");
  16551. this.updateGroupUser = {};
  16552. this.checkChair = "";
  16553. this.updateGroupArray = {};
  16554. this.dialogVisibleUpdateGroup = false;
  16555. this.getCourseDetail(2);
  16556. })
  16557. .catch((err) => {
  16558. this.$message.error("网络不佳");
  16559. console.error(err);
  16560. });
  16561. },
  16562. deleteGroupChair(gindex) {
  16563. this.checkDeleteGroup = [];
  16564. this.deleteGroupUser = JSON.parse(
  16565. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  16566. );
  16567. this.deleteGroupArray = this.groupJson.group[gindex];
  16568. this.groupIndex = gindex;
  16569. this.dialogVisibleDeleteGroup = true;
  16570. },
  16571. async deleteChair() {
  16572. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  16573. const gid =
  16574. this.groupStudent[this.toolindex][this.groupIndex][
  16575. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  16576. this.checkDeleteGroup[i]
  16577. )
  16578. ];
  16579. let params = [
  16580. {
  16581. gid: gid.id,
  16582. },
  16583. ];
  16584. var a = await this.deleteChairA(params);
  16585. if (i == this.checkDeleteGroup.length - 1) {
  16586. this.$message.success("退出成功");
  16587. this.dialogVisibleDeleteGroup = false;
  16588. this.deleteGroupUser = [];
  16589. this.deleteGroupArray = {};
  16590. this.groupIndex = "";
  16591. this.checkDeleteGroup = [];
  16592. this.getCourseDetail(2);
  16593. }
  16594. }
  16595. },
  16596. deleteChairA(params) {
  16597. return new Promise((resolve, reject) => {
  16598. this.ajax
  16599. .post(this.$store.state.api + "exitGroup", params)
  16600. .then((res) => {
  16601. resolve(1);
  16602. })
  16603. .catch((err) => {
  16604. this.$message.error("网络不佳");
  16605. console.error(err);
  16606. });
  16607. });
  16608. },
  16609. contract(i) {
  16610. if (this.isCloseList[i].isClose == 0) {
  16611. this.isCloseList[i].isClose = 1;
  16612. } else {
  16613. this.isCloseList[i].isClose = 0;
  16614. }
  16615. this.$forceUpdate();
  16616. },
  16617. },
  16618. directives: {
  16619. // 使用局部注册指令的方式
  16620. resize: {
  16621. // 指令的名称
  16622. bind(el, binding) {
  16623. // el为绑定的元素,binding为绑定给指令的对象
  16624. let width = "",
  16625. height = "";
  16626. function isReize() {
  16627. const style = document.defaultView.getComputedStyle(el);
  16628. if (width !== style.width || height !== style.height) {
  16629. binding.value(); // 关键
  16630. }
  16631. width = style.width;
  16632. height = style.height;
  16633. }
  16634. el.__vueSetInterval__ = setInterval(isReize, 300);
  16635. },
  16636. unbind(el) {
  16637. clearInterval(el.__vueSetInterval__);
  16638. },
  16639. },
  16640. },
  16641. beforeDestroy() {
  16642. window.onresize = null;
  16643. clearInterval(this.timer);
  16644. this.timer = null;
  16645. clearInterval(this.opertimer);
  16646. this.opertimer = null;
  16647. },
  16648. computed: {
  16649. contentConvent() {
  16650. return function (c) {
  16651. return c
  16652. ? c
  16653. .replaceAll(/\r\n/g, "<br/>")
  16654. .replaceAll(/\n/g, "<br/>")
  16655. .replaceAll(/\s/g, " &nbsp")
  16656. : "";
  16657. };
  16658. },
  16659. checkUpload() {
  16660. return function () {
  16661. var studentK = [];
  16662. if (this.plworkFile.length > 0) {
  16663. for (var z = 0; z < this.plworkFile.length; z++) {
  16664. studentK.push(this.plworkFile[z].username);
  16665. }
  16666. studentK = studentK.join(",");
  16667. }
  16668. var a = this.uploadStudentJuri.filter((el) => {
  16669. return studentK.indexOf(el.userid) == -1;
  16670. });
  16671. return a;
  16672. };
  16673. },
  16674. getSName() {
  16675. return function (name) {
  16676. var check = name;
  16677. this.uploadStudentJuri.forEach((el) => {
  16678. if (el.userid == check) {
  16679. check = el.name ? el.name : el.username;
  16680. }
  16681. });
  16682. return check;
  16683. };
  16684. },
  16685. getImgList(){
  16686. return function(val){
  16687. let srcList = []; // 定义一个数组用来接收后面的img地址
  16688. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) { // 查找匹配的元素 match为整个img标签 capture为src中的内容
  16689. srcList.push(capture);
  16690. });
  16691. return srcList
  16692. }
  16693. }
  16694. },
  16695. mounted() {
  16696. if (this.screenType == 2) {
  16697. window.parent.postMessage({ allScreen: 4 }, "*");
  16698. } else if (this.screenType == 3) {
  16699. window.parent.postMessage({ allScreen: 5 }, "*");
  16700. } else if (this.screenType == 1) {
  16701. window.parent.postMessage({ allScreen: 6 }, "*");
  16702. }
  16703. this.setOperationTime();
  16704. this.selectEva();
  16705. this.getCourseDetail();
  16706. this.selectCount();
  16707. this.getHomeWork();
  16708. this.contentDialog = true;
  16709. this.setContent2(true);
  16710. if (this.tType == 4) {
  16711. this.pzDialog = true;
  16712. this.selectPz();
  16713. }
  16714. document.scrollingElement.scrollTop = 0;
  16715. window.addEventListener("resize", () => {
  16716. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16717. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16718. if (this.showType == 2 || this.showType == 3) {
  16719. document.getElementsByClassName("navBox")[0].style.height =
  16720. a - 40 + 46 + "px";
  16721. } else {
  16722. document.getElementsByClassName("navBox")[0].style.height =
  16723. a - 40 + "px";
  16724. }
  16725. });
  16726. let _this = this;
  16727. setTimeout(() => {
  16728. // _this.vedioTime = [];
  16729. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16730. // _this.vedioTime[i] = document.getElementsByClassName(
  16731. // "vjs-duration-display"
  16732. // )[i].textContent;
  16733. // }
  16734. }, 1000);
  16735. },
  16736. };
  16737. </script>
  16738. <style scoped>
  16739. @media screen and (max-width: 1280px) {
  16740. /* .courseIndex > div:first-child(2) {
  16741. width: 15% !important;
  16742. } */
  16743. /* .navText {
  16744. width: 120px !important;
  16745. } */
  16746. .evaCss {
  16747. flex-direction: column !important;
  16748. align-items: center !important;
  16749. }
  16750. .elist_input {
  16751. width: 90% !important;
  16752. }
  16753. .dialog_diy1 >>> .el-dialog {
  16754. width: 100% !important;
  16755. }
  16756. .rightWidthCss {
  16757. width: 100% !important;
  16758. }
  16759. .dialog_diy3 >>> .el-dialog {
  16760. width: 100% !important;
  16761. }
  16762. /* .textTitle >>> .el-form-item__label {
  16763. width: 150px !important;
  16764. } */
  16765. /* .stageItemTitle > div:last-child{
  16766. max-width: 50px;
  16767. } */
  16768. }
  16769. .evaCssMax {
  16770. flex-direction: column !important;
  16771. align-items: center !important;
  16772. }
  16773. .dialog_diy >>> .el-dialog {
  16774. margin-top: 10vh !important;
  16775. }
  16776. .body_student {
  16777. width: 77%;
  16778. height: 100%;
  16779. position: absolute;
  16780. left: 22%;
  16781. top: 0;
  16782. }
  16783. .student_head {
  16784. width: 100%;
  16785. margin: 40px auto 0;
  16786. padding-bottom: 20px;
  16787. display: flex;
  16788. flex-direction: column;
  16789. flex-wrap: nowrap;
  16790. align-items: flex-start;
  16791. justify-content: flex-start;
  16792. }
  16793. .pb_left {
  16794. width: 20%;
  16795. margin-right: 10px;
  16796. background: rgb(255, 255, 255);
  16797. position: fixed;
  16798. height: calc(100% - 40px);
  16799. border-radius: 20px;
  16800. padding-bottom: 15px;
  16801. box-sizing: border-box;
  16802. }
  16803. .wheel > img,
  16804. .project > img,
  16805. .star > img,
  16806. .evaluate > img,
  16807. .up_photo > img,
  16808. .chapter_add > img,
  16809. .deleteWord > img,
  16810. .question > img,
  16811. .homework > img {
  16812. width: 100%;
  16813. height: 100%;
  16814. }
  16815. .upCover > img {
  16816. width: 131px;
  16817. height: 69px;
  16818. object-fit: cover;
  16819. }
  16820. .upCover {
  16821. width: calc(100% / 3.5);
  16822. position: relative;
  16823. margin: 0 15px 10px 0;
  16824. display: flex;
  16825. flex-direction: column;
  16826. flex-wrap: nowrap;
  16827. justify-content: center;
  16828. align-content: center;
  16829. align-items: center;
  16830. height: fit-content;
  16831. }
  16832. .upCover2 {
  16833. width: 100%;
  16834. position: relative;
  16835. margin: 0 15px 10px 0;
  16836. display: flex;
  16837. flex-direction: column;
  16838. flex-wrap: nowrap;
  16839. justify-content: center;
  16840. align-content: center;
  16841. align-items: center;
  16842. }
  16843. .upCover2 > img {
  16844. width: 100%;
  16845. height: 90px;
  16846. object-fit: contain;
  16847. }
  16848. .chapter_add {
  16849. width: 120px;
  16850. position: relative;
  16851. text-align: center;
  16852. }
  16853. .isAddThings {
  16854. margin-top: 20px;
  16855. position: relative;
  16856. text-align: center;
  16857. background: #f7f8fa;
  16858. height: 90px;
  16859. width: 90px;
  16860. display: flex;
  16861. flex-direction: column;
  16862. justify-content: center;
  16863. }
  16864. .deleteWord {
  16865. width: 22px;
  16866. height: 22px;
  16867. position: absolute;
  16868. right: -5px;
  16869. top: -5px;
  16870. cursor: pointer;
  16871. }
  16872. .box_course {
  16873. /* width: 60%; */
  16874. width: calc(100% - 300px);
  16875. }
  16876. .wheel {
  16877. width: 100%;
  16878. /* height: 100%; */
  16879. height: 650px;
  16880. }
  16881. .right_box {
  16882. display: flex;
  16883. flex-direction: column;
  16884. margin-left: 30px;
  16885. justify-content: space-around;
  16886. }
  16887. .right_box_title {
  16888. font-size: 23px;
  16889. }
  16890. .people {
  16891. display: flex;
  16892. }
  16893. .student_body {
  16894. width: 100%;
  16895. margin: 0 auto;
  16896. margin-top: 10px;
  16897. padding: 0 0 20px;
  16898. }
  16899. .study_top {
  16900. margin-top: 100px;
  16901. width: 100%;
  16902. height: auto;
  16903. padding-bottom: 20px;
  16904. }
  16905. .study_top .checkbox {
  16906. display: flex;
  16907. align-items: center;
  16908. padding: 15px 0 15px 30px;
  16909. flex: 0 0 auto;
  16910. font-weight: bold;
  16911. border-bottom: 1px solid #eee;
  16912. }
  16913. .study_top .check {
  16914. padding-bottom: 5px;
  16915. text-align: center;
  16916. cursor: pointer;
  16917. height: 30px;
  16918. box-sizing: border-box;
  16919. display: flex;
  16920. }
  16921. .study_top .checked {
  16922. border-bottom: 4px solid #3fc6a0;
  16923. padding-bottom: 5px;
  16924. color: #3fc6a0;
  16925. display: flex;
  16926. height: 35px;
  16927. }
  16928. .study_top .checked > div,
  16929. .study_top .check > div {
  16930. margin-right: 5px;
  16931. }
  16932. .videoTop {
  16933. display: flex;
  16934. flex-direction: row;
  16935. justify-content: space-between;
  16936. background: #fff;
  16937. align-items: center;
  16938. width: 95%;
  16939. padding: 20px;
  16940. }
  16941. .upbtn {
  16942. margin: 25px;
  16943. background: #70afdb;
  16944. color: #fff;
  16945. width: 120px;
  16946. text-align: center;
  16947. height: 30px;
  16948. line-height: 30px;
  16949. font-size: 13px;
  16950. border-radius: 5px;
  16951. cursor: pointer;
  16952. }
  16953. .filebox {
  16954. display: flex;
  16955. flex-wrap: wrap;
  16956. flex-direction: column;
  16957. padding: 15px 0 5px;
  16958. position: relative;
  16959. }
  16960. .filebox:before {
  16961. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  16962. position: absolute;
  16963. top: 35px;
  16964. left: 13px;
  16965. border-left: 2px dotted #cad1dc;
  16966. height: calc(100% - 15px);
  16967. }
  16968. .toolHeng2 > div:last-child::before {
  16969. height: calc(100% - 43px);
  16970. }
  16971. .filebox .tooldetail {
  16972. width: 35%;
  16973. margin: 0px 12px;
  16974. padding: 12px 25px 0 13px;
  16975. line-height: 30px;
  16976. word-break: break-word;
  16977. font-size: 18px;
  16978. background: #ffffff;
  16979. border-radius: 8px 8px 8px 8px;
  16980. opacity: 1;
  16981. border: 1px solid #cad1dc;
  16982. }
  16983. .file {
  16984. display: flex;
  16985. flex-direction: column;
  16986. align-items: center;
  16987. justify-content: center;
  16988. cursor: pointer;
  16989. width: 200px;
  16990. }
  16991. .file div {
  16992. margin-top: 10px;
  16993. width: 150px;
  16994. text-align: center;
  16995. overflow: hidden;
  16996. white-space: nowrap;
  16997. text-overflow: ellipsis;
  16998. }
  16999. .media {
  17000. display: flex;
  17001. flex-direction: column;
  17002. align-items: center;
  17003. justify-content: center;
  17004. margin: 0 20px 20px 0;
  17005. cursor: pointer;
  17006. margin: 12px 0 5px 15px;
  17007. overflow: hidden;
  17008. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17009. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17010. box-sizing: border-box;
  17011. }
  17012. .media img {
  17013. height: 90px;
  17014. width: 160px;
  17015. object-fit: cover;
  17016. }
  17017. .media .title {
  17018. padding: 5px;
  17019. text-align: left;
  17020. width: 100%;
  17021. box-sizing: border-box;
  17022. }
  17023. .media .btn {
  17024. width: 100%;
  17025. height: 35px;
  17026. line-height: 35px;
  17027. color: #fff;
  17028. background: #606060;
  17029. text-align: center;
  17030. overflow: hidden;
  17031. white-space: nowrap;
  17032. text-overflow: ellipsis;
  17033. }
  17034. .detail_content_top {
  17035. width: 100%;
  17036. padding: 25px 0 25px 0;
  17037. }
  17038. .detail_title {
  17039. text-align: center;
  17040. font-size: 24px;
  17041. }
  17042. .detail_time {
  17043. font-size: 13px;
  17044. padding: 15px 0 0 40px;
  17045. }
  17046. .detail_content {
  17047. line-height: 2pc;
  17048. width: 90%;
  17049. margin: 0 auto;
  17050. padding-top: 30px;
  17051. text-indent: 30px;
  17052. overflow: auto;
  17053. height: 200px;
  17054. }
  17055. .score_box >>> .el-rate {
  17056. margin-left: 10px;
  17057. }
  17058. .dialog_change >>> .el-dialog {
  17059. border-radius: 5px;
  17060. }
  17061. .dialog_change >>> .el-dialog__header {
  17062. background: #f2f2f2;
  17063. text-align: center;
  17064. }
  17065. .dialog_change >>> .el-dialog__title {
  17066. line-height: 5px;
  17067. }
  17068. .dialog_change >>> .el-dialog__body {
  17069. background: #fff;
  17070. padding: 10px 20px;
  17071. }
  17072. .score_box {
  17073. display: flex;
  17074. align-items: center;
  17075. margin-bottom: 18px;
  17076. margin-top: 20px;
  17077. }
  17078. .up_photo {
  17079. width: 120px;
  17080. cursor: pointer;
  17081. margin-top: 10px;
  17082. }
  17083. .up_photo2 {
  17084. width: 180px;
  17085. box-sizing: border-box;
  17086. min-width: 180px;
  17087. height: 180px;
  17088. max-height: 180px;
  17089. min-height: 180px;
  17090. cursor: pointer;
  17091. display: flex;
  17092. flex-direction: column;
  17093. align-items: center;
  17094. justify-content: center;
  17095. background: rgb(242, 246, 255);
  17096. /* padding: 25px; */
  17097. margin-bottom: 10px;
  17098. }
  17099. .up_photo2 img {
  17100. width: 50%;
  17101. height: auto;
  17102. }
  17103. .up_photo2 span {
  17104. color: #898989;
  17105. }
  17106. .plworkBox {
  17107. display: flex;
  17108. align-items: center;
  17109. margin-top: 10px;
  17110. flex-wrap: wrap;
  17111. }
  17112. .upload_send {
  17113. margin: 30px auto 30px;
  17114. width: 60%;
  17115. background: #169bd6;
  17116. text-align: center;
  17117. height: 35px;
  17118. line-height: 35px;
  17119. color: #fff;
  17120. border-radius: 5px;
  17121. cursor: pointer;
  17122. }
  17123. .marginT {
  17124. margin-top: 20px;
  17125. }
  17126. .cd_content_steps {
  17127. display: flex;
  17128. width: 90%;
  17129. justify-content: space-around;
  17130. border-top: 1px solid #eeeeee;
  17131. }
  17132. .cd_steps_box {
  17133. display: flex;
  17134. justify-content: center;
  17135. align-items: center;
  17136. flex-direction: column;
  17137. cursor: pointer;
  17138. }
  17139. .first {
  17140. display: flex;
  17141. align-items: center;
  17142. margin: 15px 0 20px 0;
  17143. font-size: 20px;
  17144. }
  17145. .first > div:nth-child(2) {
  17146. font-size: 16px !important;
  17147. padding-left: 10px;
  17148. line-height: 26px;
  17149. box-sizing: border-box;
  17150. }
  17151. .blue_box_one {
  17152. text-align: center;
  17153. color: #fff;
  17154. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17155. border-radius: 7px;
  17156. margin: 10px;
  17157. cursor: pointer;
  17158. width: 95%;
  17159. height: 45px;
  17160. display: flex;
  17161. flex-direction: row;
  17162. justify-content: flex-start;
  17163. align-items: center;
  17164. }
  17165. .blue_box_one > div:nth-child(1) {
  17166. line-height: 30px;
  17167. margin: 0 5px 0 10px;
  17168. width: 30%;
  17169. min-width: 70px;
  17170. border-radius: 4px;
  17171. }
  17172. .blue_box_one > div:nth-child(2) {
  17173. white-space: nowrap;
  17174. text-overflow: ellipsis;
  17175. overflow: hidden;
  17176. word-break: break-all;
  17177. width: 70%;
  17178. text-align: left;
  17179. margin-right: 10px;
  17180. max-width: calc(100% - 85px);
  17181. }
  17182. .blue_box_one > div:nth-child(2):hover {
  17183. overflow: hidden;
  17184. text-overflow: ellipsis;
  17185. white-space: nowrap;
  17186. cursor: pointer;
  17187. }
  17188. .upFile {
  17189. margin: 0 auto;
  17190. width: 120px;
  17191. background: #70afdb;
  17192. color: #fff;
  17193. height: 30px;
  17194. text-align: center;
  17195. line-height: 30px;
  17196. border-radius: 5px;
  17197. font-size: 14px;
  17198. cursor: pointer;
  17199. }
  17200. .courseTitle {
  17201. width: 85%;
  17202. margin: 10px auto;
  17203. display: flex;
  17204. flex-direction: row;
  17205. align-items: center;
  17206. justify-content: space-between;
  17207. text-align: center;
  17208. }
  17209. .courseTitle .ctitle {
  17210. font-size: 24px;
  17211. font-weight: bold;
  17212. color: #0e1e33;
  17213. white-space: nowrap;
  17214. overflow: hidden;
  17215. text-overflow: ellipsis;
  17216. }
  17217. .inviteBox {
  17218. font-size: 14px;
  17219. margin-top: 5px;
  17220. color: #a6cbff;
  17221. text-align: center;
  17222. }
  17223. .courseTitle >>> .el-tooltip {
  17224. width: 100%;
  17225. white-space: nowrap;
  17226. overflow: hidden;
  17227. text-overflow: ellipsis;
  17228. word-break: break-word;
  17229. }
  17230. .ml {
  17231. margin-left: 20px;
  17232. color: #5b7dba;
  17233. border-left: 3px solid #5b7dba;
  17234. padding-left: 5px;
  17235. font-weight: bold;
  17236. }
  17237. .return {
  17238. width: 2rem;
  17239. height: 2rem;
  17240. cursor: pointer;
  17241. }
  17242. .return > img {
  17243. width: 100%;
  17244. height: 100%;
  17245. }
  17246. .returnBtn {
  17247. width: 86px;
  17248. height: 36px;
  17249. background: #e7ebf1;
  17250. border-radius: 4px;
  17251. color: #717c8d;
  17252. text-align: center;
  17253. line-height: 36px;
  17254. margin-right: 20px;
  17255. cursor: pointer;
  17256. font-size: 14px;
  17257. font-weight: 400;
  17258. display: flex;
  17259. flex-direction: row;
  17260. flex-wrap: nowrap;
  17261. align-items: center;
  17262. justify-content: center;
  17263. }
  17264. .commentIcon::before,
  17265. .vedioIcon::before,
  17266. .lockIcon::before,
  17267. .returnIcon::before {
  17268. content: "";
  17269. display: block;
  17270. background-size: 100% 100%;
  17271. background-repeat: no-repeat;
  17272. width: 20px;
  17273. height: 20px;
  17274. margin-right: 5px;
  17275. }
  17276. .commentIcon::before {
  17277. background-image: url("../assets/icon/newIcon/comment.png");
  17278. }
  17279. .vedioIcon::before {
  17280. background-image: url("../assets/icon/newIcon/vedio.png");
  17281. }
  17282. .lockIcon::before {
  17283. background-image: url("../assets/icon/newIcon/lock.png");
  17284. }
  17285. .returnIcon::before {
  17286. background-image: url("../assets/icon/newIcon/return.png");
  17287. }
  17288. .tool {
  17289. display: flex;
  17290. flex-direction: column;
  17291. flex-wrap: nowrap;
  17292. width: 13%;
  17293. margin: 0 30px;
  17294. align-items: center;
  17295. }
  17296. .whiteBIcon {
  17297. width: 150px;
  17298. cursor: pointer;
  17299. }
  17300. .whiteBIcon > img {
  17301. width: 100%;
  17302. height: 100%;
  17303. }
  17304. .mask {
  17305. background-color: rgba(0, 0, 0, 0);
  17306. position: fixed;
  17307. top: 0;
  17308. left: 0;
  17309. width: 100%;
  17310. height: 100%;
  17311. z-index: 20000;
  17312. display: flex;
  17313. align-items: center;
  17314. justify-content: center;
  17315. }
  17316. .progressBox {
  17317. width: 500px;
  17318. height: 180px;
  17319. background: #fff;
  17320. border-radius: 10px;
  17321. box-shadow: 0 0 6px 1px #bfbfbf;
  17322. display: flex;
  17323. align-items: center;
  17324. justify-content: center;
  17325. flex-direction: column;
  17326. position: relative;
  17327. color: #6c6c6c;
  17328. }
  17329. .progressBox >>> .el-progress-bar__outer {
  17330. background-color: #d1dfff !important;
  17331. }
  17332. .progressBox .lbox {
  17333. height: 50px;
  17334. font-size: 19px;
  17335. display: flex;
  17336. align-items: center;
  17337. color: #747474;
  17338. }
  17339. .progressBox .lbox img {
  17340. width: 40px;
  17341. margin-right: 20px;
  17342. }
  17343. .closeCss {
  17344. position: absolute;
  17345. top: 8px;
  17346. right: 8px;
  17347. cursor: pointer;
  17348. width: 20px;
  17349. height: 20px;
  17350. }
  17351. .closeCss > img {
  17352. width: 100%;
  17353. height: 100%;
  17354. }
  17355. .uploadVedio {
  17356. display: flex;
  17357. flex-direction: column;
  17358. flex-wrap: nowrap;
  17359. justify-content: center;
  17360. align-items: center;
  17361. margin: 0 15px 10px 0;
  17362. }
  17363. .uploadVedio > img {
  17364. width: 30px;
  17365. height: 30px;
  17366. }
  17367. .uploadVedio > span {
  17368. white-space: nowrap;
  17369. overflow: hidden;
  17370. text-overflow: ellipsis;
  17371. width: 75px;
  17372. margin-top: 7px;
  17373. }
  17374. .picName {
  17375. white-space: nowrap;
  17376. overflow: hidden;
  17377. text-overflow: ellipsis;
  17378. width: 75px;
  17379. margin-top: 7px;
  17380. }
  17381. .new_top {
  17382. display: flex;
  17383. background: #fff;
  17384. flex-direction: row;
  17385. justify-content: flex-start;
  17386. align-items: center;
  17387. height: 60px;
  17388. position: relative;
  17389. }
  17390. .new_top::before {
  17391. content: "";
  17392. width: 100%;
  17393. height: 20px;
  17394. position: absolute;
  17395. top: -20px;
  17396. display: block;
  17397. background: #f2f2f2;
  17398. }
  17399. .before {
  17400. position: absolute;
  17401. background: #c3dad4;
  17402. width: 6px;
  17403. height: 100%;
  17404. }
  17405. .courseIndex {
  17406. display: flex;
  17407. flex-direction: row;
  17408. align-items: center;
  17409. width: calc(100% - 600px);
  17410. }
  17411. .courseIndex > div:nth-child(1) {
  17412. margin: 0 0 0 10px;
  17413. font-size: 24px;
  17414. min-width: 100px;
  17415. font-weight: bold;
  17416. border-left: 4px solid #3363b9;
  17417. height: 35px;
  17418. text-align: center;
  17419. line-height: 35px;
  17420. }
  17421. .courseIndex > div:nth-child(2) {
  17422. font-size: 23px;
  17423. /* width: 300px; */
  17424. max-width: calc(100% - 180px);
  17425. white-space: nowrap;
  17426. overflow: hidden;
  17427. text-overflow: ellipsis;
  17428. }
  17429. .courseIndex > div:nth-child(3) {
  17430. border-bottom: 1px solid #d7d7d7;
  17431. padding-bottom: 5px;
  17432. background: #49a0f0;
  17433. width: 55px;
  17434. min-width: 55px;
  17435. border-radius: 5px;
  17436. color: #fff;
  17437. text-align: center;
  17438. height: 20px;
  17439. line-height: 26px;
  17440. font-size: 14px;
  17441. margin: 0 0 0 10px;
  17442. }
  17443. .course_text {
  17444. padding: 20px 0 0 15px;
  17445. text-indent: 30px;
  17446. width: 80%;
  17447. min-height: 20px;
  17448. }
  17449. .vedioList {
  17450. background: #f2f2f2;
  17451. border: 1px solid #ececec;
  17452. /* width: 38.8%; */
  17453. width: 300px;
  17454. height: 445px;
  17455. border-radius: 10px;
  17456. overflow: hidden;
  17457. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  17458. }
  17459. .vedioNav {
  17460. margin: 10px 0 0 15px;
  17461. border-bottom: 1px solid #d7d7d7;
  17462. padding-bottom: 5px;
  17463. background: #96d1ff;
  17464. width: 55px;
  17465. min-width: 55px;
  17466. border-radius: 5px;
  17467. color: #fff;
  17468. text-align: center;
  17469. height: 20px;
  17470. line-height: 26px;
  17471. font-size: 14px;
  17472. }
  17473. .queTop {
  17474. display: flex;
  17475. padding: 20px 0 20px 30px;
  17476. width: 100%;
  17477. flex-direction: row;
  17478. justify-content: flex-start;
  17479. align-items: center;
  17480. box-sizing: border-box;
  17481. }
  17482. .queTop::before {
  17483. content: "";
  17484. width: 2px;
  17485. height: 22px;
  17486. background: #3681fc;
  17487. border-radius: 3px;
  17488. display: block;
  17489. margin: 2px 6px 0 0;
  17490. }
  17491. .question {
  17492. width: 40px;
  17493. margin-right: 10px;
  17494. margin-top: 7px;
  17495. }
  17496. .queTitle {
  17497. margin-left: 5px;
  17498. font-size: 25px;
  17499. display: flex;
  17500. align-items: center;
  17501. }
  17502. .addEditor {
  17503. width: 100px;
  17504. height: 30px;
  17505. background: #42cda6;
  17506. color: #fff;
  17507. border-radius: 5px;
  17508. text-align: center;
  17509. line-height: 30px;
  17510. box-shadow: 1px 3px 6px 1px #bfbfbf;
  17511. cursor: pointer;
  17512. }
  17513. /* .vedioName {
  17514. cursor: pointer;
  17515. margin: 0px 0px 10px 5px;
  17516. white-space: nowrap;
  17517. overflow: hidden;
  17518. text-overflow: ellipsis;
  17519. width: 100%;
  17520. } */
  17521. .vedioTime {
  17522. width: 35px;
  17523. position: absolute;
  17524. color: #fff;
  17525. bottom: 0px;
  17526. right: 0px;
  17527. text-align: center;
  17528. background: #46411f;
  17529. height: 20px;
  17530. font-size: 14px;
  17531. line-height: 20px;
  17532. }
  17533. .homework {
  17534. width: 200px;
  17535. display: flex;
  17536. flex-direction: column;
  17537. flex-wrap: nowrap;
  17538. align-items: center;
  17539. cursor: pointer;
  17540. }
  17541. .homebox {
  17542. display: flex;
  17543. flex-wrap: wrap;
  17544. flex-direction: row;
  17545. justify-content: flex-start;
  17546. align-items: center;
  17547. padding: 15px 0;
  17548. }
  17549. .isChooseActive {
  17550. color: #3681fc !important;
  17551. font-weight: bold !important;
  17552. }
  17553. .chooseWho {
  17554. display: flex;
  17555. width: 100%;
  17556. flex-direction: row;
  17557. flex-wrap: nowrap;
  17558. justify-content: flex-start;
  17559. padding-bottom: 10px;
  17560. }
  17561. .chooseWho > div {
  17562. cursor: pointer;
  17563. padding-bottom: 10px;
  17564. margin: 0 30px 0 0;
  17565. font-weight: 400;
  17566. color: #0e1e33;
  17567. }
  17568. .addPoint > div > img {
  17569. cursor: pointer;
  17570. width: 85px;
  17571. border-radius: 15px;
  17572. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  17573. }
  17574. .addPoint > div {
  17575. display: flex;
  17576. flex-direction: column;
  17577. flex-wrap: nowrap;
  17578. align-items: center;
  17579. }
  17580. .isBorder > div {
  17581. margin: 0 0 10px 0;
  17582. align-items: flex-start !important;
  17583. }
  17584. .noiframeBox {
  17585. display: flex;
  17586. flex-wrap: wrap;
  17587. }
  17588. .iframeBox iframe {
  17589. width: 100%;
  17590. height: 800px;
  17591. border: none;
  17592. margin-bottom: 20px;
  17593. border: 1px solid #ccc;
  17594. }
  17595. .upload_toolBtn {
  17596. background: #6b92c9;
  17597. color: #fff;
  17598. width: 110px;
  17599. text-align: center;
  17600. height: 35px;
  17601. line-height: 35px;
  17602. font-size: 14px;
  17603. border-radius: 5px;
  17604. cursor: pointer;
  17605. position: absolute;
  17606. right: 10px;
  17607. bottom: 0;
  17608. }
  17609. .binfo_input,
  17610. .pj {
  17611. font: inherit;
  17612. color: currentColor;
  17613. width: 100%;
  17614. margin: 0;
  17615. padding: 15px 14px;
  17616. display: block;
  17617. min-width: 0;
  17618. outline: none;
  17619. box-sizing: content-box;
  17620. background: none;
  17621. -webkit-tap-highlight-color: transparent;
  17622. border: 1px solid rgba(0, 0, 0, 0.23);
  17623. border-radius: 4px;
  17624. box-sizing: border-box;
  17625. resize: none;
  17626. }
  17627. .binfo_input:focus-visible {
  17628. border: 1px solid rgba(61, 103, 188);
  17629. }
  17630. .dialog_diy >>> .el-dialog__header,
  17631. .dialog_diy1 >>> .el-dialog__header {
  17632. background: #454545 !important;
  17633. padding: 15px 20px;
  17634. }
  17635. .dialog_diy >>> .el-dialog__title,
  17636. .dialog_diy1 >>> .el-dialog__title {
  17637. color: #fff;
  17638. }
  17639. .dialog_diy >>> .el-dialog__headerbtn,
  17640. .dialog_diy1 >>> .el-dialog__headerbtn {
  17641. top: 19px;
  17642. }
  17643. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  17644. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  17645. color: #fff;
  17646. }
  17647. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  17648. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  17649. color: #fff;
  17650. }
  17651. .dialog_diy1 >>> .el-dialog__body {
  17652. padding: 0;
  17653. }
  17654. .dialog_diy >>> .el-dialog__body,
  17655. .dialog_diy >>> .el-dialog__footer,
  17656. .dialog_diy1 >>> .el-dialog__footer {
  17657. background: #fafafa;
  17658. }
  17659. .a_addBox {
  17660. margin: 10px 0;
  17661. background: #fff;
  17662. padding: 15px;
  17663. }
  17664. .a_add_box {
  17665. border-bottom: 2px solid #eee;
  17666. padding-bottom: 10px;
  17667. }
  17668. .a_add_head {
  17669. display: flex;
  17670. align-items: flex-start;
  17671. /* justify-content: space-between; */
  17672. flex-direction: column;
  17673. /* flex-direction: row; */
  17674. margin: 10px 0 20px 0;
  17675. font-size: 18px;
  17676. width: 100%;
  17677. }
  17678. .a_add_head .a_add_head_input {
  17679. width: 300px;
  17680. }
  17681. .a_add_head .a_add_head_div {
  17682. display: flex;
  17683. align-items: center;
  17684. justify-content: space-between;
  17685. }
  17686. .a_add_body {
  17687. display: flex;
  17688. align-items: center;
  17689. }
  17690. .a_add_input {
  17691. display: flex;
  17692. align-items: center;
  17693. flex-wrap: wrap;
  17694. }
  17695. .a_add_input >>> el-radio-group {
  17696. margin: 10px 0;
  17697. }
  17698. .a_add_input >>> .el-radio,
  17699. .a_add_input >>> .el-checkbox {
  17700. margin-bottom: 10px;
  17701. display: flex;
  17702. flex-direction: row;
  17703. flex-wrap: nowrap;
  17704. align-items: center;
  17705. }
  17706. .redioStyle >>> .el-radio__label {
  17707. font-size: 18px;
  17708. }
  17709. .redioStyle >>> .el-checkbox__label {
  17710. font-size: 18px;
  17711. }
  17712. .toolHeng2 {
  17713. width: 100%;
  17714. padding-left: 37px;
  17715. box-sizing: border-box;
  17716. }
  17717. .workNav {
  17718. font-size: 20px;
  17719. font-weight: bold;
  17720. color: #0e1e33;
  17721. display: flex;
  17722. flex-direction: row;
  17723. flex-wrap: nowrap;
  17724. align-items: center;
  17725. padding: 24px 0 15px 0;
  17726. }
  17727. .workNav::before {
  17728. content: "";
  17729. width: 2px;
  17730. height: 22px;
  17731. background: #3681fc;
  17732. border-radius: 3px;
  17733. display: block;
  17734. margin: 2px 6px 0 0;
  17735. }
  17736. .toolHeng {
  17737. display: flex;
  17738. flex-direction: row;
  17739. flex-wrap: wrap;
  17740. justify-content: flex-start;
  17741. align-items: center;
  17742. width: 100%;
  17743. }
  17744. .toolHeng > div {
  17745. padding-left: 20px;
  17746. }
  17747. .isWidth {
  17748. width: 20%;
  17749. }
  17750. .textTitle {
  17751. display: flex;
  17752. flex-direction: row;
  17753. flex-wrap: nowrap;
  17754. align-items: center;
  17755. width: 95%;
  17756. }
  17757. .textTitle >>> .el-form-item__label {
  17758. font-size: 22px;
  17759. color: #918f8f;
  17760. width: 100px;
  17761. }
  17762. .textTitle >>> .el-form-item__content {
  17763. width: calc(100% - 100px);
  17764. }
  17765. .textCss >>> .el-dialog {
  17766. width: 800px !important;
  17767. height: 400px;
  17768. background: #fafafa;
  17769. }
  17770. .textCss >>> .el-dialog__body {
  17771. margin: 55px 8% 0 8%;
  17772. padding: 0 !important;
  17773. }
  17774. .textCss >>> .el-dialog__footer {
  17775. padding-top: 38px;
  17776. }
  17777. .toolsCss >>> .el-dialog__body {
  17778. padding: 20px;
  17779. }
  17780. .lineCss >>> .el-dialog__body {
  17781. display: flex;
  17782. flex-direction: row;
  17783. align-items: center;
  17784. justify-content: center;
  17785. }
  17786. .newNav {
  17787. display: flex;
  17788. flex-direction: row;
  17789. align-items: baseline;
  17790. justify-content: flex-start;
  17791. }
  17792. .navListItem {
  17793. width: 280px;
  17794. height: 50px;
  17795. margin: 0px auto 10px;
  17796. display: flex;
  17797. flex-direction: row;
  17798. flex-wrap: nowrap;
  17799. align-items: center;
  17800. justify-content: space-between;
  17801. background: #f0f4fa;
  17802. border-radius: 6px 6px 6px 6px;
  17803. }
  17804. .navText {
  17805. cursor: pointer;
  17806. white-space: nowrap;
  17807. overflow: hidden;
  17808. text-overflow: ellipsis;
  17809. width: 220px;
  17810. padding: 0 10px;
  17811. font-weight: 400;
  17812. color: #0e1e33;
  17813. }
  17814. .downIcon {
  17815. width: 20px;
  17816. height: 20px;
  17817. margin-right: 15px;
  17818. cursor: pointer;
  17819. }
  17820. .downIcon > img {
  17821. width: 100%;
  17822. height: 100%;
  17823. }
  17824. .noVedio {
  17825. display: flex;
  17826. flex-direction: row;
  17827. justify-content: center;
  17828. align-content: center;
  17829. }
  17830. .noNavText {
  17831. cursor: pointer;
  17832. margin: 0px 0px 10px 5px;
  17833. width: 112px;
  17834. }
  17835. .listNoVedio {
  17836. margin: 0 0 0 30px;
  17837. width: 97%;
  17838. }
  17839. .video-player >>> .video-js {
  17840. height: 100%;
  17841. }
  17842. .hangVedioList {
  17843. width: 90% !important;
  17844. height: 150px !important;
  17845. margin: 20px 0 0 30px;
  17846. }
  17847. .hangVedio {
  17848. width: 100%;
  17849. height: 170px !important;
  17850. align-items: flex-start !important;
  17851. }
  17852. .hangHand {
  17853. height: 150px !important;
  17854. }
  17855. .twoChild {
  17856. width: 95%;
  17857. margin: 10px;
  17858. border-radius: 5px;
  17859. background: #f2f2f2;
  17860. display: flex;
  17861. flex-direction: column;
  17862. flex-wrap: nowrap;
  17863. justify-content: flex-start;
  17864. align-items: flex-start;
  17865. transition: all 0.5s;
  17866. overflow: hidden;
  17867. height: 0;
  17868. background: #e7f3ff;
  17869. }
  17870. .twoChild > div:nth-child(1) {
  17871. margin-top: 5px;
  17872. }
  17873. .navChild {
  17874. width: 100%;
  17875. cursor: pointer;
  17876. margin-bottom: 10px;
  17877. position: relative;
  17878. }
  17879. .navChild img {
  17880. position: absolute;
  17881. right: 11px;
  17882. width: 15px;
  17883. top: 50%;
  17884. transform: translateY(-50%);
  17885. }
  17886. .navActive {
  17887. height: auto !important;
  17888. overflow: auto !important;
  17889. padding-bottom: 16px;
  17890. }
  17891. .navTask {
  17892. display: flex;
  17893. flex-direction: row;
  17894. flex-wrap: nowrap;
  17895. align-items: center;
  17896. align-content: flex-start;
  17897. height: 40px;
  17898. justify-content: flex-start;
  17899. padding: 0 10px;
  17900. width: 100%;
  17901. box-sizing: border-box;
  17902. }
  17903. .navTaskname {
  17904. white-space: nowrap;
  17905. text-overflow: ellipsis;
  17906. overflow: hidden;
  17907. word-break: break-all;
  17908. padding-left: 5px;
  17909. }
  17910. .openTaskActive {
  17911. background-color: #3681fc !important;
  17912. }
  17913. .iframeName {
  17914. margin: 5px 0;
  17915. border-left: 4px solid #41c4a4;
  17916. padding-left: 4px;
  17917. }
  17918. .toolTitle {
  17919. margin: 0px 0px 20px;
  17920. font-size: 20px;
  17921. font-weight: 500;
  17922. border-left: 4px solid #41c4a4;
  17923. padding-left: 4px;
  17924. }
  17925. .cru_selectBox {
  17926. overflow: auto;
  17927. width: 90%;
  17928. margin: 17px auto 0;
  17929. height: calc(100% - 40px - 21px - 20px - 17px);
  17930. background: #f0f4fa;
  17931. border-radius: 8px;
  17932. }
  17933. .cru_selectBox::-webkit-scrollbar,
  17934. .study_top::-webkit-scrollbar,
  17935. .textContent::-webkit-scrollbar {
  17936. /*滚动条整体样式*/
  17937. width: 6px;
  17938. /*高宽分别对应横竖滚动条的尺寸*/
  17939. height: 6px;
  17940. }
  17941. /*定义滚动条轨道 内阴影+圆角*/
  17942. .cru_selectBox::-webkit-scrollbar-track,
  17943. .study_top::-webkit-scrollbar-track,
  17944. .textContent::-webkit-scrollbar {
  17945. border-radius: 10px;
  17946. background-color: #b8bdc9;
  17947. }
  17948. /*定义滑块 内阴影+圆角*/
  17949. .cru_selectBox::-webkit-scrollbar-thumb,
  17950. .study_top::-webkit-scrollbar-thumb,
  17951. .textContent::-webkit-scrollbar-thumb {
  17952. border-radius: 10px;
  17953. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  17954. background-color: #2c5ab3;
  17955. }
  17956. .vedioBox {
  17957. border-radius: 20px;
  17958. background: #fff;
  17959. margin-bottom: 10px;
  17960. overflow: auto;
  17961. }
  17962. .taskBox {
  17963. width: 95%;
  17964. margin: 0 auto;
  17965. }
  17966. .vedioTaskBox {
  17967. width: 100%;
  17968. display: flex;
  17969. flex-direction: row;
  17970. flex-wrap: nowrap;
  17971. align-items: flex-start;
  17972. position: relative;
  17973. }
  17974. .toolBox {
  17975. padding: 30px 0 0 25px;
  17976. display: flex;
  17977. }
  17978. .btnAll {
  17979. position: absolute;
  17980. right: 0;
  17981. display: flex;
  17982. flex-direction: row;
  17983. flex-wrap: nowrap;
  17984. align-items: center;
  17985. }
  17986. /* .vedioTimeBox {
  17987. display: flex;
  17988. flex-direction: row;
  17989. align-items: center;
  17990. flex-wrap: nowrap;
  17991. position: relative;
  17992. } */
  17993. .navBox {
  17994. background: #fff;
  17995. height: calc(100% - 40px);
  17996. overflow-y: auto;
  17997. overflow-x: hidden;
  17998. }
  17999. .worksBox {
  18000. padding: 20px 0 0 10px;
  18001. border-bottom: 1px solid #eeeeee;
  18002. width: 96%;
  18003. margin: 0 auto;
  18004. }
  18005. .worksBTitle {
  18006. font-size: 20px;
  18007. padding-bottom: 15px;
  18008. border-bottom: 1px solid #eeeeee;
  18009. display: flex;
  18010. align-items: center;
  18011. }
  18012. .greenBox {
  18013. width: 5px;
  18014. height: 30px;
  18015. background: #63b6fa;
  18016. margin-right: 5px;
  18017. }
  18018. .worksDetailBox {
  18019. display: flex;
  18020. width: 100%;
  18021. flex-direction: row;
  18022. flex-wrap: wrap;
  18023. align-items: flex-end;
  18024. justify-content: flex-start;
  18025. padding: 15px 0;
  18026. }
  18027. .works {
  18028. display: flex;
  18029. flex-direction: column;
  18030. flex-wrap: nowrap;
  18031. align-items: flex-start;
  18032. justify-content: flex-start;
  18033. align-content: center;
  18034. max-width: 240px;
  18035. width: calc(100% / 3 - 10px);
  18036. height: auto;
  18037. margin-right: 10px;
  18038. margin-bottom: 10px;
  18039. overflow: hidden;
  18040. height: 140px;
  18041. box-shadow: 0 0 6px 1px #dfdada;
  18042. border-radius: 15px;
  18043. }
  18044. .workImg {
  18045. width: 100%;
  18046. /* height: calc(100% - 40px); */
  18047. height: 105px;
  18048. position: relative;
  18049. }
  18050. .workImg > img {
  18051. width: 100%;
  18052. height: 100%;
  18053. object-fit: contain;
  18054. cursor: pointer;
  18055. }
  18056. .worksName {
  18057. height: 40px;
  18058. line-height: 40px;
  18059. display: flex;
  18060. width: 100%;
  18061. flex-direction: row;
  18062. flex-wrap: nowrap;
  18063. justify-content: space-between;
  18064. align-items: center;
  18065. margin: 0 0 0 10px;
  18066. }
  18067. .worksName > div:nth-child(1) {
  18068. width: 110px;
  18069. white-space: nowrap;
  18070. overflow: hidden;
  18071. text-overflow: ellipsis;
  18072. }
  18073. .worksName > div:nth-child(2) {
  18074. color: #b7b4b5;
  18075. }
  18076. .noWorksS {
  18077. padding: 15px 0;
  18078. display: flex;
  18079. flex-direction: row;
  18080. flex-wrap: wrap;
  18081. align-items: center;
  18082. justify-content: flex-start;
  18083. }
  18084. .noWorksName,
  18085. .isWorksName {
  18086. background: #7cbcf1;
  18087. color: #fff;
  18088. width: 90px;
  18089. height: 25px;
  18090. text-align: center;
  18091. line-height: 25px;
  18092. border-radius: 5px;
  18093. margin: 10px 15px 10px 0;
  18094. white-space: nowrap;
  18095. overflow: hidden;
  18096. padding: 5px;
  18097. text-overflow: ellipsis;
  18098. cursor: pointer;
  18099. }
  18100. .isWorksName {
  18101. background: #46a1eb !important;
  18102. width: 100px;
  18103. height: 40px;
  18104. line-height: 40px;
  18105. position: relative;
  18106. }
  18107. .noWorksName:hover {
  18108. background: #46a1eb !important;
  18109. }
  18110. .title {
  18111. background: #1e5cc9;
  18112. /* width: 98%; */
  18113. height: 45px;
  18114. color: #fff;
  18115. line-height: 45px;
  18116. padding-left: 20px;
  18117. box-sizing: border-box;
  18118. }
  18119. .textBox {
  18120. font-size: 20px;
  18121. width: 90%;
  18122. display: flex;
  18123. flex-direction: column;
  18124. align-items: center;
  18125. margin: 20px auto 0;
  18126. max-height: 500px;
  18127. overflow: auto;
  18128. }
  18129. .textContent {
  18130. font-size: 18px;
  18131. width: 95%;
  18132. max-width: 95%;
  18133. }
  18134. .answerBg {
  18135. background: url("../assets/icon/answerBgNew.png") no-repeat;
  18136. background-size: 100% 100%;
  18137. width: 100%;
  18138. height: 100%;
  18139. color: #fff;
  18140. text-align: center;
  18141. display: flex;
  18142. flex-direction: column;
  18143. flex-wrap: nowrap;
  18144. align-items: center;
  18145. position: relative;
  18146. justify-content: center;
  18147. }
  18148. .answerBg > div:nth-child(1) {
  18149. /* font-size: 22px;
  18150. padding: 25px 0 10px; */
  18151. }
  18152. .answerContent {
  18153. width: 215px;
  18154. max-height: 60px;
  18155. word-break: break-all;
  18156. text-align: center;
  18157. /* white-space: nowrap; */
  18158. overflow: hidden;
  18159. text-overflow: ellipsis;
  18160. /* padding: 23px 0 0; */
  18161. -webkit-line-clamp: 3;
  18162. -webkit-box-orient: vertical;
  18163. display: -webkit-box;
  18164. font-size: 15px;
  18165. cursor: pointer;
  18166. }
  18167. .elist_input_box {
  18168. display: flex;
  18169. align-items: flex-start;
  18170. flex-wrap: nowrap;
  18171. padding: 10px 0 15px 30px;
  18172. flex-direction: column;
  18173. }
  18174. .elist_input {
  18175. /* width: 40%; */
  18176. width: 45%;
  18177. margin: 20px 20px 0 20px;
  18178. }
  18179. .elist_input .elist_input_box input {
  18180. font: inherit;
  18181. color: currentColor;
  18182. width: 200px;
  18183. padding: 8px 14px;
  18184. display: block;
  18185. min-width: 0;
  18186. outline: none;
  18187. border: 1px solid rgba(0, 0, 0, 0.23);
  18188. border-radius: 4px;
  18189. box-sizing: border-box;
  18190. background: #fff;
  18191. margin: 0 20px 0 0;
  18192. }
  18193. .elist_input .elist_input_box span {
  18194. height: 36px;
  18195. line-height: 36px;
  18196. color: rgb(82, 82, 82);
  18197. }
  18198. .elist_input .elist_input_box .remove {
  18199. height: 20px;
  18200. width: 20px;
  18201. background-size: 100% 100%;
  18202. background-position: unset;
  18203. margin-left: 5px;
  18204. }
  18205. .elist_input_box >>> .el-rate {
  18206. display: flex;
  18207. height: 36px;
  18208. align-items: center;
  18209. }
  18210. .elist_input_box .elist_inptu_text {
  18211. min-height: 50px;
  18212. /* width: 500px;
  18213. max-height: 150px; */
  18214. width: 100%;
  18215. line-height: 50px;
  18216. color: rgb(82, 82, 82);
  18217. overflow: auto;
  18218. text-indent: 5px;
  18219. background: #f7f6f9;
  18220. border-radius: 10px;
  18221. }
  18222. .elist_input_box .elist_inptu_text input {
  18223. width: 500px;
  18224. }
  18225. .elist_input_box >>> .el-rate__icon {
  18226. font-size: 24px;
  18227. }
  18228. .isClick {
  18229. background: #4d9def;
  18230. }
  18231. .bzBox {
  18232. display: flex;
  18233. flex-direction: row;
  18234. align-items: center;
  18235. }
  18236. .bzBox .yCss {
  18237. width: 14px;
  18238. height: 14px;
  18239. background: #3681fc;
  18240. margin: 0 16px 0 7px;
  18241. border-radius: 50%;
  18242. }
  18243. .bzBox > div:nth-child(2) {
  18244. font-size: 18px;
  18245. font-weight: bold;
  18246. color: #0e1e33;
  18247. }
  18248. .navTitile {
  18249. padding: 0 0px 0 15px;
  18250. font-size: 16px;
  18251. font-weight: bold;
  18252. color: #0e1e33;
  18253. height: 40px;
  18254. line-height: 40px;
  18255. }
  18256. .isTypeOne {
  18257. width: 240px;
  18258. height: 170px;
  18259. /* border: 1px solid #f8f8f8; */
  18260. border-radius: 10px;
  18261. box-shadow: 0 0 6px 1px #dfdada;
  18262. }
  18263. .e_add_top {
  18264. display: flex;
  18265. justify-content: space-between;
  18266. padding: 20px 20px 0 20px;
  18267. border-radius: 3px;
  18268. background: #fff;
  18269. }
  18270. .e_add_title2 {
  18271. display: flex;
  18272. align-items: center;
  18273. }
  18274. .e_add_title2 span {
  18275. width: 40px;
  18276. }
  18277. .e_add_title {
  18278. display: flex;
  18279. align-items: center;
  18280. color: #b8b8b8;
  18281. font-size: 18px;
  18282. position: relative;
  18283. height: 40px;
  18284. }
  18285. .e_add_title span {
  18286. margin-right: 10px;
  18287. }
  18288. .e_add_title .el_input {
  18289. width: 300px;
  18290. }
  18291. .e_add_title >>> .el-input__inner {
  18292. width: 400px;
  18293. }
  18294. .e_add_btn {
  18295. }
  18296. .e_add_content {
  18297. display: flex;
  18298. width: 100%;
  18299. max-width: 650px;
  18300. height: 550px;
  18301. }
  18302. .e_add_list {
  18303. background: #fff;
  18304. height: 500px;
  18305. width: 210px;
  18306. position: relative;
  18307. margin: 15px 5px 0 0;
  18308. flex-shrink: 0;
  18309. display: flex;
  18310. flex-direction: column;
  18311. }
  18312. .e_add_list_title {
  18313. font-size: 20px;
  18314. width: 100%;
  18315. box-sizing: border-box;
  18316. padding: 15px 40px;
  18317. text-align: center;
  18318. border-bottom: 1px solid #eaeaea;
  18319. position: relative;
  18320. display: flex;
  18321. align-items: center;
  18322. justify-content: center;
  18323. height: 57px;
  18324. background: #f6f6f6;
  18325. }
  18326. .e_add_list_title span {
  18327. overflow: hidden;
  18328. white-space: nowrap;
  18329. text-overflow: ellipsis;
  18330. }
  18331. .e_add_list_title img {
  18332. position: absolute;
  18333. right: 15px;
  18334. width: 25px;
  18335. cursor: pointer;
  18336. top: 50%;
  18337. transform: translateY(-50%);
  18338. }
  18339. .e_add_list_body {
  18340. height: calc(100% - 187px);
  18341. overflow: auto;
  18342. }
  18343. .e_add_list_child {
  18344. width: 100%;
  18345. display: flex;
  18346. align-items: center;
  18347. justify-content: center;
  18348. position: relative;
  18349. box-sizing: border-box;
  18350. padding: 15px 40px;
  18351. text-align: center;
  18352. }
  18353. .e_add_list_child span {
  18354. overflow: hidden;
  18355. white-space: nowrap;
  18356. text-overflow: ellipsis;
  18357. cursor: pointer;
  18358. }
  18359. .e_add_list_child img {
  18360. position: absolute;
  18361. right: 10px;
  18362. width: 21px;
  18363. cursor: pointer;
  18364. top: 50%;
  18365. transform: translateY(-50%);
  18366. }
  18367. .e_add_list_child + .e_add_list_child {
  18368. border-top: 1px solid #eaeaea;
  18369. }
  18370. .e_add_list_child .active {
  18371. color: #409eff;
  18372. }
  18373. .e_add_list_btn {
  18374. position: absolute;
  18375. bottom: 0;
  18376. height: 50px;
  18377. background: rgb(120, 120, 254);
  18378. width: 100%;
  18379. color: #fff;
  18380. font-size: 16px;
  18381. text-align: center;
  18382. line-height: 50px;
  18383. cursor: pointer;
  18384. }
  18385. .e_add_list_detail {
  18386. position: absolute;
  18387. bottom: 0;
  18388. height: 130px;
  18389. background: rgb(120, 120, 254);
  18390. width: 100%;
  18391. color: #fff;
  18392. font-size: 16px;
  18393. display: flex;
  18394. align-items: center;
  18395. justify-content: center;
  18396. }
  18397. .e_add_list_detail textarea {
  18398. height: 90%;
  18399. width: 95%;
  18400. border: none;
  18401. resize: none;
  18402. outline: none;
  18403. padding: 5px;
  18404. box-sizing: border-box;
  18405. }
  18406. .e_add_list_pbox {
  18407. width: 100%;
  18408. max-width: 650px;
  18409. /* height: 600px; */
  18410. }
  18411. .e_add_list_pbox_title {
  18412. height: 50px;
  18413. background: #fff;
  18414. display: flex;
  18415. align-items: center;
  18416. width: 100%;
  18417. box-sizing: border-box;
  18418. padding: 0 20px;
  18419. }
  18420. .type_title {
  18421. font-size: 18px;
  18422. font-weight: 700;
  18423. }
  18424. .type_content {
  18425. font-size: 16px;
  18426. margin-left: 30px;
  18427. }
  18428. .type_content span + span {
  18429. margin-left: 20px;
  18430. }
  18431. .type_content span {
  18432. cursor: pointer;
  18433. padding-bottom: 5px;
  18434. box-sizing: border-box;
  18435. }
  18436. .type_content .active {
  18437. color: #409eff;
  18438. border-bottom: 2px solid #409eff;
  18439. }
  18440. .e_add_list_pbox_content {
  18441. height: calc(100% - 50px);
  18442. display: flex;
  18443. align-items: center;
  18444. width: 100%;
  18445. background: #fff;
  18446. }
  18447. .evaCss {
  18448. display: flex;
  18449. flex-direction: row;
  18450. flex-wrap: nowrap;
  18451. align-items: flex-start;
  18452. }
  18453. .cru_line {
  18454. position: absolute;
  18455. bottom: 0px;
  18456. transition: all 0.5s;
  18457. left: 0px;
  18458. width: 125px;
  18459. margin-left: -25px;
  18460. }
  18461. .isNoMessage {
  18462. width: 20%;
  18463. margin: 25% auto 0;
  18464. }
  18465. .isNoMessage > img {
  18466. width: 100%;
  18467. height: 100%;
  18468. }
  18469. .fullStyle >>> .el-dialog__body {
  18470. height: 100% !important;
  18471. }
  18472. .fullStyle >>> .el-dialog,
  18473. .fullStyle {
  18474. width: 100% !important;
  18475. max-width: 100% !important;
  18476. height: 100% !important;
  18477. margin: 0 !important;
  18478. }
  18479. .full_diy >>> .el-dialog {
  18480. margin: 0 !important;
  18481. height: 100%;
  18482. padding: 4px;
  18483. }
  18484. .full_diy >>> .el-dialog__body {
  18485. height: calc(100% - 100px);
  18486. }
  18487. .full_diy2 >>> .el-dialog__body {
  18488. height: calc(100% - 50px);
  18489. padding: 0;
  18490. }
  18491. .switchCss {
  18492. /* width: 100%; */
  18493. display: flex;
  18494. flex-direction: row;
  18495. flex-wrap: nowrap;
  18496. align-items: center;
  18497. /* justify-content: center; */
  18498. }
  18499. .isClickNav {
  18500. color: #499eef;
  18501. }
  18502. .commentImg {
  18503. width: 25px;
  18504. height: 25px;
  18505. cursor: pointer;
  18506. }
  18507. .commentImg > img {
  18508. width: 100%;
  18509. height: 100%;
  18510. }
  18511. .comment {
  18512. background: #f9f9f9;
  18513. border-radius: 0 0 4px 4px;
  18514. display: flex;
  18515. flex-direction: row;
  18516. flex-wrap: nowrap;
  18517. align-items: center;
  18518. justify-content: flex-end;
  18519. height: 35px;
  18520. }
  18521. .commentList {
  18522. display: flex;
  18523. flex-direction: row;
  18524. flex-wrap: nowrap;
  18525. align-items: center;
  18526. justify-content: center;
  18527. align-content: center;
  18528. /* margin-left: 15px; */
  18529. /* margin-left: 8px; */
  18530. }
  18531. .scoreImg {
  18532. width: 17px;
  18533. height: 17px;
  18534. }
  18535. .studentDetail {
  18536. display: flex;
  18537. flex-direction: row;
  18538. flex-wrap: nowrap;
  18539. /* align-items: center; */
  18540. align-items: flex-start;
  18541. }
  18542. .tx {
  18543. width: 50px;
  18544. }
  18545. .tx > img {
  18546. width: 100%;
  18547. height: 100%;
  18548. }
  18549. .nameAndTime {
  18550. display: flex;
  18551. flex-direction: column;
  18552. flex-wrap: nowrap;
  18553. align-items: flex-start;
  18554. margin-left: 10px;
  18555. }
  18556. .worksAnswer {
  18557. color: #4078dd;
  18558. margin: 10px 0;
  18559. font-size: 16px;
  18560. position: relative;
  18561. }
  18562. .worksAnswer > img {
  18563. width: 500px;
  18564. height: 300px;
  18565. object-fit: contain;
  18566. margin: 0 auto;
  18567. display: block;
  18568. }
  18569. .commentTop {
  18570. border-bottom: 1px solid #eaeaea;
  18571. padding-bottom: 10px;
  18572. }
  18573. .commentBox {
  18574. padding-top: 15px;
  18575. }
  18576. .pl {
  18577. font-size: 18px;
  18578. }
  18579. .plPerson {
  18580. width: 100%;
  18581. }
  18582. .plName {
  18583. display: flex;
  18584. flex-direction: row;
  18585. flex-wrap: nowrap;
  18586. align-items: baseline;
  18587. color: #78787a;
  18588. width: 100%;
  18589. }
  18590. .deleteComment {
  18591. cursor: pointer;
  18592. margin-left: auto;
  18593. color: #237ade;
  18594. }
  18595. .plContent {
  18596. margin-top: 5px;
  18597. }
  18598. .evalCss {
  18599. background: #fff;
  18600. font-size: 18px;
  18601. }
  18602. .nav {
  18603. color: #9d9d9d;
  18604. padding: 5px 0 15px 20px;
  18605. }
  18606. .middleBox {
  18607. padding: 5px 0 15px 20px;
  18608. }
  18609. .pfBox {
  18610. padding-bottom: 30px;
  18611. }
  18612. .nameAndrate {
  18613. display: flex;
  18614. flex-direction: row;
  18615. flex-wrap: nowrap;
  18616. align-items: center;
  18617. padding-bottom: 10px;
  18618. height: 30px;
  18619. line-height: 30px;
  18620. }
  18621. .nameAndrate > div {
  18622. margin-left: 10px;
  18623. color: #000;
  18624. height: 30px;
  18625. }
  18626. .nameAndrate >>> .el-rate__icon {
  18627. font-size: 28px !important;
  18628. }
  18629. .pfBox > div:nth-child(2) {
  18630. background: #f7f6f9;
  18631. width: 400px;
  18632. min-height: 45px;
  18633. border-radius: 10px;
  18634. font-size: 16px;
  18635. display: flex;
  18636. flex-wrap: wrap;
  18637. align-items: center;
  18638. padding: 10px 20px;
  18639. box-sizing: border-box;
  18640. color: #000;
  18641. }
  18642. .bz {
  18643. display: flex;
  18644. flex-direction: row;
  18645. flex-wrap: nowrap;
  18646. align-items: flex-start;
  18647. }
  18648. .bz > div {
  18649. padding: 0 10px;
  18650. }
  18651. .select_box2_title {
  18652. background: #fff;
  18653. border-radius: 5px;
  18654. padding: 15px 10px;
  18655. box-sizing: border-box;
  18656. margin-bottom: 10px;
  18657. display: flex;
  18658. flex-direction: row;
  18659. flex-wrap: nowrap;
  18660. align-items: center;
  18661. }
  18662. .select_box2_title > div:nth-child(2) {
  18663. margin-left: 10px;
  18664. color: #c4c4c4;
  18665. }
  18666. .select_box2_box {
  18667. display: flex;
  18668. height: 500px;
  18669. }
  18670. .select_box2_img {
  18671. width: calc(100% - 310px);
  18672. height: 100%;
  18673. overflow: auto;
  18674. background: #fff;
  18675. border-radius: 5px;
  18676. }
  18677. .select_box2_img img {
  18678. width: 100%;
  18679. }
  18680. .select_box2_answer {
  18681. background: #fff;
  18682. margin-left: 10px;
  18683. border-radius: 5px;
  18684. width: 300px;
  18685. overflow: auto;
  18686. height: 90%;
  18687. display: flex;
  18688. flex-direction: column;
  18689. align-items: flex-start;
  18690. padding-top: 10px;
  18691. box-sizing: border-box;
  18692. position: relative;
  18693. }
  18694. .select_answer_title {
  18695. padding: 0 0 15px 20px;
  18696. color: #c4c4c4;
  18697. }
  18698. .select_box2_answer_box {
  18699. margin: 0 0 10px 20px;
  18700. width: 85%;
  18701. display: flex;
  18702. flex-direction: row;
  18703. flex-wrap: nowrap;
  18704. align-items: center;
  18705. }
  18706. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  18707. color: #000;
  18708. }
  18709. .upAnswerCss {
  18710. position: absolute;
  18711. bottom: 15px;
  18712. right: 15px;
  18713. }
  18714. .upAnswerCss >>> .el-button {
  18715. width: 95px;
  18716. height: 35px;
  18717. line-height: 35px;
  18718. padding: 0;
  18719. }
  18720. .rightWidthCss {
  18721. width: 60%;
  18722. display: flex;
  18723. flex-direction: row;
  18724. align-items: flex-start;
  18725. }
  18726. .rightAnswer {
  18727. display: flex;
  18728. flex-direction: row;
  18729. flex-wrap: nowrap;
  18730. align-items: center;
  18731. color: red;
  18732. margin-bottom: 31px;
  18733. }
  18734. .rightAnswerCss {
  18735. display: flex;
  18736. flex-direction: column;
  18737. flex-wrap: nowrap;
  18738. padding-top: 60px;
  18739. }
  18740. .blueCss {
  18741. color: #767de1;
  18742. margin-left: 10px;
  18743. }
  18744. .redCss {
  18745. color: red;
  18746. }
  18747. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  18748. color: rgb(0 123 255) !important;
  18749. }
  18750. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  18751. color: rgb(0 123 255) !important;
  18752. }
  18753. .zuoyeYulan {
  18754. padding-top: 15px;
  18755. font-size: 18px;
  18756. display: flex;
  18757. align-items: flex-end;
  18758. }
  18759. .buttonA {
  18760. margin-left: 10px;
  18761. padding: 0;
  18762. }
  18763. .displayBox {
  18764. margin-bottom: 10px;
  18765. display: block;
  18766. border-bottom: 3px solid #eee;
  18767. display: flex;
  18768. align-items: center;
  18769. }
  18770. .easy_comment {
  18771. width: calc(100% - 90px);
  18772. margin-left: 10px;
  18773. display: flex;
  18774. flex-wrap: wrap;
  18775. }
  18776. .easy_comment > div {
  18777. border: 1px solid #4a4a4a;
  18778. color: #666;
  18779. border-radius: 15px;
  18780. padding: 5px 10px;
  18781. font-size: 16px;
  18782. margin-bottom: 10px;
  18783. margin-right: 5px;
  18784. cursor: pointer;
  18785. }
  18786. .easy_comment div:hover {
  18787. border: 1px solid #f7ba2a;
  18788. color: #c69217;
  18789. }
  18790. .xuan_right_box {
  18791. padding: 10px;
  18792. background: rgb(247, 247, 247);
  18793. margin: 10px 15px 10px 30px;
  18794. border-radius: 5px;
  18795. width: 90%;
  18796. }
  18797. .tool_right_box {
  18798. display: flex;
  18799. align-items: center;
  18800. }
  18801. .tool_right_box + .tool_right_box {
  18802. margin-top: 10px;
  18803. }
  18804. .right_box_xuan {
  18805. background: rgb(0 123 255);
  18806. color: #fff;
  18807. border-radius: 5px;
  18808. padding: 5px;
  18809. margin-left: 10px;
  18810. }
  18811. .pButton:hover {
  18812. opacity: 1 !important;
  18813. }
  18814. .pButton {
  18815. position: fixed;
  18816. /* right: 5%; */
  18817. /* bottom: 5%; */
  18818. color: #fff;
  18819. /* width: 50px;
  18820. height: 50px; */
  18821. /* border-radius: 50%; */
  18822. text-align: center;
  18823. /* line-height: 50px; */
  18824. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  18825. cursor: pointer;
  18826. z-index: 999;
  18827. right: 20px;
  18828. top: 110px;
  18829. width: 50px;
  18830. height: 50px;
  18831. background: #fff;
  18832. display: flex;
  18833. align-items: center;
  18834. justify-content: center;
  18835. box-shadow: 0px 0 8px 2px #c5c5c5;
  18836. border-radius: 5px;
  18837. }
  18838. .pzClass {
  18839. width: calc(100% - 340px);
  18840. }
  18841. .newDialogCss {
  18842. /* position: fixed;
  18843. right: 5%;
  18844. top: 50%;
  18845. width: 340px;
  18846. transform: translateY(-50%);
  18847. height: 60%;
  18848. box-shadow: 0px 0 8px 0px #555555;
  18849. border-radius: 15px;
  18850. z-index: 999; */
  18851. position: fixed;
  18852. right: 20px;
  18853. top: 101px;
  18854. width: 330px;
  18855. height: calc(100% - 80px);
  18856. z-index: 999;
  18857. background: #fff;
  18858. border-radius: 15px;
  18859. border-top-right-radius: 0px;
  18860. border-bottom-right-radius: 0px;
  18861. overflow: hidden;
  18862. }
  18863. .pzTop {
  18864. color: #fff;
  18865. background: #000;
  18866. display: flex;
  18867. flex-direction: row;
  18868. flex-wrap: nowrap;
  18869. align-items: center;
  18870. justify-content: space-between;
  18871. height: 40px;
  18872. border-radius: 15px 15px 0 0;
  18873. }
  18874. .pzTop2 .checkbox {
  18875. display: flex;
  18876. align-items: center;
  18877. padding: 15px 30px;
  18878. flex: 0 0 auto;
  18879. font-weight: bold;
  18880. border-bottom: 1px solid #eee;
  18881. justify-content: space-between;
  18882. }
  18883. .pzTop2 .check {
  18884. text-align: center;
  18885. cursor: pointer;
  18886. box-sizing: border-box;
  18887. display: flex;
  18888. }
  18889. .pzTop2 img {
  18890. width: 25px;
  18891. cursor: pointer;
  18892. }
  18893. .pzTop > div:nth-child(1) {
  18894. padding-left: 10px;
  18895. }
  18896. .pzTop > div:nth-child(2) {
  18897. width: 15px;
  18898. height: 15px;
  18899. padding-right: 10px;
  18900. cursor: pointer;
  18901. }
  18902. .pzTop > div:nth-child(2) > img {
  18903. width: 100%;
  18904. height: 100%;
  18905. }
  18906. .pzBox,
  18907. .noPzBox {
  18908. height: calc(100% - 60px);
  18909. /* background: #ededed; */
  18910. background: #fff;
  18911. /* border-radius: 0 0 15px 15px; */
  18912. }
  18913. .noPzBox {
  18914. display: flex;
  18915. flex-direction: column;
  18916. flex-wrap: nowrap;
  18917. justify-content: center;
  18918. align-items: center;
  18919. }
  18920. .pzList {
  18921. background: #f7f7f7;
  18922. width: 90%;
  18923. margin: 0 auto 15px;
  18924. border-radius: 5px;
  18925. }
  18926. .pzNavTop {
  18927. display: flex;
  18928. flex-direction: row;
  18929. flex-wrap: nowrap;
  18930. padding: 10px 10px 0 10px;
  18931. align-items: center;
  18932. }
  18933. .pzDelete {
  18934. cursor: pointer;
  18935. margin-left: auto;
  18936. font-size: 14px;
  18937. color: #afafaf;
  18938. }
  18939. .pzNavTop > div:nth-child(1) {
  18940. background: #3760af;
  18941. width: 35px;
  18942. height: 35px;
  18943. color: #fff;
  18944. text-align: center;
  18945. line-height: 35px;
  18946. border-radius: 50%;
  18947. font-size: 14px;
  18948. }
  18949. .pzNavTop > div:nth-child(2) {
  18950. font-size: 18px;
  18951. color: #959595;
  18952. margin-left: 5px;
  18953. }
  18954. .pzContent {
  18955. padding: 10px;
  18956. word-break: break-word;
  18957. }
  18958. .pzContent audio {
  18959. width: 100%;
  18960. }
  18961. .pzContent audio::-webkit-media-controls-panel {
  18962. background: #fff;
  18963. }
  18964. .pzListBox {
  18965. padding-top: 15px;
  18966. height: calc(100% - 110px);
  18967. overflow: auto;
  18968. }
  18969. .addPzButton {
  18970. position: relative;
  18971. margin-top: 3px;
  18972. width: 100%;
  18973. }
  18974. .addPzButton .img1 {
  18975. position: absolute;
  18976. top: 50%;
  18977. right: 25px;
  18978. transform: translateY(-50%);
  18979. height: 100%;
  18980. display: flex;
  18981. align-items: center;
  18982. }
  18983. .addPzButton .img1 div {
  18984. display: flex;
  18985. }
  18986. .addPzButton .img1 div img {
  18987. width: 28px;
  18988. margin-left: 10px;
  18989. cursor: pointer;
  18990. }
  18991. .addPzButton .img1 div span {
  18992. font-size: 14px;
  18993. margin: 4px 0 0 3px;
  18994. color: #afafaf;
  18995. }
  18996. .addPz {
  18997. background: #4b79ce;
  18998. width: 100px;
  18999. color: #fff;
  19000. font-size: 12px;
  19001. height: 30px;
  19002. margin: 0 auto;
  19003. text-align: center;
  19004. line-height: 30px;
  19005. border-radius: 10px;
  19006. cursor: pointer;
  19007. }
  19008. .addDialogCss {
  19009. position: fixed;
  19010. right: 37%;
  19011. top: 50%;
  19012. width: 600px;
  19013. transform: translateY(-50%);
  19014. height: 70%;
  19015. min-height: 450px;
  19016. box-shadow: 0px 0 8px 0px #555555;
  19017. border-radius: 15px;
  19018. z-index: 999;
  19019. }
  19020. .teacherPz {
  19021. display: flex;
  19022. flex-direction: row;
  19023. align-items: center;
  19024. flex-wrap: nowrap;
  19025. }
  19026. .teacherPzImg {
  19027. width: 30px;
  19028. height: 30px;
  19029. }
  19030. .teacherPzImg > img {
  19031. width: 100%;
  19032. height: 100%;
  19033. }
  19034. .addPzBox {
  19035. height: calc(100% - 40px);
  19036. background: #ededed;
  19037. }
  19038. .pzAudioClass {
  19039. margin: 15px 14px;
  19040. background: #fff;
  19041. height: 100%;
  19042. display: flex;
  19043. justify-content: center;
  19044. align-items: center;
  19045. }
  19046. .pzConText {
  19047. width: 95%;
  19048. height: 100%;
  19049. margin: 10px auto 0;
  19050. border: none;
  19051. background: #fff;
  19052. border-radius: 0px;
  19053. }
  19054. .pzConText >>> .text {
  19055. height: calc(100% - 82px);
  19056. }
  19057. .addTextCss {
  19058. background: #4b79ce;
  19059. width: 80px;
  19060. height: 30px;
  19061. text-align: center;
  19062. color: #fff;
  19063. line-height: 30px;
  19064. border-radius: 10px;
  19065. margin: 10px auto 0;
  19066. cursor: pointer;
  19067. }
  19068. .pzConText:focus-visible {
  19069. border: none !important;
  19070. }
  19071. .maxWidth {
  19072. width: 1000px;
  19073. }
  19074. .noPz {
  19075. width: 150px;
  19076. margin: 0 auto 20%;
  19077. }
  19078. .noPz > img {
  19079. width: 100%;
  19080. height: 100%;
  19081. }
  19082. .pzList .time {
  19083. text-align: right;
  19084. box-sizing: border-box;
  19085. padding: 0 10px 10px 0px;
  19086. color: #949494;
  19087. font-size: 14px;
  19088. }
  19089. /* table 样式 */
  19090. .cont >>> table {
  19091. border-top: 1px solid #ccc;
  19092. border-left: 1px solid #ccc;
  19093. }
  19094. .cont >>> table td,
  19095. .cont >>> table th {
  19096. border-bottom: 1px solid #ccc;
  19097. border-right: 1px solid #ccc;
  19098. /* padding: 20px 5px; */
  19099. padding: 5px 10px;
  19100. max-width: 0px;
  19101. height: 30px;
  19102. vertical-align: baseline;
  19103. box-sizing: border-box;
  19104. }
  19105. .cont >>> table th {
  19106. border-bottom: 2px solid #ccc;
  19107. text-align: center;
  19108. }
  19109. /* blockquote 样式 */
  19110. .cont >>> blockquote {
  19111. display: block;
  19112. border-left: 8px solid #d0e5f2;
  19113. padding: 5px 10px;
  19114. margin: 10px 0;
  19115. line-height: 1.4;
  19116. font-size: 100%;
  19117. background-color: #f1f1f1;
  19118. }
  19119. /* code 样式 */
  19120. .cont >>> code {
  19121. display: inline-block;
  19122. *display: inline;
  19123. *zoom: 1;
  19124. background-color: #f1f1f1;
  19125. border-radius: 3px;
  19126. padding: 3px 5px;
  19127. margin: 0 3px;
  19128. }
  19129. .cont >>> pre code {
  19130. display: block;
  19131. }
  19132. /* ul ol 样式 */
  19133. .cont >>> ul,
  19134. ol {
  19135. margin: 10px 0 10px 20px;
  19136. }
  19137. .addPzCheck {
  19138. display: flex;
  19139. flex-direction: row;
  19140. flex-wrap: nowrap;
  19141. padding: 10px 15px 0;
  19142. }
  19143. .addPzCheck span {
  19144. cursor: pointer;
  19145. padding-bottom: 5px;
  19146. font-weight: bold;
  19147. }
  19148. .addPzCheck span + span {
  19149. margin-left: 10px;
  19150. }
  19151. .addPzCheck .isChooseActive {
  19152. color: #3e88f4;
  19153. border-bottom: 2px solid #2f80f3;
  19154. }
  19155. /* code 样式 */
  19156. .cont {
  19157. /* -webkit-user-modify: read-write; */
  19158. overflow-wrap: break-word;
  19159. -webkit-line-break: after-white-space;
  19160. }
  19161. .scoreBox,
  19162. .scoreDetailBox {
  19163. display: flex;
  19164. align-items: center;
  19165. justify-content: flex-start;
  19166. margin-top: 20px;
  19167. font-size: 18px;
  19168. width: 100%;
  19169. }
  19170. .scoreBox .t,
  19171. .scoreDetailBox .t {
  19172. margin-right: 10px;
  19173. width: 100px;
  19174. text-align: right;
  19175. }
  19176. .scoreDetailBox {
  19177. align-items: flex-start;
  19178. }
  19179. .scoreDetailBox >>> .el-textarea {
  19180. width: calc(100% - 200px);
  19181. }
  19182. .scoreBox >>> .el-input {
  19183. width: 130px;
  19184. font-size: 38px;
  19185. }
  19186. .scoreBox >>> .el-input__inner {
  19187. height: 60px;
  19188. }
  19189. .answerScore {
  19190. position: absolute;
  19191. top: 10px;
  19192. right: 10px;
  19193. background: #0000008f;
  19194. border-radius: 5px;
  19195. padding: 3px 5px;
  19196. font-size: 14px;
  19197. color: #fff;
  19198. cursor: pointer;
  19199. }
  19200. .open_box .switch_box {
  19201. width: 100%;
  19202. margin: 0 auto;
  19203. display: flex;
  19204. justify-content: space-between;
  19205. }
  19206. .open_box .switch_box + .switch_box {
  19207. margin-top: 10px;
  19208. }
  19209. .deleteImg {
  19210. width: 25px !important;
  19211. height: 25px !important;
  19212. cursor: pointer;
  19213. position: absolute;
  19214. top: 10px;
  19215. right: 10px;
  19216. }
  19217. .deleteImg2 {
  19218. width: 15px !important;
  19219. height: 15px !important;
  19220. top: 5px;
  19221. right: 5px;
  19222. }
  19223. .rightW {
  19224. right: 40px;
  19225. }
  19226. .drawPBox {
  19227. display: flex;
  19228. flex-direction: column;
  19229. position: relative;
  19230. }
  19231. .drawPBox span {
  19232. font-size: 18px;
  19233. color: #606266;
  19234. padding-bottom: 10px;
  19235. margin: 10px 0;
  19236. border-bottom: 1px solid #eaeaea;
  19237. }
  19238. .drawPBox img {
  19239. width: 500px;
  19240. height: 300px;
  19241. object-fit: contain;
  19242. cursor: pointer;
  19243. margin: 0 auto;
  19244. }
  19245. .sentenBox {
  19246. background: #fff;
  19247. height: 450px;
  19248. overflow: auto;
  19249. background-image: url("../assets/icon/conSentences/stuBg.png");
  19250. background-position: 102%;
  19251. background-repeat: no-repeat;
  19252. background-size: 60%;
  19253. }
  19254. .addSen {
  19255. background: #409efe;
  19256. width: 90px;
  19257. color: #fff;
  19258. height: 35px;
  19259. text-align: center;
  19260. line-height: 35px;
  19261. border-radius: 5px;
  19262. float: right;
  19263. margin: 10px 20px 0 0;
  19264. cursor: pointer;
  19265. }
  19266. .sentenTop {
  19267. display: flex;
  19268. flex-direction: row;
  19269. flex-wrap: nowrap;
  19270. align-items: center;
  19271. padding: 55px 0 0 20px;
  19272. box-sizing: border-box;
  19273. }
  19274. .sentenTop > div:nth-child(2) {
  19275. width: 300px;
  19276. margin: 0 15px;
  19277. }
  19278. .sentenTop > div:nth-child(3) {
  19279. background: #409efe;
  19280. color: #fff;
  19281. width: 65px;
  19282. height: 35px;
  19283. text-align: center;
  19284. line-height: 35px;
  19285. border-radius: 5px;
  19286. cursor: pointer;
  19287. }
  19288. .cardList,
  19289. .cardList1 {
  19290. padding: 10px 0 10px 0;
  19291. display: flex;
  19292. flex-direction: row;
  19293. flex-wrap: wrap;
  19294. align-items: center;
  19295. box-sizing: border-box;
  19296. border-bottom: 1px solid #f4f4f4;
  19297. width: 98%;
  19298. margin: 0 auto;
  19299. min-width: 60%;
  19300. max-width: 85%;
  19301. }
  19302. .cardList1 {
  19303. padding: 10px 0 10px 10px !important;
  19304. margin: 0 !important;
  19305. }
  19306. .cardBox {
  19307. display: flex;
  19308. flex-direction: row;
  19309. flex-wrap: wrap;
  19310. align-items: center;
  19311. align-content: center;
  19312. }
  19313. .cardBox > div {
  19314. margin-bottom: 10px;
  19315. }
  19316. .isCard,
  19317. .isChooseCard,
  19318. .noCard,
  19319. .isCard1 {
  19320. width: 130px;
  19321. height: 60px;
  19322. text-align: center;
  19323. line-height: 60px;
  19324. font-size: 20px;
  19325. cursor: pointer;
  19326. background-image: url("../assets/icon/conSentences/titleBorder.png");
  19327. background-size: cover;
  19328. transition: all 2s;
  19329. margin-right: 20px;
  19330. }
  19331. .isCard > div,
  19332. .noCard > div,
  19333. .isCard1 > div {
  19334. white-space: nowrap;
  19335. overflow: hidden;
  19336. text-overflow: ellipsis;
  19337. width: 75%;
  19338. margin: 0 auto;
  19339. }
  19340. .noCard {
  19341. background-image: none;
  19342. }
  19343. .isCard1 {
  19344. background-image: url("../assets/icon/conSentences/answerBorder.png");
  19345. }
  19346. .isChooseCard {
  19347. background-image: none;
  19348. border: 1px dashed #b9b9b9;
  19349. border-radius: 10px;
  19350. }
  19351. .card {
  19352. width: 130px;
  19353. height: 60px;
  19354. }
  19355. .card > img {
  19356. width: 100%;
  19357. height: 100%;
  19358. }
  19359. .rightCardBox {
  19360. margin: 10px 0 0 10px;
  19361. }
  19362. .rightCardBox > div:nth-child(1) {
  19363. margin-bottom: 10px;
  19364. }
  19365. .cardCss {
  19366. display: flex;
  19367. flex-direction: column;
  19368. flex-wrap: nowrap;
  19369. align-items: center;
  19370. border-bottom: 3px solid #b4c3d3;
  19371. padding: 0 0 5px 0;
  19372. margin-right: 10px;
  19373. }
  19374. .cardCss > div:nth-child(2) {
  19375. background: #5b7b9d;
  19376. color: #fff;
  19377. width: 20px;
  19378. height: 20px;
  19379. border-radius: 50%;
  19380. text-align: center;
  19381. line-height: 20px;
  19382. }
  19383. .isWrong {
  19384. display: flex;
  19385. flex-direction: row;
  19386. flex-wrap: nowrap;
  19387. align-content: center;
  19388. align-items: center;
  19389. }
  19390. .answerRight {
  19391. width: 25%;
  19392. }
  19393. .isTj {
  19394. display: flex;
  19395. flex-direction: row;
  19396. flex-wrap: nowrap;
  19397. align-items: center;
  19398. }
  19399. .isTj > div:nth-child(2) {
  19400. color: #727070;
  19401. margin-left: 10px;
  19402. }
  19403. .isTjImg {
  19404. width: 30px;
  19405. height: 30px;
  19406. }
  19407. .isTjImg > img {
  19408. width: 100%;
  19409. height: 100%;
  19410. }
  19411. .cardAnswerBox {
  19412. font-size: 18px;
  19413. width: 97%;
  19414. border: 5px;
  19415. padding: 0;
  19416. border-radius: 5px;
  19417. margin: 10px auto;
  19418. word-break: break-word;
  19419. }
  19420. .w_name {
  19421. margin-bottom: 10px;
  19422. }
  19423. .w_name span {
  19424. font-size: 16px;
  19425. }
  19426. .w_teachert {
  19427. width: 50px !important;
  19428. position: absolute;
  19429. height: auto !important;
  19430. z-index: 10;
  19431. right: 25px;
  19432. top: -25px;
  19433. }
  19434. .group_workBox {
  19435. }
  19436. .group_workBox + .group_workBox {
  19437. margin-top: 20px;
  19438. }
  19439. .group_box {
  19440. padding-bottom: 20px;
  19441. border-bottom: 2px solid #f0f0f0;
  19442. }
  19443. .group_title {
  19444. display: flex;
  19445. align-items: center;
  19446. justify-content: space-between;
  19447. width: 95%;
  19448. }
  19449. .group_name {
  19450. background-image: url(../assets/icon/groupN.png);
  19451. width: 220px;
  19452. background-size: 100% 100%;
  19453. height: 67px;
  19454. padding: 0 20px 0 43px;
  19455. box-sizing: border-box;
  19456. line-height: 63px;
  19457. color: #fff;
  19458. overflow: hidden;
  19459. white-space: nowrap;
  19460. text-overflow: ellipsis;
  19461. }
  19462. .group_work {
  19463. width: 100%;
  19464. padding: 0 10px;
  19465. box-sizing: border-box;
  19466. display: flex;
  19467. flex-wrap: wrap;
  19468. }
  19469. .g_d_box {
  19470. display: flex;
  19471. flex-flow: wrap;
  19472. justify-content: space-around;
  19473. }
  19474. .g_d_box .isChair {
  19475. background-image: url(../assets/avatar.png) !important;
  19476. }
  19477. .g_d_group {
  19478. width: 500px;
  19479. margin-bottom: 80px;
  19480. }
  19481. .g_d_group_chair {
  19482. display: flex;
  19483. align-items: center;
  19484. justify-content: center;
  19485. }
  19486. .g_d_group_chair > div + div {
  19487. margin-left: 30px;
  19488. }
  19489. .g_d_group_chair > div,
  19490. .g_d_group_chair2 > div {
  19491. display: flex;
  19492. flex-direction: column;
  19493. align-items: center;
  19494. }
  19495. .g_d_group_chair > div > span:nth-child(1),
  19496. .g_d_group_chair2 > div > span:nth-child(1) {
  19497. background-image: url(../assets/icon/chair.png);
  19498. width: 50px;
  19499. height: 50px;
  19500. display: block;
  19501. background-size: 100% 100%;
  19502. }
  19503. .g_d_group_tableBox {
  19504. display: flex;
  19505. align-items: center;
  19506. justify-content: center;
  19507. }
  19508. .g_d_group_chair2 {
  19509. display: flex;
  19510. flex-direction: column;
  19511. align-items: center;
  19512. justify-content: center;
  19513. }
  19514. .g_d_group_chair2 > div + div {
  19515. margin-top: 10px;
  19516. }
  19517. .g_d_group_table {
  19518. background-image: url(../assets/icon/groupBg.png);
  19519. width: 354px;
  19520. height: 196px;
  19521. background-size: 100% 100%;
  19522. display: flex;
  19523. align-items: center;
  19524. justify-content: center;
  19525. flex-direction: column;
  19526. color: #fff;
  19527. }
  19528. .g_d_group_table > div:nth-child(1) {
  19529. font-size: 24px;
  19530. margin-bottom: 5px;
  19531. }
  19532. .g_d_group_table > div:nth-child(2) div {
  19533. cursor: pointer;
  19534. background: #2e77bf;
  19535. padding: 4px 10px;
  19536. border-radius: 5px;
  19537. }
  19538. .groupBox {
  19539. }
  19540. .groupContent + .groupContent {
  19541. margin-top: 30px;
  19542. }
  19543. .groupTitle {
  19544. font-size: 24px;
  19545. color: rgb(80, 80, 80);
  19546. margin-bottom: 20px;
  19547. }
  19548. .groupName {
  19549. display: flex;
  19550. align-items: center;
  19551. }
  19552. .groupn {
  19553. font-size: 15px;
  19554. margin-right: 10px;
  19555. }
  19556. .groupName + .groupName {
  19557. margin-top: 15px;
  19558. }
  19559. .groupBtn {
  19560. margin-left: 10px;
  19561. }
  19562. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  19563. text-align: left;
  19564. }
  19565. .g_d_btnBox {
  19566. display: flex;
  19567. justify-content: flex-end;
  19568. align-items: center;
  19569. margin-bottom: 20px;
  19570. }
  19571. .updateChair {
  19572. position: relative;
  19573. }
  19574. .updateChairBtn {
  19575. position: absolute;
  19576. width: 50px;
  19577. height: 50px;
  19578. overflow: hidden;
  19579. /* display: flex; */
  19580. align-items: center;
  19581. justify-content: center;
  19582. background: #00000087;
  19583. color: #fff;
  19584. border-radius: 50px;
  19585. display: none;
  19586. cursor: pointer;
  19587. }
  19588. .updateChair:hover .updateChairBtn {
  19589. display: flex;
  19590. }
  19591. .group_staic_box {
  19592. display: flex;
  19593. padding: 30px 40px 10px;
  19594. flex-wrap: wrap;
  19595. }
  19596. .group_staic {
  19597. /* width: 50%; */
  19598. margin-bottom: 20px;
  19599. display: flex;
  19600. align-items: center;
  19601. }
  19602. .group_staic span:nth-child(1) {
  19603. width: 150px;
  19604. text-align: right;
  19605. margin-right: 15px;
  19606. }
  19607. .group_staic span:nth-child(2) {
  19608. background: rgb(0 123 255);
  19609. color: #fff;
  19610. border-radius: 5px;
  19611. padding: 5px;
  19612. }
  19613. .codeFileBox {
  19614. height: 300px;
  19615. background: #fff;
  19616. display: flex;
  19617. align-items: center;
  19618. justify-content: center;
  19619. }
  19620. .codeFileBox img {
  19621. width: 200px;
  19622. margin: 0;
  19623. height: auto;
  19624. }
  19625. .codeFileBox div {
  19626. background: rgb(80, 142, 226);
  19627. color: #fff;
  19628. padding: 10px 20px;
  19629. border-radius: 25px;
  19630. cursor: pointer;
  19631. margin-left: 15px;
  19632. }
  19633. .radioBox {
  19634. display: flex;
  19635. flex-direction: column;
  19636. flex-wrap: nowrap;
  19637. align-items: flex-start;
  19638. }
  19639. .radioBox > div {
  19640. margin: 10px 0 0 10px;
  19641. }
  19642. /* .radioBox >>> .el-radio__input,
  19643. .radioBox >>> .el-checkbox__inner {
  19644. margin-left: 10px;
  19645. } */
  19646. .radioBox >>> .el-radio__label,
  19647. .radioBox >>> .el-checkbox__label {
  19648. display: flex;
  19649. align-items: center;
  19650. }
  19651. .radioBox >>> .el-radio__label > span {
  19652. width: 100%;
  19653. display: -webkit-box;
  19654. overflow: hidden;
  19655. white-space: normal !important;
  19656. text-overflow: ellipsis;
  19657. word-wrap: break-word;
  19658. }
  19659. .inImg {
  19660. width: 100px;
  19661. cursor: pointer;
  19662. }
  19663. .inImg > img {
  19664. width: 100%;
  19665. height: 100%;
  19666. object-fit: cover;
  19667. }
  19668. .timuImgBox {
  19669. margin: 10px 0;
  19670. display: flex;
  19671. flex-direction: column;
  19672. flex-wrap: wrap;
  19673. align-items: flex-start;
  19674. }
  19675. .timuImg {
  19676. width: 150px;
  19677. margin: 5px 0;
  19678. cursor: pointer;
  19679. }
  19680. .timuImg > img {
  19681. width: 100%;
  19682. height: 100%;
  19683. object-fit: cover;
  19684. }
  19685. .worksTop {
  19686. display: flex;
  19687. flex-direction: row;
  19688. align-items: flex-end;
  19689. }
  19690. .corOpen {
  19691. margin: 0 0 0 10px;
  19692. font-size: 14px;
  19693. cursor: pointer;
  19694. color: #505050;
  19695. }
  19696. .corOpen:hover {
  19697. color: #499eef;
  19698. }
  19699. .navCorOpenBox {
  19700. display: flex;
  19701. flex-direction: row;
  19702. align-items: center;
  19703. justify-content: space-between;
  19704. height: 55px;
  19705. background: #ffffff;
  19706. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  19707. border-radius: 8px 8px 0px 0px;
  19708. z-index: 9;
  19709. position: relative;
  19710. }
  19711. .navCorOpen {
  19712. padding-right: 15px;
  19713. cursor: pointer;
  19714. width: 28px;
  19715. display: flex;
  19716. }
  19717. .navCorOpen > img {
  19718. width: 100%;
  19719. height: 100%;
  19720. }
  19721. .mlImg {
  19722. width: 25px !important;
  19723. min-width: 25px;
  19724. cursor: pointer;
  19725. transform: rotate(180deg);
  19726. }
  19727. .mlImg > img {
  19728. width: 100%;
  19729. height: 100%;
  19730. }
  19731. .navLeftCss {
  19732. width: 100% !important;
  19733. left: 0 !important;
  19734. }
  19735. .isContentCss {
  19736. width: 100% !important;
  19737. }
  19738. .isAllWidth {
  19739. width: 100% !important;
  19740. }
  19741. .group_switch {
  19742. margin-right: 10px;
  19743. height: 30px;
  19744. display: flex;
  19745. align-items: center;
  19746. }
  19747. .group_switch > span {
  19748. margin-right: 5px;
  19749. }
  19750. .fileC_box {
  19751. padding-top: 15px;
  19752. }
  19753. .fileC_box > .fileC_title {
  19754. padding: 10px 5px 14px 11px;
  19755. border-top: 1px solid #cad1dc;
  19756. font-size: 14px;
  19757. font-weight: 400;
  19758. color: #cad1dc;
  19759. width: 88%;
  19760. margin: 0 auto;
  19761. }
  19762. .pl_select_box {
  19763. height: 40px;
  19764. line-height: 40px;
  19765. width: 100%;
  19766. cursor: pointer;
  19767. padding: 0 20px;
  19768. box-sizing: border-box;
  19769. border-radius: 5px;
  19770. border: 1px solid #d6d6d6;
  19771. white-space: nowrap;
  19772. overflow: hidden;
  19773. text-overflow: ellipsis;
  19774. background: #fff;
  19775. text-align: left;
  19776. }
  19777. .newButton {
  19778. width: 102px;
  19779. height: 36px;
  19780. background: #e7ebf1;
  19781. border-radius: 4px;
  19782. color: #0e1e33;
  19783. font-weight: 400;
  19784. font-size: 14px;
  19785. border: none;
  19786. float: right;
  19787. margin-left: 10px;
  19788. }
  19789. .el-table >>> .even_row {
  19790. background-color: #f0f4fa;
  19791. }
  19792. .stageBoxCss {
  19793. display: flex;
  19794. flex-direction: row;
  19795. flex-wrap: nowrap;
  19796. align-items: center;
  19797. height: 50px;
  19798. border-bottom: 1px solid #e2f5fc;
  19799. cursor: pointer;
  19800. width: 100%;
  19801. }
  19802. .stageItemTitle {
  19803. display: flex;
  19804. flex-direction: row;
  19805. flex-wrap: nowrap;
  19806. align-items: center;
  19807. margin-left: 6px;
  19808. width: calc(100% - 60px);
  19809. }
  19810. .stageItemTitle > div:first-child {
  19811. color: #0e1e33;
  19812. font-size: 16px;
  19813. font-weight: bold;
  19814. min-width: 55px;
  19815. }
  19816. .stageItemTitle > div:last-child {
  19817. margin-left: 10px;
  19818. font-size: 14px;
  19819. font-weight: 400;
  19820. color: #acb4bf;
  19821. max-width: 190px;
  19822. white-space: nowrap;
  19823. overflow: hidden;
  19824. text-overflow: ellipsis;
  19825. word-break: break-word;
  19826. width: calc(100% - 55px);
  19827. }
  19828. .closeTri {
  19829. min-width: 20px;
  19830. width: 20px;
  19831. height: 20px;
  19832. padding-left: 15px;
  19833. }
  19834. .closeTri > img {
  19835. width: 100%;
  19836. height: 100%;
  19837. }
  19838. .stageChild {
  19839. height: 0;
  19840. overflow: hidden;
  19841. transition: all 0.5s;
  19842. }
  19843. .navItem {
  19844. background: #ffffff;
  19845. border-radius: 4px;
  19846. width: 90%;
  19847. margin: 16px auto 0;
  19848. position: relative;
  19849. }
  19850. .navItemList {
  19851. display: flex;
  19852. flex-direction: column;
  19853. flex-wrap: nowrap;
  19854. align-items: flex-start;
  19855. padding: 8px 13px;
  19856. cursor: pointer;
  19857. }
  19858. .navItemList > div:first-child {
  19859. font-size: 14px;
  19860. font-weight: 400;
  19861. color: #acb4bf;
  19862. padding-bottom: 4px;
  19863. }
  19864. .navItemList > div:last-child {
  19865. width: auto;
  19866. font-size: 16px;
  19867. font-weight: 400;
  19868. color: #0e1e33;
  19869. }
  19870. .isItemList > div:first-child {
  19871. color: #aeccfe;
  19872. }
  19873. .isItemList > div:last-child {
  19874. color: #fff;
  19875. }
  19876. .tool_work_box {
  19877. width: 100%;
  19878. padding: 0 37px 10px;
  19879. box-sizing: border-box;
  19880. }
  19881. .tool_box {
  19882. width: 100%;
  19883. margin-top: 20px;
  19884. }
  19885. .tool_type_box {
  19886. display: flex;
  19887. flex-direction: row;
  19888. align-items: baseline;
  19889. flex-wrap: nowrap;
  19890. justify-content: flex-start;
  19891. position: relative;
  19892. }
  19893. .toolSort {
  19894. display: flex;
  19895. flex-direction: row;
  19896. flex-wrap: wrap;
  19897. justify-content: flex-start;
  19898. align-items: flex-start;
  19899. }
  19900. .toolSort > div {
  19901. margin: 0 45px 0 0;
  19902. width: auto;
  19903. }
  19904. .tools {
  19905. width: 100%;
  19906. display: flex;
  19907. flex-direction: column;
  19908. flex-wrap: nowrap;
  19909. align-items: flex-start;
  19910. }
  19911. .whiteBIcon {
  19912. width: 80px;
  19913. cursor: pointer;
  19914. display: flex;
  19915. flex-direction: column;
  19916. flex-wrap: nowrap;
  19917. align-items: center;
  19918. }
  19919. .whiteBIcon > img {
  19920. width: 100%;
  19921. height: 100%;
  19922. }
  19923. .whiteBIcon > img {
  19924. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  19925. border-radius: 15px;
  19926. }
  19927. .check {
  19928. /* width: 20px;
  19929. height: 20px; */
  19930. cursor: pointer;
  19931. margin: 10px 0;
  19932. }
  19933. .checkDiv {
  19934. display: flex;
  19935. align-items: center;
  19936. }
  19937. .checkDiv span {
  19938. margin-left: 5px;
  19939. color: #858585;
  19940. }
  19941. .check img {
  19942. width: 20px;
  19943. height: 20px;
  19944. }
  19945. .lockTaskIcon {
  19946. width: 20px;
  19947. height: 20px;
  19948. position: absolute;
  19949. right: 0;
  19950. top: 23px;
  19951. }
  19952. .lockTaskIcon > img {
  19953. width: 100%;
  19954. height: 100%;
  19955. }
  19956. </style>