studyStudent.vue 758 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300
  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 class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. </div>
  26. <div
  27. class="pButton"
  28. style="left: 0; top: 140px"
  29. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  30. @click="setContent2(true)"
  31. >
  32. <!-- 批 , getCourseDetail()-->
  33. <img
  34. src="../assets/icon/newIcons/isRight.png"
  35. style="width: 45px"
  36. alt=""
  37. />
  38. </div>
  39. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  40. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  41. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  42. <div class="courseTitle">
  43. <div
  44. style="
  45. max-width: calc(100% - 40px);
  46. width: auto;
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-word;
  51. display: block;
  52. "
  53. >
  54. <el-tooltip
  55. effect="light"
  56. :content="courseDetail.title"
  57. placement="top"
  58. >
  59. <div class="ctitle">
  60. {{ courseDetail.title }}
  61. </div>
  62. </el-tooltip>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. <div
  71. class="inviteBox"
  72. v-if="tcid && inviteCode"
  73. style="padding: 0 0 15px 0"
  74. >
  75. <div>
  76. <span>随机码:{{ inviteCode }}</span>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="cru_selectBox">
  81. <div
  82. style="background: #fff; margin: 0 10px; border-radius: 8px"
  83. v-for="(item, stageIndex) in navList"
  84. :key="stageIndex"
  85. >
  86. <div
  87. class="stageBoxCss"
  88. @click="get(stageIndex)"
  89. :class="{ stageBoxIsCss: item.isOpen }"
  90. >
  91. <div class="stageItemTitle" :class="{ stageNav: item.isOpen }">
  92. <div>阶段{{ stageIndex + 1 }}</div>
  93. <el-tooltip
  94. effect="light"
  95. :content="item.dyName"
  96. placement="top"
  97. >
  98. <div>
  99. {{ item.dyName }}
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div class="closeTri" v-if="item.isOpen">
  104. <img src="../assets/icon/newIcons/downC.png" alt />
  105. </div>
  106. <div class="closeTri" v-else>
  107. <img src="../assets/icon/newIcons/right.png" alt />
  108. </div>
  109. </div>
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="nav.isOpen"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img src="../assets/icon/newIcons/bDown.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img src="../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen &&
  158. !(
  159. navIndex == taskCount &&
  160. nav.id == navId &&
  161. stageIndex == courseType
  162. )
  163. ? 'calc(100% - 75px)'
  164. : 'auto',
  165. }"
  166. >
  167. {{ nav.taskName }}
  168. </div>
  169. </el-tooltip>
  170. </div>
  171. <div class="lockTaskIcon">
  172. <img
  173. src="../assets/lock.png"
  174. v-if="IsLookOpen && !nav.isLook"
  175. alt=""
  176. />
  177. </div>
  178. </div>
  179. <div
  180. v-if="nav.tool[0].tool != undefined"
  181. class="toolChild"
  182. :class="{ toolActive: nav.isOpen }"
  183. >
  184. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  185. <div
  186. class="gjCss"
  187. :class="{ isGjCss: t.isTool }"
  188. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  189. >
  190. <div>工具{{ toolIndex + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 25">目标管理</div>
  225. <div v-if="t.tool == 26">课程设计</div>
  226. <div v-if="t.tool == 62">交互视频</div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  236. <div class="new_topFixed"></div>
  237. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  238. <div class="courseIndex">
  239. <div>任务{{ taskCount + 1 }}</div>
  240. <el-tooltip
  241. effect="light"
  242. :content="
  243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  244. "
  245. placement="top"
  246. >
  247. <div>
  248. {{
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  250. .task
  251. }}
  252. </div>
  253. </el-tooltip>
  254. </div>
  255. <div class="btnAll">
  256. <div class="btnLeft">
  257. <el-tooltip effect="light" content="刷新" placement="top">
  258. <div class="reBtnIcon" @click="refreshCourse">
  259. <span>刷新</span>
  260. </div>
  261. </el-tooltip>
  262. <el-tooltip effect="light" content="评论" placement="top">
  263. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  264. <span>评论</span>
  265. </div>
  266. </el-tooltip>
  267. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  268. <el-tooltip effect="light" content="录制" placement="top">
  269. <div class="vedioIcon" @click="startRecording">
  270. <span>录制</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. <div v-else-if="tType == 1 || tType == 4">
  275. <el-tooltip effect="light" content="下载" placement="top">
  276. <div class="vedioIcon1" @click="stopRecording">
  277. <span>下载</span>
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. </div>
  282. <div class="btnRight">
  283. <div
  284. class="last"
  285. @click="nextOrpreSteps(0)"
  286. v-if="!(IsFollow && tType == 2)"
  287. @mouseover="isHovered = true"
  288. @mouseout="isHovered = false"
  289. >
  290. <div class="lastImg">
  291. <img
  292. :src="
  293. isHovered
  294. ? require('../assets/icon/newIcons/whiteLast.png')
  295. : require('../assets/icon/newIcons/last.png')
  296. "
  297. alt=""
  298. />
  299. </div>
  300. <div class="lastText">上一步</div>
  301. </div>
  302. <div
  303. class="last"
  304. @click="nextOrpreSteps(1)"
  305. v-if="!(IsFollow && tType == 2)"
  306. @mouseover="isHovered1 = true"
  307. @mouseout="isHovered1 = false"
  308. >
  309. <div class="lastText">下一步</div>
  310. <div class="lastImg">
  311. <img
  312. :src="
  313. isHovered1
  314. ? require('../assets/icon/newIcons/whiteNext.png')
  315. : require('../assets/icon/newIcons/next.png')
  316. "
  317. alt=""
  318. />
  319. </div>
  320. </div>
  321. <div
  322. class="last"
  323. @click="juriVisible = true"
  324. v-if="tType == 1"
  325. @mouseover="isHovered2 = true"
  326. @mouseout="isHovered2 = false"
  327. >
  328. <div class="lastImg">
  329. <img
  330. :src="
  331. isHovered2
  332. ? require('../assets/icon/newIcons/whiteLock.png')
  333. : require('../assets/icon/newIcons/lock.png')
  334. "
  335. alt=""
  336. />
  337. </div>
  338. <div class="lastText">权限</div>
  339. </div>
  340. <div
  341. class="returnBtn1 returnIcon"
  342. @click.stop="
  343. goTo(
  344. '/courseDetail?userid=' +
  345. userid +
  346. '&oid=' +
  347. oid +
  348. '&org=' +
  349. org +
  350. '&cid=' +
  351. classId +
  352. '&courseId=' +
  353. id +
  354. '&tType=' +
  355. tType +
  356. '&screenType=' +
  357. screenType
  358. )
  359. "
  360. >
  361. <div class="lastImg">
  362. <img src="../assets/icon/newIcon/return.png" alt="" />
  363. </div>
  364. <div class="lastText" style="color: #000">返回</div>
  365. </div>
  366. </div>
  367. <!-- <div
  368. class="returnBtn lockIcon"
  369. @click="juriVisible = true"
  370. v-if="tType == 1"
  371. >
  372. 权限
  373. </div>
  374. <div
  375. class="returnBtn vedioIcon"
  376. @click="startRecording"
  377. v-if="!videoStart && (tType == 1 || tType == 4)"
  378. >
  379. 录制
  380. </div>
  381. <div
  382. class="returnBtn"
  383. @click="stopRecording"
  384. v-else-if="tType == 1 || tType == 4"
  385. style="background: #ee5255"
  386. >
  387. 下载
  388. </div>
  389. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  390. 评论
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(0)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 上一步
  398. </div>
  399. <div
  400. class="returnBtn"
  401. @click="nextOrpreSteps(1)"
  402. v-if="!(IsFollow && tType == 2)"
  403. >
  404. 下一步
  405. </div>
  406. <div class="returnBtn" @click="refreshCourse">刷新</div>
  407. <div
  408. class="returnBtn returnIcon"
  409. @click.stop="
  410. goTo(
  411. '/courseDetail?userid=' +
  412. userid +
  413. '&oid=' +
  414. oid +
  415. '&org=' +
  416. org +
  417. '&cid=' +
  418. classId +
  419. '&courseId=' +
  420. id +
  421. '&tType=' +
  422. tType +
  423. '&screenType=' +
  424. screenType
  425. )
  426. "
  427. >
  428. 返回
  429. </div> -->
  430. </div>
  431. </div>
  432. <div
  433. class="isNoMessage"
  434. v-if="
  435. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .chapterData.length == 0 &&
  437. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .toolChoose[0].tool.length == 0 &&
  439. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  440. .taskDetail == '' &&
  441. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .eList &&
  443. !(
  444. courseDetail.userid == userid ||
  445. (courseDetail.course_teacher &&
  446. courseDetail.course_teacher.indexOf(userid) != -1)
  447. )
  448. "
  449. >
  450. <img src="../assets/icon/isNoMessage.png" alt />
  451. </div>
  452. <div class="study_top" :class="{ pzClass: pzDialog }">
  453. <div
  454. class="vedioBox"
  455. v-if="
  456. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  457. .taskDetail != '' ||
  458. vChapterData[taskCount].length > 0 ||
  459. fileC[taskCount].length > 0
  460. "
  461. style="border-radius: 0 0 20px 20px"
  462. >
  463. <div
  464. class="taskBox"
  465. v-if="
  466. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .taskDetail != ''
  468. "
  469. >
  470. <div
  471. style="
  472. display: flex;
  473. flex-wrap: nowrap;
  474. flex-direction: column;
  475. position: relative;
  476. "
  477. >
  478. <div
  479. style="
  480. padding: 15px 0;
  481. line-height: 29px;
  482. font-size: 18px;
  483. color: #0e1e33;
  484. "
  485. class="cont"
  486. v-if="
  487. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  488. .taskDetail != ''
  489. "
  490. v-html="
  491. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  492. .taskDetail
  493. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  494. taskCount
  495. ].taskDetail
  496. : '暂无描述'
  497. "
  498. ></div>
  499. </div>
  500. </div>
  501. <div
  502. class="student_head"
  503. v-if="
  504. vChapterData[taskCount].length > 0 ||
  505. fileC[taskCount].length > 0
  506. "
  507. >
  508. <div class="vedioTaskBox">
  509. <div
  510. :class="
  511. contentDialog == false
  512. ? 'box_course isContentCss'
  513. : 'box_course'
  514. "
  515. v-if="
  516. vChapterData.length > 0 &&
  517. vChapterData[taskCount] &&
  518. showType !== ''
  519. "
  520. >
  521. <div class="wheel" style="height: auto" v-if="showType === 0">
  522. <div
  523. class="workd_media"
  524. style="height: 650px; width: calc(100% - 50px)"
  525. >
  526. <video-player
  527. class="video-player vjs-custom-skin"
  528. :class="contentDialog == false ? 'isAllWidth' : ''"
  529. :playsinline="true"
  530. :options="playerO[taskCount]"
  531. @play="onPlayerPlay($event)"
  532. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  533. ></video-player>
  534. </div>
  535. </div>
  536. <div
  537. class="wheel"
  538. v-if="showType == 1"
  539. style="
  540. box-shadow: 0 0 6px 1px #f2f2f2;
  541. width: 95%;
  542. margin: 0 auto;
  543. background: #f1f1f1;
  544. "
  545. >
  546. <div class="title">查看文档</div>
  547. <el-form class="textBox">
  548. <el-form-item class="textTitle">
  549. <div style="font-size: 22px">
  550. {{ text.name }}
  551. </div>
  552. </el-form-item>
  553. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  554. <div v-html="text.url" class="textContent cont"></div>
  555. </el-form>
  556. </div>
  557. <div
  558. class="wheel"
  559. v-if="
  560. pptImgUrl1.indexOf(
  561. 'https://view.officeapps.live.com/op/view.aspx?src='
  562. ) != -1 && showType == 2
  563. "
  564. style="width: 95%; margin: 0 auto"
  565. >
  566. <iframe
  567. style="width: 100%; height: 100%; border: none"
  568. :src="pptImgUrl1"
  569. ></iframe>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-else-if="showType == 2"
  574. style="width: 95%; margin: 0 auto"
  575. >
  576. <iframe
  577. style="width: 100%; height: 100%; border: none"
  578. security="restricted"
  579. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  580. :src="pptImgUrl1"
  581. ></iframe>
  582. </div>
  583. <div
  584. class="wheel"
  585. v-if="showType == 3"
  586. style="width: 95%; margin: 0 auto"
  587. >
  588. <pdf
  589. :pdfUrl="pptImgUrl1"
  590. style="width: 100%; height: 100%; overflow: auto"
  591. ></pdf>
  592. </div>
  593. <div
  594. class="wheel"
  595. v-if="showType == 4"
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <el-image
  599. :src="pptImgUrl1"
  600. fit="contain"
  601. style="width: 100%; height: 100%; cursor: pointer"
  602. @click="previewImg(pptImgUrl1)"
  603. ></el-image>
  604. </div>
  605. </div>
  606. <div
  607. class="pButton"
  608. style="position: absolute; right: 20px; top: 0; z-index: 998"
  609. v-if="!contentDialog"
  610. @click="setContent(true)"
  611. >
  612. <!-- 批 -->
  613. <img
  614. src="../assets/icon/newIcons/isLeft.png"
  615. style="width: 45px"
  616. alt=""
  617. />
  618. </div>
  619. <div
  620. v-if="contentDialog == true"
  621. :style="{
  622. width:
  623. (vChapterData[taskCount].length > 0 ||
  624. fileC[taskCount].length > 0) &&
  625. showType === ''
  626. ? 'calc(100%)'
  627. : '300px',
  628. margin:
  629. (vChapterData[taskCount].length > 0 ||
  630. fileC[taskCount].length > 0) &&
  631. showType === ''
  632. ? '0 15px'
  633. : '0 15px 0 0',
  634. }"
  635. >
  636. <div
  637. class="vedioList"
  638. v-if="
  639. vChapterData[taskCount].length > 0 ||
  640. fileC[taskCount].length > 0
  641. "
  642. style="height: 650px"
  643. >
  644. <div class="navCorOpenBox">
  645. <div class="navTitile">内容列表:</div>
  646. <div class="navCorOpen" @click="setContent(false)">
  647. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  648. </div>
  649. </div>
  650. <div class="navBox">
  651. <div
  652. v-show="
  653. vChapterData[taskCount].length > 0 ||
  654. fileC[taskCount].length > 0
  655. "
  656. style="padding: 10px 0 25px 0"
  657. >
  658. <div
  659. class="vedioTimeBox"
  660. v-for="(vitem, vindex) in vChapterData[taskCount]"
  661. :key="vindex + '1'"
  662. >
  663. <div class="navListItem" v-if="vitem.type == 2">
  664. <div
  665. @click="lookVedio(vitem.url, vindex)"
  666. class="navText"
  667. :class="isClickNav == vindex ? 'isClickNav' : ''"
  668. >
  669. <span v-if="vitem.text">{{ vitem.text }}-</span
  670. >{{ vitem.name }}
  671. </div>
  672. <div class="downIcon" @click="downloadFile2(vitem)">
  673. <img src="../assets/icon/newIcon/down.png" alt />
  674. </div>
  675. </div>
  676. <div class="navListItem" v-if="vitem.type == 6">
  677. <div
  678. @click="lookText(taskCount, vindex)"
  679. class="navText"
  680. :class="isClickNav == vindex ? 'isClickNav' : ''"
  681. >
  682. {{ vitem.name }}.doc
  683. </div>
  684. <div
  685. class="downIcon"
  686. @click="checkFileFull1(vitem.type, vitem)"
  687. >
  688. <img
  689. src="../assets/icon/newIcon/allScreen.png"
  690. alt
  691. />
  692. </div>
  693. </div>
  694. <div
  695. class="navListItem"
  696. v-if="vitem.type == 8 || vitem.type == 14"
  697. >
  698. <div
  699. @click="doUrl(vitem.url, vindex)"
  700. class="navText"
  701. :class="isClickNav == vindex ? 'isClickNav' : ''"
  702. >
  703. {{ vitem.title ? vitem.title : vitem.url }}
  704. </div>
  705. <div
  706. class="downIcon"
  707. @click="checkFileFull1(vitem.type, vitem)"
  708. >
  709. <img
  710. src="../assets/icon/newIcon/allScreen.png"
  711. alt
  712. />
  713. </div>
  714. </div>
  715. <div class="navListItem" v-if="vitem.type == 3">
  716. <div
  717. @click="downFile(vitem, vindex)"
  718. class="navText"
  719. :class="isClickNav == vindex ? 'isClickNav' : ''"
  720. >
  721. <span v-if="vitem.text">{{ vitem.text }}-</span
  722. >{{ vitem.name }}
  723. </div>
  724. <div class="downIcon" @click="downloadFile2(vitem)">
  725. <img src="../assets/icon/newIcon/down.png" alt />
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div class="downIcon" @click="downloadFile2(vitem)">
  743. <img src="../assets/icon/newIcon/down.png" alt />
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div class="navListItem" v-if="vitem.type == 13">
  756. <div
  757. class="navText"
  758. @click="checkPhoto(vitem, vindex)"
  759. :class="isClickNav == vindex ? 'isClickNav' : ''"
  760. >
  761. {{ vitem.name }}
  762. </div>
  763. <div class="downIcon" @click="downloadFile2(vitem)">
  764. <img src="../assets/icon/newIcon/down.png" alt />
  765. </div>
  766. </div>
  767. </div>
  768. <div
  769. class="fileC_box"
  770. v-if="fileC[taskCount].length > 0"
  771. >
  772. <div class="fileC_title">以下文件不支持预览</div>
  773. <div
  774. class="vedioTimeBox"
  775. v-for="(vitem, vindex) in fileC[taskCount]"
  776. :key="vindex + '1'"
  777. >
  778. <div class="navListItem" v-if="vitem.type == 12">
  779. <div class="navText" style="color: #acb4bf">
  780. <span v-if="vitem.text">{{ vitem.text }}-</span
  781. >{{ vitem.name }}
  782. </div>
  783. <div
  784. class="downIcon"
  785. @click="downloadFile2(vitem)"
  786. >
  787. <img
  788. src="../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. </div>
  794. </div>
  795. </div>
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. <div style="width: calc(100% - 315px)">
  801. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  802. <!-- <el-button
  803. type="primary"
  804. class="newButton"
  805. @click="checkFileFull(showType, pptImgUrl1)"
  806. >全屏查看</el-button
  807. >
  808. <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="downloadFile(pptImgUrl1)"
  812. v-if="showType != 2"
  813. >文件下载</el-button
  814. > -->
  815. <el-button
  816. class="newButton"
  817. v-if="
  818. showType == 2 &&
  819. pptImgUrl1.indexOf(
  820. 'https://view.officeapps.live.com/op/view.aspx?src='
  821. ) == -1
  822. "
  823. type="primary"
  824. @click="openLine(pptImgUrl1)"
  825. >打开链接
  826. </el-button>
  827. </div>
  828. <!-- <div
  829. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  830. v-if="showType == 1"
  831. >
  832. <el-button
  833. type="primary"
  834. class="newButton"
  835. @click="checkFileFull(showType, text)"
  836. >全屏查看</el-button
  837. >
  838. </div> -->
  839. </div>
  840. </div>
  841. </div>
  842. <div class="student_body" v-resize="resize">
  843. <div
  844. class="vedioBox"
  845. :style="{
  846. borderRadius:
  847. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  848. .taskDetail == '' &&
  849. vChapterData[taskCount].length == 0 &&
  850. fileC[taskCount].length == 0
  851. ? '0 0 20px 20px'
  852. : '20px',
  853. }"
  854. v-if="
  855. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  856. .toolChoose[0].tool &&
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool.length > 0
  859. "
  860. >
  861. <div
  862. class="toolHeng2"
  863. style="position: relative"
  864. v-if="
  865. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  866. .toolChoose[0].tool &&
  867. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  868. .toolChoose[0].tool.length &&
  869. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  870. .toolChoose[0].tool.length > 0
  871. "
  872. >
  873. <div class="workNav">工作区</div>
  874. <div
  875. class="filebox"
  876. style="flex-wrap: nowrap"
  877. v-for="(tool, toolIndex) in chapInfoList[courseType]
  878. .chapterInfo[0].taskJson[taskCount].toolChoose"
  879. :key="toolIndex"
  880. >
  881. <div class="bzBox">
  882. <div class="yCss"></div>
  883. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  884. 步骤{{ toolIndex + 1 }}
  885. </div>
  886. <div
  887. v-if="timeWorkList[toolIndex].length > 0"
  888. style="margin: 0 0 0 10px"
  889. >
  890. {{
  891. timeWorkList[toolIndex][0].time
  892. ? "时间:" + timeWorkList[toolIndex][0].time
  893. : ""
  894. }}
  895. </div>
  896. </div>
  897. <div class="toolBox">
  898. <div>
  899. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  900. :key="indexTool"-->
  901. <!-- <div class="iframeBox">
  902. <div
  903. class="addPoint isBorder"
  904. v-for="(tooC, toolCIndex) in tool.tool"
  905. :key="toolCIndex"
  906. >
  907. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  908. <div
  909. class="iframeName"
  910. >
  911. 电子白板
  912. </div>
  913. <iframe
  914. src="https://iwb.cocorobo.cn/"
  915. ref="whiteBoard"
  916. ></iframe>
  917. </div>
  918. </div>
  919. </div>-->
  920. <div class="noiframeBox">
  921. <div
  922. class="addPoint"
  923. v-for="(tooC, toolCIndex) in tool.tool"
  924. :key="toolCIndex"
  925. >
  926. <div v-if="tooC == 1">
  927. <img
  928. src="../assets/icon/secondToolList/whiteBoard.png"
  929. alt
  930. @click="addTools(tooC, toolIndex, taskCount)"
  931. />
  932. <div style="margin: 5px 0">电子白板</div>
  933. </div>
  934. <div v-if="tooC == 3">
  935. <img
  936. src="../assets/icon/secondToolList/mindMapping.png"
  937. alt
  938. @click="addTools(tooC, toolIndex, taskCount)"
  939. />
  940. <div style="margin: 5px 0">思维导图</div>
  941. </div>
  942. <div v-if="tooC == 6">
  943. <img
  944. src="../assets/icon/secondToolList/doc.png"
  945. alt
  946. @click="addTools(tooC, toolIndex, taskCount)"
  947. />
  948. <div style="margin: 5px 0">协同文档</div>
  949. </div>
  950. <div v-if="tooC == 7">
  951. <img
  952. src="../assets/icon/secondToolList/mindNetwork.png"
  953. alt
  954. @click="addTools(tooC, toolIndex, taskCount)"
  955. />
  956. <div style="margin: 5px 0">思维网格</div>
  957. </div>
  958. <div v-if="tooC == 8">
  959. <img
  960. src="../assets/icon/secondToolList/library.png"
  961. alt
  962. @click="addTools(tooC, toolIndex, taskCount)"
  963. />
  964. <div style="margin: 5px 0">素材库</div>
  965. </div>
  966. <div v-if="tooC == 17">
  967. <img
  968. src="../assets/icon/secondToolList/library.png"
  969. alt
  970. @click="addTools(tooC, toolIndex, taskCount)"
  971. />
  972. <div style="margin: 5px 0">学习资料</div>
  973. </div>
  974. <div v-if="tooC == 2">
  975. <img
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. src="../assets/icon/secondToolList/note.png"
  978. alt
  979. />
  980. <div style="margin: 5px 0">便签</div>
  981. </div>
  982. <div v-if="tooC == 4">
  983. <img
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. src="../assets/icon/thirdToolList/ask.png"
  986. alt
  987. />
  988. <div style="margin: 5px 0">问卷调查</div>
  989. </div>
  990. <div v-if="tooC == 45">
  991. <img
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. src="../assets/icon/thirdToolList/choose.png"
  994. alt
  995. />
  996. <div style="margin: 5px 0">选择题</div>
  997. </div>
  998. <!-- <div v-if="tooC == 5">
  999. <img
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. src="../assets/icon/thirdToolList/score.png"
  1002. alt
  1003. />
  1004. <div style="margin: 5px 0">量规评分</div>
  1005. </div> -->
  1006. <div v-if="tooC == 10">
  1007. <img
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. src="../assets/icon/thirdToolList/time.png"
  1010. alt
  1011. />
  1012. <div style="margin: 5px 0">倒计时</div>
  1013. </div>
  1014. <div v-if="tooC == 15">
  1015. <img
  1016. @click="addTools(tooC, toolIndex, taskCount)"
  1017. src="../assets/icon/thirdToolList/answer.png"
  1018. alt
  1019. />
  1020. <div style="margin: 5px 0">问答</div>
  1021. </div>
  1022. <div v-if="tooC == 26">
  1023. <img
  1024. @click="addTools(tooC, toolIndex, taskCount)"
  1025. src="../assets/icon/thirdToolList/courseDesign.png"
  1026. alt
  1027. />
  1028. <div style="margin: 5px 0">课程设计</div>
  1029. </div>
  1030. <div v-if="tooC == 18">
  1031. <img
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. src="../assets/icon/thirdToolList/trainPlatform.png"
  1034. alt
  1035. />
  1036. <div style="margin: 5px 0">训练服务器</div>
  1037. </div>
  1038. <div v-if="tooC == 16">
  1039. <img
  1040. @click="addTools(tooC, toolIndex, taskCount)"
  1041. src="../assets/icon/thirdToolList/work.png"
  1042. alt
  1043. />
  1044. <div style="margin: 5px 0">作业提交</div>
  1045. </div>
  1046. <div v-if="tooC == 50">
  1047. <img
  1048. @click="addTools(tooC, toolIndex, taskCount)"
  1049. src="../assets/icon/thirdToolList/plwork.png"
  1050. alt
  1051. />
  1052. <div style="margin: 5px 0">批量上传</div>
  1053. </div>
  1054. <div v-if="tooC == 21">
  1055. <img
  1056. @click="addTools(tooC, toolIndex, taskCount)"
  1057. src="../assets/icon/fourthToolList/program.png"
  1058. alt
  1059. />
  1060. <div style="margin: 5px 0">AIoT Blockly</div>
  1061. </div>
  1062. <!-- <div v-if="tooC == 22">
  1063. <img
  1064. @click="addTools(tooC, toolIndex, taskCount)"
  1065. src="../assets/icon/fourthToolList/program.png"
  1066. alt
  1067. />
  1068. <div style="margin: 5px 0">AI体验</div>
  1069. </div> -->
  1070. <div v-if="tooC == 23">
  1071. <img
  1072. @click="addTools(tooC, toolIndex, taskCount)"
  1073. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1074. alt
  1075. />
  1076. <div style="margin: 5px 0">AI Python</div>
  1077. </div>
  1078. <div v-if="tooC == 24">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../assets/icon/fourthToolList/AIprogram.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">AI Blockly</div>
  1085. </div>
  1086. <div v-if="tooC == 25">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../assets/icon/thirdToolList/evalua.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">目标管理</div>
  1093. </div>
  1094. <div v-if="tooC == 31">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../assets/icon/secondToolList/networkPanel.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">数学画板</div>
  1101. </div>
  1102. <div v-if="tooC == 28">
  1103. <img
  1104. @click="addTools(tooC, toolIndex, taskCount)"
  1105. src="../assets/icon/secondToolList/translation.png"
  1106. alt
  1107. />
  1108. <div style="margin: 5px 0">翻译</div>
  1109. </div>
  1110. <div v-if="tooC == 37">
  1111. <img
  1112. @click="addTools(tooC, toolIndex, taskCount)"
  1113. src="../assets/icon/secondToolList/mohe.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">魔盒识字</div>
  1117. </div>
  1118. <div v-if="tooC == 38">
  1119. <img
  1120. @click="addTools(tooC, toolIndex, taskCount)"
  1121. src="../assets/icon/secondToolList/24game.png"
  1122. alt
  1123. />
  1124. <div style="margin: 5px 0">24点</div>
  1125. </div>
  1126. <div v-if="tooC == 39">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../assets/icon/secondToolList/GeoGebra.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">GeoGebra</div>
  1133. </div>
  1134. <div v-if="tooC == 32">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../assets/icon/thirdToolList/code.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">源码编辑</div>
  1141. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1142. style="position: absolute;left: 110px;bottom: 30px;">
  1143. 上传文件
  1144. <input type="file" accept="*" style="display: none"
  1145. @change="beforeUpload1($event, 7, toolIndex)" />
  1146. </div> -->
  1147. </div>
  1148. <div v-if="tooC == 40">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../assets/icon/secondToolList/eval.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">个人评价</div>
  1155. </div>
  1156. <div v-if="tooC == 41">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../assets/icon/thirdToolList/select.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">选择匹配</div>
  1163. </div>
  1164. <div v-if="tooC == 44">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../assets/icon/thirdToolList/hanClass.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">汉字宫</div>
  1171. </div>
  1172. <div v-if="tooC == 47">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../assets/icon/fourthToolList/conSentences.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">排序</div>
  1179. </div>
  1180. <div v-if="tooC == 48">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../assets/icon/fourthToolList/table.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">表格</div>
  1187. </div>
  1188. <div v-if="tooC == 52">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../assets/icon/fourthToolList/text.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">文档</div>
  1195. </div>
  1196. <div v-if="tooC == 49">
  1197. <img
  1198. @click="addTools(tooC, toolIndex, taskCount)"
  1199. src="../assets/icon/fourthToolList/group.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">学生分组</div>
  1203. </div>
  1204. <div v-if="tooC == 57">
  1205. <img
  1206. @click="addTools(tooC, toolIndex, taskCount)"
  1207. src="../assets/icon/fourthToolList/cocopi.png"
  1208. alt
  1209. />
  1210. <div style="margin: 5px 0">CocoPi</div>
  1211. </div>
  1212. <div v-if="tooC == 58">
  1213. <img
  1214. @click="addTools(tooC, toolIndex, taskCount)"
  1215. src="../assets/icon/fourthToolList/car.png"
  1216. alt
  1217. />
  1218. <div style="margin: 5px 0">模拟驾驶</div>
  1219. </div>
  1220. <div v-if="tooC == 59">
  1221. <img
  1222. @click="addTools(tooC, toolIndex, taskCount)"
  1223. src="../assets/icon/fourthToolList/lineSearch.png"
  1224. alt
  1225. />
  1226. <div style="margin: 5px 0">路径搜索</div>
  1227. </div>
  1228. <div v-if="tooC == 60">
  1229. <img
  1230. @click="addTools(tooC, toolIndex, taskCount)"
  1231. src="../assets/icon/fourthToolList/deepLearning.png"
  1232. alt
  1233. />
  1234. <div style="margin: 5px 0">深度学习</div>
  1235. </div>
  1236. <div v-if="tooC == 61">
  1237. <img
  1238. @click="addTools(tooC, toolIndex, taskCount)"
  1239. src="../assets/icon/fourthToolList/allHistory.png"
  1240. alt
  1241. />
  1242. <div style="margin: 5px 0">全历史</div>
  1243. </div>
  1244. <div v-if="tooC == 62">
  1245. <img
  1246. @click="addTools(tooC, toolIndex, taskCount)"
  1247. src="../assets/icon/fourthToolList/interVideo.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">交互视频</div>
  1251. </div>
  1252. <div v-if="tooC == 63">
  1253. <img
  1254. @click="addTools(tooC, toolIndex, taskCount)"
  1255. src="../assets/icon/fourthToolList/Wood.png"
  1256. alt
  1257. />
  1258. <div style="margin: 5px 0">海龟编程</div>
  1259. </div>
  1260. <div v-if="tooC == 65">
  1261. <img
  1262. @click="addTools(tooC, toolIndex, taskCount)"
  1263. src="../assets/icon/firstToolList/pickPeople.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">挑人</div>
  1267. </div>
  1268. <div v-if="tooC == 66">
  1269. <img
  1270. @click="addTools(tooC, toolIndex, taskCount)"
  1271. src="../assets/icon/secondToolList/formulaEdi.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">公式编辑</div>
  1275. </div>
  1276. <div v-if="tooC == 67">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../assets/icon/secondToolList/molStr.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">分子结构</div>
  1283. </div>
  1284. <div v-if="tooC == 68">
  1285. <img
  1286. @click="addTools(tooC, toolIndex, taskCount)"
  1287. src="../assets/icon/secondToolList/timeAxis.png"
  1288. alt
  1289. />
  1290. <div style="margin: 5px 0">时间轴</div>
  1291. </div>
  1292. <div v-if="tooC == 69">
  1293. <img
  1294. @click="addTools(tooC, toolIndex, taskCount)"
  1295. src="../assets/icon/secondToolList/english.png"
  1296. alt
  1297. />
  1298. <div style="margin: 5px 0">英语写作</div>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1304. <!-- <div class="toolTitle">工具描述</div> -->
  1305. <div
  1306. v-html="contentConvent(tool.toolDetail)"
  1307. v-if="toolDetailIndex != toolIndex"
  1308. @click.stop="updateToolDetail(toolIndex)"
  1309. ></div>
  1310. <div v-else @click.stop="">
  1311. <el-input
  1312. type="textarea"
  1313. :rows="3"
  1314. resize="none"
  1315. v-model="updateToolDetailInner"
  1316. placeholder="请输入任务描述"
  1317. ></el-input>
  1318. </div>
  1319. </div>
  1320. <el-button
  1321. type="primary"
  1322. v-if="tool.tool[0] == 32"
  1323. style="position: absolute; right: 30px; top: 30px"
  1324. @click="addImg($event)"
  1325. >上传作业<input
  1326. type="file"
  1327. accept="*"
  1328. style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)"
  1330. /></el-button>
  1331. <el-button
  1332. type="primary"
  1333. v-if="tool.tool[0] == 15"
  1334. style="position: absolute; right: 30px; top: 30px"
  1335. @click="openWordCloud(toolIndex)"
  1336. >生成词云</el-button
  1337. >
  1338. <el-button
  1339. type="primary"
  1340. v-if="
  1341. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1342. "
  1343. style="position: absolute; right: 30px; top: 30px"
  1344. @click="uploadWorks(toolIndex)"
  1345. >导出作业</el-button
  1346. >
  1347. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1348. position: absolute;
  1349. right: 30px;
  1350. transform: translateY(-130%);
  1351. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1352. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(16) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span class="worksTitle">作业预览</span>
  1368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1369. </div>
  1370. <div
  1371. class="worksDetailBox"
  1372. v-if="workStudent[toolIndex].length > 0"
  1373. >
  1374. <div
  1375. class="works"
  1376. style="
  1377. width: 200px;
  1378. height: 140px;
  1379. margin: 10px 10px 10px 0;
  1380. box-shadow: 0 0 6px 1px #dfdada;
  1381. "
  1382. v-for="(w, wIndex) in workStudent[toolIndex]"
  1383. :key="wIndex"
  1384. >
  1385. <div class="workImg" v-if="w.type == 0">
  1386. <img
  1387. :src="w.works"
  1388. @click="previewImg(w.works)"
  1389. alt
  1390. />
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid || tType == 1 || tType == 4,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid || tType == 1 || tType == 4,
  1409. }"
  1410. >
  1411. 评分
  1412. </div>
  1413. <img
  1414. class="deleteImg"
  1415. src="../assets/deleteworks.png"
  1416. v-if="
  1417. w.userid == userid || tType == 1 || tType == 4
  1418. "
  1419. @click.stop="deleteWorks(w.wid)"
  1420. alt
  1421. />
  1422. </div>
  1423. <div class="workImg" v-if="w.type == 1">
  1424. <img :src="word" @click="openFile(w.works)" alt />
  1425. <div
  1426. class="answerScore"
  1427. v-if="w.score"
  1428. @click.stop="openScore(w)"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. {{ JSON.parse(w.score).wScore }}分
  1435. </div>
  1436. <div
  1437. class="answerScore"
  1438. @click.stop="openScore(w)"
  1439. v-else-if="courseDetail.userid == userid"
  1440. :class="{
  1441. rightW:
  1442. w.userid == userid || tType == 1 || tType == 4,
  1443. }"
  1444. >
  1445. 评分
  1446. </div>
  1447. <img
  1448. class="deleteImg"
  1449. src="../assets/deleteworks.png"
  1450. v-if="
  1451. w.userid == userid || tType == 1 || tType == 4
  1452. "
  1453. @click.stop="deleteWorks(w.wid)"
  1454. alt
  1455. />
  1456. </div>
  1457. <div class="workImg" v-if="w.type == 3">
  1458. <img
  1459. style="cursor: pointer"
  1460. :src="video"
  1461. @click="openVideo(w)"
  1462. alt
  1463. />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid || tType == 1 || tType == 4,
  1471. }"
  1472. >
  1473. {{ JSON.parse(w.score).wScore }}分
  1474. </div>
  1475. <div
  1476. class="answerScore"
  1477. @click.stop="openScore(w)"
  1478. v-else-if="courseDetail.userid == userid"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../assets/deleteworks.png"
  1489. v-if="
  1490. w.userid == userid || tType == 1 || tType == 4
  1491. "
  1492. @click.stop="deleteWorks(w.wid)"
  1493. alt
  1494. />
  1495. </div>
  1496. <div class="workImg" v-if="w.type == 12">
  1497. <img
  1498. style="cursor: pointer"
  1499. :src="word2"
  1500. @click="downloadFile(w.works)"
  1501. alt
  1502. />
  1503. <div
  1504. class="answerScore"
  1505. v-if="w.score"
  1506. @click.stop="openScore(w)"
  1507. :class="{
  1508. rightW:
  1509. w.userid == userid || tType == 1 || tType == 4,
  1510. }"
  1511. >
  1512. {{ JSON.parse(w.score).wScore }}分
  1513. </div>
  1514. <div
  1515. class="answerScore"
  1516. @click.stop="openScore(w)"
  1517. v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid || tType == 1 || tType == 4,
  1521. }"
  1522. >
  1523. 评分
  1524. </div>
  1525. <img
  1526. class="deleteImg"
  1527. src="../assets/deleteworks.png"
  1528. v-if="
  1529. w.userid == userid || tType == 1 || tType == 4
  1530. "
  1531. @click.stop="deleteWorks(w.wid)"
  1532. alt
  1533. />
  1534. </div>
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(32) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg">
  1572. <img
  1573. :src="word2"
  1574. @click="downloadFile(w.works)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="worksName">
  1610. <div>{{ w.sName }}</div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(57) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. </div>
  1630. <div
  1631. class="worksDetailBox"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <div
  1635. class="works"
  1636. style="
  1637. width: 200px;
  1638. height: 140px;
  1639. margin: 10px 10px 10px 0;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. "
  1642. v-for="(w, wIndex) in workStudent[toolIndex]"
  1643. :key="wIndex"
  1644. >
  1645. <div class="workImg">
  1646. <img
  1647. :src="word2"
  1648. @click="downloadFile(w.works)"
  1649. v-if="w.type == 12"
  1650. alt
  1651. />
  1652. <img
  1653. :src="word2"
  1654. @click="
  1655. openCocoPi(57, toolIndex, w.userid, w.sName)
  1656. "
  1657. v-else-if="w.type == 15"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4,
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4,
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <img
  1683. class="deleteImg"
  1684. src="../assets/deleteworks.png"
  1685. v-if="
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. "
  1688. @click.stop="deleteWorks(w.wid)"
  1689. alt
  1690. />
  1691. </div>
  1692. <div class="worksName">
  1693. <div>{{ w.sName }}</div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div
  1699. v-if="
  1700. tType &&
  1701. tType == 2 &&
  1702. !sIsOpen &&
  1703. tool.tool.indexOf(4) != -1
  1704. "
  1705. class="worksBox"
  1706. >
  1707. <div
  1708. class="zuoyeYulan"
  1709. v-if="workStudent[toolIndex].length > 0"
  1710. >
  1711. <span class="worksTitle">作业预览</span>
  1712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="isWorksName2"
  1720. v-for="(w, wIndex) in workStudent[toolIndex]"
  1721. :key="wIndex"
  1722. @click="
  1723. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1724. "
  1725. >
  1726. {{ w.sName }}
  1727. <img
  1728. class="deleteImg deleteImg2"
  1729. src="../assets/deleteworks.png"
  1730. v-if="w.userid == userid || tType == 1 || tType == 4"
  1731. @click.stop="deleteWorks(w.wid)"
  1732. alt
  1733. />
  1734. </div>
  1735. <!-- <div
  1736. class="works"
  1737. style="
  1738. width: 200px;
  1739. height: 140px;
  1740. border-radius: 10px;
  1741. box-shadow: 0 0 6px 1px #dfdada;
  1742. overflow: hidden;
  1743. "
  1744. v-for="(w, wIndex) in workStudent[toolIndex]"
  1745. :key="wIndex"
  1746. >
  1747. <div class="workImg">
  1748. <img
  1749. src="../assets/icon/works/noImg.png"
  1750. @click="
  1751. openTools(
  1752. 4,
  1753. toolIndex,
  1754. taskCount,
  1755. w.works,
  1756. w.sName
  1757. )
  1758. "
  1759. alt
  1760. />
  1761. </div>
  1762. <div class="worksName">
  1763. <div>{{ w.sName }}</div>
  1764. <div>{{ w.time }}</div>
  1765. </div>
  1766. </div> -->
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(45) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span class="worksTitle">作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="isWorksName2"
  1791. v-for="(w, wIndex) in workStudent[toolIndex]"
  1792. :key="wIndex"
  1793. @click="
  1794. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1795. "
  1796. >
  1797. {{ w.sName }}
  1798. <img
  1799. class="deleteImg deleteImg2"
  1800. src="../assets/deleteworks.png"
  1801. v-if="w.userid == userid || tType == 1 || tType == 4"
  1802. @click.stop="deleteWorks(w.wid)"
  1803. alt
  1804. />
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(69) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="isWorksName2"
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. @click="
  1833. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1834. "
  1835. >
  1836. {{ w.sName }}
  1837. <img
  1838. class="deleteImg deleteImg2"
  1839. src="../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div
  1848. v-if="
  1849. tType &&
  1850. tType == 2 &&
  1851. !sIsOpen &&
  1852. tool.tool.indexOf(15) != -1
  1853. "
  1854. class="worksBox"
  1855. >
  1856. <div
  1857. class="zuoyeYulan"
  1858. v-if="workStudent[toolIndex].length > 0"
  1859. >
  1860. <span class="worksTitle">作业预览</span>
  1861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. v-for="(w, wIndex) in workStudent[toolIndex]"
  1870. :key="wIndex"
  1871. >
  1872. <div class="workImg">
  1873. <!-- <img
  1874. src="../assets/icon/works/noImg.png"
  1875. @click="openTools(15, toolIndex, taskCount, w.works)"
  1876. alt=""
  1877. />-->
  1878. <div class="answerBg">
  1879. <!-- <div>{{ w.sName }}</div> -->
  1880. <el-tooltip
  1881. class="item"
  1882. effect="light"
  1883. :content="JSON.parse(w.works)[0].answer"
  1884. placement="top"
  1885. >
  1886. <div class="answerContent">
  1887. {{ JSON.parse(w.works)[0].answer }}
  1888. </div>
  1889. </el-tooltip>
  1890. <div
  1891. class="answerScore"
  1892. v-if="w.score"
  1893. @click.stop="openScore(w)"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4,
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4,
  1912. }"
  1913. >
  1914. 评分
  1915. </div>
  1916. <img
  1917. class="deleteImg"
  1918. src="../assets/deleteworks.png"
  1919. v-if="
  1920. w.userid == userid || tType == 1 || tType == 4
  1921. "
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. <div class="comment">
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div
  1936. v-if="
  1937. tType &&
  1938. tType == 2 &&
  1939. !sIsOpen &&
  1940. tool.tool.indexOf(1) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <span class="worksTitle">作业预览</span>
  1949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1950. </div>
  1951. <div
  1952. class="worksDetailBox"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <div
  1956. class="works"
  1957. style="
  1958. width: 200px;
  1959. height: 140px;
  1960. margin: 10px 10px 10px 0;
  1961. box-shadow: 0 0 6px 1px #dfdada;
  1962. "
  1963. v-for="(w, wIndex) in workStudent[toolIndex]"
  1964. :key="wIndex"
  1965. >
  1966. <div class="workImg">
  1967. <img
  1968. :src="w.works"
  1969. @click="previewImg(w.works)"
  1970. alt
  1971. />
  1972. <div
  1973. class="answerScore"
  1974. v-if="w.score"
  1975. @click.stop="openScore(w)"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4,
  1979. }"
  1980. >
  1981. {{ JSON.parse(w.score).wScore }}分
  1982. </div>
  1983. <div
  1984. class="answerScore"
  1985. @click.stop="openScore(w)"
  1986. v-else-if="courseDetail.userid == userid"
  1987. :class="{
  1988. rightW:
  1989. w.userid == userid || tType == 1 || tType == 4,
  1990. }"
  1991. >
  1992. 评分
  1993. </div>
  1994. <img
  1995. class="deleteImg"
  1996. src="../assets/deleteworks.png"
  1997. v-if="
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. "
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. <div class="worksName">
  2005. <div>{{ w.sName }}</div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(3) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="works"
  2032. style="
  2033. width: 200px;
  2034. height: 140px;
  2035. margin: 10px 10px 10px 0;
  2036. box-shadow: 0 0 6px 1px #dfdada;
  2037. "
  2038. v-for="(w, wIndex) in workStudent[toolIndex]"
  2039. :key="wIndex"
  2040. >
  2041. <div class="workImg">
  2042. <img
  2043. :src="w.works"
  2044. @click="previewImg(w.works)"
  2045. alt
  2046. />
  2047. <div
  2048. class="answerScore"
  2049. v-if="w.score"
  2050. @click.stop="openScore(w)"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid || tType == 1 || tType == 4,
  2054. }"
  2055. >
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div
  2059. class="answerScore"
  2060. @click.stop="openScore(w)"
  2061. v-else-if="courseDetail.userid == userid"
  2062. :class="{
  2063. rightW:
  2064. w.userid == userid || tType == 1 || tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(6) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">作业预览</span>
  2099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="w.works"
  2119. @click="previewImg(w.works)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(7) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2175. </div>
  2176. <div
  2177. class="worksDetailBox"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <div
  2181. class="works"
  2182. style="
  2183. width: 200px;
  2184. height: 140px;
  2185. margin: 10px 10px 10px 0;
  2186. box-shadow: 0 0 6px 1px #dfdada;
  2187. "
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. >
  2191. <div class="workImg">
  2192. <img
  2193. :src="w.works"
  2194. @click="previewImg(w.works)"
  2195. alt
  2196. />
  2197. <div
  2198. class="answerScore"
  2199. v-if="w.score"
  2200. @click.stop="openScore(w)"
  2201. :class="{
  2202. rightW:
  2203. w.userid == userid || tType == 1 || tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid || tType == 1 || tType == 4,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. tType == 2 &&
  2239. !sIsOpen &&
  2240. tool.tool.indexOf(26) != -1
  2241. "
  2242. class="worksBox"
  2243. >
  2244. <div
  2245. class="zuoyeYulan"
  2246. v-if="workStudent[toolIndex].length > 0"
  2247. >
  2248. <span class="worksTitle">作业预览</span>
  2249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2250. </div>
  2251. <div
  2252. class="worksDetailBox"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <div
  2256. class="works"
  2257. style="
  2258. width: 200px;
  2259. height: 140px;
  2260. margin: 10px 10px 10px 0;
  2261. box-shadow: 0 0 6px 1px #dfdada;
  2262. "
  2263. v-for="(w, wIndex) in workStudent[toolIndex]"
  2264. :key="wIndex"
  2265. >
  2266. <div class="workImg">
  2267. <img
  2268. :src="w.works"
  2269. @click="previewImg(w.works)"
  2270. alt
  2271. />
  2272. <img
  2273. class="deleteImg"
  2274. src="../assets/deleteworks.png"
  2275. v-if="
  2276. w.userid == userid || tType == 1 || tType == 4
  2277. "
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="worksName">
  2283. <div>{{ w.sName }}</div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div
  2289. v-if="
  2290. tType &&
  2291. ((tType == 2 && sIsOpen == true) ||
  2292. tType == 1 ||
  2293. tType == 4) &&
  2294. tool.tool.indexOf(16) != -1
  2295. "
  2296. class="worksBox"
  2297. >
  2298. <div
  2299. class="zuoyeYulan"
  2300. v-if="
  2301. worksStudent.length &&
  2302. worksStudent[toolIndex].length > 0
  2303. "
  2304. >
  2305. <div class="worksTop">
  2306. <div>作业预览</div>
  2307. <div
  2308. class="corOpen"
  2309. @click="contract(toolIndex)"
  2310. v-if="
  2311. worksStudent[toolIndex].length > 6 &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. "
  2314. >
  2315. 折叠
  2316. </div>
  2317. <div
  2318. class="corOpen"
  2319. @click="contract(toolIndex)"
  2320. v-if="isCloseList[toolIndex].isClose == 1"
  2321. >
  2322. 展开
  2323. </div>
  2324. </div>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="group_workBox"
  2329. v-for="(g, gindex) in courseGroup.group"
  2330. :key="gindex"
  2331. >
  2332. <div class="group_box">
  2333. <div class="group_title">
  2334. <el-tooltip
  2335. class="item"
  2336. effect="light"
  2337. :content="g.name"
  2338. placement="top"
  2339. >
  2340. <div class="group_name">{{ g.name }}</div>
  2341. </el-tooltip>
  2342. </div>
  2343. <div
  2344. class="group_work"
  2345. v-if="
  2346. g.works &&
  2347. g.works.length &&
  2348. g.works[toolIndex].length
  2349. "
  2350. >
  2351. <div
  2352. class="works"
  2353. style="
  2354. width: 200px;
  2355. height: 140px;
  2356. margin: 10px 10px 10px 0;
  2357. border-radius: 15px;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in g.works[toolIndex]"
  2361. :key="wIndex"
  2362. :class="w.type == 1 ? 'isTypeOne' : ''"
  2363. >
  2364. <div class="workImg" v-if="w.type == 0">
  2365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2366. <img
  2367. :src="w.works"
  2368. @click="previewImg(w.works)"
  2369. alt
  2370. />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid ||
  2378. tType == 1 ||
  2379. tType == 4 ||
  2380. w.ateacher == userid,
  2381. }"
  2382. >
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div
  2386. class="answerScore"
  2387. @click.stop="openScore(w)"
  2388. v-else-if="courseDetail.userid == userid"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid ||
  2392. tType == 1 ||
  2393. tType == 4 ||
  2394. w.ateacher == userid,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="workImg" v-if="w.type == 1">
  2410. <img :src="word" @click="openFile(w.works)" alt />
  2411. <!-- @click="openFile(w.works)" -->
  2412. <div
  2413. class="answerScore"
  2414. v-if="w.score"
  2415. @click.stop="openScore(w)"
  2416. :class="{
  2417. rightW:
  2418. w.userid == userid ||
  2419. tType == 1 ||
  2420. tType == 4 ||
  2421. w.ateacher == userid,
  2422. }"
  2423. >
  2424. {{ JSON.parse(w.score).wScore }}分
  2425. </div>
  2426. <div
  2427. class="answerScore"
  2428. @click.stop="openScore(w)"
  2429. v-else-if="courseDetail.userid == userid"
  2430. :class="{
  2431. rightW:
  2432. w.userid == userid ||
  2433. tType == 1 ||
  2434. tType == 4 ||
  2435. w.ateacher == userid,
  2436. }"
  2437. >
  2438. 评分
  2439. </div>
  2440. <img
  2441. class="deleteImg"
  2442. src="../assets/deleteworks.png"
  2443. v-if="
  2444. w.userid == userid || tType == 1 || tType == 4
  2445. "
  2446. @click.stop="deleteWorks(w.wid)"
  2447. alt
  2448. />
  2449. </div>
  2450. <div class="workImg" v-if="w.type == 3">
  2451. <img
  2452. style="cursor: pointer"
  2453. :src="video"
  2454. @click="openVideo(w)"
  2455. alt
  2456. />
  2457. <!-- @click="openVideo(w.works)" -->
  2458. <div
  2459. class="answerScore"
  2460. v-if="w.score"
  2461. @click.stop="openScore(w)"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid ||
  2479. tType == 1 ||
  2480. tType == 4 ||
  2481. w.ateacher == userid,
  2482. }"
  2483. >
  2484. 评分
  2485. </div>
  2486. <img
  2487. class="deleteImg"
  2488. src="../assets/deleteworks.png"
  2489. v-if="
  2490. w.userid == userid || tType == 1 || tType == 4
  2491. "
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. <div class="workImg" v-if="w.type == 12">
  2497. <img
  2498. style="cursor: pointer"
  2499. :src="word2"
  2500. @click="downloadFile(w.works)"
  2501. alt
  2502. />
  2503. <!-- @click="openVideo(w.works)" -->
  2504. <div
  2505. class="answerScore"
  2506. v-if="w.score"
  2507. @click.stop="openScore(w)"
  2508. :class="{
  2509. rightW:
  2510. w.userid == userid ||
  2511. tType == 1 ||
  2512. tType == 4 ||
  2513. w.ateacher == userid,
  2514. }"
  2515. >
  2516. {{ JSON.parse(w.score).wScore }}分
  2517. </div>
  2518. <div
  2519. class="answerScore"
  2520. @click.stop="openScore(w)"
  2521. v-else-if="courseDetail.userid == userid"
  2522. :class="{
  2523. rightW:
  2524. w.userid == userid ||
  2525. tType == 1 ||
  2526. tType == 4 ||
  2527. w.ateacher == userid,
  2528. }"
  2529. >
  2530. 评分
  2531. </div>
  2532. <img
  2533. class="deleteImg"
  2534. src="../assets/deleteworks.png"
  2535. v-if="
  2536. w.userid == userid || tType == 1 || tType == 4
  2537. "
  2538. @click.stop="deleteWorks(w.wid)"
  2539. alt
  2540. />
  2541. </div>
  2542. <div class="comment" style="min-width: 200px">
  2543. <div class="worksName">
  2544. <div>{{ w.sName }}</div>
  2545. </div>
  2546. <div class="commentList">
  2547. <div class="commentList">
  2548. <div
  2549. class="commentImg"
  2550. @click="
  2551. isLikes(w.wid, userid, 1, null, w.isLikes)
  2552. "
  2553. >
  2554. <img
  2555. :src="w.isLikes == true ? likes : noLikes"
  2556. alt=""
  2557. />
  2558. </div>
  2559. <div>{{ w.likesCount }}</div>
  2560. </div>
  2561. <div
  2562. class="commentList"
  2563. style="margin-right: 15px"
  2564. >
  2565. <div
  2566. class="commentImg"
  2567. @click="
  2568. commentOther(
  2569. w,
  2570. toolIndex,
  2571. wIndex,
  2572. null,
  2573. g.id
  2574. )
  2575. "
  2576. >
  2577. <img
  2578. src="../assets/icon/comment/comment.png"
  2579. alt=""
  2580. />
  2581. </div>
  2582. <div>{{ w.commentCount }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="group_work" v-else>暂无提交作业</div>
  2589. </div>
  2590. </div>
  2591. <div
  2592. class="worksDetailBox"
  2593. v-if="
  2594. worksStudent.length &&
  2595. worksStudent[toolIndex].length > 0
  2596. "
  2597. >
  2598. <div
  2599. class="works"
  2600. style="
  2601. width: 200px;
  2602. height: 140px;
  2603. margin: 10px 10px 10px 0;
  2604. border-radius: 15px;
  2605. box-shadow: 0 0 6px 1px #dfdada;
  2606. "
  2607. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2608. 0
  2609. ? worksStudent[toolIndex]
  2610. : worksStudent[toolIndex].slice(0, 6)"
  2611. :key="wIndex"
  2612. :class="w.type == 1 ? 'isTypeOne' : ''"
  2613. >
  2614. <div class="workImg" v-if="w.type == 0">
  2615. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2616. <img
  2617. :src="w.works"
  2618. @click="previewImg(w.works)"
  2619. alt
  2620. />
  2621. <div
  2622. class="answerScore"
  2623. v-if="w.score"
  2624. @click.stop="openScore(w)"
  2625. :class="{
  2626. rightW:
  2627. w.userid == userid ||
  2628. tType == 1 ||
  2629. tType == 4 ||
  2630. w.ateacher == userid,
  2631. }"
  2632. >
  2633. {{ JSON.parse(w.score).wScore }}分
  2634. </div>
  2635. <div
  2636. class="answerScore"
  2637. @click.stop="openScore(w)"
  2638. v-else-if="courseDetail.userid == userid"
  2639. :class="{
  2640. rightW:
  2641. w.userid == userid ||
  2642. tType == 1 ||
  2643. tType == 4 ||
  2644. w.ateacher == userid,
  2645. }"
  2646. >
  2647. 评分
  2648. </div>
  2649. <img
  2650. class="deleteImg"
  2651. src="../assets/deleteworks.png"
  2652. v-if="
  2653. w.userid == userid || tType == 1 || tType == 4
  2654. "
  2655. @click.stop="deleteWorks(w.wid)"
  2656. alt
  2657. />
  2658. </div>
  2659. <div class="workImg" v-if="w.type == 1">
  2660. <img :src="word" @click="openFile(w.works)" alt />
  2661. <!-- @click="openFile(w.works)" -->
  2662. <div
  2663. class="answerScore"
  2664. v-if="w.score"
  2665. @click.stop="openScore(w)"
  2666. :class="{
  2667. rightW:
  2668. w.userid == userid ||
  2669. tType == 1 ||
  2670. tType == 4 ||
  2671. w.ateacher == userid,
  2672. }"
  2673. >
  2674. {{ JSON.parse(w.score).wScore }}分
  2675. </div>
  2676. <div
  2677. class="answerScore"
  2678. @click.stop="openScore(w)"
  2679. v-else-if="courseDetail.userid == userid"
  2680. :class="{
  2681. rightW:
  2682. w.userid == userid ||
  2683. tType == 1 ||
  2684. tType == 4 ||
  2685. w.ateacher == userid,
  2686. }"
  2687. >
  2688. 评分
  2689. </div>
  2690. <img
  2691. class="deleteImg"
  2692. src="../assets/deleteworks.png"
  2693. v-if="
  2694. w.userid == userid || tType == 1 || tType == 4
  2695. "
  2696. @click.stop="deleteWorks(w.wid)"
  2697. alt
  2698. />
  2699. </div>
  2700. <div class="workImg" v-if="w.type == 3">
  2701. <img
  2702. style="cursor: pointer"
  2703. :src="video"
  2704. @click="openVideo(w)"
  2705. alt
  2706. />
  2707. <!-- @click="openVideo(w.works)" -->
  2708. <div
  2709. class="answerScore"
  2710. v-if="w.score"
  2711. @click.stop="openScore(w)"
  2712. :class="{
  2713. rightW:
  2714. w.userid == userid ||
  2715. tType == 1 ||
  2716. tType == 4 ||
  2717. w.ateacher == userid,
  2718. }"
  2719. >
  2720. {{ JSON.parse(w.score).wScore }}分
  2721. </div>
  2722. <div
  2723. class="answerScore"
  2724. @click.stop="openScore(w)"
  2725. v-else-if="courseDetail.userid == userid"
  2726. :class="{
  2727. rightW:
  2728. w.userid == userid ||
  2729. tType == 1 ||
  2730. tType == 4 ||
  2731. w.ateacher == userid,
  2732. }"
  2733. >
  2734. 评分
  2735. </div>
  2736. <img
  2737. class="deleteImg"
  2738. src="../assets/deleteworks.png"
  2739. v-if="
  2740. w.userid == userid || tType == 1 || tType == 4
  2741. "
  2742. @click.stop="deleteWorks(w.wid)"
  2743. alt
  2744. />
  2745. </div>
  2746. <div class="workImg" v-if="w.type == 12">
  2747. <img
  2748. style="cursor: pointer"
  2749. :src="word2"
  2750. @click="downloadFile(w.works)"
  2751. alt
  2752. />
  2753. <!-- @click="openVideo(w.works)" -->
  2754. <div
  2755. class="answerScore"
  2756. v-if="w.score"
  2757. @click.stop="openScore(w)"
  2758. :class="{
  2759. rightW:
  2760. w.userid == userid ||
  2761. tType == 1 ||
  2762. tType == 4 ||
  2763. w.ateacher == userid,
  2764. }"
  2765. >
  2766. {{ JSON.parse(w.score).wScore }}分
  2767. </div>
  2768. <div
  2769. class="answerScore"
  2770. @click.stop="openScore(w)"
  2771. v-else-if="courseDetail.userid == userid"
  2772. :class="{
  2773. rightW:
  2774. w.userid == userid ||
  2775. tType == 1 ||
  2776. tType == 4 ||
  2777. w.ateacher == userid,
  2778. }"
  2779. >
  2780. 评分
  2781. </div>
  2782. <img
  2783. class="deleteImg"
  2784. src="../assets/deleteworks.png"
  2785. v-if="
  2786. w.userid == userid || tType == 1 || tType == 4
  2787. "
  2788. @click.stop="deleteWorks(w.wid)"
  2789. alt
  2790. />
  2791. </div>
  2792. <div class="comment" style="min-width: 200px">
  2793. <div class="worksName">
  2794. <div>{{ w.sName }}</div>
  2795. </div>
  2796. <div class="commentList">
  2797. <div class="commentList">
  2798. <div
  2799. class="commentImg"
  2800. @click="
  2801. isLikes(w.wid, userid, 1, null, w.isLikes)
  2802. "
  2803. >
  2804. <img
  2805. :src="w.isLikes == true ? likes : noLikes"
  2806. alt=""
  2807. />
  2808. </div>
  2809. <div>{{ w.likesCount }}</div>
  2810. </div>
  2811. <div class="commentList" style="margin-right: 15px">
  2812. <div
  2813. class="commentImg"
  2814. @click="commentOther(w, toolIndex, wIndex)"
  2815. >
  2816. <img
  2817. src="../assets/icon/comment/comment.png"
  2818. alt=""
  2819. />
  2820. </div>
  2821. <div>{{ w.commentCount }}</div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2828. 未提交
  2829. </div>
  2830. <div
  2831. class="noWorksS"
  2832. v-if="noWorksS && noWorksS[toolIndex].length"
  2833. >
  2834. <div
  2835. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2836. :key="sIndex"
  2837. class="noWorksName"
  2838. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2839. >
  2840. {{ s.student }}
  2841. </div>
  2842. </div>
  2843. </div>
  2844. <div
  2845. v-if="
  2846. tType &&
  2847. ((tType == 2 && sIsOpen == true) ||
  2848. tType == 1 ||
  2849. tType == 4) &&
  2850. tool.tool.indexOf(32) != -1
  2851. "
  2852. class="worksBox"
  2853. >
  2854. <div
  2855. class="zuoyeYulan"
  2856. v-if="
  2857. worksStudent.length &&
  2858. worksStudent[toolIndex].length > 0
  2859. "
  2860. >
  2861. <div class="worksTop">
  2862. <div>作业预览</div>
  2863. <div
  2864. class="corOpen"
  2865. @click="contract(toolIndex)"
  2866. v-if="
  2867. worksStudent[toolIndex].length > 6 &&
  2868. isCloseList[toolIndex].isClose == 0
  2869. "
  2870. >
  2871. 折叠
  2872. </div>
  2873. <div
  2874. class="corOpen"
  2875. @click="contract(toolIndex)"
  2876. v-if="isCloseList[toolIndex].isClose == 1"
  2877. >
  2878. 展开
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div
  2883. class="worksDetailBox"
  2884. v-if="
  2885. worksStudent.length &&
  2886. worksStudent[toolIndex].length > 0
  2887. "
  2888. >
  2889. <div
  2890. class="works"
  2891. style="
  2892. width: 200px;
  2893. height: 140px;
  2894. margin: 10px 10px 10px 0;
  2895. border-radius: 15px;
  2896. box-shadow: 0 0 6px 1px #dfdada;
  2897. "
  2898. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2899. 0
  2900. ? worksStudent[toolIndex]
  2901. : worksStudent[toolIndex].slice(0, 6)"
  2902. :key="wIndex"
  2903. :class="w.type == 1 ? 'isTypeOne' : ''"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="word2"
  2908. @click="downloadFile(w.works)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="comment" style="min-width: 200px">
  2950. <div class="worksName">
  2951. <div>{{ w.sName }}</div>
  2952. </div>
  2953. <div class="commentList">
  2954. <div class="commentList">
  2955. <div
  2956. class="commentImg"
  2957. @click="
  2958. isLikes(w.wid, userid, 1, null, w.isLikes)
  2959. "
  2960. >
  2961. <img
  2962. :src="w.isLikes == true ? likes : noLikes"
  2963. alt=""
  2964. />
  2965. </div>
  2966. <div>{{ w.likesCount }}</div>
  2967. </div>
  2968. <div class="commentList" style="margin-right: 15px">
  2969. <div
  2970. class="commentImg"
  2971. @click="commentOther(w, toolIndex, wIndex)"
  2972. >
  2973. <img
  2974. src="../assets/icon/comment/comment.png"
  2975. alt=""
  2976. />
  2977. </div>
  2978. <div>{{ w.commentCount }}</div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. </div>
  2983. </div>
  2984. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2985. 未提交
  2986. </div>
  2987. <div
  2988. class="noWorksS"
  2989. v-if="noWorksS && noWorksS[toolIndex].length"
  2990. >
  2991. <div
  2992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2993. :key="sIndex"
  2994. class="noWorksName"
  2995. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2996. >
  2997. {{ s.student }}
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(57) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. worksStudent[toolIndex].length > 6 &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. </div>
  3039. <div
  3040. class="worksDetailBox"
  3041. v-if="
  3042. worksStudent.length &&
  3043. worksStudent[toolIndex].length > 0
  3044. "
  3045. >
  3046. <div
  3047. class="works"
  3048. style="
  3049. width: 200px;
  3050. height: 140px;
  3051. margin: 10px 10px 10px 0;
  3052. border-radius: 15px;
  3053. box-shadow: 0 0 6px 1px #dfdada;
  3054. "
  3055. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3056. 0
  3057. ? worksStudent[toolIndex]
  3058. : worksStudent[toolIndex].slice(0, 6)"
  3059. :key="wIndex"
  3060. :class="w.type == 1 ? 'isTypeOne' : ''"
  3061. >
  3062. <div class="workImg">
  3063. <img
  3064. :src="word2"
  3065. @click="downloadFile(w.works)"
  3066. v-if="w.type == 12"
  3067. alt
  3068. />
  3069. <img
  3070. :src="word2"
  3071. @click="
  3072. openCocoPi(57, toolIndex, w.userid, w.sName)
  3073. "
  3074. v-else-if="w.type == 15"
  3075. alt
  3076. />
  3077. <div
  3078. class="answerScore"
  3079. v-if="w.score"
  3080. @click.stop="openScore(w)"
  3081. :class="{
  3082. rightW:
  3083. w.userid == userid ||
  3084. tType == 1 ||
  3085. tType == 4 ||
  3086. w.ateacher == userid,
  3087. }"
  3088. >
  3089. {{ JSON.parse(w.score).wScore }}分
  3090. </div>
  3091. <div
  3092. class="answerScore"
  3093. @click.stop="openScore(w)"
  3094. v-else-if="courseDetail.userid == userid"
  3095. :class="{
  3096. rightW:
  3097. w.userid == userid ||
  3098. tType == 1 ||
  3099. tType == 4 ||
  3100. w.ateacher == userid,
  3101. }"
  3102. >
  3103. 评分
  3104. </div>
  3105. <img
  3106. class="deleteImg"
  3107. src="../assets/deleteworks.png"
  3108. v-if="
  3109. w.userid == userid || tType == 1 || tType == 4
  3110. "
  3111. @click.stop="deleteWorks(w.wid)"
  3112. alt
  3113. />
  3114. </div>
  3115. <div class="comment" style="min-width: 200px">
  3116. <div class="worksName">
  3117. <div>{{ w.sName }}</div>
  3118. </div>
  3119. <div class="commentList">
  3120. <div class="commentList">
  3121. <div
  3122. class="commentImg"
  3123. @click="
  3124. isLikes(w.wid, userid, 1, null, w.isLikes)
  3125. "
  3126. >
  3127. <img
  3128. :src="w.isLikes == true ? likes : noLikes"
  3129. alt=""
  3130. />
  3131. </div>
  3132. <div>{{ w.likesCount }}</div>
  3133. </div>
  3134. <div class="commentList" style="margin-right: 15px">
  3135. <div
  3136. class="commentImg"
  3137. @click="commentOther(w, toolIndex, wIndex)"
  3138. >
  3139. <img
  3140. src="../assets/icon/comment/comment.png"
  3141. alt=""
  3142. />
  3143. </div>
  3144. <div>{{ w.commentCount }}</div>
  3145. </div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3151. 未提交
  3152. </div>
  3153. <div
  3154. class="noWorksS"
  3155. v-if="noWorksS && noWorksS[toolIndex].length"
  3156. >
  3157. <div
  3158. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3159. :key="sIndex"
  3160. class="noWorksName"
  3161. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3162. >
  3163. {{ s.student }}
  3164. </div>
  3165. </div>
  3166. </div>
  3167. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3168. <div
  3169. class="zuoyeYulan"
  3170. v-if="
  3171. worksStudent.length &&
  3172. worksStudent[toolIndex].length > 0
  3173. "
  3174. >
  3175. <span class="worksTitle">作业预览</span>
  3176. <div
  3177. class="corOpen"
  3178. @click="contract(toolIndex)"
  3179. v-if="
  3180. worksStudent[toolIndex].length > 6 &&
  3181. isCloseList[toolIndex].isClose == 0
  3182. "
  3183. >
  3184. 折叠
  3185. </div>
  3186. <div
  3187. class="corOpen"
  3188. @click="contract(toolIndex)"
  3189. v-if="isCloseList[toolIndex].isClose == 1"
  3190. >
  3191. 展开
  3192. </div>
  3193. </div>
  3194. <div
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3211. 0
  3212. ? worksStudent[toolIndex]
  3213. : worksStudent[toolIndex].slice(0, 6)"
  3214. :key="wIndex"
  3215. :class="w.type == 1 ? 'isTypeOne' : ''"
  3216. >
  3217. <div class="workImg" v-if="w.type == 0">
  3218. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3219. <img
  3220. :src="w.works"
  3221. @click="previewImg(w.works)"
  3222. alt
  3223. />
  3224. <div
  3225. class="answerScore"
  3226. v-if="w.score"
  3227. @click.stop="openScore(w)"
  3228. :class="{
  3229. rightW:
  3230. w.userid == userid ||
  3231. tType == 1 ||
  3232. tType == 4 ||
  3233. w.ateacher == userid,
  3234. }"
  3235. >
  3236. {{ JSON.parse(w.score).wScore }}分
  3237. </div>
  3238. <div
  3239. class="answerScore"
  3240. @click.stop="openScore(w)"
  3241. v-else-if="courseDetail.userid == userid"
  3242. :class="{
  3243. rightW:
  3244. w.userid == userid ||
  3245. tType == 1 ||
  3246. tType == 4 ||
  3247. w.ateacher == userid,
  3248. }"
  3249. >
  3250. 评分
  3251. </div>
  3252. <img
  3253. class="deleteImg"
  3254. src="../assets/deleteworks.png"
  3255. v-if="
  3256. w.userid == userid || tType == 1 || tType == 4
  3257. "
  3258. @click.stop="deleteWorks(w.wid)"
  3259. alt
  3260. />
  3261. </div>
  3262. <div
  3263. class="workImg"
  3264. style="cursor: pointer"
  3265. v-if="w.type == 1"
  3266. >
  3267. <img :src="word" @click="openFile(w.works)" alt />
  3268. <!-- @click="openFile(w.works)" -->
  3269. <div
  3270. class="answerScore"
  3271. v-if="w.score"
  3272. @click.stop="openScore(w)"
  3273. :class="{
  3274. rightW:
  3275. w.userid == userid ||
  3276. tType == 1 ||
  3277. tType == 4 ||
  3278. w.ateacher == userid,
  3279. }"
  3280. >
  3281. {{ JSON.parse(w.score).wScore }}分
  3282. </div>
  3283. <div
  3284. class="answerScore"
  3285. @click.stop="openScore(w)"
  3286. v-else-if="courseDetail.userid == userid"
  3287. :class="{
  3288. rightW:
  3289. w.userid == userid ||
  3290. tType == 1 ||
  3291. tType == 4 ||
  3292. w.ateacher == userid,
  3293. }"
  3294. >
  3295. 评分
  3296. </div>
  3297. <img
  3298. class="deleteImg"
  3299. src="../assets/deleteworks.png"
  3300. v-if="
  3301. w.userid == userid || tType == 1 || tType == 4
  3302. "
  3303. @click.stop="deleteWorks(w.wid)"
  3304. alt
  3305. />
  3306. </div>
  3307. <div class="workImg" v-if="w.type == 3">
  3308. <img
  3309. style="cursor: pointer"
  3310. :src="video"
  3311. @click="openVideo(w)"
  3312. alt
  3313. />
  3314. <!-- @click="openVideo(w.works)" -->
  3315. <div
  3316. class="answerScore"
  3317. v-if="w.score"
  3318. @click.stop="openScore(w)"
  3319. :class="{
  3320. rightW:
  3321. w.userid == userid ||
  3322. tType == 1 ||
  3323. tType == 4 ||
  3324. w.ateacher == userid,
  3325. }"
  3326. >
  3327. {{ JSON.parse(w.score).wScore }}分
  3328. </div>
  3329. <div
  3330. class="answerScore"
  3331. @click.stop="openScore(w)"
  3332. v-else-if="courseDetail.userid == userid"
  3333. :class="{
  3334. rightW:
  3335. w.userid == userid ||
  3336. tType == 1 ||
  3337. tType == 4 ||
  3338. w.ateacher == userid,
  3339. }"
  3340. >
  3341. 评分
  3342. </div>
  3343. <img
  3344. class="deleteImg"
  3345. src="../assets/deleteworks.png"
  3346. v-if="
  3347. w.userid == userid || tType == 1 || tType == 4
  3348. "
  3349. @click.stop="deleteWorks(w.wid)"
  3350. alt
  3351. />
  3352. </div>
  3353. <div class="comment" style="min-width: 200px">
  3354. <div class="worksName">
  3355. <div
  3356. style="cursor: pointer"
  3357. @click="
  3358. openSname(w.sName, w.wid, toolIndex, w.userid)
  3359. "
  3360. >
  3361. {{ w.sName }}
  3362. </div>
  3363. </div>
  3364. <div class="commentList">
  3365. <div class="commentList">
  3366. <div
  3367. class="commentImg"
  3368. @click="
  3369. isLikes(w.wid, userid, 1, null, w.isLikes)
  3370. "
  3371. >
  3372. <img
  3373. :src="w.isLikes == true ? likes : noLikes"
  3374. alt=""
  3375. />
  3376. </div>
  3377. <div>{{ w.likesCount }}</div>
  3378. </div>
  3379. <div class="commentList" style="margin-right: 15px">
  3380. <div
  3381. class="commentImg"
  3382. @click="commentOther(w, toolIndex, wIndex)"
  3383. >
  3384. <img
  3385. src="../assets/icon/comment/comment.png"
  3386. alt=""
  3387. />
  3388. </div>
  3389. <div>{{ w.commentCount }}</div>
  3390. </div>
  3391. </div>
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3396. 未提交
  3397. </div>
  3398. <div
  3399. class="noWorksS"
  3400. v-if="noWorksS && noWorksS[toolIndex].length"
  3401. >
  3402. <div
  3403. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3404. :key="sIndex"
  3405. class="noWorksName"
  3406. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3407. >
  3408. {{ s.student }}
  3409. </div>
  3410. </div>
  3411. </div>
  3412. <div
  3413. v-if="
  3414. tType &&
  3415. ((tType == 2 && sIsOpen == true) ||
  3416. tType == 1 ||
  3417. tType == 4) &&
  3418. tool.tool.indexOf(4) != -1 &&
  3419. (tool.askJson[0].answer ||
  3420. tool.askJson[0].answer === 0) &&
  3421. checkJson[toolIndex].length
  3422. "
  3423. class="xuan_right_box"
  3424. >
  3425. <div
  3426. class="tool_right_box"
  3427. v-for="(item, index) in tool.askJson"
  3428. :key="index"
  3429. >
  3430. <div style="width: calc(100% - 30px);">
  3431. <el-tooltip
  3432. effect="light"
  3433. :content="index + 1 + '、' + item.askstitle"
  3434. placement="top"
  3435. popper-class="text_tooltip"
  3436. >
  3437. <div
  3438. style="
  3439. width: calc(100% - 130px);
  3440. display: block;
  3441. white-space: nowrap;
  3442. overflow: hidden;
  3443. text-overflow: ellipsis;
  3444. word-break: break-word;
  3445. cursor: pointer;
  3446. "
  3447. >
  3448. {{ index + 1 + "、" + item.askstitle }}
  3449. </div>
  3450. </el-tooltip>
  3451. </div>
  3452. <div class="right_box_xuan">
  3453. <span>正确率</span>
  3454. <span>{{
  3455. (checkJson[toolIndex][index].right
  3456. ? checkJson[toolIndex][index].right
  3457. : 0) + "%"
  3458. }}</span>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div
  3463. class="xuan_right_box"
  3464. style="background: unset; padding: 0 10px"
  3465. v-if="
  3466. tType &&
  3467. ((tType == 2 && sIsOpen == true) ||
  3468. tType == 1 ||
  3469. tType == 4) &&
  3470. tool.tool.indexOf(4) != -1
  3471. "
  3472. >
  3473. <AskStatic
  3474. v-if="
  3475. worksStudent.length &&
  3476. worksStudent[toolIndex].length > 0
  3477. "
  3478. :askJSON="tool"
  3479. :checkJson="checkJson[toolIndex]"
  3480. ></AskStatic>
  3481. </div>
  3482. <div
  3483. v-if="
  3484. tType &&
  3485. ((tType == 2 && sIsOpen == true) ||
  3486. tType == 1 ||
  3487. tType == 4) &&
  3488. tool.tool.indexOf(4) != -1
  3489. "
  3490. class="worksBox"
  3491. >
  3492. <div
  3493. class="zuoyeYulan"
  3494. v-if="
  3495. worksStudent.length &&
  3496. worksStudent[toolIndex].length > 0
  3497. "
  3498. >
  3499. <div class="worksTop">
  3500. <div>作业预览</div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="
  3505. worksStudent[toolIndex].length > 6 &&
  3506. isCloseList[toolIndex].isClose == 0
  3507. "
  3508. >
  3509. 折叠
  3510. </div>
  3511. <div
  3512. class="corOpen"
  3513. @click="contract(toolIndex)"
  3514. v-if="isCloseList[toolIndex].isClose == 1"
  3515. >
  3516. 展开
  3517. </div>
  3518. </div>
  3519. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3520. </div>
  3521. <div>
  3522. <div
  3523. class="worksDetailBox"
  3524. v-if="
  3525. worksStudent.length &&
  3526. worksStudent[toolIndex].length > 0
  3527. "
  3528. >
  3529. <div
  3530. v-for="(w, wIndex) in isCloseList[toolIndex]
  3531. .isClose == 0
  3532. ? worksStudent[toolIndex]
  3533. : worksStudent[toolIndex].slice(0, 6)"
  3534. :key="wIndex"
  3535. class="isWorksName2"
  3536. @click="
  3537. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3538. "
  3539. >
  3540. {{ w.sName }}
  3541. <img
  3542. class="deleteImg deleteImg2"
  3543. src="../assets/deleteworks.png"
  3544. v-if="
  3545. w.userid == userid || tType == 1 || tType == 4
  3546. "
  3547. @click.stop="deleteWorks(w.wid)"
  3548. alt
  3549. />
  3550. </div>
  3551. <!-- <div class="works" style="
  3552. width: 200px;
  3553. height: 140px;
  3554. border-radius: 10px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. overflow: hidden;
  3557. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3558. <div class="workImg">
  3559. <img src="../assets/icon/works/noImg.png" @click="
  3560. openTools(
  3561. 4,
  3562. toolIndex,
  3563. taskCount,
  3564. w.works,
  3565. w.sName
  3566. )
  3567. " alt />
  3568. </div>
  3569. <div class="worksName">
  3570. <div>{{ w.sName }}</div>
  3571. <div>{{ w.time }}</div>
  3572. </div>
  3573. </div> -->
  3574. </div>
  3575. </div>
  3576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3577. 未提交
  3578. </div>
  3579. <div
  3580. class="noWorksS"
  3581. v-if="noWorksS && noWorksS[toolIndex].length"
  3582. >
  3583. <div
  3584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3585. :key="sIndex"
  3586. class="noWorksName"
  3587. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3588. >
  3589. {{ s.student }}
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div
  3594. v-if="
  3595. tType &&
  3596. ((tType == 2 && sIsOpen == true) ||
  3597. tType == 1 ||
  3598. tType == 4) &&
  3599. tool.tool.indexOf(45) != -1 &&
  3600. (tool.testJson.testJson[0].answer ||
  3601. tool.testJson.testJson[0].answer === 0) &&
  3602. checkJson[toolIndex].length
  3603. "
  3604. class="xuan_right_box"
  3605. >
  3606. <div
  3607. class="tool_right_box"
  3608. v-for="(item, index) in tool.testJson.testJson"
  3609. :key="index"
  3610. >
  3611. <div class="right_box_xuan" style="margin-right: 10px">
  3612. <span>正确率</span>
  3613. <span>{{
  3614. (checkJson[toolIndex][index].right
  3615. ? checkJson[toolIndex][index].right
  3616. : 0) + "%"
  3617. }}</span>
  3618. </div>
  3619. <div style="width: calc(100% - 30px);">
  3620. <el-tooltip
  3621. effect="light"
  3622. :content="index + 1 + '、' + item.teststitle"
  3623. placement="top"
  3624. popper-class="text_tooltip"
  3625. >
  3626. <div
  3627. style="
  3628. width: calc(100% - 130px);
  3629. display: block;
  3630. white-space: nowrap;
  3631. overflow: hidden;
  3632. text-overflow: ellipsis;
  3633. word-break: break-word;
  3634. cursor: pointer;
  3635. "
  3636. >
  3637. {{ index + 1 + "、" + item.teststitle }}
  3638. </div>
  3639. </el-tooltip>
  3640. </div>
  3641. </div>
  3642. </div>
  3643. <div
  3644. class="xuan_right_box"
  3645. style="background: unset; padding: 0 10px; width: 91.5%"
  3646. v-if="
  3647. tType &&
  3648. ((tType == 2 && sIsOpen == true) ||
  3649. tType == 1 ||
  3650. tType == 4) &&
  3651. tool.tool.indexOf(45) != -1
  3652. "
  3653. >
  3654. <AskStatic2
  3655. v-if="
  3656. worksStudent.length &&
  3657. worksStudent[toolIndex].length > 0
  3658. "
  3659. :askJSON="tool"
  3660. :checkJson="checkJson[toolIndex]"
  3661. ></AskStatic2>
  3662. </div>
  3663. <div
  3664. v-if="
  3665. tType &&
  3666. ((tType == 2 && sIsOpen == true) ||
  3667. tType == 1 ||
  3668. tType == 4) &&
  3669. tool.tool.indexOf(45) != -1
  3670. "
  3671. class="worksBox"
  3672. >
  3673. <div
  3674. class="zuoyeYulan"
  3675. v-if="
  3676. worksStudent.length &&
  3677. worksStudent[toolIndex].length > 0
  3678. "
  3679. >
  3680. <div class="worksTop">
  3681. <div>作业预览</div>
  3682. <div
  3683. class="corOpen"
  3684. @click="contract(toolIndex)"
  3685. v-if="
  3686. worksStudent[toolIndex].length > 6 &&
  3687. isCloseList[toolIndex].isClose == 0
  3688. "
  3689. >
  3690. 折叠
  3691. </div>
  3692. <div
  3693. class="corOpen"
  3694. @click="contract(toolIndex)"
  3695. v-if="isCloseList[toolIndex].isClose == 1"
  3696. >
  3697. 展开
  3698. </div>
  3699. </div>
  3700. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3701. </div>
  3702. <div>
  3703. <div
  3704. class="worksDetailBox"
  3705. v-if="
  3706. worksStudent.length &&
  3707. worksStudent[toolIndex].length > 0
  3708. "
  3709. >
  3710. <div
  3711. v-for="(w, wIndex) in isCloseList[toolIndex]
  3712. .isClose == 0
  3713. ? worksStudent[toolIndex]
  3714. : worksStudent[toolIndex].slice(0, 6)"
  3715. :key="wIndex"
  3716. class="isWorksName2"
  3717. @click="
  3718. openTools(
  3719. 45,
  3720. toolIndex,
  3721. taskCount,
  3722. w.works,
  3723. w.sName
  3724. )
  3725. "
  3726. >
  3727. {{ w.sName }}
  3728. <img
  3729. class="deleteImg deleteImg2"
  3730. src="../assets/deleteworks.png"
  3731. v-if="
  3732. w.userid == userid || tType == 1 || tType == 4
  3733. "
  3734. @click.stop="deleteWorks(w.wid)"
  3735. alt
  3736. />
  3737. </div>
  3738. </div>
  3739. </div>
  3740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3741. 未提交
  3742. </div>
  3743. <div
  3744. class="noWorksS"
  3745. v-if="noWorksS && noWorksS[toolIndex].length"
  3746. >
  3747. <div
  3748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3749. :key="sIndex"
  3750. class="noWorksName"
  3751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3752. >
  3753. {{ s.student }}
  3754. </div>
  3755. </div>
  3756. </div>
  3757. <div
  3758. v-if="
  3759. tType &&
  3760. ((tType == 2 && sIsOpen == true) ||
  3761. tType == 1 ||
  3762. tType == 4) &&
  3763. tool.tool.indexOf(69) != -1
  3764. "
  3765. class="worksBox"
  3766. >
  3767. <div
  3768. class="zuoyeYulan"
  3769. v-if="
  3770. worksStudent.length &&
  3771. worksStudent[toolIndex].length > 0
  3772. "
  3773. >
  3774. <div class="worksTop">
  3775. <div>作业预览</div>
  3776. <div
  3777. class="corOpen"
  3778. @click="contract(toolIndex)"
  3779. v-if="
  3780. worksStudent[toolIndex].length > 6 &&
  3781. isCloseList[toolIndex].isClose == 0
  3782. "
  3783. >
  3784. 折叠
  3785. </div>
  3786. <div
  3787. class="corOpen"
  3788. @click="contract(toolIndex)"
  3789. v-if="isCloseList[toolIndex].isClose == 1"
  3790. >
  3791. 展开
  3792. </div>
  3793. </div>
  3794. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3795. </div>
  3796. <div>
  3797. <div
  3798. class="worksDetailBox"
  3799. v-if="
  3800. worksStudent.length &&
  3801. worksStudent[toolIndex].length > 0
  3802. "
  3803. >
  3804. <div
  3805. v-for="(w, wIndex) in isCloseList[toolIndex]
  3806. .isClose == 0
  3807. ? worksStudent[toolIndex]
  3808. : worksStudent[toolIndex].slice(0, 6)"
  3809. :key="wIndex"
  3810. class="isWorksName2"
  3811. style="width: 150px;height: 50px;line-height: 50px;"
  3812. @click="
  3813. openTools(
  3814. 69,
  3815. toolIndex,
  3816. taskCount,
  3817. w.works,
  3818. w.sName,
  3819. w.wid
  3820. )
  3821. "
  3822. >
  3823. {{ w.sName }}
  3824. <img
  3825. v-show="false"
  3826. class="deleteImg1"
  3827. src="../assets/evaEnglish.png"
  3828. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3829. alt
  3830. />
  3831. <img
  3832. class="deleteImg deleteImg2"
  3833. src="../assets/deleteworks.png"
  3834. v-if="
  3835. w.userid == userid || tType == 1 || tType == 4
  3836. "
  3837. @click.stop="deleteWorks(w.wid)"
  3838. alt
  3839. />
  3840. </div>
  3841. </div>
  3842. </div>
  3843. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3844. 未提交
  3845. </div>
  3846. <div
  3847. class="noWorksS"
  3848. v-if="noWorksS && noWorksS[toolIndex].length"
  3849. >
  3850. <div
  3851. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3852. :key="sIndex"
  3853. class="noWorksName"
  3854. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3855. >
  3856. {{ s.student }}
  3857. </div>
  3858. </div>
  3859. </div>
  3860. <div
  3861. v-if="
  3862. tType &&
  3863. ((tType == 2 && sIsOpen == true) ||
  3864. tType == 1 ||
  3865. tType == 4) &&
  3866. tool.tool.indexOf(15) != -1
  3867. "
  3868. class="worksBox"
  3869. >
  3870. <div
  3871. class="zuoyeYulan"
  3872. v-if="
  3873. worksStudent.length &&
  3874. worksStudent[toolIndex].length > 0
  3875. "
  3876. >
  3877. <div class="worksTop">
  3878. <div>作业预览</div>
  3879. <div
  3880. class="corOpen"
  3881. @click="contract(toolIndex)"
  3882. v-if="
  3883. worksStudent[toolIndex].length > 6 &&
  3884. isCloseList[toolIndex].isClose == 0
  3885. "
  3886. >
  3887. 折叠
  3888. </div>
  3889. <div
  3890. class="corOpen"
  3891. @click="contract(toolIndex)"
  3892. v-if="isCloseList[toolIndex].isClose == 1"
  3893. >
  3894. 展开
  3895. </div>
  3896. </div>
  3897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3898. </div>
  3899. <div
  3900. class="group_workBox"
  3901. v-for="(g, gindex) in courseGroup.group"
  3902. :key="gindex"
  3903. >
  3904. <div class="group_box">
  3905. <div class="group_title">
  3906. <el-tooltip
  3907. class="item"
  3908. effect="light"
  3909. :content="g.name"
  3910. placement="top"
  3911. >
  3912. <div class="group_name">{{ g.name }}</div>
  3913. </el-tooltip>
  3914. </div>
  3915. <div
  3916. class="group_work"
  3917. v-if="
  3918. g.works &&
  3919. g.works.length &&
  3920. g.works[toolIndex].length
  3921. "
  3922. >
  3923. <div
  3924. class="works"
  3925. v-for="(w, wIndex) in g.works[toolIndex]"
  3926. :key="wIndex"
  3927. >
  3928. <div
  3929. class="workImg"
  3930. style="
  3931. border-radius: 15px;
  3932. box-shadow: #eee 0px 0px 5px 5px;
  3933. "
  3934. >
  3935. <div
  3936. class="answerBg"
  3937. style="border-radius: 15px 15px 0 0"
  3938. @click="
  3939. commentOther(w, toolIndex, wIndex, null, g.id)
  3940. "
  3941. >
  3942. <div class="answerContent">
  3943. {{ JSON.parse(w.works)[0].answer }}
  3944. </div>
  3945. <div
  3946. class="answerScore"
  3947. v-if="w.score"
  3948. @click.stop="openScore(w)"
  3949. :class="{
  3950. rightW:
  3951. w.userid == userid ||
  3952. tType == 1 ||
  3953. tType == 4,
  3954. }"
  3955. >
  3956. {{ JSON.parse(w.score).wScore }}分
  3957. </div>
  3958. <div
  3959. class="answerScore"
  3960. @click.stop="openScore(w)"
  3961. v-else-if="courseDetail.userid == userid"
  3962. :class="{
  3963. rightW:
  3964. w.userid == userid ||
  3965. tType == 1 ||
  3966. tType == 4,
  3967. }"
  3968. >
  3969. 评分
  3970. </div>
  3971. <img
  3972. class="deleteImg"
  3973. src="../assets/deleteworks.png"
  3974. v-if="
  3975. w.userid == userid ||
  3976. tType == 1 ||
  3977. tType == 4
  3978. "
  3979. @click.stop="deleteWorks(w.wid)"
  3980. alt
  3981. />
  3982. </div>
  3983. <div class="comment">
  3984. <div class="worksName">
  3985. <div>{{ w.sName }}</div>
  3986. </div>
  3987. <div class="commentList">
  3988. <div
  3989. class="commentImg"
  3990. @click="
  3991. isLikes(w.wid, userid, 1, null, w.isLikes)
  3992. "
  3993. >
  3994. <img
  3995. :src="w.isLikes == true ? likes : noLikes"
  3996. alt=""
  3997. />
  3998. </div>
  3999. <div>{{ w.likesCount }}</div>
  4000. </div>
  4001. <div
  4002. class="commentList"
  4003. style="margin-right: 15px"
  4004. >
  4005. <div
  4006. class="commentImg"
  4007. @click="
  4008. commentOther(
  4009. w,
  4010. toolIndex,
  4011. wIndex,
  4012. null,
  4013. g.id
  4014. )
  4015. "
  4016. >
  4017. <img
  4018. src="../assets/icon/comment/comment.png"
  4019. alt=""
  4020. />
  4021. </div>
  4022. <div>{{ w.commentCount }}</div>
  4023. </div>
  4024. </div>
  4025. </div>
  4026. </div>
  4027. </div>
  4028. <div class="group_work" v-else>暂无提交作业</div>
  4029. </div>
  4030. </div>
  4031. <div
  4032. class="worksDetailBox"
  4033. v-if="
  4034. worksStudent.length &&
  4035. worksStudent[toolIndex].length > 0
  4036. "
  4037. >
  4038. <div
  4039. class="works"
  4040. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4041. 0
  4042. ? worksStudent[toolIndex]
  4043. : worksStudent[toolIndex].slice(0, 6)"
  4044. :key="wIndex"
  4045. >
  4046. <div
  4047. class="workImg"
  4048. style="
  4049. border-radius: 15px;
  4050. box-shadow: #eee 0px 0px 5px 5px;
  4051. "
  4052. >
  4053. <!-- <img
  4054. src="../assets/icon/works/noImg.png"
  4055. @click="openTools(15, toolIndex, taskCount, w.works)"
  4056. alt=""
  4057. />-->
  4058. <div
  4059. class="answerBg"
  4060. style="border-radius: 15px 15px 0 0"
  4061. @click="commentOther(w, toolIndex, wIndex)"
  4062. >
  4063. <!-- <div>{{ w.sName }}</div> -->
  4064. <div class="answerContent">
  4065. {{ JSON.parse(w.works)[0].answer }}
  4066. </div>
  4067. <div
  4068. class="answerScore"
  4069. v-if="w.score"
  4070. @click.stop="openScore(w)"
  4071. :class="{
  4072. rightW:
  4073. w.userid == userid ||
  4074. tType == 1 ||
  4075. tType == 4,
  4076. }"
  4077. >
  4078. {{ JSON.parse(w.score).wScore }}分
  4079. </div>
  4080. <div
  4081. class="answerScore"
  4082. @click.stop="openScore(w)"
  4083. v-else-if="courseDetail.userid == userid"
  4084. :class="{
  4085. rightW:
  4086. w.userid == userid ||
  4087. tType == 1 ||
  4088. tType == 4,
  4089. }"
  4090. >
  4091. 评分
  4092. </div>
  4093. <img
  4094. class="deleteImg"
  4095. src="../assets/deleteworks.png"
  4096. v-if="
  4097. w.userid == userid || tType == 1 || tType == 4
  4098. "
  4099. @click.stop="deleteWorks(w.wid)"
  4100. alt
  4101. />
  4102. </div>
  4103. <div class="comment">
  4104. <div class="worksName">
  4105. <div>{{ w.sName }}</div>
  4106. </div>
  4107. <div class="commentList">
  4108. <div
  4109. class="commentImg"
  4110. @click="
  4111. isLikes(w.wid, userid, 1, null, w.isLikes)
  4112. "
  4113. >
  4114. <img
  4115. :src="w.isLikes == true ? likes : noLikes"
  4116. alt=""
  4117. />
  4118. </div>
  4119. <div>{{ w.likesCount }}</div>
  4120. </div>
  4121. <div class="commentList" style="margin-right: 15px">
  4122. <div
  4123. class="commentImg"
  4124. @click="commentOther(w, toolIndex, wIndex)"
  4125. >
  4126. <img
  4127. src="../assets/icon/comment/comment.png"
  4128. alt=""
  4129. />
  4130. </div>
  4131. <div>{{ w.commentCount }}</div>
  4132. </div>
  4133. </div>
  4134. </div>
  4135. </div>
  4136. </div>
  4137. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4138. 未提交
  4139. </div>
  4140. <div
  4141. class="noWorksS"
  4142. v-if="noWorksS && noWorksS[toolIndex].length"
  4143. >
  4144. <div
  4145. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4146. :key="sIndex"
  4147. class="noWorksName"
  4148. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4149. >
  4150. {{ s.student }}
  4151. </div>
  4152. </div>
  4153. </div>
  4154. <div
  4155. v-if="
  4156. tType &&
  4157. ((tType == 2 && sIsOpen == true) ||
  4158. tType == 1 ||
  4159. tType == 4) &&
  4160. tool.tool.indexOf(1) != -1
  4161. "
  4162. class="worksBox"
  4163. >
  4164. <div
  4165. class="zuoyeYulan"
  4166. v-if="
  4167. worksStudent.length &&
  4168. worksStudent[toolIndex].length > 0
  4169. "
  4170. >
  4171. <div class="worksTop">
  4172. <div>作业预览</div>
  4173. <div
  4174. class="corOpen"
  4175. @click="contract(toolIndex)"
  4176. v-if="
  4177. worksStudent[toolIndex].length > 6 &&
  4178. isCloseList[toolIndex].isClose == 0
  4179. "
  4180. >
  4181. 折叠
  4182. </div>
  4183. <div
  4184. class="corOpen"
  4185. @click="contract(toolIndex)"
  4186. v-if="isCloseList[toolIndex].isClose == 1"
  4187. >
  4188. 展开
  4189. </div>
  4190. </div>
  4191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4192. </div>
  4193. <div
  4194. class="group_workBox"
  4195. v-for="(g, gindex) in courseGroup.group"
  4196. :key="gindex"
  4197. >
  4198. <div class="group_box">
  4199. <div class="group_title">
  4200. <el-tooltip
  4201. class="item"
  4202. effect="light"
  4203. :content="g.name"
  4204. placement="top"
  4205. >
  4206. <div class="group_name">{{ g.name }}</div>
  4207. </el-tooltip>
  4208. </div>
  4209. <div
  4210. class="group_work"
  4211. v-if="
  4212. g.works &&
  4213. g.works.length &&
  4214. g.works[toolIndex].length
  4215. "
  4216. >
  4217. <div
  4218. class="works"
  4219. style="
  4220. width: 200px;
  4221. height: 140px;
  4222. margin: 10px 10px 10px 0;
  4223. border-radius: 15px;
  4224. box-shadow: 0 0 6px 1px #dfdada;
  4225. "
  4226. v-for="(w, wIndex) in g.works[toolIndex]"
  4227. :key="wIndex"
  4228. :class="w.type == 1 ? 'isTypeOne' : ''"
  4229. >
  4230. <div class="workImg">
  4231. <img
  4232. :src="w.works"
  4233. @click="previewImg(w.works)"
  4234. alt
  4235. />
  4236. <div
  4237. class="answerScore"
  4238. v-if="w.score"
  4239. @click.stop="openScore(w)"
  4240. :class="{
  4241. rightW:
  4242. w.userid == userid ||
  4243. tType == 1 ||
  4244. tType == 4,
  4245. }"
  4246. >
  4247. {{ JSON.parse(w.score).wScore }}分
  4248. </div>
  4249. <div
  4250. class="answerScore"
  4251. @click.stop="openScore(w)"
  4252. v-else-if="courseDetail.userid == userid"
  4253. :class="{
  4254. rightW:
  4255. w.userid == userid ||
  4256. tType == 1 ||
  4257. tType == 4,
  4258. }"
  4259. >
  4260. 评分
  4261. </div>
  4262. <img
  4263. class="deleteImg"
  4264. src="../assets/deleteworks.png"
  4265. v-if="
  4266. w.userid == userid || tType == 1 || tType == 4
  4267. "
  4268. @click.stop="deleteWorks(w.wid)"
  4269. alt
  4270. />
  4271. </div>
  4272. <div class="comment" style="min-width: 200px">
  4273. <div class="worksName">
  4274. <div>{{ w.sName }}</div>
  4275. </div>
  4276. <div class="commentList">
  4277. <div class="commentList">
  4278. <div
  4279. class="commentImg"
  4280. @click="
  4281. isLikes(w.wid, userid, 1, null, w.isLikes)
  4282. "
  4283. >
  4284. <img
  4285. :src="w.isLikes == true ? likes : noLikes"
  4286. alt=""
  4287. />
  4288. </div>
  4289. <div>{{ w.likesCount }}</div>
  4290. </div>
  4291. <div
  4292. class="commentList"
  4293. style="margin-right: 15px"
  4294. >
  4295. <div
  4296. class="commentImg"
  4297. @click="
  4298. commentOther(
  4299. w,
  4300. toolIndex,
  4301. wIndex,
  4302. null,
  4303. g.id
  4304. )
  4305. "
  4306. >
  4307. <img
  4308. src="../assets/icon/comment/comment.png"
  4309. alt=""
  4310. />
  4311. </div>
  4312. <div>{{ w.commentCount }}</div>
  4313. </div>
  4314. </div>
  4315. </div>
  4316. </div>
  4317. </div>
  4318. <div class="group_work" v-else>暂无提交作业</div>
  4319. </div>
  4320. </div>
  4321. <div
  4322. class="worksDetailBox"
  4323. v-if="
  4324. worksStudent.length &&
  4325. worksStudent[toolIndex].length > 0
  4326. "
  4327. >
  4328. <div
  4329. class="works"
  4330. style="
  4331. width: 200px;
  4332. height: 140px;
  4333. margin: 10px 10px 10px 0;
  4334. border-radius: 15px;
  4335. box-shadow: 0 0 6px 1px #dfdada;
  4336. "
  4337. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4338. 0
  4339. ? worksStudent[toolIndex]
  4340. : worksStudent[toolIndex].slice(0, 6)"
  4341. :key="wIndex"
  4342. >
  4343. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4344. <div class="workImg">
  4345. <img
  4346. :src="w.works"
  4347. @click="previewImg(w.works)"
  4348. alt
  4349. />
  4350. <div
  4351. class="answerScore"
  4352. v-if="w.score"
  4353. @click.stop="openScore(w)"
  4354. :class="{
  4355. rightW:
  4356. w.userid == userid || tType == 1 || tType == 4,
  4357. }"
  4358. >
  4359. {{ JSON.parse(w.score).wScore }}分
  4360. </div>
  4361. <div
  4362. class="answerScore"
  4363. @click.stop="openScore(w)"
  4364. v-else-if="courseDetail.userid == userid"
  4365. :class="{
  4366. rightW:
  4367. w.userid == userid || tType == 1 || tType == 4,
  4368. }"
  4369. >
  4370. 评分
  4371. </div>
  4372. <img
  4373. class="deleteImg"
  4374. src="../assets/deleteworks.png"
  4375. v-if="
  4376. w.userid == userid || tType == 1 || tType == 4
  4377. "
  4378. @click.stop="deleteWorks(w.wid)"
  4379. alt
  4380. />
  4381. </div>
  4382. <div class="comment" style="min-width: 200px">
  4383. <div class="worksName">
  4384. <div>{{ w.sName }}</div>
  4385. </div>
  4386. <div class="commentList">
  4387. <div class="commentList">
  4388. <div
  4389. class="commentImg"
  4390. @click="
  4391. isLikes(w.wid, userid, 1, null, w.isLikes)
  4392. "
  4393. >
  4394. <img
  4395. :src="w.isLikes == true ? likes : noLikes"
  4396. alt=""
  4397. />
  4398. </div>
  4399. <div>{{ w.likesCount }}</div>
  4400. </div>
  4401. <div class="commentList" style="margin-right: 15px">
  4402. <div
  4403. class="commentImg"
  4404. @click="commentOther(w, toolIndex, wIndex)"
  4405. >
  4406. <img
  4407. src="../assets/icon/comment/comment.png"
  4408. alt=""
  4409. />
  4410. </div>
  4411. <div>{{ w.commentCount }}</div>
  4412. </div>
  4413. </div>
  4414. </div>
  4415. </div>
  4416. </div>
  4417. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4418. 未提交
  4419. </div>
  4420. <div
  4421. class="noWorksS"
  4422. v-if="noWorksS && noWorksS[toolIndex].length"
  4423. >
  4424. <div
  4425. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4426. :key="sIndex"
  4427. class="noWorksName"
  4428. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4429. >
  4430. {{ s.student }}
  4431. </div>
  4432. </div>
  4433. </div>
  4434. <div
  4435. v-if="
  4436. tType &&
  4437. ((tType == 2 && sIsOpen == true) ||
  4438. tType == 1 ||
  4439. tType == 4) &&
  4440. tool.tool.indexOf(3) != -1
  4441. "
  4442. class="worksBox"
  4443. >
  4444. <div
  4445. class="zuoyeYulan"
  4446. v-if="
  4447. worksStudent.length &&
  4448. worksStudent[toolIndex].length > 0
  4449. "
  4450. >
  4451. <div class="worksTop">
  4452. <div>作业预览</div>
  4453. <div
  4454. class="corOpen"
  4455. @click="contract(toolIndex)"
  4456. v-if="
  4457. worksStudent[toolIndex].length > 6 &&
  4458. isCloseList[toolIndex].isClose == 0
  4459. "
  4460. >
  4461. 折叠
  4462. </div>
  4463. <div
  4464. class="corOpen"
  4465. @click="contract(toolIndex)"
  4466. v-if="isCloseList[toolIndex].isClose == 1"
  4467. >
  4468. 展开
  4469. </div>
  4470. </div>
  4471. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4472. </div>
  4473. <div
  4474. class="group_workBox"
  4475. v-for="(g, gindex) in courseGroup.group"
  4476. :key="gindex"
  4477. >
  4478. <div class="group_box">
  4479. <div class="group_title">
  4480. <el-tooltip
  4481. class="item"
  4482. effect="light"
  4483. :content="g.name"
  4484. placement="top"
  4485. >
  4486. <div class="group_name">{{ g.name }}</div>
  4487. </el-tooltip>
  4488. </div>
  4489. <div
  4490. class="group_work"
  4491. v-if="
  4492. g.works &&
  4493. g.works.length &&
  4494. g.works[toolIndex].length
  4495. "
  4496. >
  4497. <div
  4498. class="works"
  4499. style="
  4500. width: 200px;
  4501. height: 140px;
  4502. margin: 10px 10px 10px 0;
  4503. border-radius: 15px;
  4504. box-shadow: 0 0 6px 1px #dfdada;
  4505. "
  4506. v-for="(w, wIndex) in g.works[toolIndex]"
  4507. :key="wIndex"
  4508. :class="w.type == 1 ? 'isTypeOne' : ''"
  4509. >
  4510. <div class="workImg">
  4511. <img
  4512. :src="w.works"
  4513. @click="previewImg(w.works)"
  4514. alt
  4515. />
  4516. <div
  4517. class="answerScore"
  4518. v-if="w.score"
  4519. @click.stop="openScore(w)"
  4520. :class="{
  4521. rightW:
  4522. w.userid == userid ||
  4523. tType == 1 ||
  4524. tType == 4,
  4525. }"
  4526. >
  4527. {{ JSON.parse(w.score).wScore }}分
  4528. </div>
  4529. <div
  4530. class="answerScore"
  4531. @click.stop="openScore(w)"
  4532. v-else-if="courseDetail.userid == userid"
  4533. :class="{
  4534. rightW:
  4535. w.userid == userid ||
  4536. tType == 1 ||
  4537. tType == 4,
  4538. }"
  4539. >
  4540. 评分
  4541. </div>
  4542. <img
  4543. class="deleteImg"
  4544. src="../assets/deleteworks.png"
  4545. v-if="
  4546. w.userid == userid || tType == 1 || tType == 4
  4547. "
  4548. @click.stop="deleteWorks(w.wid)"
  4549. alt
  4550. />
  4551. </div>
  4552. <div class="comment" style="min-width: 200px">
  4553. <div class="worksName">
  4554. <div>{{ w.sName }}</div>
  4555. </div>
  4556. <div class="commentList">
  4557. <div class="commentList">
  4558. <div
  4559. class="commentImg"
  4560. @click="
  4561. isLikes(w.wid, userid, 1, null, w.isLikes)
  4562. "
  4563. >
  4564. <img
  4565. :src="w.isLikes == true ? likes : noLikes"
  4566. alt=""
  4567. />
  4568. </div>
  4569. <div>{{ w.likesCount }}</div>
  4570. </div>
  4571. <div
  4572. class="commentList"
  4573. style="margin-right: 15px"
  4574. >
  4575. <div
  4576. class="commentImg"
  4577. @click="
  4578. commentOther(
  4579. w,
  4580. toolIndex,
  4581. wIndex,
  4582. null,
  4583. g.id
  4584. )
  4585. "
  4586. >
  4587. <img
  4588. src="../assets/icon/comment/comment.png"
  4589. alt=""
  4590. />
  4591. </div>
  4592. <div>{{ w.commentCount }}</div>
  4593. </div>
  4594. </div>
  4595. </div>
  4596. </div>
  4597. </div>
  4598. <div class="group_work" v-else>暂无提交作业</div>
  4599. </div>
  4600. </div>
  4601. <div
  4602. class="worksDetailBox"
  4603. v-if="
  4604. worksStudent.length &&
  4605. worksStudent[toolIndex].length > 0
  4606. "
  4607. >
  4608. <div
  4609. class="works"
  4610. style="
  4611. width: 200px;
  4612. height: 140px;
  4613. margin: 10px 10px 10px 0;
  4614. border-radius: 15px;
  4615. box-shadow: 0 0 6px 1px #dfdada;
  4616. "
  4617. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4618. 0
  4619. ? worksStudent[toolIndex]
  4620. : worksStudent[toolIndex].slice(0, 6)"
  4621. :key="wIndex"
  4622. >
  4623. <!-- @click="previewImg(w.works)" -->
  4624. <div class="workImg">
  4625. <img
  4626. :src="w.works"
  4627. @click="previewImg(w.works)"
  4628. alt
  4629. />
  4630. <div
  4631. class="answerScore"
  4632. v-if="w.score"
  4633. @click.stop="openScore(w)"
  4634. :class="{
  4635. rightW:
  4636. w.userid == userid || tType == 1 || tType == 4,
  4637. }"
  4638. >
  4639. {{ JSON.parse(w.score).wScore }}分
  4640. </div>
  4641. <div
  4642. class="answerScore"
  4643. @click.stop="openScore(w)"
  4644. v-else-if="courseDetail.userid == userid"
  4645. :class="{
  4646. rightW:
  4647. w.userid == userid || tType == 1 || tType == 4,
  4648. }"
  4649. >
  4650. 评分
  4651. </div>
  4652. <img
  4653. class="deleteImg"
  4654. src="../assets/deleteworks.png"
  4655. v-if="
  4656. w.userid == userid || tType == 1 || tType == 4
  4657. "
  4658. @click.stop="deleteWorks(w.wid)"
  4659. alt
  4660. />
  4661. </div>
  4662. <div class="comment" style="min-width: 200px">
  4663. <div class="worksName">
  4664. <div>{{ w.sName }}</div>
  4665. </div>
  4666. <div class="commentList">
  4667. <div class="commentList">
  4668. <div
  4669. class="commentImg"
  4670. @click="
  4671. isLikes(w.wid, userid, 1, null, w.isLikes)
  4672. "
  4673. >
  4674. <img
  4675. :src="w.isLikes == true ? likes : noLikes"
  4676. alt=""
  4677. />
  4678. </div>
  4679. <div>{{ w.likesCount }}</div>
  4680. </div>
  4681. <div class="commentList" style="margin-right: 15px">
  4682. <div
  4683. class="commentImg"
  4684. @click="commentOther(w, toolIndex, wIndex)"
  4685. >
  4686. <img
  4687. src="../assets/icon/comment/comment.png"
  4688. alt=""
  4689. />
  4690. </div>
  4691. <div>{{ w.commentCount }}</div>
  4692. </div>
  4693. </div>
  4694. </div>
  4695. </div>
  4696. </div>
  4697. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4698. 未提交
  4699. </div>
  4700. <div
  4701. class="noWorksS"
  4702. v-if="noWorksS && noWorksS[toolIndex].length"
  4703. >
  4704. <div
  4705. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4706. :key="sIndex"
  4707. class="noWorksName"
  4708. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4709. >
  4710. {{ s.student }}
  4711. </div>
  4712. </div>
  4713. </div>
  4714. <div
  4715. v-if="
  4716. tType &&
  4717. ((tType == 2 && sIsOpen == true) ||
  4718. tType == 1 ||
  4719. tType == 4) &&
  4720. tool.tool.indexOf(6) != -1
  4721. "
  4722. class="worksBox"
  4723. >
  4724. <div
  4725. class="zuoyeYulan"
  4726. v-if="
  4727. worksStudent.length &&
  4728. worksStudent[toolIndex].length > 0
  4729. "
  4730. >
  4731. <div class="worksTop">
  4732. <div>作业预览</div>
  4733. <div
  4734. class="corOpen"
  4735. @click="contract(toolIndex)"
  4736. v-if="
  4737. worksStudent[toolIndex].length > 6 &&
  4738. isCloseList[toolIndex].isClose == 0
  4739. "
  4740. >
  4741. 折叠
  4742. </div>
  4743. <div
  4744. class="corOpen"
  4745. @click="contract(toolIndex)"
  4746. v-if="isCloseList[toolIndex].isClose == 1"
  4747. >
  4748. 展开
  4749. </div>
  4750. </div>
  4751. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4752. </div>
  4753. <div
  4754. class="group_workBox"
  4755. v-for="(g, gindex) in courseGroup.group"
  4756. :key="gindex"
  4757. >
  4758. <div class="group_box">
  4759. <div class="group_title">
  4760. <el-tooltip
  4761. class="item"
  4762. effect="light"
  4763. :content="g.name"
  4764. placement="top"
  4765. >
  4766. <div class="group_name">{{ g.name }}</div>
  4767. </el-tooltip>
  4768. </div>
  4769. <div
  4770. class="group_work"
  4771. v-if="
  4772. g.works &&
  4773. g.works.length &&
  4774. g.works[toolIndex].length
  4775. "
  4776. >
  4777. <div
  4778. class="works"
  4779. style="
  4780. width: 200px;
  4781. height: 140px;
  4782. margin: 10px 10px 10px 0;
  4783. border-radius: 15px;
  4784. box-shadow: 0 0 6px 1px #dfdada;
  4785. "
  4786. v-for="(w, wIndex) in g.works[toolIndex]"
  4787. :key="wIndex"
  4788. :class="w.type == 1 ? 'isTypeOne' : ''"
  4789. >
  4790. <div class="workImg">
  4791. <img
  4792. :src="w.works"
  4793. @click="previewImg(w.works)"
  4794. alt
  4795. />
  4796. <div
  4797. class="answerScore"
  4798. v-if="w.score"
  4799. @click.stop="openScore(w)"
  4800. :class="{
  4801. rightW:
  4802. w.userid == userid ||
  4803. tType == 1 ||
  4804. tType == 4,
  4805. }"
  4806. >
  4807. {{ JSON.parse(w.score).wScore }}分
  4808. </div>
  4809. <div
  4810. class="answerScore"
  4811. @click.stop="openScore(w)"
  4812. v-else-if="courseDetail.userid == userid"
  4813. :class="{
  4814. rightW:
  4815. w.userid == userid ||
  4816. tType == 1 ||
  4817. tType == 4,
  4818. }"
  4819. >
  4820. 评分
  4821. </div>
  4822. <img
  4823. class="deleteImg"
  4824. src="../assets/deleteworks.png"
  4825. v-if="
  4826. w.userid == userid || tType == 1 || tType == 4
  4827. "
  4828. @click.stop="deleteWorks(w.wid)"
  4829. alt
  4830. />
  4831. </div>
  4832. <div class="comment" style="min-width: 200px">
  4833. <div class="worksName">
  4834. <div>{{ w.sName }}</div>
  4835. </div>
  4836. <div class="commentList">
  4837. <div class="commentList">
  4838. <div
  4839. class="commentImg"
  4840. @click="
  4841. isLikes(w.wid, userid, 1, null, w.isLikes)
  4842. "
  4843. >
  4844. <img
  4845. :src="w.isLikes == true ? likes : noLikes"
  4846. alt=""
  4847. />
  4848. </div>
  4849. <div>{{ w.likesCount }}</div>
  4850. </div>
  4851. <div
  4852. class="commentList"
  4853. style="margin-right: 15px"
  4854. >
  4855. <div
  4856. class="commentImg"
  4857. @click="
  4858. commentOther(
  4859. w,
  4860. toolIndex,
  4861. wIndex,
  4862. null,
  4863. g.id
  4864. )
  4865. "
  4866. >
  4867. <img
  4868. src="../assets/icon/comment/comment.png"
  4869. alt=""
  4870. />
  4871. </div>
  4872. <div>{{ w.commentCount }}</div>
  4873. </div>
  4874. </div>
  4875. </div>
  4876. </div>
  4877. </div>
  4878. <div class="group_work" v-else>暂无提交作业</div>
  4879. </div>
  4880. </div>
  4881. <div
  4882. class="worksDetailBox"
  4883. v-if="
  4884. worksStudent.length &&
  4885. worksStudent[toolIndex].length > 0
  4886. "
  4887. >
  4888. <div
  4889. class="works"
  4890. style="
  4891. width: 200px;
  4892. height: 140px;
  4893. margin: 10px 10px 10px 0;
  4894. border-radius: 15px;
  4895. box-shadow: 0 0 6px 1px #dfdada;
  4896. "
  4897. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4898. 0
  4899. ? worksStudent[toolIndex]
  4900. : worksStudent[toolIndex].slice(0, 6)"
  4901. :key="wIndex"
  4902. >
  4903. <!-- @click="previewImg(w.works)" -->
  4904. <div class="workImg">
  4905. <img
  4906. :src="w.works"
  4907. @click="previewImg(w.works)"
  4908. alt
  4909. />
  4910. <div
  4911. class="answerScore"
  4912. v-if="w.score"
  4913. @click.stop="openScore(w)"
  4914. :class="{
  4915. rightW:
  4916. w.userid == userid || tType == 1 || tType == 4,
  4917. }"
  4918. >
  4919. {{ JSON.parse(w.score).wScore }}分
  4920. </div>
  4921. <div
  4922. class="answerScore"
  4923. @click.stop="openScore(w)"
  4924. v-else-if="courseDetail.userid == userid"
  4925. :class="{
  4926. rightW:
  4927. w.userid == userid || tType == 1 || tType == 4,
  4928. }"
  4929. >
  4930. 评分
  4931. </div>
  4932. <img
  4933. class="deleteImg"
  4934. src="../assets/deleteworks.png"
  4935. v-if="
  4936. w.userid == userid || tType == 1 || tType == 4
  4937. "
  4938. @click.stop="deleteWorks(w.wid)"
  4939. alt
  4940. />
  4941. </div>
  4942. <div class="comment" style="min-width: 200px">
  4943. <div class="worksName">
  4944. <div>{{ w.sName }}</div>
  4945. </div>
  4946. <div class="commentList">
  4947. <div class="commentList">
  4948. <div
  4949. class="commentImg"
  4950. @click="
  4951. isLikes(w.wid, userid, 1, null, w.isLikes)
  4952. "
  4953. >
  4954. <img
  4955. :src="w.isLikes == true ? likes : noLikes"
  4956. alt=""
  4957. />
  4958. </div>
  4959. <div>{{ w.likesCount }}</div>
  4960. </div>
  4961. <div class="commentList" style="margin-right: 15px">
  4962. <div
  4963. class="commentImg"
  4964. @click="commentOther(w, toolIndex, wIndex)"
  4965. >
  4966. <img
  4967. src="../assets/icon/comment/comment.png"
  4968. alt=""
  4969. />
  4970. </div>
  4971. <div>{{ w.commentCount }}</div>
  4972. </div>
  4973. </div>
  4974. </div>
  4975. </div>
  4976. </div>
  4977. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4978. 未提交
  4979. </div>
  4980. <div
  4981. class="noWorksS"
  4982. v-if="noWorksS && noWorksS[toolIndex].length"
  4983. >
  4984. <div
  4985. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4986. :key="sIndex"
  4987. class="noWorksName"
  4988. >
  4989. {{ s.student }}
  4990. </div>
  4991. </div>
  4992. </div>
  4993. <div
  4994. v-if="
  4995. tType &&
  4996. ((tType == 2 && sIsOpen == true) ||
  4997. tType == 1 ||
  4998. tType == 4) &&
  4999. tool.tool.indexOf(7) != -1
  5000. "
  5001. class="worksBox"
  5002. >
  5003. <div
  5004. class="zuoyeYulan"
  5005. v-if="
  5006. worksStudent.length &&
  5007. worksStudent[toolIndex].length > 0
  5008. "
  5009. >
  5010. <div class="worksTop">
  5011. <div>作业预览</div>
  5012. <div
  5013. class="corOpen"
  5014. @click="contract(toolIndex)"
  5015. v-if="
  5016. worksStudent[toolIndex].length > 6 &&
  5017. isCloseList[toolIndex].isClose == 0
  5018. "
  5019. >
  5020. 折叠
  5021. </div>
  5022. <div
  5023. class="corOpen"
  5024. @click="contract(toolIndex)"
  5025. v-if="isCloseList[toolIndex].isClose == 1"
  5026. >
  5027. 展开
  5028. </div>
  5029. </div>
  5030. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5031. </div>
  5032. <div
  5033. class="group_workBox"
  5034. v-for="(g, gindex) in courseGroup.group"
  5035. :key="gindex"
  5036. >
  5037. <div class="group_box">
  5038. <div class="group_title">
  5039. <el-tooltip
  5040. class="item"
  5041. effect="light"
  5042. :content="g.name"
  5043. placement="top"
  5044. >
  5045. <div class="group_name">{{ g.name }}</div>
  5046. </el-tooltip>
  5047. </div>
  5048. <div
  5049. class="group_work"
  5050. v-if="
  5051. g.works &&
  5052. g.works.length &&
  5053. g.works[toolIndex].length
  5054. "
  5055. >
  5056. <div
  5057. class="works"
  5058. style="
  5059. width: 200px;
  5060. height: 140px;
  5061. margin: 10px 10px 10px 0;
  5062. border-radius: 15px;
  5063. box-shadow: 0 0 6px 1px #dfdada;
  5064. "
  5065. v-for="(w, wIndex) in g.works[toolIndex]"
  5066. :key="wIndex"
  5067. :class="w.type == 1 ? 'isTypeOne' : ''"
  5068. >
  5069. <div class="workImg">
  5070. <img
  5071. :src="w.works"
  5072. @click="previewImg(w.works)"
  5073. alt
  5074. />
  5075. <div
  5076. class="answerScore"
  5077. v-if="w.score"
  5078. @click.stop="openScore(w)"
  5079. :class="{
  5080. rightW:
  5081. w.userid == userid ||
  5082. tType == 1 ||
  5083. tType == 4,
  5084. }"
  5085. >
  5086. {{ JSON.parse(w.score).wScore }}分
  5087. </div>
  5088. <div
  5089. class="answerScore"
  5090. @click.stop="openScore(w)"
  5091. v-else-if="courseDetail.userid == userid"
  5092. :class="{
  5093. rightW:
  5094. w.userid == userid ||
  5095. tType == 1 ||
  5096. tType == 4,
  5097. }"
  5098. >
  5099. 评分
  5100. </div>
  5101. <img
  5102. class="deleteImg"
  5103. src="../assets/deleteworks.png"
  5104. v-if="
  5105. w.userid == userid || tType == 1 || tType == 4
  5106. "
  5107. @click.stop="deleteWorks(w.wid)"
  5108. alt
  5109. />
  5110. </div>
  5111. <div class="comment" style="min-width: 200px">
  5112. <div class="worksName">
  5113. <div>{{ w.sName }}</div>
  5114. </div>
  5115. <div class="commentList">
  5116. <div class="commentList">
  5117. <div
  5118. class="commentImg"
  5119. @click="
  5120. isLikes(w.wid, userid, 1, null, w.isLikes)
  5121. "
  5122. >
  5123. <img
  5124. :src="w.isLikes == true ? likes : noLikes"
  5125. alt=""
  5126. />
  5127. </div>
  5128. <div>{{ w.likesCount }}</div>
  5129. </div>
  5130. <div
  5131. class="commentList"
  5132. style="margin-right: 15px"
  5133. >
  5134. <div
  5135. class="commentImg"
  5136. @click="
  5137. commentOther(
  5138. w,
  5139. toolIndex,
  5140. wIndex,
  5141. null,
  5142. g.id
  5143. )
  5144. "
  5145. >
  5146. <img
  5147. src="../assets/icon/comment/comment.png"
  5148. alt=""
  5149. />
  5150. </div>
  5151. <div>{{ w.commentCount }}</div>
  5152. </div>
  5153. </div>
  5154. </div>
  5155. </div>
  5156. </div>
  5157. <div class="group_work" v-else>暂无提交作业</div>
  5158. </div>
  5159. </div>
  5160. <div
  5161. class="worksDetailBox"
  5162. v-if="
  5163. worksStudent.length &&
  5164. worksStudent[toolIndex].length > 0
  5165. "
  5166. >
  5167. <div
  5168. class="works"
  5169. style="
  5170. width: 200px;
  5171. height: 140px;
  5172. margin: 10px 10px 10px 0;
  5173. border-radius: 15px;
  5174. box-shadow: 0 0 6px 1px #dfdada;
  5175. "
  5176. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5177. 0
  5178. ? worksStudent[toolIndex]
  5179. : worksStudent[toolIndex].slice(0, 6)"
  5180. :key="wIndex"
  5181. >
  5182. <!-- @click="previewImg(w.works)" -->
  5183. <div class="workImg">
  5184. <img
  5185. :src="w.works"
  5186. @click="previewImg(w.works)"
  5187. alt
  5188. />
  5189. <div
  5190. class="answerScore"
  5191. v-if="w.score"
  5192. @click.stop="openScore(w)"
  5193. :class="{
  5194. rightW:
  5195. w.userid == userid || tType == 1 || tType == 4,
  5196. }"
  5197. >
  5198. {{ JSON.parse(w.score).wScore }}分
  5199. </div>
  5200. <div
  5201. class="answerScore"
  5202. @click.stop="openScore(w)"
  5203. v-else-if="courseDetail.userid == userid"
  5204. :class="{
  5205. rightW:
  5206. w.userid == userid || tType == 1 || tType == 4,
  5207. }"
  5208. >
  5209. 评分
  5210. </div>
  5211. <img
  5212. class="deleteImg"
  5213. src="../assets/deleteworks.png"
  5214. v-if="
  5215. w.userid == userid || tType == 1 || tType == 4
  5216. "
  5217. @click.stop="deleteWorks(w.wid)"
  5218. alt
  5219. />
  5220. </div>
  5221. <div class="comment" style="min-width: 200px">
  5222. <div class="worksName">
  5223. <div>{{ w.sName }}</div>
  5224. </div>
  5225. <div class="commentList">
  5226. <div class="commentList">
  5227. <div
  5228. class="commentImg"
  5229. @click="
  5230. isLikes(w.wid, userid, 1, null, w.isLikes)
  5231. "
  5232. >
  5233. <img
  5234. :src="w.isLikes == true ? likes : noLikes"
  5235. alt=""
  5236. />
  5237. </div>
  5238. <div>{{ w.likesCount }}</div>
  5239. </div>
  5240. <div class="commentList" style="margin-right: 15px">
  5241. <div
  5242. class="commentImg"
  5243. @click="commentOther(w, toolIndex, wIndex)"
  5244. >
  5245. <img
  5246. src="../assets/icon/comment/comment.png"
  5247. alt=""
  5248. />
  5249. </div>
  5250. <div>{{ w.commentCount }}</div>
  5251. </div>
  5252. </div>
  5253. </div>
  5254. </div>
  5255. </div>
  5256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5257. 未提交
  5258. </div>
  5259. <div
  5260. class="noWorksS"
  5261. v-if="noWorksS && noWorksS[toolIndex].length"
  5262. >
  5263. <div
  5264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5265. :key="sIndex"
  5266. class="noWorksName"
  5267. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5268. >
  5269. {{ s.student }}
  5270. </div>
  5271. </div>
  5272. </div>
  5273. <div
  5274. v-if="
  5275. tType &&
  5276. ((tType == 2 && sIsOpen == true) ||
  5277. tType == 1 ||
  5278. tType == 4) &&
  5279. tool.tool.indexOf(26) != -1
  5280. "
  5281. class="worksBox"
  5282. >
  5283. <div
  5284. class="zuoyeYulan"
  5285. v-if="
  5286. worksStudent.length &&
  5287. worksStudent[toolIndex].length > 0
  5288. "
  5289. >
  5290. <div class="worksTop">
  5291. <div>作业预览</div>
  5292. <div
  5293. class="corOpen"
  5294. @click="contract(toolIndex)"
  5295. v-if="
  5296. worksStudent[toolIndex].length > 6 &&
  5297. isCloseList[toolIndex].isClose == 0
  5298. "
  5299. >
  5300. 折叠
  5301. </div>
  5302. <div
  5303. class="corOpen"
  5304. @click="contract(toolIndex)"
  5305. v-if="isCloseList[toolIndex].isClose == 1"
  5306. >
  5307. 展开
  5308. </div>
  5309. </div>
  5310. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5311. </div>
  5312. <div
  5313. class="worksDetailBox"
  5314. v-if="
  5315. worksStudent.length &&
  5316. worksStudent[toolIndex].length > 0
  5317. "
  5318. >
  5319. <div
  5320. class="works"
  5321. style="width: 240px; height: 140px; overflow: hidden"
  5322. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5323. 0
  5324. ? worksStudent[toolIndex]
  5325. : worksStudent[toolIndex].slice(0, 6)"
  5326. :key="wIndex"
  5327. :class="w.type == 1 ? 'isTypeOne' : ''"
  5328. >
  5329. <div class="workImg" v-if="w.type == 0">
  5330. <img
  5331. :src="w.works"
  5332. @click="previewImg(w.works)"
  5333. alt
  5334. />
  5335. <img
  5336. class="deleteImg"
  5337. src="../assets/deleteworks.png"
  5338. v-if="
  5339. w.userid == userid || tType == 1 || tType == 4
  5340. "
  5341. @click.stop="deleteWorks(w.wid)"
  5342. alt
  5343. />
  5344. </div>
  5345. <div class="workImg" v-if="w.type == 1">
  5346. <img :src="word" @click="openFile(w.works)" alt />
  5347. <img
  5348. class="deleteImg"
  5349. src="../assets/deleteworks.png"
  5350. v-if="
  5351. w.userid == userid || tType == 1 || tType == 4
  5352. "
  5353. @click.stop="deleteWorks(w.wid)"
  5354. alt
  5355. />
  5356. </div>
  5357. <div class="worksName">
  5358. <div>{{ w.sName }}</div>
  5359. </div>
  5360. </div>
  5361. </div>
  5362. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5363. 未提交
  5364. </div>
  5365. <div
  5366. class="noWorksS"
  5367. v-if="noWorksS && noWorksS[toolIndex].length"
  5368. >
  5369. <div
  5370. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5371. :key="sIndex"
  5372. class="noWorksName"
  5373. >
  5374. {{ s.student }}
  5375. </div>
  5376. </div>
  5377. </div>
  5378. <div
  5379. v-if="
  5380. tType &&
  5381. ((tType == 2 && sIsOpen == true) ||
  5382. tType == 1 ||
  5383. tType == 4) &&
  5384. tool.tool.indexOf(40) != -1
  5385. "
  5386. class="worksBox"
  5387. >
  5388. <div
  5389. class="zuoyeYulan"
  5390. v-if="
  5391. worksStudent.length &&
  5392. worksStudent[toolIndex].length > 0
  5393. "
  5394. >
  5395. <div class="worksTop">
  5396. <div>作业预览</div>
  5397. <div
  5398. class="corOpen"
  5399. @click="contract(toolIndex)"
  5400. v-if="
  5401. worksStudent[toolIndex].length > 6 &&
  5402. isCloseList[toolIndex].isClose == 0
  5403. "
  5404. >
  5405. 折叠
  5406. </div>
  5407. <div
  5408. class="corOpen"
  5409. @click="contract(toolIndex)"
  5410. v-if="isCloseList[toolIndex].isClose == 1"
  5411. >
  5412. 展开
  5413. </div>
  5414. </div>
  5415. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5416. </div>
  5417. <div
  5418. class="worksDetailBox"
  5419. v-if="
  5420. worksStudent.length &&
  5421. worksStudent[toolIndex].length > 0
  5422. "
  5423. >
  5424. <div
  5425. class="works"
  5426. style="
  5427. width: 200px;
  5428. height: 140px;
  5429. margin: 10px 10px 10px 0;
  5430. border-radius: 15px;
  5431. box-shadow: 0 0 6px 1px #dfdada;
  5432. "
  5433. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5434. 0
  5435. ? worksStudent[toolIndex]
  5436. : worksStudent[toolIndex].slice(0, 6)"
  5437. :key="wIndex"
  5438. :class="w.type == 1 ? 'isTypeOne' : ''"
  5439. >
  5440. <div class="workImg">
  5441. <img
  5442. src="../assets/icon/works/noImg.png"
  5443. @click="openPj(w.works, toolIndex)"
  5444. alt
  5445. />
  5446. <img
  5447. class="deleteImg"
  5448. src="../assets/deleteworks.png"
  5449. v-if="
  5450. w.userid == userid || tType == 1 || tType == 4
  5451. "
  5452. @click.stop="deleteWorks(w.wid)"
  5453. alt
  5454. />
  5455. </div>
  5456. <div class="comment" style="min-width: 200px">
  5457. <div class="worksName">
  5458. <div>{{ w.sName }}</div>
  5459. </div>
  5460. <div class="commentList">
  5461. <div class="commentList">
  5462. <div
  5463. class="commentImg"
  5464. @click="
  5465. isLikes(w.wid, userid, 1, null, w.isLikes)
  5466. "
  5467. >
  5468. <img
  5469. :src="w.isLikes == true ? likes : noLikes"
  5470. alt=""
  5471. />
  5472. </div>
  5473. <div>{{ w.likesCount }}</div>
  5474. </div>
  5475. <div class="commentList" style="margin-right: 15px">
  5476. <div
  5477. class="commentImg"
  5478. @click="commentOther(w, toolIndex, wIndex)"
  5479. >
  5480. <img
  5481. src="../assets/icon/comment/comment.png"
  5482. alt=""
  5483. />
  5484. </div>
  5485. <div>{{ w.commentCount }}</div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. </div>
  5490. </div>
  5491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5492. 未提交
  5493. </div>
  5494. <div
  5495. class="noWorksS"
  5496. v-if="noWorksS && noWorksS[toolIndex].length"
  5497. >
  5498. <div
  5499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5500. :key="sIndex"
  5501. class="noWorksName"
  5502. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5503. >
  5504. {{ s.student }}
  5505. </div>
  5506. </div>
  5507. </div>
  5508. <div
  5509. v-if="
  5510. tType &&
  5511. tType == 2 &&
  5512. !sIsOpen &&
  5513. tool.tool.indexOf(40) != -1
  5514. "
  5515. class="worksBox"
  5516. >
  5517. <div
  5518. class="zuoyeYulan"
  5519. v-if="workStudent[toolIndex].length > 0"
  5520. >
  5521. <span class="worksTitle">作业预览</span>
  5522. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5523. </div>
  5524. <div
  5525. class="worksDetailBox"
  5526. v-if="workStudent[toolIndex].length > 0"
  5527. >
  5528. <div
  5529. class="works"
  5530. style="
  5531. width: 200px;
  5532. height: 140px;
  5533. margin: 10px 10px 10px 0;
  5534. "
  5535. v-for="(w, wIndex) in workStudent[toolIndex]"
  5536. :key="wIndex"
  5537. >
  5538. <div class="workImg">
  5539. <img
  5540. src="../assets/icon/works/noImg.png"
  5541. @click="openPj(w.works, toolIndex)"
  5542. alt
  5543. />
  5544. <img
  5545. class="deleteImg"
  5546. src="../assets/deleteworks.png"
  5547. v-if="
  5548. w.userid == userid || tType == 1 || tType == 4
  5549. "
  5550. @click.stop="deleteWorks(w.wid)"
  5551. alt
  5552. />
  5553. </div>
  5554. <div class="worksName">
  5555. <div>{{ w.sName }}</div>
  5556. </div>
  5557. </div>
  5558. </div>
  5559. </div>
  5560. <div
  5561. v-if="
  5562. tType &&
  5563. ((tType == 2 && sIsOpen == true) ||
  5564. tType == 1 ||
  5565. tType == 4) &&
  5566. tool.tool.indexOf(41) != -1
  5567. "
  5568. >
  5569. <AnswerData2
  5570. v-if="
  5571. worksStudent.length &&
  5572. worksStudent[toolIndex].length > 0
  5573. "
  5574. :problemJson="tool.selectJson.answer"
  5575. :people="worksStudent[toolIndex]"
  5576. ></AnswerData2>
  5577. </div>
  5578. <div
  5579. v-if="
  5580. tType &&
  5581. ((tType == 2 && sIsOpen == true) ||
  5582. tType == 1 ||
  5583. tType == 4) &&
  5584. tool.tool.indexOf(41) != -1
  5585. "
  5586. class="worksBox"
  5587. >
  5588. <div
  5589. class="zuoyeYulan"
  5590. v-if="
  5591. worksStudent.length &&
  5592. worksStudent[toolIndex].length > 0
  5593. "
  5594. >
  5595. <div class="worksTop">
  5596. <div>作业预览</div>
  5597. <div
  5598. class="corOpen"
  5599. @click="contract(toolIndex)"
  5600. v-if="
  5601. worksStudent[toolIndex].length > 6 &&
  5602. isCloseList[toolIndex].isClose == 0
  5603. "
  5604. >
  5605. 折叠
  5606. </div>
  5607. <div
  5608. class="corOpen"
  5609. @click="contract(toolIndex)"
  5610. v-if="isCloseList[toolIndex].isClose == 1"
  5611. >
  5612. 展开
  5613. </div>
  5614. </div>
  5615. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5616. </div>
  5617. <div
  5618. class="worksDetailBox"
  5619. v-if="
  5620. worksStudent.length &&
  5621. worksStudent[toolIndex].length > 0
  5622. "
  5623. >
  5624. <div
  5625. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5626. 0
  5627. ? worksStudent[toolIndex]
  5628. : worksStudent[toolIndex].slice(0, 6)"
  5629. :key="wIndex"
  5630. class="isWorksName2"
  5631. @click="openXz(w, toolIndex)"
  5632. >
  5633. {{ w.sName }}
  5634. <img
  5635. class="deleteImg deleteImg2"
  5636. src="../assets/deleteworks.png"
  5637. v-if="w.userid == userid || tType == 1 || tType == 4"
  5638. @click.stop="deleteWorks(w.wid)"
  5639. alt
  5640. />
  5641. </div>
  5642. <!-- <div
  5643. class="works"
  5644. style="
  5645. width: 200px;
  5646. height: 140px;
  5647. margin: 10px 10px 10px 0;
  5648. border-radius: 15px;
  5649. box-shadow: 0 0 6px 1px #dfdada;
  5650. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5651. :class="w.type == 5 ? 'isTypeOne' : ''">
  5652. <div class="workImg">
  5653. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5654. </div>
  5655. <div class="worksName">
  5656. <div>{{ w.sName }}</div>
  5657. </div>
  5658. </div> -->
  5659. </div>
  5660. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5661. 未提交
  5662. </div>
  5663. <div
  5664. class="noWorksS"
  5665. v-if="noWorksS && noWorksS[toolIndex].length"
  5666. >
  5667. <div
  5668. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5669. :key="sIndex"
  5670. class="noWorksName"
  5671. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5672. >
  5673. {{ s.student }}
  5674. </div>
  5675. </div>
  5676. </div>
  5677. <div
  5678. v-if="
  5679. tType &&
  5680. tType == 2 &&
  5681. !sIsOpen &&
  5682. tool.tool.indexOf(41) != -1
  5683. "
  5684. class="worksBox"
  5685. >
  5686. <div
  5687. class="zuoyeYulan"
  5688. v-if="workStudent[toolIndex].length > 0"
  5689. >
  5690. <span class="worksTitle">作业预览</span>
  5691. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5692. </div>
  5693. <div
  5694. class="worksDetailBox"
  5695. v-if="workStudent[toolIndex].length > 0"
  5696. >
  5697. <div
  5698. class="works"
  5699. style="
  5700. width: 200px;
  5701. height: 140px;
  5702. margin: 10px 10px 10px 0;
  5703. "
  5704. v-for="(w, wIndex) in workStudent[toolIndex]"
  5705. :key="wIndex"
  5706. >
  5707. <div class="workImg">
  5708. <img
  5709. src="../assets/icon/works/noImg.png"
  5710. @click="openXz(w, toolIndex)"
  5711. alt
  5712. />
  5713. <img
  5714. class="deleteImg"
  5715. src="../assets/deleteworks.png"
  5716. v-if="
  5717. w.userid == userid || tType == 1 || tType == 4
  5718. "
  5719. @click.stop="deleteWorks(w.wid)"
  5720. alt
  5721. />
  5722. </div>
  5723. <div class="worksName">
  5724. <div>{{ w.sName }}</div>
  5725. </div>
  5726. </div>
  5727. </div>
  5728. </div>
  5729. <div v-if="false" class="xuan_right_box">
  5730. <div
  5731. class="tool_right_box"
  5732. v-for="(item, index) in tool.sentenceList"
  5733. :key="index"
  5734. >
  5735. <div>
  5736. <span
  5737. style="word-break: break-all; white-space: normal"
  5738. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5739. >
  5740. </div>
  5741. <div class="right_box_xuan">
  5742. <span>正确率</span>
  5743. <span>{{
  5744. (checkJson[toolIndex][index].right
  5745. ? checkJson[toolIndex][index].right
  5746. : 0) + "%"
  5747. }}</span>
  5748. </div>
  5749. <div class="right_box_xuan">
  5750. <span>答对人数</span>
  5751. <span>{{
  5752. checkJson[toolIndex][index].rightPerson.length
  5753. }}</span>
  5754. </div>
  5755. </div>
  5756. </div>
  5757. <div
  5758. v-if="
  5759. tType &&
  5760. ((tType == 2 && sIsOpen == true) ||
  5761. tType == 1 ||
  5762. tType == 4) &&
  5763. tool.tool.indexOf(47) != -1
  5764. "
  5765. >
  5766. <AnswerData
  5767. v-if="
  5768. checkJson[toolIndex].length &&
  5769. (tool.sentenceList || tool.sentenceList.length > 0)
  5770. "
  5771. :people="checkJson[toolIndex]"
  5772. ></AnswerData>
  5773. </div>
  5774. <div
  5775. v-if="
  5776. tType &&
  5777. tType == 2 &&
  5778. !sIsOpen &&
  5779. tool.tool.indexOf(47) != -1
  5780. "
  5781. class="worksBox"
  5782. >
  5783. <div
  5784. class="zuoyeYulan"
  5785. v-if="workStudent[toolIndex].length > 0"
  5786. >
  5787. <span class="worksTitle">作业预览</span>
  5788. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5789. </div>
  5790. <div
  5791. class="worksDetailBox"
  5792. v-if="workStudent[toolIndex].length > 0"
  5793. >
  5794. <div
  5795. class="works"
  5796. style="
  5797. width: 200px;
  5798. height: 140px;
  5799. margin: 10px 10px 10px 0;
  5800. "
  5801. v-for="(w, wIndex) in workStudent[toolIndex]"
  5802. :key="wIndex"
  5803. >
  5804. <!-- @click="openXz(w, toolIndex)" -->
  5805. <div class="workImg" @click="openSen(w, toolIndex)">
  5806. <img src="../assets/icon/works/noImg.png" alt />
  5807. <img
  5808. class="deleteImg"
  5809. src="../assets/deleteworks.png"
  5810. v-if="
  5811. w.userid == userid || tType == 1 || tType == 4
  5812. "
  5813. @click.stop="deleteWorks(w.wid)"
  5814. alt
  5815. />
  5816. </div>
  5817. <div class="worksName">
  5818. <div>
  5819. {{ w.sName }}
  5820. </div>
  5821. </div>
  5822. </div>
  5823. </div>
  5824. </div>
  5825. <div
  5826. v-if="
  5827. tType &&
  5828. ((tType == 2 && sIsOpen == true) ||
  5829. tType == 1 ||
  5830. tType == 4) &&
  5831. tool.tool.indexOf(47) != -1
  5832. "
  5833. class="worksBox"
  5834. >
  5835. <div
  5836. class="zuoyeYulan"
  5837. v-if="
  5838. worksStudent.length &&
  5839. worksStudent[toolIndex].length > 0
  5840. "
  5841. >
  5842. <div class="worksTop">
  5843. <div>作业预览</div>
  5844. <div
  5845. class="corOpen"
  5846. @click="contract(toolIndex)"
  5847. v-if="
  5848. worksStudent[toolIndex].length > 6 &&
  5849. isCloseList[toolIndex].isClose == 0
  5850. "
  5851. >
  5852. 折叠
  5853. </div>
  5854. <div
  5855. class="corOpen"
  5856. @click="contract(toolIndex)"
  5857. v-if="isCloseList[toolIndex].isClose == 1"
  5858. >
  5859. 展开
  5860. </div>
  5861. </div>
  5862. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5863. </div>
  5864. <div
  5865. class="worksDetailBox"
  5866. v-if="
  5867. worksStudent.length &&
  5868. worksStudent[toolIndex].length > 0
  5869. "
  5870. >
  5871. <!-- @click="openXz(w, toolIndex)" -->
  5872. <div
  5873. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5874. 0
  5875. ? worksStudent[toolIndex]
  5876. : worksStudent[toolIndex].slice(0, 6)"
  5877. :key="wIndex"
  5878. class="isWorksName2"
  5879. @click="openSen(w, toolIndex)"
  5880. >
  5881. {{ w.sName }}
  5882. <img
  5883. class="deleteImg deleteImg2"
  5884. src="../assets/deleteworks.png"
  5885. v-if="w.userid == userid || tType == 1 || tType == 4"
  5886. @click.stop="deleteWorks(w.wid)"
  5887. alt
  5888. />
  5889. </div>
  5890. </div>
  5891. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5892. 未提交
  5893. </div>
  5894. <div
  5895. class="noWorksS"
  5896. v-if="noWorksS && noWorksS[toolIndex].length"
  5897. >
  5898. <div
  5899. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5900. :key="sIndex"
  5901. class="noWorksName"
  5902. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5903. >
  5904. {{ s.student }}
  5905. </div>
  5906. </div>
  5907. </div>
  5908. <div
  5909. v-if="
  5910. tType &&
  5911. ((tType == 2 && sIsOpen == true) ||
  5912. tType == 1 ||
  5913. tType == 4) &&
  5914. tool.tool.indexOf(48) != -1
  5915. "
  5916. class="worksBox"
  5917. >
  5918. <div
  5919. class="zuoyeYulan"
  5920. v-if="
  5921. worksStudent.length &&
  5922. worksStudent[toolIndex].length > 0
  5923. "
  5924. >
  5925. <div class="worksTop">
  5926. <div>作业预览</div>
  5927. <div
  5928. class="corOpen"
  5929. @click="contract(toolIndex)"
  5930. v-if="
  5931. worksStudent[toolIndex].length > 6 &&
  5932. isCloseList[toolIndex].isClose == 0
  5933. "
  5934. >
  5935. 折叠
  5936. </div>
  5937. <div
  5938. class="corOpen"
  5939. @click="contract(toolIndex)"
  5940. v-if="isCloseList[toolIndex].isClose == 1"
  5941. >
  5942. 展开
  5943. </div>
  5944. </div>
  5945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5946. </div>
  5947. <div
  5948. class="worksDetailBox"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div
  5955. class="works"
  5956. style="
  5957. width: 200px;
  5958. height: 140px;
  5959. margin: 10px 10px 10px 0;
  5960. border-radius: 15px;
  5961. box-shadow: 0 0 6px 1px #dfdada;
  5962. "
  5963. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5964. 0
  5965. ? worksStudent[toolIndex]
  5966. : worksStudent[toolIndex].slice(0, 6)"
  5967. :key="wIndex"
  5968. :class="w.type == 1 ? 'isTypeOne' : ''"
  5969. >
  5970. <div class="workImg">
  5971. <img :src="word" @click="openTable(w)" alt />
  5972. <!-- @click="openFile(w.works)" -->
  5973. <div
  5974. class="answerScore"
  5975. v-if="w.score"
  5976. @click.stop="openScore(w)"
  5977. :class="{
  5978. rightW:
  5979. w.userid == userid ||
  5980. tType == 1 ||
  5981. tType == 4 ||
  5982. w.ateacher == userid,
  5983. }"
  5984. >
  5985. {{ JSON.parse(w.score).wScore }}分
  5986. </div>
  5987. <div
  5988. class="answerScore"
  5989. @click.stop="openScore(w)"
  5990. v-else-if="courseDetail.userid == userid"
  5991. :class="{
  5992. rightW:
  5993. w.userid == userid ||
  5994. tType == 1 ||
  5995. tType == 4 ||
  5996. w.ateacher == userid,
  5997. }"
  5998. >
  5999. 评分
  6000. </div>
  6001. <img
  6002. class="deleteImg"
  6003. src="../assets/deleteworks.png"
  6004. v-if="
  6005. w.userid == userid || tType == 1 || tType == 4
  6006. "
  6007. @click.stop="deleteWorks(w.wid)"
  6008. alt
  6009. />
  6010. </div>
  6011. <div class="comment" style="min-width: 200px">
  6012. <div class="worksName">
  6013. <div>{{ w.sName }}</div>
  6014. </div>
  6015. <div class="commentList">
  6016. <div class="commentList">
  6017. <div
  6018. class="commentImg"
  6019. @click="
  6020. isLikes(w.wid, userid, 1, null, w.isLikes)
  6021. "
  6022. >
  6023. <img
  6024. :src="w.isLikes == true ? likes : noLikes"
  6025. alt=""
  6026. />
  6027. </div>
  6028. <div>{{ w.likesCount }}</div>
  6029. </div>
  6030. <div class="commentList" style="margin-right: 15px">
  6031. <div
  6032. class="commentImg"
  6033. @click="commentOther(w, toolIndex, wIndex)"
  6034. >
  6035. <img
  6036. src="../assets/icon/comment/comment.png"
  6037. alt=""
  6038. />
  6039. </div>
  6040. <div>{{ w.commentCount }}</div>
  6041. </div>
  6042. </div>
  6043. </div>
  6044. </div>
  6045. </div>
  6046. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6047. 未提交
  6048. </div>
  6049. <div
  6050. class="noWorksS"
  6051. v-if="noWorksS && noWorksS[toolIndex].length"
  6052. >
  6053. <div
  6054. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6055. :key="sIndex"
  6056. class="noWorksName"
  6057. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6058. >
  6059. {{ s.student }}
  6060. </div>
  6061. </div>
  6062. </div>
  6063. <div
  6064. v-if="
  6065. tType &&
  6066. tType == 2 &&
  6067. !sIsOpen &&
  6068. tool.tool.indexOf(48) != -1
  6069. "
  6070. class="worksBox"
  6071. >
  6072. <div
  6073. class="zuoyeYulan"
  6074. v-if="workStudent[toolIndex].length > 0"
  6075. >
  6076. <span class="worksTitle">作业预览</span>
  6077. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6078. </div>
  6079. <div
  6080. class="worksDetailBox"
  6081. v-if="workStudent[toolIndex].length > 0"
  6082. >
  6083. <div
  6084. class="works"
  6085. style="
  6086. width: 200px;
  6087. height: 140px;
  6088. margin: 10px 10px 10px 0;
  6089. box-shadow: 0 0 6px 1px #dfdada;
  6090. "
  6091. v-for="(w, wIndex) in workStudent[toolIndex]"
  6092. :key="wIndex"
  6093. >
  6094. <div class="workImg">
  6095. <img :src="word" @click="openTable(w)" alt />
  6096. <div
  6097. class="answerScore"
  6098. v-if="w.score"
  6099. @click.stop="openScore(w)"
  6100. :class="{
  6101. rightW:
  6102. w.userid == userid || tType == 1 || tType == 4,
  6103. }"
  6104. >
  6105. {{ JSON.parse(w.score).wScore }}分
  6106. </div>
  6107. <div
  6108. class="answerScore"
  6109. @click.stop="openScore(w)"
  6110. v-else-if="courseDetail.userid == userid"
  6111. :class="{
  6112. rightW:
  6113. w.userid == userid || tType == 1 || tType == 4,
  6114. }"
  6115. >
  6116. 评分
  6117. </div>
  6118. <img
  6119. class="deleteImg"
  6120. src="../assets/deleteworks.png"
  6121. v-if="
  6122. w.userid == userid || tType == 1 || tType == 4
  6123. "
  6124. @click.stop="deleteWorks(w.wid)"
  6125. alt
  6126. />
  6127. </div>
  6128. <div class="worksName">
  6129. <div>{{ w.sName }}</div>
  6130. </div>
  6131. </div>
  6132. </div>
  6133. </div>
  6134. <div
  6135. v-if="
  6136. tType &&
  6137. ((tType == 2 && sIsOpen == true) ||
  6138. tType == 1 ||
  6139. tType == 4) &&
  6140. tool.tool.indexOf(52) != -1
  6141. "
  6142. class="worksBox"
  6143. >
  6144. <div
  6145. class="zuoyeYulan"
  6146. v-if="
  6147. worksStudent.length &&
  6148. worksStudent[toolIndex].length > 0
  6149. "
  6150. >
  6151. <div class="worksTop">
  6152. <div>作业预览</div>
  6153. <div
  6154. class="corOpen"
  6155. @click="contract(toolIndex)"
  6156. v-if="
  6157. worksStudent[toolIndex].length > 6 &&
  6158. isCloseList[toolIndex].isClose == 0
  6159. "
  6160. >
  6161. 折叠
  6162. </div>
  6163. <div
  6164. class="corOpen"
  6165. @click="contract(toolIndex)"
  6166. v-if="isCloseList[toolIndex].isClose == 1"
  6167. >
  6168. 展开
  6169. </div>
  6170. </div>
  6171. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6172. </div>
  6173. <div
  6174. class="worksDetailBox"
  6175. v-if="
  6176. worksStudent.length &&
  6177. worksStudent[toolIndex].length > 0
  6178. "
  6179. >
  6180. <div
  6181. class="works"
  6182. style="
  6183. width: 200px;
  6184. height: 140px;
  6185. margin: 10px 10px 10px 0;
  6186. border-radius: 15px;
  6187. box-shadow: 0 0 6px 1px #dfdada;
  6188. "
  6189. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6190. 0
  6191. ? worksStudent[toolIndex]
  6192. : worksStudent[toolIndex].slice(0, 6)"
  6193. :key="wIndex"
  6194. :class="w.type == 1 ? 'isTypeOne' : ''"
  6195. >
  6196. <div class="workImg">
  6197. <img :src="word" @click="openWord(w)" alt />
  6198. <!-- @click="openFile(w.works)" -->
  6199. <div
  6200. class="answerScore"
  6201. v-if="w.score"
  6202. @click.stop="openScore(w)"
  6203. :class="{
  6204. rightW:
  6205. w.userid == userid ||
  6206. tType == 1 ||
  6207. tType == 4 ||
  6208. w.ateacher == userid,
  6209. }"
  6210. >
  6211. {{ JSON.parse(w.score).wScore }}分
  6212. </div>
  6213. <div
  6214. class="answerScore"
  6215. @click.stop="openScore(w)"
  6216. v-else-if="courseDetail.userid == userid"
  6217. :class="{
  6218. rightW:
  6219. w.userid == userid ||
  6220. tType == 1 ||
  6221. tType == 4 ||
  6222. w.ateacher == userid,
  6223. }"
  6224. >
  6225. 评分
  6226. </div>
  6227. <img
  6228. class="deleteImg"
  6229. src="../assets/deleteworks.png"
  6230. v-if="
  6231. w.userid == userid || tType == 1 || tType == 4
  6232. "
  6233. @click.stop="deleteWorks(w.wid)"
  6234. alt
  6235. />
  6236. </div>
  6237. <div class="comment" style="min-width: 200px">
  6238. <div class="worksName">
  6239. <div>{{ w.sName }}</div>
  6240. </div>
  6241. <div class="commentList">
  6242. <div class="commentList">
  6243. <div
  6244. class="commentImg"
  6245. @click="
  6246. isLikes(w.wid, userid, 1, null, w.isLikes)
  6247. "
  6248. >
  6249. <img
  6250. :src="w.isLikes == true ? likes : noLikes"
  6251. alt=""
  6252. />
  6253. </div>
  6254. <div>{{ w.likesCount }}</div>
  6255. </div>
  6256. <div class="commentList" style="margin-right: 15px">
  6257. <div
  6258. class="commentImg"
  6259. @click="commentOther(w, toolIndex, wIndex)"
  6260. >
  6261. <img
  6262. src="../assets/icon/comment/comment.png"
  6263. alt=""
  6264. />
  6265. </div>
  6266. <div>{{ w.commentCount }}</div>
  6267. </div>
  6268. </div>
  6269. </div>
  6270. </div>
  6271. </div>
  6272. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6273. 未提交
  6274. </div>
  6275. <div
  6276. class="noWorksS"
  6277. v-if="noWorksS && noWorksS[toolIndex].length"
  6278. >
  6279. <div
  6280. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6281. :key="sIndex"
  6282. class="noWorksName"
  6283. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6284. >
  6285. {{ s.student }}
  6286. </div>
  6287. </div>
  6288. </div>
  6289. <div
  6290. v-if="
  6291. tType &&
  6292. tType == 2 &&
  6293. !sIsOpen &&
  6294. tool.tool.indexOf(52) != -1
  6295. "
  6296. class="worksBox"
  6297. >
  6298. <div
  6299. class="zuoyeYulan"
  6300. v-if="workStudent[toolIndex].length > 0"
  6301. >
  6302. <span class="worksTitle">作业预览</span>
  6303. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6304. </div>
  6305. <div
  6306. class="worksDetailBox"
  6307. v-if="workStudent[toolIndex].length > 0"
  6308. >
  6309. <div
  6310. class="works"
  6311. style="
  6312. width: 200px;
  6313. height: 140px;
  6314. margin: 10px 10px 10px 0;
  6315. box-shadow: 0 0 6px 1px #dfdada;
  6316. "
  6317. v-for="(w, wIndex) in workStudent[toolIndex]"
  6318. :key="wIndex"
  6319. >
  6320. <div class="workImg">
  6321. <img :src="word" @click="openWord(w)" alt />
  6322. <div
  6323. class="answerScore"
  6324. v-if="w.score"
  6325. @click.stop="openScore(w)"
  6326. :class="{
  6327. rightW:
  6328. w.userid == userid || tType == 1 || tType == 4,
  6329. }"
  6330. >
  6331. {{ JSON.parse(w.score).wScore }}分
  6332. </div>
  6333. <div
  6334. class="answerScore"
  6335. @click.stop="openScore(w)"
  6336. v-else-if="courseDetail.userid == userid"
  6337. :class="{
  6338. rightW:
  6339. w.userid == userid || tType == 1 || tType == 4,
  6340. }"
  6341. >
  6342. 评分
  6343. </div>
  6344. <img
  6345. class="deleteImg"
  6346. src="../assets/deleteworks.png"
  6347. v-if="
  6348. w.userid == userid || tType == 1 || tType == 4
  6349. "
  6350. @click.stop="deleteWorks(w.wid)"
  6351. alt
  6352. />
  6353. </div>
  6354. <div class="worksName">
  6355. <div>{{ w.sName }}</div>
  6356. </div>
  6357. </div>
  6358. </div>
  6359. </div>
  6360. <div
  6361. v-if="tool.tool.indexOf(49) != -1"
  6362. class="xuan_right_box"
  6363. style="margin: 0 15px 0 25px; width: 93%"
  6364. >
  6365. <div
  6366. v-if="courseDetail.userid == userid"
  6367. style="
  6368. display: flex;
  6369. justify-content: flex-end;
  6370. margin-right: 10px;
  6371. "
  6372. >
  6373. <el-button
  6374. type="primary"
  6375. size="small"
  6376. @click="addTools(49, toolIndex, taskCount)"
  6377. >分组设置</el-button
  6378. >
  6379. </div>
  6380. <div
  6381. v-if="groupStudentUid[toolIndex]"
  6382. class="group_staic_box"
  6383. >
  6384. <div
  6385. v-for="(gp, gd) in tool.groupJson.group"
  6386. :key="gd"
  6387. class="group_staic"
  6388. >
  6389. <span> {{ gp.name }}</span>
  6390. <span>
  6391. 目前人数{{
  6392. groupStudentUid[toolIndex][gd].length
  6393. }}人</span
  6394. >
  6395. </div>
  6396. </div>
  6397. </div>
  6398. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6399. <div
  6400. class="zuoyeYulan"
  6401. v-if="
  6402. worksStudent.length &&
  6403. worksStudent[toolIndex].length > 0
  6404. "
  6405. >
  6406. <span class="worksTitle">作业预览</span>
  6407. </div>
  6408. <div>
  6409. <div
  6410. class="group_workBox"
  6411. v-for="(g, gindex) in tool.groupJson.group"
  6412. :key="gindex"
  6413. >
  6414. <div
  6415. class="group_box"
  6416. v-if="
  6417. groupStudentUid[toolIndex] &&
  6418. worksStudent[toolIndex] &&
  6419. (worksStudent[toolIndex][gindex].length ||
  6420. groupStudentUid[toolIndex][gindex].indexOf(
  6421. userid
  6422. ) != -1)
  6423. "
  6424. >
  6425. <div class="group_title">
  6426. <el-tooltip
  6427. class="item"
  6428. effect="light"
  6429. :content="g.name"
  6430. placement="top"
  6431. >
  6432. <div class="group_name">{{ g.name }}</div>
  6433. </el-tooltip>
  6434. <el-button
  6435. type="primary"
  6436. v-if="
  6437. groupStudentUid[toolIndex][gindex].indexOf(
  6438. userid
  6439. ) != -1
  6440. "
  6441. @click="groupUpload(toolIndex, taskCount, gindex)"
  6442. >上传作业</el-button
  6443. >
  6444. </div>
  6445. <div class="group_work">
  6446. <div
  6447. class="works"
  6448. style="
  6449. width: 200px;
  6450. height: 140px;
  6451. margin: 10px 10px 10px 0;
  6452. border-radius: 15px;
  6453. box-shadow: 0 0 6px 1px #dfdada;
  6454. "
  6455. v-for="(w, wIndex) in worksStudent[toolIndex][
  6456. gindex
  6457. ]"
  6458. :key="wIndex"
  6459. :class="w.type == 1 ? 'isTypeOne' : ''"
  6460. >
  6461. <div class="workImg" v-if="w.type == 0">
  6462. <img
  6463. :src="w.works"
  6464. @click="previewImg(w.works)"
  6465. alt
  6466. />
  6467. <div
  6468. class="answerScore"
  6469. v-if="w.score"
  6470. @click.stop="openScore(w)"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid ||
  6474. tType == 1 ||
  6475. tType == 4 ||
  6476. w.ateacher == userid,
  6477. }"
  6478. >
  6479. {{ JSON.parse(w.score).wScore }}分
  6480. </div>
  6481. <div
  6482. class="answerScore"
  6483. @click.stop="openScore(w)"
  6484. v-else-if="courseDetail.userid == userid"
  6485. :class="{
  6486. rightW:
  6487. w.userid == userid ||
  6488. tType == 1 ||
  6489. tType == 4 ||
  6490. w.ateacher == userid,
  6491. }"
  6492. >
  6493. 评分
  6494. </div>
  6495. <img
  6496. class="deleteImg"
  6497. src="../assets/deleteworks.png"
  6498. v-if="
  6499. w.userid == userid ||
  6500. tType == 1 ||
  6501. tType == 4
  6502. "
  6503. @click.stop="deleteWorks(w.wid)"
  6504. alt
  6505. />
  6506. </div>
  6507. <div class="workImg" v-if="w.type == 1">
  6508. <img
  6509. :src="word"
  6510. @click="openFile(w.works)"
  6511. alt
  6512. />
  6513. <!-- @click="openFile(w.works)" -->
  6514. <div
  6515. class="answerScore"
  6516. v-if="w.score"
  6517. @click.stop="openScore(w)"
  6518. :class="{
  6519. rightW:
  6520. w.userid == userid ||
  6521. tType == 1 ||
  6522. tType == 4 ||
  6523. w.ateacher == userid,
  6524. }"
  6525. >
  6526. {{ JSON.parse(w.score).wScore }}分
  6527. </div>
  6528. <div
  6529. class="answerScore"
  6530. @click.stop="openScore(w)"
  6531. v-else-if="courseDetail.userid == userid"
  6532. :class="{
  6533. rightW:
  6534. w.userid == userid ||
  6535. tType == 1 ||
  6536. tType == 4 ||
  6537. w.ateacher == userid,
  6538. }"
  6539. >
  6540. 评分
  6541. </div>
  6542. <img
  6543. class="deleteImg"
  6544. src="../assets/deleteworks.png"
  6545. v-if="
  6546. w.userid == userid ||
  6547. tType == 1 ||
  6548. tType == 4
  6549. "
  6550. @click.stop="deleteWorks(w.wid)"
  6551. alt
  6552. />
  6553. </div>
  6554. <div class="workImg" v-if="w.type == 3">
  6555. <img
  6556. style="cursor: pointer"
  6557. :src="video"
  6558. @click="openVideo(w)"
  6559. alt
  6560. />
  6561. <!-- @click="openVideo(w.works)" -->
  6562. <div
  6563. class="answerScore"
  6564. v-if="w.score"
  6565. @click.stop="openScore(w)"
  6566. :class="{
  6567. rightW:
  6568. w.userid == userid ||
  6569. tType == 1 ||
  6570. tType == 4 ||
  6571. w.ateacher == userid,
  6572. }"
  6573. >
  6574. {{ JSON.parse(w.score).wScore }}分
  6575. </div>
  6576. <div
  6577. class="answerScore"
  6578. @click.stop="openScore(w)"
  6579. v-else-if="courseDetail.userid == userid"
  6580. :class="{
  6581. rightW:
  6582. w.userid == userid ||
  6583. tType == 1 ||
  6584. tType == 4 ||
  6585. w.ateacher == userid,
  6586. }"
  6587. >
  6588. 评分
  6589. </div>
  6590. <img
  6591. class="deleteImg"
  6592. src="../assets/deleteworks.png"
  6593. v-if="
  6594. w.userid == userid ||
  6595. tType == 1 ||
  6596. tType == 4
  6597. "
  6598. @click.stop="deleteWorks(w.wid)"
  6599. alt
  6600. />
  6601. </div>
  6602. <div class="workImg" v-if="w.type == 12">
  6603. <img
  6604. style="cursor: pointer"
  6605. :src="word2"
  6606. @click="downloadFile(w.works)"
  6607. alt
  6608. />
  6609. <!-- @click="openVideo(w.works)" -->
  6610. <div
  6611. class="answerScore"
  6612. v-if="w.score"
  6613. @click.stop="openScore(w)"
  6614. :class="{
  6615. rightW:
  6616. w.userid == userid ||
  6617. tType == 1 ||
  6618. tType == 4 ||
  6619. w.ateacher == userid,
  6620. }"
  6621. >
  6622. {{ JSON.parse(w.score).wScore }}分
  6623. </div>
  6624. <div
  6625. class="answerScore"
  6626. @click.stop="openScore(w)"
  6627. v-else-if="courseDetail.userid == userid"
  6628. :class="{
  6629. rightW:
  6630. w.userid == userid ||
  6631. tType == 1 ||
  6632. tType == 4 ||
  6633. w.ateacher == userid,
  6634. }"
  6635. >
  6636. 评分
  6637. </div>
  6638. <img
  6639. class="deleteImg"
  6640. src="../assets/deleteworks.png"
  6641. v-if="
  6642. w.userid == userid ||
  6643. tType == 1 ||
  6644. tType == 4
  6645. "
  6646. @click.stop="deleteWorks(w.wid)"
  6647. alt
  6648. />
  6649. </div>
  6650. <div class="comment" style="min-width: 200px">
  6651. <div class="worksName">
  6652. <div>{{ w.sName }}</div>
  6653. </div>
  6654. <div class="commentList">
  6655. <div class="commentList">
  6656. <div
  6657. class="commentImg"
  6658. @click="
  6659. isLikes(
  6660. w.wid,
  6661. userid,
  6662. 1,
  6663. null,
  6664. w.isLikes
  6665. )
  6666. "
  6667. >
  6668. <img
  6669. :src="
  6670. w.isLikes == true ? likes : noLikes
  6671. "
  6672. alt=""
  6673. />
  6674. </div>
  6675. <div>{{ w.likesCount }}</div>
  6676. </div>
  6677. <div
  6678. class="commentList"
  6679. style="margin-right: 15px"
  6680. >
  6681. <div
  6682. class="commentImg"
  6683. @click="
  6684. commentOther(
  6685. w,
  6686. toolIndex,
  6687. wIndex,
  6688. gindex
  6689. )
  6690. "
  6691. >
  6692. <img
  6693. src="../assets/icon/comment/comment.png"
  6694. alt=""
  6695. />
  6696. </div>
  6697. <div>{{ w.commentCount }}</div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. </div>
  6702. </div>
  6703. </div>
  6704. </div>
  6705. </div>
  6706. </div>
  6707. </div>
  6708. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6709. 上传文件
  6710. <input
  6711. type="file"
  6712. accept="image/png, image/gif, image/jpeg"
  6713. style="display: none"
  6714. @change="beforeUpload1($event, 2, index)"
  6715. />
  6716. </div>-->
  6717. </div>
  6718. </div>
  6719. <!-- <div
  6720. class="vedioBox"
  6721. style="margin-top: 10px"
  6722. v-if="
  6723. courseDetail.userid == userid ||
  6724. (courseDetail.course_teacher &&
  6725. courseDetail.course_teacher.indexOf(userid) != -1)
  6726. "
  6727. :style="{
  6728. borderRadius:
  6729. !(
  6730. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6731. .toolChoose[0].tool &&
  6732. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6733. .toolChoose[0].tool.length > 0
  6734. ) &&
  6735. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6736. .taskDetail == '' &&
  6737. vChapterData[taskCount].length == 0 &&
  6738. fileC[taskCount].length == 0
  6739. ? '0 0 20px 20px'
  6740. : '20px',
  6741. }"
  6742. >
  6743. <div
  6744. class="queTop"
  6745. @click="isClose = !isClose"
  6746. style="
  6747. padding: 15px 0 15px 37px;
  6748. justify-content: space-between;
  6749. "
  6750. >
  6751. <div class="queTopTitle">新增工具</div>
  6752. <div class="queTopRight">
  6753. <div class="queTopClose" v-if="isClose == 0">
  6754. 展开
  6755. <div class="closeImg">
  6756. <img src="../assets/icon/newIcon/close.png" alt="" />
  6757. </div>
  6758. </div>
  6759. <div class="queTopClose" v-if="isClose == 1">
  6760. 折叠
  6761. <div class="openImg">
  6762. <img src="../assets/icon/newIcon/open.png" alt="" />
  6763. </div>
  6764. </div>
  6765. <el-button
  6766. style="margin: 0 30px 0 auto"
  6767. type="primary"
  6768. size="small"
  6769. v-if="isClose == 1 && checktoolArray.length > 0"
  6770. @click.stop="addToolChoose"
  6771. >确定</el-button
  6772. >
  6773. </div>
  6774. </div>
  6775. <div
  6776. class="tool_work_box"
  6777. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6778. >
  6779. <div class="tool_box">
  6780. <div class="tool_type_box">
  6781. <div class="chooseWho">
  6782. <div
  6783. :class="toolType == 0 ? 'isChooseActive' : ''"
  6784. @click="(toolType = 0), $forceUpdate()"
  6785. >
  6786. 互动类
  6787. </div>
  6788. <div
  6789. :class="toolType == 1 ? 'isChooseActive' : ''"
  6790. @click="(toolType = 1), $forceUpdate()"
  6791. >
  6792. 思维类
  6793. </div>
  6794. <div
  6795. :class="toolType == 2 ? 'isChooseActive' : ''"
  6796. @click="(toolType = 2), $forceUpdate()"
  6797. >
  6798. 测评类
  6799. </div>
  6800. <div
  6801. :class="toolType == 3 ? 'isChooseActive' : ''"
  6802. @click="(toolType = 3), $forceUpdate()"
  6803. >
  6804. 编程类
  6805. </div>
  6806. <div
  6807. :class="toolType == 5 ? 'isChooseActive' : ''"
  6808. @click="(toolType = 5), $forceUpdate()"
  6809. >
  6810. 学科类
  6811. </div>
  6812. </div>
  6813. </div>
  6814. <div>
  6815. <div class="toolSort" v-if="toolType == 0">
  6816. <div class="tool">
  6817. <div class="whiteBIcon" @click="addTools2(10)">
  6818. <img
  6819. src="../assets/icon/thirdToolList/time.png"
  6820. alt
  6821. />
  6822. <div style="margin: 5px 0">倒计时</div>
  6823. </div>
  6824. <div class="check" @click="addTools2(10)">
  6825. <img
  6826. src="../assets/icon/checkNo.png"
  6827. alt
  6828. v-if="checktoolArray.indexOf(10) == -1"
  6829. />
  6830. <div class="checkDiv" v-else>
  6831. <img src="../assets/icon/checkedIs.png" alt /><span
  6832. >已选择</span
  6833. >
  6834. </div>
  6835. </div>
  6836. </div>
  6837. <div class="tool">
  6838. <div class="whiteBIcon" @click="addTools2(65)">
  6839. <img
  6840. src="../assets/icon/firstToolList/pickPeople.png"
  6841. alt
  6842. />
  6843. <div style="margin: 5px 0">挑人</div>
  6844. </div>
  6845. <div class="check" @click="addTools2(65)">
  6846. <img
  6847. src="../assets/icon/checkNo.png"
  6848. alt
  6849. v-if="checktoolArray.indexOf(65) == -1"
  6850. />
  6851. <div class="checkDiv" v-else>
  6852. <img src="../assets/icon/checkedIs.png" alt /><span
  6853. >已选择</span
  6854. >
  6855. </div>
  6856. </div>
  6857. </div>
  6858. </div>
  6859. <div class="toolSort" v-if="toolType == 1">
  6860. <div class="tool">
  6861. <div class="whiteBIcon" @click="addTools2(7)">
  6862. <img
  6863. src="../assets/icon/secondToolList/mindNetwork.png"
  6864. alt
  6865. />
  6866. <div style="margin: 5px 0">思维网格</div>
  6867. </div>
  6868. <div class="check" @click="addTools2(7)">
  6869. <img
  6870. src="../assets/icon/checkNo.png"
  6871. alt
  6872. v-if="checktoolArray.indexOf(7) == -1"
  6873. />
  6874. <div class="checkDiv" v-else>
  6875. <img src="../assets/icon/checkedIs.png" alt /><span
  6876. >已选择</span
  6877. >
  6878. </div>
  6879. </div>
  6880. </div>
  6881. <div class="tool">
  6882. <div class="whiteBIcon" @click="addTools2(1)">
  6883. <img
  6884. src="../assets/icon/secondToolList/whiteBoard.png"
  6885. alt
  6886. />
  6887. <div style="margin: 5px 0">电子白板</div>
  6888. </div>
  6889. <div class="check" @click="addTools2(1)">
  6890. <img
  6891. src="../assets/icon/checkNo.png"
  6892. alt
  6893. v-if="checktoolArray.indexOf(1) == -1"
  6894. />
  6895. <div class="checkDiv" v-else>
  6896. <img src="../assets/icon/checkedIs.png" alt /><span
  6897. >已选择</span
  6898. >
  6899. </div>
  6900. </div>
  6901. </div>
  6902. <div class="tool">
  6903. <div class="whiteBIcon" @click="addTools2(52)">
  6904. <img
  6905. src="../assets/icon/fourthToolList/text.png"
  6906. alt
  6907. />
  6908. <div style="margin: 5px 0">文档</div>
  6909. </div>
  6910. <div class="check" @click="addTools2(52)">
  6911. <img
  6912. src="../assets/icon/checkNo.png"
  6913. alt
  6914. v-if="checktoolArray.indexOf(52) == -1"
  6915. />
  6916. <div class="checkDiv" v-else>
  6917. <img src="../assets/icon/checkedIs.png" alt /><span
  6918. >已选择</span
  6919. >
  6920. </div>
  6921. </div>
  6922. </div>
  6923. <div class="tool">
  6924. <div class="whiteBIcon" @click="addTools2(3)">
  6925. <img
  6926. src="../assets/icon/secondToolList/mindMapping.png"
  6927. alt
  6928. />
  6929. <div style="margin: 5px 0">思维导图</div>
  6930. </div>
  6931. <div class="check" @click="addTools2(3)">
  6932. <img
  6933. src="../assets/icon/checkNo.png"
  6934. alt
  6935. v-if="checktoolArray.indexOf(3) == -1"
  6936. />
  6937. <div class="checkDiv" v-else>
  6938. <img src="../assets/icon/checkedIs.png" alt /><span
  6939. >已选择</span
  6940. >
  6941. </div>
  6942. </div>
  6943. </div>
  6944. <div class="tool">
  6945. <div class="whiteBIcon" @click="addTools2(48)">
  6946. <img
  6947. src="../assets/icon/fourthToolList/table.png"
  6948. alt
  6949. />
  6950. <div style="margin: 5px 0">表格</div>
  6951. </div>
  6952. <div class="check" @click="addTools2(48)">
  6953. <img
  6954. src="../assets/icon/checkNo.png"
  6955. alt
  6956. v-if="checktoolArray.indexOf(48) == -1"
  6957. />
  6958. <div class="checkDiv" v-else>
  6959. <img src="../assets/icon/checkedIs.png" alt /><span
  6960. >已选择</span
  6961. >
  6962. </div>
  6963. </div>
  6964. </div>
  6965. </div>
  6966. <div class="toolSort" v-if="toolType == 6">
  6967. <div v-show="tooC == 49">
  6968. <img
  6969. @click="addTools(tooC, toolIndex, taskCount)"
  6970. src="../assets/icon/fourthToolList/group.png"
  6971. alt
  6972. />
  6973. <div style="margin: 5px 0">学生分组</div>
  6974. </div>
  6975. </div>
  6976. <div class="toolSort" v-if="toolType == 2">
  6977. <div class="tool">
  6978. <div class="whiteBIcon" @click="addTools2(16)">
  6979. <img
  6980. src="../assets/icon/thirdToolList/work.png"
  6981. alt
  6982. />
  6983. <div style="margin: 5px 0">作业提交</div>
  6984. </div>
  6985. <div class="check" @click="addTools2(16)">
  6986. <img
  6987. src="../assets/icon/checkNo.png"
  6988. alt
  6989. v-if="checktoolArray.indexOf(16) == -1"
  6990. />
  6991. <div class="checkDiv" v-else>
  6992. <img src="../assets/icon/checkedIs.png" alt /><span
  6993. >已选择</span
  6994. >
  6995. </div>
  6996. </div>
  6997. </div>
  6998. <div class="tool">
  6999. <div class="whiteBIcon" @click="addTools2(50)">
  7000. <img
  7001. src="../assets/icon/thirdToolList/plwork.png"
  7002. alt
  7003. />
  7004. <div style="margin: 5px 0">批量上传</div>
  7005. </div>
  7006. <div class="check" @click="addTools2(50)">
  7007. <img
  7008. src="../assets/icon/checkNo.png"
  7009. alt
  7010. v-if="checktoolArray.indexOf(50) == -1"
  7011. />
  7012. <div class="checkDiv" v-else>
  7013. <img src="../assets/icon/checkedIs.png" alt /><span
  7014. >已选择</span
  7015. >
  7016. </div>
  7017. </div>
  7018. </div>
  7019. </div>
  7020. <div class="toolSort" v-if="toolType == 3">
  7021. <div class="tool">
  7022. <div class="whiteBIcon" @click="addTools2(18)">
  7023. <img
  7024. src="../assets/icon/thirdToolList/trainPlatform.png"
  7025. alt
  7026. />
  7027. <div style="margin: 5px 0">训练平台</div>
  7028. </div>
  7029. <div class="check" @click="addTools2(18)">
  7030. <img
  7031. src="../assets/icon/checkNo.png"
  7032. alt
  7033. v-if="checktoolArray.indexOf(18) == -1"
  7034. />
  7035. <div class="checkDiv" v-else>
  7036. <img src="../assets/icon/checkedIs.png" alt /><span
  7037. >已选择</span
  7038. >
  7039. </div>
  7040. </div>
  7041. </div>
  7042. <div class="tool">
  7043. <div class="whiteBIcon" @click="addTools2(21)">
  7044. <img
  7045. src="../assets/icon/fourthToolList/program.png"
  7046. alt
  7047. />
  7048. <div style="margin: 5px 0">AIoT Blockly</div>
  7049. </div>
  7050. <div class="check" @click="addTools2(21)">
  7051. <img
  7052. src="../assets/icon/checkNo.png"
  7053. alt
  7054. v-if="checktoolArray.indexOf(21) == -1"
  7055. />
  7056. <div class="checkDiv" v-else>
  7057. <img src="../assets/icon/checkedIs.png" alt /><span
  7058. >已选择</span
  7059. >
  7060. </div>
  7061. </div>
  7062. </div>
  7063. <div class="tool">
  7064. <div class="whiteBIcon" @click="addTools2(23)">
  7065. <img
  7066. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7067. alt
  7068. />
  7069. <div style="margin: 5px 0">AI Python</div>
  7070. </div>
  7071. <div class="check" @click="addTools2(23)">
  7072. <img
  7073. src="../assets/icon/checkNo.png"
  7074. alt
  7075. v-if="checktoolArray.indexOf(23) == -1"
  7076. />
  7077. <div class="checkDiv" v-else>
  7078. <img src="../assets/icon/checkedIs.png" alt /><span
  7079. >已选择</span
  7080. >
  7081. </div>
  7082. </div>
  7083. </div>
  7084. <div class="tool">
  7085. <div class="whiteBIcon" @click="addTools2(24)">
  7086. <img
  7087. src="../assets/icon/fourthToolList/AIprogram.png"
  7088. alt
  7089. />
  7090. <div style="margin: 5px 0">AI Blockly</div>
  7091. </div>
  7092. <div class="check" @click="addTools2(24)">
  7093. <img
  7094. src="../assets/icon/checkNo.png"
  7095. alt
  7096. v-if="checktoolArray.indexOf(24) == -1"
  7097. />
  7098. <div class="checkDiv" v-else>
  7099. <img src="../assets/icon/checkedIs.png" alt /><span
  7100. >已选择</span
  7101. >
  7102. </div>
  7103. </div>
  7104. </div>
  7105. <div class="tool">
  7106. <div class="whiteBIcon" @click="addTools2(32)">
  7107. <img
  7108. src="../assets/icon/thirdToolList/code.png"
  7109. alt
  7110. />
  7111. <div style="margin: 5px 0">源码编辑</div>
  7112. </div>
  7113. <div class="check" @click="addTools2(32)">
  7114. <img
  7115. src="../assets/icon/checkNo.png"
  7116. alt
  7117. v-if="checktoolArray.indexOf(32) == -1"
  7118. />
  7119. <div class="checkDiv" v-else>
  7120. <img src="../assets/icon/checkedIs.png" alt /><span
  7121. >已选择</span
  7122. >
  7123. </div>
  7124. </div>
  7125. </div>
  7126. <div class="tool">
  7127. <div class="whiteBIcon" @click="addTools2(57)">
  7128. <img
  7129. src="../assets/icon/fourthToolList/cocopi.png"
  7130. alt
  7131. />
  7132. <div style="margin: 5px 0">CocoPi</div>
  7133. </div>
  7134. <div class="check" @click="addTools2(57)">
  7135. <img
  7136. src="../assets/icon/checkNo.png"
  7137. alt
  7138. v-if="checktoolArray.indexOf(57) == -1"
  7139. />
  7140. <div class="checkDiv" v-else>
  7141. <img src="../assets/icon/checkedIs.png" alt /><span
  7142. >已选择</span
  7143. >
  7144. </div>
  7145. </div>
  7146. </div>
  7147. <div class="tool">
  7148. <div class="whiteBIcon" @click="addTools2(63)">
  7149. <img
  7150. src="../assets/icon/fourthToolList/Wood.png"
  7151. alt
  7152. />
  7153. <div style="margin: 5px 0">海龟编程</div>
  7154. </div>
  7155. <div class="check" @click="addTools2(63)">
  7156. <img
  7157. src="../assets/icon/checkNo.png"
  7158. alt
  7159. v-if="checktoolArray.indexOf(63) == -1"
  7160. />
  7161. <div class="checkDiv" v-else>
  7162. <img src="../assets/icon/checkedIs.png" alt /><span
  7163. >已选择</span
  7164. >
  7165. </div>
  7166. </div>
  7167. </div>
  7168. </div>
  7169. <div class="toolSort" v-if="toolType == 5">
  7170. <div class="tool">
  7171. <div class="whiteBIcon" @click="addTools2(28)">
  7172. <img
  7173. src="../assets/icon/secondToolList/translation.png"
  7174. alt
  7175. />
  7176. <div style="margin: 5px 0">翻译</div>
  7177. </div>
  7178. <div class="check" @click="addTools2(28)">
  7179. <img
  7180. src="../assets/icon/checkNo.png"
  7181. alt
  7182. v-if="checktoolArray.indexOf(28) == -1"
  7183. />
  7184. <div class="checkDiv" v-else>
  7185. <img src="../assets/icon/checkedIs.png" alt /><span
  7186. >已选择</span
  7187. >
  7188. </div>
  7189. </div>
  7190. </div>
  7191. <div class="tool">
  7192. <div class="whiteBIcon" @click="addTools2(31)">
  7193. <img
  7194. src="../assets/icon/secondToolList/networkPanel.png"
  7195. alt
  7196. />
  7197. <div style="margin: 5px 0">数字画板</div>
  7198. </div>
  7199. <div class="check" @click="addTools2(31)">
  7200. <img
  7201. src="../assets/icon/checkNo.png"
  7202. alt
  7203. v-if="checktoolArray.indexOf(31) == -1"
  7204. />
  7205. <div class="checkDiv" v-else>
  7206. <img src="../assets/icon/checkedIs.png" alt /><span
  7207. >已选择</span
  7208. >
  7209. </div>
  7210. </div>
  7211. </div>
  7212. <div class="tool">
  7213. <div class="whiteBIcon" @click="addTools2(39)">
  7214. <img
  7215. src="../assets/icon/secondToolList/GeoGebra.png"
  7216. alt
  7217. />
  7218. <div style="margin: 5px 0">GeoGebra</div>
  7219. </div>
  7220. <div class="check" @click="addTools2(39)">
  7221. <img
  7222. src="../assets/icon/checkNo.png"
  7223. alt
  7224. v-if="checktoolArray.indexOf(39) == -1"
  7225. />
  7226. <div class="checkDiv" v-else>
  7227. <img src="../assets/icon/checkedIs.png" alt /><span
  7228. >已选择</span
  7229. >
  7230. </div>
  7231. </div>
  7232. </div>
  7233. <div class="tool">
  7234. <div class="whiteBIcon" @click="addTools2(66)">
  7235. <img
  7236. src="../assets/icon/secondToolList/formulaEdi.png"
  7237. alt
  7238. />
  7239. <div style="margin: 5px 0">公式编辑</div>
  7240. </div>
  7241. <div class="check" @click="addTools2(66)">
  7242. <img
  7243. src="../assets/icon/checkNo.png"
  7244. alt
  7245. v-if="checktoolArray.indexOf(66) == -1"
  7246. />
  7247. <div class="checkDiv" v-else>
  7248. <img src="../assets/icon/checkedIs.png" alt /><span
  7249. >已选择</span
  7250. >
  7251. </div>
  7252. </div>
  7253. </div>
  7254. <div class="tool">
  7255. <div class="whiteBIcon" @click="addTools2(67)">
  7256. <img
  7257. src="../assets/icon/secondToolList/molStr.png"
  7258. alt
  7259. />
  7260. <div style="margin: 5px 0">分子结构</div>
  7261. </div>
  7262. <div class="check" @click="addTools2(67)">
  7263. <img
  7264. src="../assets/icon/checkNo.png"
  7265. alt
  7266. v-if="checktoolArray.indexOf(67) == -1"
  7267. />
  7268. <div class="checkDiv" v-else>
  7269. <img src="../assets/icon/checkedIs.png" alt /><span
  7270. >已选择</span
  7271. >
  7272. </div>
  7273. </div>
  7274. </div>
  7275. <div class="tool">
  7276. <div class="whiteBIcon" @click="addTools2(68)">
  7277. <img
  7278. src="../assets/icon/secondToolList/timeAxis.png"
  7279. alt
  7280. />
  7281. <div style="margin: 5px 0">时间轴</div>
  7282. </div>
  7283. <div class="check" @click="addTools2(68)">
  7284. <img
  7285. src="../assets/icon/checkNo.png"
  7286. alt
  7287. v-if="checktoolArray.indexOf(68) == -1"
  7288. />
  7289. <div class="checkDiv" v-else>
  7290. <img src="../assets/icon/checkedIs.png" alt /><span
  7291. >已选择</span
  7292. >
  7293. </div>
  7294. </div>
  7295. </div>
  7296. </div>
  7297. <div class="toolSort" v-if="toolType == 7">
  7298. <div class="tool">
  7299. <div class="whiteBIcon" @click="addTools2(40)">
  7300. <img
  7301. src="../assets/icon/secondToolList/eval.png"
  7302. alt
  7303. />
  7304. <div style="margin: 5px 0">个人评价</div>
  7305. </div>
  7306. <div class="check" @click="addTools2(40)">
  7307. <img
  7308. src="../assets/icon/checkNo.png"
  7309. alt
  7310. v-if="checktoolArray.indexOf(40) == -1"
  7311. />
  7312. <div class="checkDiv" v-else>
  7313. <img src="../assets/icon/checkedIs.png" alt /><span
  7314. >已选择</span
  7315. >
  7316. </div>
  7317. </div>
  7318. </div>
  7319. </div>
  7320. <div class="toolSort" v-if="toolType == 4">
  7321. <div class="tool">
  7322. <div class="whiteBIcon" @click="addTools2(26)">
  7323. <img
  7324. src="../assets/icon/thirdToolList/courseDesign.png"
  7325. alt
  7326. />
  7327. <div style="margin: 5px 0">课程设计</div>
  7328. </div>
  7329. <div class="check" @click="addTools2(26)">
  7330. <img
  7331. src="../assets/icon/checkNo.png"
  7332. alt
  7333. v-if="checktoolArray.indexOf(26) == -1"
  7334. />
  7335. <div class="checkDiv" v-else>
  7336. <img src="../assets/icon/checkedIs.png" alt /><span
  7337. >已选择</span
  7338. >
  7339. </div>
  7340. </div>
  7341. </div>
  7342. <div class="tool">
  7343. <div class="whiteBIcon" @click="addTools2(25)">
  7344. <img
  7345. src="../assets/icon/thirdToolList/evalua.png"
  7346. alt
  7347. />
  7348. <div style="margin: 5px 0">目标管理</div>
  7349. </div>
  7350. <div class="check" @click="addTools2(25)">
  7351. <img
  7352. src="../assets/icon/checkNo.png"
  7353. alt
  7354. v-if="checktoolArray.indexOf(25) == -1"
  7355. />
  7356. <div class="checkDiv" v-else>
  7357. <img src="../assets/icon/checkedIs.png" alt /><span
  7358. >已选择</span
  7359. >
  7360. </div>
  7361. </div>
  7362. </div>
  7363. </div>
  7364. </div>
  7365. </div>
  7366. </div>
  7367. </div> -->
  7368. <div
  7369. class="vedioBox"
  7370. style="margin-top: 10px; border-radius: 20px"
  7371. v-if="
  7372. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7373. .eList &&
  7374. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7375. .eList.length &&
  7376. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7377. .eList.length > 0 &&
  7378. tType != 2
  7379. "
  7380. >
  7381. <div
  7382. class="queTop"
  7383. style="
  7384. font-size: 20px;
  7385. padding: 15px 0 15px 37px;
  7386. font-weight: bold;
  7387. "
  7388. >
  7389. <!-- <div class="question" style="width: 30px">
  7390. <img src="../assets/icon/toolIcon.png" alt />
  7391. </div>
  7392. <div class="queTitle">
  7393. <div>工具</div>
  7394. </div>-->
  7395. 评一评
  7396. </div>
  7397. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7398. <div class="elist_input">
  7399. <el-table
  7400. :data="
  7401. chapInfoList[courseType].chapterInfo[0].taskJson[
  7402. taskCount
  7403. ].eList
  7404. "
  7405. :header-cell-style="{ background: '#F0F4FA' }"
  7406. :row-class-name="tableRowClassName"
  7407. border
  7408. stripe
  7409. style="width: 100%"
  7410. >
  7411. <el-table-column
  7412. label="评价名称"
  7413. width="180"
  7414. align="center"
  7415. >
  7416. <template slot-scope="scope"
  7417. ><div>{{ scope.row.value }}</div></template
  7418. >
  7419. </el-table-column>
  7420. <el-table-column
  7421. label="评价描述"
  7422. width="180"
  7423. align="center"
  7424. >
  7425. <template slot-scope="scope"
  7426. ><div>
  7427. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7428. </div></template
  7429. >
  7430. </el-table-column>
  7431. <el-table-column label="目标" align="center">
  7432. <template slot-scope="scope"
  7433. ><div>
  7434. {{
  7435. scope.row.target
  7436. ? scope.row.target[scope.row.target.length - 1]
  7437. : "-"
  7438. }}
  7439. </div></template
  7440. ></el-table-column
  7441. >
  7442. </el-table>
  7443. <!-- <div
  7444. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7445. .chapterInfo[0].taskJson[taskCount].eList"
  7446. :key="eIndex"
  7447. class="elist_input_box"
  7448. >
  7449. <div style="width: 95%">
  7450. <div
  7451. style="
  7452. display: flex;
  7453. flex-direction: row;
  7454. flex-wrap: nowrap;
  7455. align-items: center;
  7456. "
  7457. >
  7458. <div style="max-width: calc(100% - 285px)">
  7459. <span>{{ eItem.value }}</span>
  7460. </div>
  7461. <div
  7462. style="
  7463. padding-left: 25px;
  7464. display: flex;
  7465. flex-direction: row;
  7466. align-items: center;
  7467. "
  7468. >
  7469. <el-rate
  7470. v-model="eItem.score"
  7471. :colors="colors"
  7472. disabled
  7473. ></el-rate>
  7474. </div>
  7475. </div>
  7476. <div class="elist_inptu_text" style="padding-left: 10px">
  7477. <span v-if="eItem.detail != ''">{{
  7478. eItem.detail
  7479. }}</span>
  7480. <span v-else style="color: #b2b1b3; font-size: 14px"
  7481. >暂无描述...</span
  7482. >
  7483. </div>
  7484. </div>
  7485. </div> -->
  7486. </div>
  7487. <div
  7488. v-if="evalua"
  7489. style="
  7490. border: 1px solid #e5e5e5;
  7491. max-width: 650px;
  7492. width: 100%;
  7493. margin-top: 20px;
  7494. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7495. "
  7496. >
  7497. <div class="e_add_top">
  7498. <div class="e_add_title">
  7499. <span>目标管理名称</span>
  7500. <span>{{ eTitle }}</span>
  7501. <img
  7502. src="../assets/line.png"
  7503. class="cru_line"
  7504. style="
  7505. width: 125px;
  7506. height: 20px;
  7507. bottom: -10px;
  7508. left: 120px;
  7509. "
  7510. />
  7511. <!-- <el-input
  7512. v-model="eTitle"
  7513. placeholder="请输入名称"
  7514. @change="setMindData"
  7515. ></el-input>-->
  7516. </div>
  7517. </div>
  7518. <div class="e_add_content">
  7519. <div class="e_add_list_pbox">
  7520. <div class="e_add_list_pbox_title">
  7521. <span class="type_title">切换模式</span>
  7522. <div class="type_content">
  7523. <span
  7524. :class="{ active: typeMode == 1 }"
  7525. @click="typeMode = 1"
  7526. >目标树</span
  7527. >
  7528. <span
  7529. :class="{ active: typeMode == 2 }"
  7530. @click="typeMode = 2"
  7531. >目标罗盘</span
  7532. >
  7533. <!-- <span
  7534. :class="{ active: typeMode == 3 }"
  7535. @click="typeMode = 3"
  7536. >目标看板</span
  7537. > -->
  7538. </div>
  7539. </div>
  7540. <div class="e_add_list_pbox_content">
  7541. <Mind
  7542. :showBar="false"
  7543. :mindData="data"
  7544. style="width: 100%"
  7545. v-show="typeMode == 1"
  7546. ></Mind>
  7547. <Sunburst
  7548. :Josn="eJson"
  7549. :num="eJSONNum"
  7550. style="width: 100%"
  7551. v-if="typeMode == 2"
  7552. ></Sunburst>
  7553. <SeeBoard
  7554. :Josn="eJson"
  7555. :num="eJSONNum"
  7556. :ename="eTitle"
  7557. style="width: 100%"
  7558. v-if="typeMode == 3"
  7559. >
  7560. </SeeBoard>
  7561. </div>
  7562. </div>
  7563. </div>
  7564. </div>
  7565. </div>
  7566. </div>
  7567. <!-- <div
  7568. class="project_box"
  7569. style="margin-top: 15px; padding-bottom: 30px"
  7570. >
  7571. <div
  7572. style="
  7573. display: flex;
  7574. flex-wrap: nowrap;
  7575. flex-direction: column;
  7576. position: relative;
  7577. "
  7578. >
  7579. <div class="queTop">
  7580. <div class="question">
  7581. <img src="../assets/icon/homeWork.png" alt="" />
  7582. </div>
  7583. <div class="queTitle">
  7584. <div>作业提交<span>(提交图文视频等)</span></div>
  7585. <div>:任务:{{ task.task }}</div>
  7586. </div>
  7587. </div>
  7588. <div class="ediBottom">
  7589. <div
  7590. class="addEditor"
  7591. style="margin-top: 23px"
  7592. @click="openAddWork"
  7593. v-if="!isNoHomeWork"
  7594. >
  7595. 选择文件
  7596. </div>
  7597. <div
  7598. class="addEditor"
  7599. style="margin-top: 23px"
  7600. @click="openAddWork"
  7601. v-else
  7602. >
  7603. 已提交
  7604. </div>
  7605. </div>
  7606. </div>
  7607. </div>-->
  7608. </div>
  7609. </div>
  7610. <el-dialog
  7611. title="作业提交"
  7612. :visible.sync="dialogVisible"
  7613. :append-to-body="true"
  7614. width="500px"
  7615. :before-close="handleClose"
  7616. class="dialog_change"
  7617. >
  7618. <div class="marginT">
  7619. <div>上传文件</div>
  7620. <div
  7621. class="chapter_add"
  7622. @click="addImg($event)"
  7623. v-if="studyJuri[0].cover.length == 0"
  7624. >
  7625. <div class="up_photo">
  7626. <img src="../assets/icon/uploadImg.png" alt />
  7627. </div>
  7628. <!-- <input
  7629. type="file"
  7630. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7631. style="display: none"
  7632. @change="beforeUpload1($event, 1)"
  7633. /> -->
  7634. <input
  7635. type="file"
  7636. accept="*"
  7637. style="display: none"
  7638. @change="beforeUpload1($event, 1)"
  7639. />
  7640. <!-- <input
  7641. type="file"
  7642. accept="image/*"
  7643. capture="camera"
  7644. style="display: none"
  7645. @change="beforeUpload1($event, 1)"
  7646. /> -->
  7647. </div>
  7648. <div
  7649. class="chapter_add"
  7650. style="
  7651. display: flex;
  7652. width: 100%;
  7653. flex-direction: row;
  7654. flex-wrap: wrap;
  7655. justify-content: flex-start;
  7656. padding: 15px 0;
  7657. "
  7658. v-if="studyJuri[0].cover.length > 0"
  7659. >
  7660. <div class="upCover">
  7661. <img
  7662. :src="studyJuri[0].cover[0].url"
  7663. alt
  7664. v-if="fileType == 0"
  7665. />
  7666. <img :src="word" alt v-else-if="fileType == 1" />
  7667. <img :src="video" alt v-else-if="fileType == 2" />
  7668. <img :src="word2" alt v-else-if="fileType == 3" />
  7669. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7670. <div class="deleteWord" @click="clean(1)">
  7671. <img src="../assets/icon/deleteWorks.png" alt />
  7672. </div>
  7673. </div>
  7674. </div>
  7675. </div>
  7676. <div
  7677. class="upload_send"
  7678. @click="addCourseWorks(taskCount)"
  7679. v-if="!proVisible"
  7680. >
  7681. 提交
  7682. </div>
  7683. </el-dialog>
  7684. </div>
  7685. </div>
  7686. <div
  7687. class="pButton"
  7688. @click="(pzDialog = true), selectPz()"
  7689. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7690. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7691. >
  7692. <!-- 批 -->
  7693. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  7694. </div>
  7695. <div v-if="pzDialog == true" class="newDialogCss">
  7696. <div class="pzTop2">
  7697. <!-- <div>批注</div>
  7698. <div @click="pzDialog = false">
  7699. <img src="../assets/close1.png" alt="" />
  7700. </div> -->
  7701. <div class="checkbox">
  7702. <div class="check" style="font-size: 25px; position: unset">
  7703. 评课笔记
  7704. </div>
  7705. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7706. <el-option label="时间降序" :value="1"></el-option>
  7707. <el-option label="时间升序" :value="2"></el-option>
  7708. <el-option label="我的评课" :value="3"></el-option>
  7709. </el-select>
  7710. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7711. </div>
  7712. </div>
  7713. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7714. <div class="pzListBox" v-if="pzList && pzList.length">
  7715. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7716. <div class="pzNavTop">
  7717. <div>批</div>
  7718. <div>
  7719. {{
  7720. pz.username && pz.username.length > 5
  7721. ? pz.username.substring(0, 5) + "..."
  7722. : pz.username
  7723. }}的批注
  7724. </div>
  7725. <div
  7726. class="pzDelete"
  7727. v-if="pz.userid == userid"
  7728. @click="deletePz(pz.id)"
  7729. >
  7730. 删除
  7731. </div>
  7732. </div>
  7733. <div
  7734. @click="checkImg(getImgList(pz.content))"
  7735. class="pzContent cont"
  7736. v-html="pz.content"
  7737. v-if="pz.type == '1'"
  7738. ></div>
  7739. <div class="pzContent" v-if="pz.type == '2'">
  7740. <audio :src="pz.content" controls="controls" ref="audio">
  7741. Your browser does not support the audio element.
  7742. </audio>
  7743. </div>
  7744. <div class="pzContent" v-if="pz.type == '3'">
  7745. <img
  7746. :src="pz.content"
  7747. style="width: 90%; margin: 0 auto; display: block"
  7748. @click="previewImg(pz.content)"
  7749. />
  7750. </div>
  7751. <div class="timeAndReply">
  7752. <div class="time">
  7753. {{ pz.time }}
  7754. </div>
  7755. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7756. </div>
  7757. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7758. <div
  7759. v-for="(h, hIndex) in pz.hfList"
  7760. :key="hIndex"
  7761. class="hfItem"
  7762. >
  7763. <div class="whoReplyWho">
  7764. <div class="hfName">{{ h.username }}</div>
  7765. <div class="hfImg">
  7766. <img src="../assets/icon/newIcons/right.png" alt="" />
  7767. </div>
  7768. <div class="hfName">{{ pz.username }}</div>
  7769. </div>
  7770. <div class="hfContent" v-html="h.content"></div>
  7771. <div class="hfBottom">
  7772. <div class="hfTime">{{ h.time }}</div>
  7773. <div
  7774. class="deleteHfItem"
  7775. @click="deleteReply(h.id)"
  7776. v-if="userid == h.userid"
  7777. >
  7778. <img src="../assets/icon/newIcons/delete.png" alt="" />
  7779. </div>
  7780. </div>
  7781. </div>
  7782. </div>
  7783. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7784. <div class="replyInput">
  7785. <el-input v-model="reply[pzIndex]"></el-input>
  7786. </div>
  7787. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7788. </div> -->
  7789. </div>
  7790. </div>
  7791. <div class="noPz" v-else>
  7792. <img src="../assets/icon/noPz.png" alt="" />
  7793. </div>
  7794. <div class="addPzButton">
  7795. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7796. 添加批注
  7797. </div>
  7798. <!-- <div class="img1">
  7799. <div @click="(addPzDialog = true), (pzType = 2)">
  7800. <img src="../assets/audio.png" /><span>音频</span>
  7801. </div>
  7802. </div> -->
  7803. </div>
  7804. </div>
  7805. </div>
  7806. <div
  7807. v-if="toolDialogVisible == true"
  7808. class="toolMask"
  7809. @click="toolDialogVisible = false"
  7810. ></div>
  7811. <div v-if="toolDialogVisible == true" class="addToolCss">
  7812. <div class="toolTop">
  7813. <div style="font-weight: bold">新增工具</div>
  7814. <div @click="toolDialogVisible = false">
  7815. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  7816. </div>
  7817. </div>
  7818. <div class="tool_box">
  7819. <div class="tool_type_box">
  7820. <div class="chooseWho">
  7821. <div
  7822. :class="toolType == 0 ? 'isChooseActive' : ''"
  7823. @click="(toolType = 0), $forceUpdate()"
  7824. >
  7825. 互动类
  7826. </div>
  7827. <div
  7828. :class="toolType == 1 ? 'isChooseActive' : ''"
  7829. @click="(toolType = 1), $forceUpdate()"
  7830. >
  7831. 思维类
  7832. </div>
  7833. <div
  7834. :class="toolType == 2 ? 'isChooseActive' : ''"
  7835. @click="(toolType = 2), $forceUpdate()"
  7836. >
  7837. 测评类
  7838. </div>
  7839. <div
  7840. :class="toolType == 3 ? 'isChooseActive' : ''"
  7841. @click="(toolType = 3), $forceUpdate()"
  7842. >
  7843. 编程类
  7844. </div>
  7845. <div
  7846. :class="toolType == 5 ? 'isChooseActive' : ''"
  7847. @click="(toolType = 5), $forceUpdate()"
  7848. >
  7849. 学科类
  7850. </div>
  7851. </div>
  7852. </div>
  7853. <div>
  7854. <div class="toolSort" v-if="toolType == 0">
  7855. <div
  7856. class="tool"
  7857. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7858. @click="addTools2(10)"
  7859. >
  7860. <div class="whiteBIcon">
  7861. <img src="../assets/icon/thirdToolList/time.png" alt />
  7862. <div style="margin: 5px 0">倒计时</div>
  7863. </div>
  7864. <div class="check">
  7865. <div
  7866. v-if="checktoolArray.indexOf(10) == -1"
  7867. class="noChoose"
  7868. ></div>
  7869. <div v-else class="isChoose"></div>
  7870. </div>
  7871. </div>
  7872. <div
  7873. class="tool"
  7874. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7875. @click="addTools2(65)"
  7876. >
  7877. <div class="whiteBIcon">
  7878. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  7879. <div style="margin: 5px 0">挑人</div>
  7880. </div>
  7881. <div class="check">
  7882. <div
  7883. v-if="checktoolArray.indexOf(65) == -1"
  7884. class="noChoose"
  7885. ></div>
  7886. <div v-else class="isChoose"></div>
  7887. </div>
  7888. </div>
  7889. </div>
  7890. <div class="toolSort" v-if="toolType == 1">
  7891. <div
  7892. class="tool"
  7893. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7894. @click="addTools2(7)"
  7895. >
  7896. <div class="whiteBIcon">
  7897. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  7898. <div style="margin: 5px 0">思维网格</div>
  7899. </div>
  7900. <div class="check">
  7901. <div
  7902. v-if="checktoolArray.indexOf(7) == -1"
  7903. class="noChoose"
  7904. ></div>
  7905. <div v-else class="isChoose"></div>
  7906. </div>
  7907. </div>
  7908. <div
  7909. class="tool"
  7910. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7911. @click="addTools2(1)"
  7912. >
  7913. <div class="whiteBIcon">
  7914. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  7915. <div style="margin: 5px 0">电子白板</div>
  7916. </div>
  7917. <div class="check">
  7918. <div
  7919. v-if="checktoolArray.indexOf(1) == -1"
  7920. class="noChoose"
  7921. ></div>
  7922. <div v-else class="isChoose"></div>
  7923. </div>
  7924. </div>
  7925. <div
  7926. class="tool"
  7927. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7928. @click="addTools2(52)"
  7929. >
  7930. <div class="whiteBIcon">
  7931. <img src="../assets/icon/fourthToolList/text.png" alt />
  7932. <div style="margin: 5px 0">文档</div>
  7933. </div>
  7934. <div class="check">
  7935. <div
  7936. v-if="checktoolArray.indexOf(52) == -1"
  7937. class="noChoose"
  7938. ></div>
  7939. <div v-else class="isChoose"></div>
  7940. </div>
  7941. </div>
  7942. <div
  7943. class="tool"
  7944. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7945. @click="addTools2(3)"
  7946. >
  7947. <div class="whiteBIcon">
  7948. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  7949. <div style="margin: 5px 0">思维导图</div>
  7950. </div>
  7951. <div class="check">
  7952. <div
  7953. v-if="checktoolArray.indexOf(3) == -1"
  7954. class="noChoose"
  7955. ></div>
  7956. <div v-else class="isChoose"></div>
  7957. </div>
  7958. </div>
  7959. <div
  7960. class="tool"
  7961. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7962. @click="addTools2(48)"
  7963. >
  7964. <div class="whiteBIcon">
  7965. <img src="../assets/icon/fourthToolList/table.png" alt />
  7966. <div style="margin: 5px 0">表格</div>
  7967. </div>
  7968. <div class="check">
  7969. <div
  7970. v-if="checktoolArray.indexOf(48) == -1"
  7971. class="noChoose"
  7972. ></div>
  7973. <div v-else class="isChoose"></div>
  7974. </div>
  7975. </div>
  7976. </div>
  7977. <div class="toolSort" v-if="toolType == 6">
  7978. <div v-show="tooC == 49">
  7979. <img
  7980. @click="addTools(tooC, toolIndex, taskCount)"
  7981. src="../assets/icon/fourthToolList/group.png"
  7982. alt
  7983. />
  7984. <div style="margin: 5px 0">学生分组</div>
  7985. </div>
  7986. </div>
  7987. <div class="toolSort" v-if="toolType == 2">
  7988. <div
  7989. class="tool"
  7990. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7991. @click="addTools2(16)"
  7992. >
  7993. <div class="whiteBIcon">
  7994. <img src="../assets/icon/thirdToolList/work.png" alt />
  7995. <div style="margin: 5px 0">作业提交</div>
  7996. </div>
  7997. <div class="check">
  7998. <div
  7999. v-if="checktoolArray.indexOf(16) == -1"
  8000. class="noChoose"
  8001. ></div>
  8002. <div v-else class="isChoose"></div>
  8003. </div>
  8004. </div>
  8005. <div
  8006. class="tool"
  8007. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8008. @click="addTools2(50)"
  8009. >
  8010. <div class="whiteBIcon">
  8011. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8012. <div style="margin: 5px 0">批量上传</div>
  8013. </div>
  8014. <div class="check">
  8015. <div
  8016. v-if="checktoolArray.indexOf(50) == -1"
  8017. class="noChoose"
  8018. ></div>
  8019. <div v-else class="isChoose"></div>
  8020. </div>
  8021. </div>
  8022. </div>
  8023. <div class="toolSort" v-if="toolType == 3">
  8024. <div
  8025. class="tool"
  8026. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8027. @click="addTools2(18)"
  8028. >
  8029. <div class="whiteBIcon">
  8030. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8031. <div style="margin: 5px 0">训练平台</div>
  8032. </div>
  8033. <div class="check">
  8034. <div
  8035. v-if="checktoolArray.indexOf(18) == -1"
  8036. class="noChoose"
  8037. ></div>
  8038. <div v-else class="isChoose"></div>
  8039. </div>
  8040. </div>
  8041. <div
  8042. class="tool"
  8043. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8044. @click="addTools2(21)"
  8045. >
  8046. <div class="whiteBIcon">
  8047. <img src="../assets/icon/fourthToolList/program.png" alt />
  8048. <div style="margin: 5px 0">AIoT Blockly</div>
  8049. </div>
  8050. <div class="check">
  8051. <div
  8052. v-if="checktoolArray.indexOf(21) == -1"
  8053. class="noChoose"
  8054. ></div>
  8055. <div v-else class="isChoose"></div>
  8056. </div>
  8057. </div>
  8058. <div
  8059. class="tool"
  8060. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8061. @click="addTools2(23)"
  8062. >
  8063. <div class="whiteBIcon">
  8064. <img
  8065. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8066. alt
  8067. />
  8068. <div style="margin: 5px 0">AI Python</div>
  8069. </div>
  8070. <div class="check">
  8071. <div
  8072. v-if="checktoolArray.indexOf(23) == -1"
  8073. class="noChoose"
  8074. ></div>
  8075. <div v-else class="isChoose"></div>
  8076. </div>
  8077. </div>
  8078. <div
  8079. class="tool"
  8080. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8081. @click="addTools2(24)"
  8082. >
  8083. <div class="whiteBIcon">
  8084. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8085. <div style="margin: 5px 0">AI Blockly</div>
  8086. </div>
  8087. <div class="check">
  8088. <div
  8089. v-if="checktoolArray.indexOf(24) == -1"
  8090. class="noChoose"
  8091. ></div>
  8092. <div v-else class="isChoose"></div>
  8093. </div>
  8094. </div>
  8095. <div
  8096. class="tool"
  8097. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8098. @click="addTools2(32)"
  8099. >
  8100. <div class="whiteBIcon">
  8101. <img src="../assets/icon/thirdToolList/code.png" alt />
  8102. <div style="margin: 5px 0">源码编辑</div>
  8103. </div>
  8104. <div class="check">
  8105. <div
  8106. v-if="checktoolArray.indexOf(32) == -1"
  8107. class="noChoose"
  8108. ></div>
  8109. <div v-else class="isChoose"></div>
  8110. </div>
  8111. </div>
  8112. <div
  8113. class="tool"
  8114. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8115. @click="addTools2(57)"
  8116. >
  8117. <div class="whiteBIcon">
  8118. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8119. <div style="margin: 5px 0">CocoPi</div>
  8120. </div>
  8121. <div class="check">
  8122. <div
  8123. v-if="checktoolArray.indexOf(57) == -1"
  8124. class="noChoose"
  8125. ></div>
  8126. <div v-else class="isChoose"></div>
  8127. </div>
  8128. </div>
  8129. <div
  8130. class="tool"
  8131. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8132. @click="addTools2(63)"
  8133. >
  8134. <div class="whiteBIcon">
  8135. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8136. <div style="margin: 5px 0">海龟编程</div>
  8137. </div>
  8138. <div class="check">
  8139. <div
  8140. v-if="checktoolArray.indexOf(63) == -1"
  8141. class="noChoose"
  8142. ></div>
  8143. <div v-else class="isChoose"></div>
  8144. </div>
  8145. </div>
  8146. </div>
  8147. <div class="toolSort" v-if="toolType == 7">
  8148. <div
  8149. class="tool"
  8150. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8151. @click="addTools2(40)"
  8152. >
  8153. <div class="whiteBIcon">
  8154. <img src="../assets/icon/secondToolList/eval.png" alt />
  8155. <div style="margin: 5px 0">个人评价</div>
  8156. </div>
  8157. <div class="check">
  8158. <div
  8159. v-if="checktoolArray.indexOf(40) == -1"
  8160. class="noChoose"
  8161. ></div>
  8162. <div v-else class="isChoose"></div>
  8163. </div>
  8164. </div>
  8165. </div>
  8166. <div class="toolSort" v-if="toolType == 5">
  8167. <div
  8168. class="tool"
  8169. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8170. @click="addTools2(28)"
  8171. >
  8172. <div class="whiteBIcon">
  8173. <img src="../assets/icon/secondToolList/translation.png" alt />
  8174. <div style="margin: 5px 0">翻译</div>
  8175. </div>
  8176. <div class="check">
  8177. <div
  8178. v-if="checktoolArray.indexOf(28) == -1"
  8179. class="noChoose"
  8180. ></div>
  8181. <div v-else class="isChoose"></div>
  8182. </div>
  8183. </div>
  8184. <div
  8185. class="tool"
  8186. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8187. @click="addTools2(31)"
  8188. >
  8189. <div class="whiteBIcon">
  8190. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8191. <div style="margin: 5px 0">数字画板</div>
  8192. </div>
  8193. <div class="check">
  8194. <div
  8195. v-if="checktoolArray.indexOf(31) == -1"
  8196. class="noChoose"
  8197. ></div>
  8198. <div v-else class="isChoose"></div>
  8199. </div>
  8200. </div>
  8201. <div
  8202. class="tool"
  8203. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8204. @click="addTools2(39)"
  8205. >
  8206. <div class="whiteBIcon">
  8207. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8208. <div style="margin: 5px 0">GeoGebra</div>
  8209. </div>
  8210. <div class="check">
  8211. <div
  8212. v-if="checktoolArray.indexOf(39) == -1"
  8213. class="noChoose"
  8214. ></div>
  8215. <div v-else class="isChoose"></div>
  8216. </div>
  8217. </div>
  8218. <div
  8219. class="tool"
  8220. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8221. @click="addTools2(66)"
  8222. >
  8223. <div class="whiteBIcon">
  8224. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8225. <div style="margin: 5px 0">公式编辑</div>
  8226. </div>
  8227. <div class="check">
  8228. <div
  8229. v-if="checktoolArray.indexOf(66) == -1"
  8230. class="noChoose"
  8231. ></div>
  8232. <div v-else class="isChoose"></div>
  8233. </div>
  8234. </div>
  8235. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8236. <div class="whiteBIcon" @click="addTools2(67)">
  8237. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8238. <div style="margin: 5px 0">分子结构</div>
  8239. </div>
  8240. <div class="check" @click="addTools2(67)">
  8241. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8242. <div v-else class="isChoose"></div>
  8243. </div>
  8244. </div> -->
  8245. <div
  8246. class="tool"
  8247. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8248. @click="addTools2(68)"
  8249. >
  8250. <div class="whiteBIcon">
  8251. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8252. <div style="margin: 5px 0">时间轴</div>
  8253. </div>
  8254. <div class="check">
  8255. <div
  8256. v-if="checktoolArray.indexOf(68) == -1"
  8257. class="noChoose"
  8258. ></div>
  8259. <div v-else class="isChoose"></div>
  8260. </div>
  8261. </div>
  8262. <!-- <div
  8263. class="tool"
  8264. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8265. @click="addTools2(69)"
  8266. >
  8267. <div class="whiteBIcon">
  8268. <img src="../assets/icon/secondToolList/english.png" alt />
  8269. <div style="margin: 5px 0">英语写作</div>
  8270. </div>
  8271. <div class="check">
  8272. <div
  8273. v-if="checktoolArray.indexOf(69) == -1"
  8274. class="noChoose"
  8275. ></div>
  8276. <div v-else class="isChoose"></div>
  8277. </div>
  8278. </div> -->
  8279. </div>
  8280. <div class="toolSort" v-if="toolType == 4">
  8281. <div
  8282. class="tool"
  8283. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8284. @click="addTools2(26)"
  8285. >
  8286. <div class="whiteBIcon">
  8287. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8288. <div style="margin: 5px 0">课程设计</div>
  8289. </div>
  8290. <div class="check">
  8291. <div
  8292. v-if="checktoolArray.indexOf(26) == -1"
  8293. class="noChoose"
  8294. ></div>
  8295. <div v-else class="isChoose"></div>
  8296. </div>
  8297. </div>
  8298. <div
  8299. class="tool"
  8300. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8301. @click="addTools2(25)"
  8302. >
  8303. <div class="whiteBIcon">
  8304. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8305. <div style="margin: 5px 0">目标管理</div>
  8306. </div>
  8307. <div class="check">
  8308. <div
  8309. v-if="checktoolArray.indexOf(25) == -1"
  8310. class="noChoose"
  8311. ></div>
  8312. <div v-else class="isChoose"></div>
  8313. </div>
  8314. </div>
  8315. </div>
  8316. </div>
  8317. </div>
  8318. <span
  8319. slot="footer"
  8320. class="dialog-footer"
  8321. style="display: block; text-align: center; padding: 0 0 10px 0"
  8322. >
  8323. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8324. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8325. </span>
  8326. </div>
  8327. <div
  8328. v-if="replyDialogVisible == true"
  8329. class="addDialogCss"
  8330. v-el-drag-dialog
  8331. >
  8332. <div class="pzTop">
  8333. <div class="teacherPz">
  8334. <div class="teacherPzImg">
  8335. <img src="../assets/icon/teacherPz.png" alt="" />
  8336. </div>
  8337. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8338. </div>
  8339. <div @click="replyDialogVisible = false">
  8340. <img src="../assets/close1.png" class="pzClose" alt="" />
  8341. </div>
  8342. </div>
  8343. <div class="addPzBox">
  8344. <!-- <div class="addPzCheck">
  8345. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8346. >文本</span
  8347. >
  8348. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8349. >音频</span
  8350. >
  8351. </div> -->
  8352. <div style="height: calc(100% - 50px)">
  8353. <editor-bar
  8354. class="binfo_input pzConText"
  8355. style="width: 100% !important; margin: 0 auto"
  8356. placeholder="请输入回复描述"
  8357. v-model="reply"
  8358. @change="change"
  8359. ></editor-bar>
  8360. </div>
  8361. <div class="addTextCss" @click="addHf">确定</div>
  8362. </div>
  8363. </div>
  8364. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8365. <div class="pzTop">
  8366. <div class="teacherPz">
  8367. <div class="teacherPzImg">
  8368. <img src="../assets/icon/teacherPz.png" alt="" />
  8369. </div>
  8370. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8371. </div>
  8372. <div @click="addPzDialog = false">
  8373. <img src="../assets/close1.png" class="pzClose" alt="" />
  8374. </div>
  8375. </div>
  8376. <div class="addPzBox">
  8377. <div class="addPzCheck">
  8378. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8379. >文本</span
  8380. >
  8381. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8382. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8383. >音频</span
  8384. >
  8385. </div>
  8386. <div style="height: calc(100% - 95px)">
  8387. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8388. v-if="pzType == 1"></textarea> -->
  8389. <editor-bar
  8390. class="binfo_input pzConText"
  8391. style="width: 100% !important"
  8392. placeholder="请输入任务描述"
  8393. v-model="pzConText"
  8394. @change="change"
  8395. v-if="pzType == 1"
  8396. ></editor-bar>
  8397. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8398. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8399. <div @click="addImg($event)">
  8400. <el-button type="primary">上传图片</el-button>
  8401. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8402. @change="beforeUpload1($event, 4)" />
  8403. </div>
  8404. </div> -->
  8405. </div>
  8406. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8407. 确定
  8408. </div>
  8409. </div>
  8410. </div>
  8411. <div v-if="proVisible" class="mask">
  8412. <div class="progressBox">
  8413. <!-- <div id="closePro" class="closeCss">
  8414. <img src="../assets/icon/close.png" alt />
  8415. </div> -->
  8416. <div class="lbox">
  8417. <img src="../assets/loading.gif" />上传中,请稍后
  8418. </div>
  8419. <div style="margin-bottom: 10px">
  8420. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8421. </div>
  8422. <el-progress
  8423. :text-inside="true"
  8424. :stroke-width="20"
  8425. :percentage="progress"
  8426. style="width: 80%"
  8427. ></el-progress>
  8428. </div>
  8429. </div>
  8430. <div v-if="proVisible2" class="mask">
  8431. <div class="progressBox">
  8432. <div class="lbox">
  8433. <img src="../assets/loading.gif" />上传中,请稍后
  8434. </div>
  8435. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8436. </div>
  8437. </div>
  8438. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8439. <img width="100%" :src="dialogImageUrl" alt />
  8440. </el-dialog>
  8441. <el-dialog
  8442. :title="noteName != '' ? noteName : '查看问卷'"
  8443. :visible.sync="dialogVisible5"
  8444. :append-to-body="true"
  8445. width="1000px"
  8446. :before-close="handleClose"
  8447. class="dialog_diy dialog_diy3"
  8448. >
  8449. <div>
  8450. <div
  8451. class="a_add_title"
  8452. style="
  8453. display: flex;
  8454. flex-direction: row;
  8455. align-items: center;
  8456. justify-content: center;
  8457. "
  8458. >
  8459. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8460. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8461. </div>
  8462. <div class="a_addBox">
  8463. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8464. 题目内容
  8465. </div>
  8466. <div
  8467. class="a_add_box"
  8468. v-for="(item1, index1) in askJson.askCount"
  8469. :key="index1"
  8470. >
  8471. <div class="a_add_head">
  8472. <div style="display: flex">
  8473. <span class="askIndex"> {{ index1 + 1 }}</span>
  8474. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8475. </div>
  8476. <img
  8477. v-if="askJson.askJson[index1].img"
  8478. :src="askJson.askJson[index1].img"
  8479. style="height: 300px; margin-top: 10px; max-width: 100%"
  8480. />
  8481. </div>
  8482. <div class="a_add_body">
  8483. <div class="a_add_input">
  8484. <el-radio-group
  8485. v-model="radio[index1]"
  8486. v-if="
  8487. askJson.askJson[index1].type == '1' ||
  8488. !askJson.askJson[index1].type
  8489. "
  8490. >
  8491. <el-radio
  8492. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8493. .checkList"
  8494. :key="checkIndex"
  8495. :label="checkIndex"
  8496. :disabled="isAnswer"
  8497. class="redioStyle"
  8498. ><span v-html="item2"></span
  8499. ></el-radio>
  8500. </el-radio-group>
  8501. <el-checkbox-group
  8502. v-model="radio[index1]"
  8503. v-if="askJson.askJson[index1].type == '2'"
  8504. >
  8505. <el-checkbox
  8506. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8507. .checkList"
  8508. :key="checkIndex1"
  8509. :label="checkIndex1"
  8510. :disabled="isAnswer"
  8511. class="redioStyle"
  8512. ><span v-html="item2"></span>
  8513. </el-checkbox>
  8514. </el-checkbox-group>
  8515. </div>
  8516. </div>
  8517. </div>
  8518. </div>
  8519. </div>
  8520. <span slot="footer" class="dialog-footer">
  8521. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8522. >取 消</el-button
  8523. >
  8524. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8525. >确 定</el-button
  8526. >
  8527. </span>
  8528. </el-dialog>
  8529. <el-dialog
  8530. :title="noteName != '' ? noteName : '查看问卷'"
  8531. :visible.sync="dialogVisible5Teacher"
  8532. :append-to-body="true"
  8533. width="1000px"
  8534. :before-close="handleClose"
  8535. class="dialog_diy dialog_diy3"
  8536. >
  8537. <div>
  8538. <div class="w_name">
  8539. 学生姓名:<span>{{ sStudent.student }}</span>
  8540. </div>
  8541. <div
  8542. class="a_add_title"
  8543. style="
  8544. display: flex;
  8545. flex-direction: row;
  8546. align-items: center;
  8547. justify-content: center;
  8548. "
  8549. >
  8550. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8551. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8552. </div>
  8553. <div class="a_addBox">
  8554. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8555. 题目内容
  8556. </div>
  8557. <div
  8558. class="a_add_box"
  8559. v-for="(item1, index1) in askJson.askCount"
  8560. :key="index1"
  8561. >
  8562. <div class="a_add_head">
  8563. <div style="display: flex">
  8564. <span class="askIndex">{{ index1 + 1 }}</span>
  8565. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8566. </div>
  8567. <img
  8568. v-if="askJson.askJson[index1].img"
  8569. :src="askJson.askJson[index1].img"
  8570. style="height: 300px; margin-top: 10px; max-width: 100%"
  8571. />
  8572. </div>
  8573. <div class="a_add_body">
  8574. <div class="a_add_input">
  8575. <el-radio-group
  8576. v-model="radio[index1]"
  8577. v-if="
  8578. askJson.askJson[index1].type == '1' ||
  8579. !askJson.askJson[index1].type
  8580. "
  8581. >
  8582. <el-radio
  8583. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8584. .checkList"
  8585. :key="checkIndex"
  8586. :label="checkIndex"
  8587. :disabled="isAnswer"
  8588. class="redioStyle"
  8589. ><span v-html="item2"></span
  8590. ></el-radio>
  8591. </el-radio-group>
  8592. <el-checkbox-group
  8593. v-model="radio[index1]"
  8594. v-if="askJson.askJson[index1].type == '2'"
  8595. >
  8596. <el-checkbox
  8597. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8598. .checkList"
  8599. :key="checkIndex1"
  8600. :label="checkIndex1"
  8601. :disabled="isAnswer"
  8602. class="redioStyle"
  8603. ><span v-html="item2"></span>
  8604. </el-checkbox>
  8605. </el-checkbox-group>
  8606. </div>
  8607. </div>
  8608. </div>
  8609. </div>
  8610. </div>
  8611. <span slot="footer" class="dialog-footer">
  8612. <el-button
  8613. @click="dialogVisible5Teacher = false"
  8614. v-show="noteName == ''"
  8615. >取 消</el-button
  8616. >
  8617. <el-button
  8618. type="primary"
  8619. @click="addStudentAskTeacher"
  8620. v-show="noteName == ''"
  8621. >确 定</el-button
  8622. >
  8623. </span>
  8624. </el-dialog>
  8625. <el-dialog
  8626. :title="noteName != '' ? noteName : '查看选择题'"
  8627. :visible.sync="dialogVisibleChoice"
  8628. :append-to-body="true"
  8629. width="1000px"
  8630. :before-close="handleClose"
  8631. class="dialog_diy dialog_diy3"
  8632. >
  8633. <div>
  8634. <!-- <div class="a_add_title" style="
  8635. display: flex;
  8636. flex-direction: row;
  8637. align-items: center;
  8638. justify-content: center;
  8639. ">
  8640. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8641. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8642. </div> -->
  8643. <div class="a_addBox">
  8644. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8645. 题目内容
  8646. </div>
  8647. <div
  8648. class="a_add_box"
  8649. v-for="(item1, index1) in testJson.testCount"
  8650. :key="index1"
  8651. >
  8652. <div class="a_add_head">
  8653. <div style="display: flex">
  8654. <span class="askIndex">{{ index1 + 1 }}</span>
  8655. <div
  8656. v-if="testJson.testJson[index1].type == '1'"
  8657. style="margin-right: 5px; min-width: 70px"
  8658. >
  8659. (单选题)
  8660. </div>
  8661. <div
  8662. v-if="testJson.testJson[index1].type == '2'"
  8663. style="margin-right: 5px; min-width: 70px"
  8664. >
  8665. (多选题)
  8666. </div>
  8667. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8668. </div>
  8669. <img
  8670. v-if="testJson.testJson[index1].img"
  8671. :src="testJson.testJson[index1].img"
  8672. style="height: 300px; margin-top: 10px; max-width: 100%"
  8673. />
  8674. </div>
  8675. <div
  8676. class="timuImgBox"
  8677. v-if="
  8678. testJson.testJson[index1].timuList &&
  8679. testJson.testJson[index1].timuList.length
  8680. "
  8681. >
  8682. <div
  8683. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8684. :key="tIndex"
  8685. class="timuImg"
  8686. @click.stop="previewImg(timg.src)"
  8687. >
  8688. <img :src="timg.src" alt="" />
  8689. </div>
  8690. </div>
  8691. <div class="a_add_body">
  8692. <div class="a_add_input">
  8693. <el-radio-group
  8694. v-model="radio[index1]"
  8695. v-if="testJson.testJson[index1].type == '1'"
  8696. >
  8697. <div class="radioBox">
  8698. <el-radio
  8699. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8700. .checkList"
  8701. :key="checkIndex"
  8702. :label="checkIndex"
  8703. :disabled="isAnswer"
  8704. class="redioStyle"
  8705. >
  8706. <div
  8707. style="margin-right: 10px"
  8708. v-if="item2 && item2.imgType && item2.imgType == 1"
  8709. >
  8710. <div class="inImg" @click.stop="previewImg(item2.src)">
  8711. <img :src="item2.src" alt="" />
  8712. </div>
  8713. </div>
  8714. <span v-else v-html="item2"></span>
  8715. </el-radio>
  8716. </div>
  8717. </el-radio-group>
  8718. <el-checkbox-group
  8719. v-model="radio[index1]"
  8720. v-if="testJson.testJson[index1].type == '2'"
  8721. >
  8722. <div class="radioBox">
  8723. <el-checkbox
  8724. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8725. .checkList"
  8726. :key="checkIndex"
  8727. :label="checkIndex"
  8728. :disabled="isAnswer"
  8729. class="redioStyle"
  8730. >
  8731. <div
  8732. style="margin-right: 10px"
  8733. v-if="item2 && item2.imgType && item2.imgType == 1"
  8734. >
  8735. <div class="inImg" @click.stop="previewImg(item2.src)">
  8736. <img :src="item2.src" alt="" />
  8737. </div>
  8738. </div>
  8739. <span v-else v-html="item2"></span>
  8740. </el-checkbox>
  8741. </div>
  8742. </el-checkbox-group>
  8743. </div>
  8744. </div>
  8745. </div>
  8746. </div>
  8747. </div>
  8748. <span slot="footer" class="dialog-footer">
  8749. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8750. >取 消</el-button
  8751. >
  8752. <el-button
  8753. type="primary"
  8754. @click="addStudentTest"
  8755. v-show="noteName == ''"
  8756. >确 定</el-button
  8757. >
  8758. </span>
  8759. </el-dialog>
  8760. <el-dialog
  8761. :title="noteName != '' ? noteName : '查看选择题'"
  8762. :visible.sync="dialogVisibleChoiceTeacher"
  8763. :append-to-body="true"
  8764. width="1000px"
  8765. :before-close="handleClose"
  8766. class="dialog_diy dialog_diy3"
  8767. >
  8768. <div>
  8769. <div class="w_name">
  8770. 学生姓名:<span>{{ sStudent.student }}</span>
  8771. </div>
  8772. <div class="a_addBox">
  8773. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8774. 题目内容
  8775. </div>
  8776. <div
  8777. class="a_add_box"
  8778. v-for="(item1, index1) in testJson.testCount"
  8779. :key="index1"
  8780. >
  8781. <div class="a_add_head">
  8782. <div style="display: flex">
  8783. <span class="askIndex">{{ index1 + 1 }}</span>
  8784. <div
  8785. v-if="testJson.testJson[index1].type == '1'"
  8786. style="margin-right: 5px; min-width: 70px"
  8787. >
  8788. (单选题)
  8789. </div>
  8790. <div
  8791. v-if="testJson.testJson[index1].type == '2'"
  8792. style="margin-right: 5px; min-width: 70px"
  8793. >
  8794. (多选题)
  8795. </div>
  8796. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8797. </div>
  8798. <img
  8799. v-if="testJson.testJson[index1].img"
  8800. :src="testJson.testJson[index1].img"
  8801. style="height: 300px; margin-top: 10px; max-width: 100%"
  8802. />
  8803. </div>
  8804. <div
  8805. class="timuImgBox"
  8806. v-if="
  8807. testJson.testJson[index1].timuList &&
  8808. testJson.testJson[index1].timuList.length
  8809. "
  8810. >
  8811. <div
  8812. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8813. :key="tIndex"
  8814. class="timuImg"
  8815. @click.stop="previewImg(timg.src)"
  8816. >
  8817. <img :src="timg.src" alt="" />
  8818. </div>
  8819. </div>
  8820. <div class="a_add_body">
  8821. <div class="a_add_input">
  8822. <el-radio-group
  8823. v-model="radio[index1]"
  8824. v-if="testJson.testJson[index1].type == '1'"
  8825. >
  8826. <div class="radioBox">
  8827. <el-radio
  8828. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8829. .checkList"
  8830. :key="checkIndex"
  8831. :label="checkIndex"
  8832. :disabled="isAnswer"
  8833. class="redioStyle"
  8834. >
  8835. <div
  8836. style="margin-right: 10px"
  8837. v-if="item2 && item2.imgType && item2.imgType == 1"
  8838. >
  8839. <div class="inImg" @click.stop="previewImg(item2.src)">
  8840. <img :src="item2.src" alt="" />
  8841. </div>
  8842. </div>
  8843. <span v-else v-html="item2"></span>
  8844. </el-radio>
  8845. </div>
  8846. </el-radio-group>
  8847. <el-checkbox-group
  8848. v-model="radio[index1]"
  8849. v-if="testJson.testJson[index1].type == '2'"
  8850. >
  8851. <div class="radioBox">
  8852. <el-checkbox
  8853. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8854. .checkList"
  8855. :key="checkIndex"
  8856. :label="checkIndex"
  8857. :disabled="isAnswer"
  8858. class="redioStyle"
  8859. >
  8860. <div
  8861. style="margin-right: 10px"
  8862. v-if="item2 && item2.imgType && item2.imgType == 1"
  8863. >
  8864. <div class="inImg" @click.stop="previewImg(item2.src)">
  8865. <img :src="item2.src" alt="" />
  8866. </div>
  8867. </div>
  8868. <span v-else v-html="item2"></span>
  8869. </el-checkbox>
  8870. </div>
  8871. </el-checkbox-group>
  8872. </div>
  8873. </div>
  8874. </div>
  8875. </div>
  8876. </div>
  8877. <span slot="footer" class="dialog-footer">
  8878. <el-button
  8879. @click="dialogVisibleChoiceTeacher = false"
  8880. v-show="noteName == ''"
  8881. >取 消</el-button
  8882. >
  8883. <el-button
  8884. type="primary"
  8885. @click="addStudentTestTeacher"
  8886. v-show="noteName == ''"
  8887. >确 定</el-button
  8888. >
  8889. </span>
  8890. </el-dialog>
  8891. <el-dialog
  8892. title="查看富文本"
  8893. :visible.sync="dialogVisible1"
  8894. :append-to-body="true"
  8895. width="500px"
  8896. :before-close="handleClose"
  8897. class="dialog_diy textCss"
  8898. >
  8899. <el-form style="font-size: 20px">
  8900. <el-form-item label="文本标题" class="textTitle">
  8901. <div style="font-size: 20px">{{ text.name }}</div>
  8902. </el-form-item>
  8903. <div>富文本内容</div>
  8904. <div
  8905. v-html="text.url"
  8906. style="font-size: 18px; padding: 40px 0 0 0"
  8907. ></div>
  8908. </el-form>
  8909. <span slot="footer" class="dialog-footer">
  8910. <el-button type="primary" @click="dialogVisible1 = false"
  8911. >确定</el-button
  8912. >
  8913. </span>
  8914. </el-dialog>
  8915. <el-dialog
  8916. title="文件预览"
  8917. :visible.sync="dialogVisible3"
  8918. width="50%"
  8919. :before-close="handleClose"
  8920. class="dialog_diy"
  8921. :class="{ fullStyle: full }"
  8922. >
  8923. <div slot="title" class="header-title">
  8924. <div style="color: #fff">文件预览</div>
  8925. <div style="position: absolute; top: 19px; right: 50px">
  8926. <img
  8927. src="../assets/full.png"
  8928. style="height: 16px; cursor: pointer"
  8929. alt=""
  8930. @click="fullTools"
  8931. />
  8932. </div>
  8933. </div>
  8934. <pdf
  8935. v-if="showPDF"
  8936. :pdfUrl="pptImgUrl"
  8937. style="width: 100%; height: 520px; overflow: auto"
  8938. :class="{ fullStyle: full }"
  8939. ></pdf>
  8940. <iframe
  8941. v-else
  8942. :src="pptImgUrl"
  8943. frameborder="0"
  8944. width="100%"
  8945. height="600"
  8946. :class="{ fullStyle: full }"
  8947. ></iframe>
  8948. </el-dialog>
  8949. <el-dialog
  8950. title="文件预览"
  8951. :visible.sync="dialogVisible6"
  8952. width="50%"
  8953. :before-close="handleClose"
  8954. class="dialog_diy"
  8955. >
  8956. <iframe
  8957. :src="pptImgUrl1"
  8958. frameborder="0"
  8959. width="100%"
  8960. height="600"
  8961. ></iframe>
  8962. </el-dialog>
  8963. <el-dialog
  8964. title="提示"
  8965. :visible.sync="dialogVisible4"
  8966. :append-to-body="true"
  8967. width="800px"
  8968. :before-close="handleClose"
  8969. class="dialog_diy notice"
  8970. >
  8971. <div>此功能暂未开放!</div>
  8972. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8973. </el-dialog>
  8974. <el-dialog
  8975. title="问答"
  8976. :visible.sync="answerDialogVisible"
  8977. :append-to-body="true"
  8978. width="800px"
  8979. :before-close="handleClose"
  8980. class="dialog_diy"
  8981. >
  8982. <div>
  8983. <div
  8984. style="
  8985. display: flex;
  8986. flex-wrap: nowrap;
  8987. flex-direction: column;
  8988. position: relative;
  8989. "
  8990. >
  8991. <div class="queTop" style="padding: 20px 0 20px 0">
  8992. <div class="question">
  8993. <img src="../assets/icon/question.png" alt />
  8994. </div>
  8995. <div class="queTitle">
  8996. <div style="width: 90px; min-width: 90px">提问:</div>
  8997. <div>{{ answerQ }}</div>
  8998. </div>
  8999. </div>
  9000. <div class="ediBottom">
  9001. <textarea
  9002. rows="6"
  9003. class="binfo_input"
  9004. cols
  9005. style="width: 95%; height: 120px"
  9006. v-model="questionAnswer"
  9007. ></textarea>
  9008. </div>
  9009. </div>
  9010. </div>
  9011. <div slot="footer">
  9012. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9013. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9014. </div>
  9015. </el-dialog>
  9016. <el-dialog
  9017. title="问答"
  9018. :visible.sync="answerDialogVisibleTeacher"
  9019. :append-to-body="true"
  9020. width="800px"
  9021. :before-close="handleClose"
  9022. class="dialog_diy"
  9023. >
  9024. <div>
  9025. <div class="w_name">
  9026. 学生姓名:<span>{{ sStudent.student }}</span>
  9027. </div>
  9028. <div
  9029. style="
  9030. display: flex;
  9031. flex-wrap: nowrap;
  9032. flex-direction: column;
  9033. position: relative;
  9034. "
  9035. >
  9036. <div class="queTop" style="padding: 20px 0 20px 0">
  9037. <div class="question">
  9038. <img src="../assets/icon/question.png" alt />
  9039. </div>
  9040. <div class="queTitle">
  9041. <div style="width: 90px; min-width: 90px">提问:</div>
  9042. <div>{{ answerQ }}</div>
  9043. </div>
  9044. </div>
  9045. <div class="ediBottom">
  9046. <textarea
  9047. rows="6"
  9048. class="binfo_input"
  9049. cols
  9050. style="width: 95%; height: 120px"
  9051. v-model="questionAnswer"
  9052. ></textarea>
  9053. </div>
  9054. </div>
  9055. </div>
  9056. <div slot="footer">
  9057. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9058. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9059. </div>
  9060. </el-dialog>
  9061. <el-dialog
  9062. title="倒计时"
  9063. :visible.sync="timeDialogVisible"
  9064. :append-to-body="true"
  9065. width="800px"
  9066. :before-close="handleClose"
  9067. class="dialog_diy"
  9068. >
  9069. <div>
  9070. <div style="margin-bottom: 20px; color: #999">
  9071. 提示:点击“+”或“-”修改倒计时时长。
  9072. </div>
  9073. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9074. </div>
  9075. <div slot="footer">
  9076. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9077. </div>
  9078. </el-dialog>
  9079. <el-dialog
  9080. title="权限设置"
  9081. :visible.sync="juriVisible"
  9082. :append-to-body="true"
  9083. width="400px"
  9084. :before-close="handleClose"
  9085. class="dialog_diy"
  9086. >
  9087. <div>
  9088. <div class="open_box">
  9089. <div class="switch_box">
  9090. <span>允许学生查看所有作业</span>
  9091. <el-switch
  9092. v-model="sIsOpen"
  9093. active-text=""
  9094. class="switchCss"
  9095. @change="updateSLook"
  9096. ></el-switch>
  9097. </div>
  9098. <div
  9099. class="switch_box"
  9100. v-if="
  9101. courseDetail.userid == userid ||
  9102. (courseDetail.course_teacher &&
  9103. courseDetail.course_teacher.indexOf(userid) != -1)
  9104. "
  9105. >
  9106. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9107. <span>禁止学生查看所有阶段</span>
  9108. <el-switch
  9109. v-model="IsLookOpen"
  9110. active-text=""
  9111. class="switchCss"
  9112. @change="updateLookOpen"
  9113. ></el-switch>
  9114. </div>
  9115. <div class="switch_box" v-if="courseDetail.userid == userid">
  9116. <span>开启跟随模式</span>
  9117. <el-switch
  9118. v-model="IsFollow"
  9119. active-text=""
  9120. class="switchCss"
  9121. @change="updateFollow"
  9122. ></el-switch>
  9123. </div>
  9124. </div>
  9125. </div>
  9126. <div slot="footer">
  9127. <el-button
  9128. style="background: #409efe; color: #fff"
  9129. @click="juriVisible = false"
  9130. >关 闭</el-button
  9131. >
  9132. </div>
  9133. </el-dialog>
  9134. <el-dialog
  9135. title="查看视频"
  9136. :visible.sync="videoVisible"
  9137. :append-to-body="true"
  9138. width="1000px"
  9139. :before-close="handleClose"
  9140. class="dialog_diy1"
  9141. >
  9142. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9143. <video-player
  9144. class="video-player vjs-custom-skin"
  9145. :playsinline="true"
  9146. :options="videoDetail"
  9147. @play="onPlayerPlay($event)"
  9148. style="width: 100%; height: 100%"
  9149. ></video-player>
  9150. </div>
  9151. <div slot="footer">
  9152. <el-button
  9153. style="background: #409efe; color: #fff"
  9154. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9155. >
  9156. 关 闭</el-button
  9157. >
  9158. </div>
  9159. </el-dialog>
  9160. <el-dialog
  9161. title="查看详情"
  9162. :visible.sync="commentDialogVisible"
  9163. :append-to-body="true"
  9164. width="800px"
  9165. :before-close="handleClose"
  9166. class="dialog_diy"
  9167. >
  9168. <div class="commentTop">
  9169. <div class="studentDetail">
  9170. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9171. <div class="nameAndTime">
  9172. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9173. <div>{{ commentDetail.time }}</div>
  9174. </div>
  9175. <div
  9176. class="returnBtn"
  9177. style="margin-left: auto; width: 80px"
  9178. v-if="
  9179. commentDetail.works &&
  9180. commentDetail.type == 0 &&
  9181. (tType == 1 || tType == 4)
  9182. "
  9183. @click="
  9184. showPicturePaint(
  9185. commentDetail.img ? commentDetail.img : commentDetail.works
  9186. )
  9187. "
  9188. >
  9189. 教师批注
  9190. </div>
  9191. </div>
  9192. <div
  9193. class="worksAnswer"
  9194. v-if="commentDetail.works && commentDetail.type == 2"
  9195. >
  9196. {{ JSON.parse(commentDetail.works)[0].answer }}
  9197. </div>
  9198. <div
  9199. class="worksAnswer"
  9200. v-if="commentDetail.works && commentDetail.type == 1"
  9201. >
  9202. <img
  9203. src="../assets/teacherWork.png"
  9204. v-if="commentDetail.ateacher"
  9205. class="w_teachert"
  9206. />
  9207. <pdf
  9208. v-if="showPDF"
  9209. :pdfUrl="pptImgUrl"
  9210. style="width: 100%; height: 520px; overflow: auto"
  9211. :class="{ fullStyle: full }"
  9212. ></pdf>
  9213. <iframe
  9214. v-else
  9215. :src="pptImgUrl"
  9216. frameborder="0"
  9217. width="100%"
  9218. height="600"
  9219. :class="{ fullStyle: full }"
  9220. ></iframe>
  9221. </div>
  9222. <div
  9223. class="worksAnswer"
  9224. v-if="commentDetail.works && commentDetail.type == 0"
  9225. >
  9226. <img
  9227. src="../assets/teacherWork.png"
  9228. v-if="commentDetail.ateacher"
  9229. class="w_teachert"
  9230. style="right: 105px"
  9231. />
  9232. <img
  9233. :src="commentDetail.works"
  9234. alt=""
  9235. @click="previewImg(commentDetail.works)"
  9236. />
  9237. </div>
  9238. <div
  9239. class="worksAnswer"
  9240. v-if="commentDetail.works && commentDetail.type == 3"
  9241. >
  9242. <img
  9243. src="../assets/teacherWork.png"
  9244. v-if="commentDetail.ateacher"
  9245. class="w_teachert"
  9246. />
  9247. <video-player
  9248. class="video-player vjs-custom-skin"
  9249. :playsinline="true"
  9250. :options="videoDetail"
  9251. @play="onPlayerPlay($event)"
  9252. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9253. ></video-player>
  9254. </div>
  9255. <div
  9256. class="worksAnswer"
  9257. v-if="commentDetail.works && commentDetail.type == 10"
  9258. >
  9259. <div class="cont" v-html="commentDetail.works.text"></div>
  9260. </div>
  9261. <div
  9262. class="worksAnswer codeFileBox"
  9263. v-if="commentDetail.works && commentDetail.type == 12"
  9264. @click="downloadFile(commentDetail.works)"
  9265. >
  9266. <img src="../assets/icon/codeFile.png" />
  9267. <div>点击下载文件</div>
  9268. </div>
  9269. <div
  9270. class="worksAnswer codeFileBox"
  9271. v-if="commentDetail.works && commentDetail.type == 15"
  9272. @click="
  9273. openCocoPi(
  9274. 57,
  9275. commentIndexJson.toolIndex,
  9276. commentDetail.userid,
  9277. commentDetail.sName
  9278. )
  9279. "
  9280. >
  9281. <img src="../assets/icon/codeFile.png" />
  9282. <div>点击打开CocoPi</div>
  9283. </div>
  9284. <div
  9285. class="worksAnswer"
  9286. v-if="commentDetail.works && commentDetail.type == 13"
  9287. >
  9288. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9289. </div>
  9290. <div
  9291. class="worksAnswer"
  9292. v-if="commentDetail.works && commentDetail.type == 4"
  9293. >
  9294. <div class="evalCss">
  9295. <div class="nav">请选择星星进行评分</div>
  9296. <div class="middleBox" v-if="eScore.eStar">
  9297. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9298. <div class="nameAndrate">
  9299. <div>{{ e.value }}</div>
  9300. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9301. </div>
  9302. <div v-if="e.detail">{{ e.detail }}</div>
  9303. </div>
  9304. <div class="bz">
  9305. <textarea
  9306. disabled
  9307. rows="4"
  9308. class="pj"
  9309. style="
  9310. padding: 10px 5px;
  9311. width: 70%;
  9312. background: #f7f6f9;
  9313. font-size: 14px;
  9314. text-indent: 10px;
  9315. color: #000;
  9316. "
  9317. cols
  9318. v-model="eScore.eBzText"
  9319. placeholder="请输入评价内容..."
  9320. ></textarea>
  9321. </div>
  9322. </div>
  9323. </div>
  9324. </div>
  9325. <div class="comment">
  9326. <div class="commentList">
  9327. <div class="commentImg">
  9328. <img
  9329. @click="
  9330. isLikes(
  9331. commentDetail.wid,
  9332. userid,
  9333. 1,
  9334. null,
  9335. commentDetail.isLikes
  9336. )
  9337. "
  9338. :src="commentDetail.isLikes == true ? likes : noLikes"
  9339. alt=""
  9340. />
  9341. </div>
  9342. <div>{{ commentDetail.likesCount }}</div>
  9343. </div>
  9344. <div class="commentList">
  9345. <div class="commentImg">
  9346. <img src="../assets/icon/comment/comment.png" alt="" />
  9347. </div>
  9348. <div>{{ commentDetail.commentCount }}</div>
  9349. </div>
  9350. </div>
  9351. <div class="drawPBox" v-if="commentDetail.img">
  9352. <span>教师批注</span>
  9353. <img
  9354. :src="commentDetail.img"
  9355. alt=""
  9356. @click="previewImg(commentDetail.img)"
  9357. />
  9358. <span
  9359. class="deleteImg"
  9360. v-if="tType == 1 || tType == 4"
  9361. @click.stop="deletePicturePaint(commentDetail.wid)"
  9362. style="
  9363. font-size: 14px;
  9364. width: auto !important;
  9365. color: #b4b4b4;
  9366. top: unset;
  9367. bottom: 0;
  9368. border: none;
  9369. padding: 0;
  9370. height: auto !important;
  9371. margin: 0;
  9372. "
  9373. >删除</span
  9374. >
  9375. </div>
  9376. </div>
  9377. <div class="commentBox">
  9378. <div class="pl">评论:</div>
  9379. <div style="max-height: 200px; overflow: auto">
  9380. <div
  9381. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9382. style="padding: 10px 0 0 0"
  9383. >
  9384. <div
  9385. class="studentDetail"
  9386. style="padding-top: 10px"
  9387. v-for="(co, coIndex) in commentDetail.commentJson"
  9388. :key="coIndex"
  9389. >
  9390. <div class="tx" style="min-width: 50px">
  9391. <img src="../assets/avatar.png" alt="" />
  9392. </div>
  9393. <div class="plPerson">
  9394. <div class="plName">
  9395. <div>{{ co.commentPeople }}</div>
  9396. <div style="margin-left: 5px">
  9397. {{ co.commentTime }}
  9398. </div>
  9399. <div
  9400. class="deleteComment"
  9401. v-if="userid == co.userid"
  9402. @click="deleteComment(co.wid)"
  9403. >
  9404. 删除
  9405. </div>
  9406. </div>
  9407. <div class="plContent">{{ co.commentText }}</div>
  9408. </div>
  9409. </div>
  9410. </div>
  9411. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9412. </div>
  9413. </div>
  9414. <div style="margin-top: 10px">
  9415. <div class="displayBox">
  9416. <div
  9417. style="
  9418. color: #556db4;
  9419. font-size: 14px;
  9420. font-weight: bold;
  9421. padding-bottom: 10px;
  9422. "
  9423. >
  9424. 评价
  9425. </div>
  9426. <div class="easy_comment" v-if="false">
  9427. <div
  9428. v-for="(p, pIndex) in PlTextList"
  9429. :key="pIndex"
  9430. @click="fastText(p, 1)"
  9431. >
  9432. {{ p }}
  9433. </div>
  9434. </div>
  9435. </div>
  9436. <div>
  9437. <textarea
  9438. rows="3"
  9439. class="pj"
  9440. style="padding: 10px 5px"
  9441. cols
  9442. v-model="commentText"
  9443. placeholder="请输入评论"
  9444. ></textarea>
  9445. </div>
  9446. </div>
  9447. <div slot="footer">
  9448. <el-button
  9449. @click="
  9450. (commentDialogVisible = false),
  9451. (commentIndexJson = {}),
  9452. videoDetail.sources && videoDetail.sources[0]
  9453. ? (videoDetail.sources[0].src = '')
  9454. : ''
  9455. "
  9456. >取 消</el-button
  9457. >
  9458. <el-button
  9459. type="primary"
  9460. @click="addComment(commentDetail.wid, userid, 2)"
  9461. >确 定</el-button
  9462. >
  9463. </div>
  9464. </el-dialog>
  9465. <el-dialog
  9466. title="查看文档"
  9467. :visible.sync="fullDialogVisible"
  9468. :append-to-body="true"
  9469. width="100%"
  9470. :before-close="handleClose"
  9471. :show-close="false"
  9472. class="dialog_diy full_diy"
  9473. :class="{ full_diy2: fulltype == 3 }"
  9474. >
  9475. <div slot="title" class="header-title">
  9476. <div style="color: #fff">查看文档</div>
  9477. <div
  9478. @click="fullDialogVisible = false"
  9479. style="
  9480. cursor: pointer;
  9481. position: absolute;
  9482. top: 20px;
  9483. right: 20px;
  9484. color: #fff;
  9485. "
  9486. >
  9487. 退出全屏
  9488. </div>
  9489. </div>
  9490. <div style="height: 100%">
  9491. <div
  9492. class="wheel"
  9493. v-if="
  9494. fulltype == 2 &&
  9495. fullUrl.indexOf(
  9496. 'https://view.officeapps.live.com/op/view.aspx?src='
  9497. ) != -1
  9498. "
  9499. style="width: 95%; margin: 0 auto"
  9500. >
  9501. <iframe
  9502. style="width: 100%; height: 100%; border: none"
  9503. :src="fullUrl"
  9504. ></iframe>
  9505. </div>
  9506. <iframe
  9507. v-else-if="fulltype == 2"
  9508. style="width: 100%; height: 100%; border: none"
  9509. :src="fullUrl"
  9510. security="restricted"
  9511. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9512. ></iframe>
  9513. <pdf
  9514. v-else-if="fulltype == 3"
  9515. :pdfUrl="fullUrl"
  9516. style="width: 100%; height: 100%; overflow: auto"
  9517. ></pdf>
  9518. <div
  9519. class="wheel"
  9520. v-if="fulltype == 1"
  9521. style="
  9522. box-shadow: 0 0 6px 1px #f2f2f2;
  9523. width: 100%;
  9524. background: #f1f1f1;
  9525. "
  9526. >
  9527. <div class="title" style="width: 100%; box-sizing: border-box">
  9528. 查看文档
  9529. </div>
  9530. <el-form class="textBox" style="height: 90%">
  9531. <el-form-item class="textTitle">
  9532. <div style="font-size: 22px">
  9533. {{ fullUrl.name }}
  9534. </div>
  9535. </el-form-item>
  9536. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9537. <div
  9538. v-html="fullUrl.url"
  9539. class="textContent"
  9540. style="height: auto"
  9541. ></div>
  9542. </el-form>
  9543. </div>
  9544. </div>
  9545. <!-- <div slot="footer">
  9546. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9547. </div> -->
  9548. </el-dialog>
  9549. <el-dialog
  9550. title="个人评价"
  9551. :visible.sync="studentEvalDialogVisible"
  9552. :append-to-body="true"
  9553. width="800px"
  9554. :before-close="handleClose"
  9555. class="dialog_diy"
  9556. >
  9557. <div class="evalCss">
  9558. <div class="nav">请选择星星进行评分</div>
  9559. <div class="middleBox" v-if="eScore.eStar">
  9560. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9561. <div class="nameAndrate">
  9562. <div>{{ e.value }}</div>
  9563. <el-rate
  9564. v-model="eScore.eStar[eIndex]"
  9565. :disabled="isStar"
  9566. ></el-rate>
  9567. </div>
  9568. <div v-if="e.detail">{{ e.detail }}</div>
  9569. </div>
  9570. <div class="easy_comment" v-if="false">
  9571. <div
  9572. v-for="(p, pIndex) in PlTextList"
  9573. :key="pIndex"
  9574. @click="fastText(p, 2)"
  9575. >
  9576. {{ p }}
  9577. </div>
  9578. </div>
  9579. <div class="bz">
  9580. <textarea
  9581. :disabled="isStar"
  9582. rows="4"
  9583. class="pj"
  9584. style="
  9585. padding: 10px 5px;
  9586. width: 70%;
  9587. background: #f7f6f9;
  9588. font-size: 14px;
  9589. text-indent: 10px;
  9590. "
  9591. cols
  9592. v-model="eScore.eBzText"
  9593. placeholder="请输入评价内容..."
  9594. ></textarea>
  9595. </div>
  9596. </div>
  9597. </div>
  9598. <div slot="footer">
  9599. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9600. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9601. >确 定</el-button
  9602. >
  9603. </div>
  9604. </el-dialog>
  9605. <el-dialog
  9606. title="个人评价"
  9607. :visible.sync="studentEvalDialogVisibleTeacher"
  9608. :append-to-body="true"
  9609. width="800px"
  9610. :before-close="handleClose"
  9611. class="dialog_diy"
  9612. >
  9613. <div class="w_name">
  9614. 学生姓名:<span>{{ sStudent.student }}</span>
  9615. </div>
  9616. <div class="evalCss">
  9617. <div class="nav">请选择星星进行评分</div>
  9618. <div class="middleBox" v-if="eScore.eStar">
  9619. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9620. <div class="nameAndrate">
  9621. <div>{{ e.value }}</div>
  9622. <el-rate
  9623. v-model="eScore.eStar[eIndex]"
  9624. :disabled="isStar"
  9625. ></el-rate>
  9626. </div>
  9627. <div v-if="e.detail">{{ e.detail }}</div>
  9628. </div>
  9629. <div class="easy_comment" v-if="false">
  9630. <div
  9631. v-for="(p, pIndex) in PlTextList"
  9632. :key="pIndex"
  9633. @click="fastText(p, 2)"
  9634. >
  9635. {{ p }}
  9636. </div>
  9637. </div>
  9638. <div class="bz">
  9639. <textarea
  9640. :disabled="isStar"
  9641. rows="4"
  9642. class="pj"
  9643. style="
  9644. padding: 10px 5px;
  9645. width: 70%;
  9646. background: #f7f6f9;
  9647. font-size: 14px;
  9648. text-indent: 10px;
  9649. "
  9650. cols
  9651. v-model="eScore.eBzText"
  9652. placeholder="请输入评价内容..."
  9653. ></textarea>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. <div slot="footer">
  9658. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9659. >取 消</el-button
  9660. >
  9661. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9662. >确 定</el-button
  9663. >
  9664. </div>
  9665. </el-dialog>
  9666. <el-dialog
  9667. title="选择匹配"
  9668. :visible.sync="dialogVisibleSelect"
  9669. :append-to-body="true"
  9670. width="90%"
  9671. :before-close="handleClose"
  9672. class="dialog_diy dialog_diy3"
  9673. >
  9674. <div v-if="selectJson">
  9675. <div class="select_box2">
  9676. <div class="select_box2_title">
  9677. <div>选择匹配</div>
  9678. <div>请选择对应的答案进行答题!</div>
  9679. </div>
  9680. <div class="select_box2_box">
  9681. <div class="select_box2_img">
  9682. <img
  9683. :src="selectJson.url"
  9684. @click="previewImg(selectJson.url)"
  9685. alt=""
  9686. />
  9687. </div>
  9688. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9689. <div style="padding-top: 15px">
  9690. <div class="select_answer_title" v-if="isSelect">
  9691. {{ selectAnswer.stu }}
  9692. </div>
  9693. <div class="select_answer_title" v-else>
  9694. 根据题目选择对应答案
  9695. </div>
  9696. <div
  9697. class="select_box2_answer_box"
  9698. v-for="(item2, checkIndex) in selectJson.select"
  9699. :key="checkIndex"
  9700. >
  9701. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9702. <el-select
  9703. :disabled="isSelect"
  9704. v-model="selectAnswer.answer[checkIndex]"
  9705. placeholder="请选择正确答案"
  9706. >
  9707. <el-option
  9708. v-for="(e, eIndex) in selectJson.select"
  9709. :key="eIndex"
  9710. :label="e"
  9711. :value="eIndex"
  9712. >
  9713. </el-option>
  9714. </el-select>
  9715. </div>
  9716. </div>
  9717. <div
  9718. class="rightAnswerCss"
  9719. v-if="isSelect && (tType == 1 || tType == 4)"
  9720. >
  9721. <div
  9722. v-for="(a, aIndex) in selectJson.answer"
  9723. :key="aIndex"
  9724. class="rightAnswer"
  9725. >
  9726. <div
  9727. v-if="selectAnswer.answer[aIndex] === a"
  9728. style="color: #767de1"
  9729. >
  9730. 回答正确
  9731. </div>
  9732. <div v-else>回答错误</div>
  9733. <div
  9734. style="margin-left: 10px"
  9735. v-if="selectAnswer.answer[aIndex] !== a"
  9736. >
  9737. 正确答案:
  9738. </div>
  9739. <div
  9740. :class="
  9741. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9742. "
  9743. >
  9744. {{ selectJson.select[a] }}
  9745. </div>
  9746. </div>
  9747. </div>
  9748. </div>
  9749. <div class="upAnswerCss">
  9750. <el-button
  9751. type="primary"
  9752. @click="addSelectAnswer"
  9753. v-if="!isSelect"
  9754. >提交答案</el-button
  9755. >
  9756. </div>
  9757. </div>
  9758. </div>
  9759. </div>
  9760. </el-dialog>
  9761. <el-dialog
  9762. title="选择匹配"
  9763. :visible.sync="dialogVisibleSelectTeacher"
  9764. :append-to-body="true"
  9765. width="90%"
  9766. :before-close="handleClose"
  9767. class="dialog_diy dialog_diy3"
  9768. >
  9769. <div v-if="selectJson">
  9770. <div class="w_name">
  9771. 学生姓名:<span>{{ sStudent.student }}</span>
  9772. </div>
  9773. <div class="select_box2">
  9774. <div class="select_box2_title">
  9775. <div>选择匹配</div>
  9776. <div>请选择对应的答案进行答题!</div>
  9777. </div>
  9778. <div class="select_box2_box">
  9779. <div class="select_box2_img">
  9780. <img
  9781. :src="selectJson.url"
  9782. @click="previewImg(selectJson.url)"
  9783. alt=""
  9784. />
  9785. </div>
  9786. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9787. <div style="padding-top: 15px">
  9788. <div class="select_answer_title" v-if="isSelect">
  9789. {{ selectAnswer.stu }}
  9790. </div>
  9791. <div class="select_answer_title" v-else>
  9792. 根据题目选择对应答案
  9793. </div>
  9794. <div
  9795. class="select_box2_answer_box"
  9796. v-for="(item2, checkIndex) in selectJson.select"
  9797. :key="checkIndex"
  9798. >
  9799. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9800. <el-select
  9801. :disabled="isSelect"
  9802. v-model="selectAnswer.answer[checkIndex]"
  9803. placeholder="请选择正确答案"
  9804. >
  9805. <el-option
  9806. v-for="(e, eIndex) in selectJson.select"
  9807. :key="eIndex"
  9808. :label="e"
  9809. :value="eIndex"
  9810. >
  9811. </el-option>
  9812. </el-select>
  9813. </div>
  9814. </div>
  9815. <div
  9816. class="rightAnswerCss"
  9817. v-if="isSelect && (tType == 1 || tType == 4)"
  9818. >
  9819. <div
  9820. v-for="(a, aIndex) in selectJson.answer"
  9821. :key="aIndex"
  9822. class="rightAnswer"
  9823. >
  9824. <div
  9825. v-if="selectAnswer.answer[aIndex] === a"
  9826. style="color: #767de1"
  9827. >
  9828. 回答正确
  9829. </div>
  9830. <div v-else>回答错误</div>
  9831. <div
  9832. style="margin-left: 10px"
  9833. v-if="selectAnswer.answer[aIndex] !== a"
  9834. >
  9835. 正确答案:
  9836. </div>
  9837. <div
  9838. :class="
  9839. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9840. "
  9841. >
  9842. {{ selectJson.select[a] }}
  9843. </div>
  9844. </div>
  9845. </div>
  9846. </div>
  9847. <div class="upAnswerCss">
  9848. <el-button
  9849. type="primary"
  9850. @click="addSelectAnswerTeacher"
  9851. v-if="!isSelect"
  9852. >提交答案</el-button
  9853. >
  9854. </div>
  9855. </div>
  9856. </div>
  9857. </div>
  9858. </el-dialog>
  9859. <el-dialog
  9860. title="教师评分"
  9861. :visible.sync="dialogVisibleScore"
  9862. :append-to-body="true"
  9863. width="800px"
  9864. :before-close="handleClose"
  9865. class="dialog_diy"
  9866. >
  9867. <div>
  9868. <div class="studentDetail">
  9869. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9870. <div class="nameAndTime">
  9871. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9872. <div>{{ commentDetail.time }}</div>
  9873. </div>
  9874. </div>
  9875. <div
  9876. class="worksAnswer"
  9877. v-if="commentDetail.works && commentDetail.type == 2"
  9878. >
  9879. {{ JSON.parse(commentDetail.works)[0].answer }}
  9880. </div>
  9881. <div
  9882. class="worksAnswer"
  9883. v-if="commentDetail.works && commentDetail.type == 1"
  9884. >
  9885. <pdf
  9886. v-if="showPDF"
  9887. :pdfUrl="pptImgUrl"
  9888. style="width: 100%; height: 520px; overflow: auto"
  9889. :class="{ fullStyle: full }"
  9890. ></pdf>
  9891. <iframe
  9892. v-else
  9893. :src="pptImgUrl"
  9894. frameborder="0"
  9895. width="100%"
  9896. height="600"
  9897. :class="{ fullStyle: full }"
  9898. ></iframe>
  9899. </div>
  9900. <div
  9901. class="worksAnswer"
  9902. v-if="commentDetail.works && commentDetail.type == 0"
  9903. >
  9904. <img
  9905. :src="commentDetail.works"
  9906. alt=""
  9907. @click="previewImg(commentDetail.works)"
  9908. />
  9909. </div>
  9910. <div
  9911. class="worksAnswer"
  9912. v-if="commentDetail.works && commentDetail.type == 3"
  9913. >
  9914. <video-player
  9915. class="video-player vjs-custom-skin"
  9916. :playsinline="true"
  9917. :options="videoDetail"
  9918. @play="onPlayerPlay($event)"
  9919. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9920. ></video-player>
  9921. </div>
  9922. <div
  9923. class="worksAnswer codeFileBox"
  9924. v-if="commentDetail.works && commentDetail.type == 12"
  9925. @click="downloadFile(commentDetail.works)"
  9926. >
  9927. <img src="../assets/icon/codeFile.png" />
  9928. <div>点击下载文件</div>
  9929. </div>
  9930. <div
  9931. class="worksAnswer codeFileBox"
  9932. v-if="commentDetail.works && commentDetail.type == 15"
  9933. @click="
  9934. openCocoPi(
  9935. 57,
  9936. commentIndexJson.toolIndex,
  9937. commentDetail.userid,
  9938. commentDetail.sName
  9939. )
  9940. "
  9941. >
  9942. <img src="../assets/icon/codeFile.png" />
  9943. <div>点击打开CocoPi</div>
  9944. </div>
  9945. <div
  9946. class="worksAnswer"
  9947. v-if="commentDetail.works && commentDetail.type == 13"
  9948. >
  9949. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9950. </div>
  9951. <div class="scoreBox">
  9952. <span class="t">请输入分数</span>
  9953. <el-input-number
  9954. :disabled="courseDetail.userid != userid"
  9955. v-model="wScore"
  9956. :controls="false"
  9957. :min="0"
  9958. :max="100"
  9959. ></el-input-number>
  9960. </div>
  9961. <div class="scoreDetailBox">
  9962. <span class="t">评分评论</span>
  9963. <el-input
  9964. type="textarea"
  9965. :rows="5"
  9966. :disabled="courseDetail.userid != userid"
  9967. resize="none"
  9968. v-model="scoreDetail"
  9969. placeholder="请输入对学生的评价"
  9970. >
  9971. </el-input>
  9972. </div>
  9973. </div>
  9974. <span slot="footer" class="dialog-footer">
  9975. <el-button
  9976. @click="
  9977. (dialogVisibleScore = false),
  9978. (commentIndexJson = {}),
  9979. videoDetail.sources && videoDetail.sources[0]
  9980. ? (videoDetail.sources[0].src = '')
  9981. : ''
  9982. "
  9983. >取 消</el-button
  9984. >
  9985. <el-button
  9986. type="primary"
  9987. v-if="courseDetail.userid == userid"
  9988. @click="scoreWork(commentDetail.wid)"
  9989. >确 定
  9990. </el-button>
  9991. </span>
  9992. </el-dialog>
  9993. <el-dialog
  9994. title="排序"
  9995. :visible.sync="dialogVisibleSentence"
  9996. :append-to-body="true"
  9997. width="1000px"
  9998. :before-close="handleClose"
  9999. class="dialog_diy dialog_diy3"
  10000. >
  10001. <div>
  10002. <div class="sentenBox">
  10003. <div
  10004. v-for="(st, stIndex) in sentenceList"
  10005. :key="stIndex"
  10006. style="padding-bottom: 20px"
  10007. >
  10008. <div
  10009. style="padding: 15px 0 10px 20px"
  10010. class="sentenceTitle"
  10011. :index="stIndex + 1"
  10012. >
  10013. 题目{{ stIndex + 1 }}:请选择正确顺序
  10014. </div>
  10015. <div class="cardList" v-if="st.chooseSenList">
  10016. <div class="cardBox">
  10017. <div
  10018. v-for="(r, rIndex) in st.chooseSenList"
  10019. :key="rIndex"
  10020. @click="returnCard(r, stIndex, rIndex)"
  10021. >
  10022. <el-tooltip
  10023. class="item"
  10024. effect="light"
  10025. :content="r"
  10026. placement="top"
  10027. v-if="r != '' && r != undefined"
  10028. >
  10029. <div
  10030. :class="{
  10031. isCard: r,
  10032. isChooseCard: r == '' || r == undefined,
  10033. }"
  10034. >
  10035. <div>{{ r }}</div>
  10036. </div>
  10037. </el-tooltip>
  10038. <div
  10039. :class="{
  10040. isCard: r,
  10041. isChooseCard: r == '' || r == undefined,
  10042. }"
  10043. v-else
  10044. >
  10045. <div>{{ r }}</div>
  10046. </div>
  10047. </div>
  10048. </div>
  10049. </div>
  10050. <div class="cardList" v-if="st.addChangeSen">
  10051. <div class="cardBox">
  10052. <div
  10053. v-for="(s, sIndex) in st.addChangeSen"
  10054. :key="sIndex"
  10055. @click="setRightAnswer(s, stIndex, sIndex)"
  10056. >
  10057. <el-tooltip
  10058. class="item"
  10059. effect="light"
  10060. :content="s"
  10061. placement="top"
  10062. v-if="s != '' && s != undefined"
  10063. >
  10064. <div
  10065. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10066. >
  10067. <div>{{ s }}</div>
  10068. </div>
  10069. </el-tooltip>
  10070. <div
  10071. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10072. v-else
  10073. >
  10074. <div>{{ s }}</div>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. </div>
  10079. </div>
  10080. </div>
  10081. </div>
  10082. <span slot="footer" class="dialog-footer">
  10083. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10084. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10085. </span>
  10086. </el-dialog>
  10087. <el-dialog
  10088. title="排序"
  10089. :visible.sync="dialogVisibleSentenceTeacher"
  10090. :append-to-body="true"
  10091. width="1000px"
  10092. :before-close="handleClose"
  10093. class="dialog_diy dialog_diy3"
  10094. >
  10095. <div>
  10096. <div class="w_name">
  10097. 学生姓名:<span>{{ sStudent.student }}</span>
  10098. </div>
  10099. <div class="sentenBox">
  10100. <div
  10101. v-for="(st, stIndex) in sentenceList"
  10102. :key="stIndex"
  10103. style="padding-bottom: 20px"
  10104. >
  10105. <div
  10106. style="padding: 15px 0 10px 20px"
  10107. class="sentenceTitle"
  10108. :index="stIndex + 1"
  10109. >
  10110. 题目{{ stIndex + 1 }}:请选择正确顺序
  10111. </div>
  10112. <div class="cardList" v-if="st.chooseSenList">
  10113. <div class="cardBox">
  10114. <div
  10115. v-for="(r, rIndex) in st.chooseSenList"
  10116. :key="rIndex"
  10117. @click="returnCard(r, stIndex, rIndex)"
  10118. >
  10119. <el-tooltip
  10120. class="item"
  10121. effect="light"
  10122. :content="r"
  10123. placement="top"
  10124. v-if="r != '' && r != undefined"
  10125. >
  10126. <div
  10127. :class="{
  10128. isCard: r,
  10129. isChooseCard: r == '' || r == undefined,
  10130. }"
  10131. >
  10132. <div>{{ r }}</div>
  10133. </div>
  10134. </el-tooltip>
  10135. <div
  10136. :class="{
  10137. isCard: r,
  10138. isChooseCard: r == '' || r == undefined,
  10139. }"
  10140. v-else
  10141. >
  10142. <div>{{ r }}</div>
  10143. </div>
  10144. </div>
  10145. </div>
  10146. </div>
  10147. <div class="cardList" v-if="st.addChangeSen">
  10148. <div class="cardBox">
  10149. <div
  10150. v-for="(s, sIndex) in st.addChangeSen"
  10151. :key="sIndex"
  10152. @click="setRightAnswer(s, stIndex, sIndex)"
  10153. >
  10154. <el-tooltip
  10155. class="item"
  10156. effect="light"
  10157. :content="s"
  10158. placement="top"
  10159. v-if="s != '' && s != undefined"
  10160. >
  10161. <div
  10162. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10163. >
  10164. <div>{{ s }}</div>
  10165. </div>
  10166. </el-tooltip>
  10167. <div
  10168. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10169. v-else
  10170. >
  10171. <div>{{ s }}</div>
  10172. </div>
  10173. </div>
  10174. </div>
  10175. </div>
  10176. </div>
  10177. </div>
  10178. </div>
  10179. <span slot="footer" class="dialog-footer">
  10180. <el-button @click="dialogVisibleSentenceTeacher = false"
  10181. >取 消</el-button
  10182. >
  10183. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10184. </span>
  10185. </el-dialog>
  10186. <el-dialog
  10187. title="排序"
  10188. :visible.sync="dialogVisibleSentence1"
  10189. :append-to-body="true"
  10190. width="1000px"
  10191. :before-close="handleClose"
  10192. class="dialog_diy dialog_diy3"
  10193. >
  10194. <div>
  10195. <div class="sentenBox">
  10196. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10197. {{ sentenceList1.stuName }}的作业
  10198. </div>
  10199. <div
  10200. v-for="(st, stIndex) in sentenceList1"
  10201. :key="stIndex"
  10202. style="padding-bottom: 20px"
  10203. >
  10204. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10205. 第{{ stIndex + 1 }}题
  10206. </div>
  10207. <div class="isWrong">
  10208. <div class="cardList1" v-if="st.chooseSenList">
  10209. <div class="cardBox">
  10210. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10211. <el-tooltip
  10212. class="item"
  10213. effect="light"
  10214. :content="s"
  10215. placement="top"
  10216. >
  10217. <div class="isCard">
  10218. <div>{{ s }}</div>
  10219. </div>
  10220. </el-tooltip>
  10221. </div>
  10222. </div>
  10223. <div class="cardAnswerBox">
  10224. 组成句子:{{ st.chooseSenList.join(" ") }}
  10225. </div>
  10226. </div>
  10227. <div v-if="tType == 2" class="isTj">
  10228. <div class="isTjImg">
  10229. <img src="../assets/icon/conSentences/right.png" alt="" />
  10230. </div>
  10231. <div>已提交</div>
  10232. </div>
  10233. <div
  10234. class="answerRight isTj"
  10235. v-if="
  10236. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10237. (tType == 1 || tType == 4)
  10238. "
  10239. >
  10240. <div class="isTjImg">
  10241. <img src="../assets/icon/conSentences/right.png" alt="" />
  10242. </div>
  10243. <div>回答正确</div>
  10244. </div>
  10245. <div
  10246. class="answerRight isTj"
  10247. v-if="
  10248. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10249. (tType == 1 || tType == 4)
  10250. "
  10251. >
  10252. <div class="isTjImg">
  10253. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10254. </div>
  10255. <div>回答错误</div>
  10256. </div>
  10257. </div>
  10258. <div
  10259. v-if="
  10260. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10261. (tType == 1 || tType == 4)
  10262. "
  10263. >
  10264. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10265. <div
  10266. class="cardList"
  10267. v-if="st.rightAnswer"
  10268. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10269. >
  10270. <div class="cardBox">
  10271. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10272. <el-tooltip
  10273. class="item"
  10274. effect="light"
  10275. :content="r"
  10276. placement="top"
  10277. >
  10278. <div class="isCard1">
  10279. <div>{{ r }}</div>
  10280. </div>
  10281. </el-tooltip>
  10282. </div>
  10283. </div>
  10284. <div class="cardAnswerBox">
  10285. 组成句子:{{ st.rightAnswer.join(" ") }}
  10286. </div>
  10287. </div>
  10288. </div>
  10289. </div>
  10290. </div>
  10291. </div>
  10292. <span slot="footer" class="dialog-footer">
  10293. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10294. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10295. >确 定</el-button
  10296. >
  10297. </span>
  10298. </el-dialog>
  10299. <el-dialog
  10300. title="教师提交作业"
  10301. :visible.sync="dialogVisibleWorks"
  10302. :append-to-body="true"
  10303. width="500px"
  10304. :before-close="handleClose"
  10305. class="dialog_change"
  10306. >
  10307. <div class="marginT">
  10308. <div class="w_name">
  10309. 学生姓名:<span>{{ sStudent.student }}</span>
  10310. </div>
  10311. <div>上传文件</div>
  10312. <div
  10313. class="chapter_add"
  10314. @click="addImg($event)"
  10315. v-if="studyJuri[0].cover.length == 0"
  10316. >
  10317. <div class="up_photo">
  10318. <img src="../assets/uploadImg2.png" alt />
  10319. </div>
  10320. <!-- <input
  10321. type="file"
  10322. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10323. style="display: none"
  10324. @change="beforeUpload1($event, 1)"
  10325. /> -->
  10326. <input
  10327. type="file"
  10328. accept="*"
  10329. style="display: none"
  10330. @change="beforeUpload1($event, 1)"
  10331. />
  10332. </div>
  10333. <!-- capture="camera" -->
  10334. <div
  10335. class="chapter_add"
  10336. style="
  10337. display: flex;
  10338. width: 100%;
  10339. flex-direction: row;
  10340. flex-wrap: wrap;
  10341. justify-content: flex-start;
  10342. padding: 15px 0;
  10343. "
  10344. v-if="studyJuri[0].cover.length > 0"
  10345. >
  10346. <div class="upCover">
  10347. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10348. <img :src="word" alt v-else-if="fileType == 1" />
  10349. <img :src="video" alt v-else-if="fileType == 2" />
  10350. <img :src="word2" alt v-else-if="fileType == 3" />
  10351. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10352. <div class="deleteWord" @click="clean(1)">
  10353. <img src="../assets/icon/deleteWorks.png" alt />
  10354. </div>
  10355. </div>
  10356. </div>
  10357. </div>
  10358. <div
  10359. class="upload_send"
  10360. @click="addCourseWorksTeacher(taskCount)"
  10361. v-if="!proVisible"
  10362. >
  10363. 提交
  10364. </div>
  10365. </el-dialog>
  10366. <ImgDraw
  10367. :drawShow="drawShow"
  10368. @closeDraw="closeDraw"
  10369. @addImgDraw="addImgDraw"
  10370. :bg="bg"
  10371. ></ImgDraw>
  10372. <el-dialog
  10373. title="表格"
  10374. :visible.sync="dialogVisibleTable"
  10375. :append-to-body="true"
  10376. width="95%"
  10377. :before-close="handleClose"
  10378. class="dialog_diy"
  10379. >
  10380. <el-form>
  10381. <div
  10382. style="
  10383. display: flex;
  10384. align-items: center;
  10385. justify-content: space-between;
  10386. "
  10387. >
  10388. <span>表格内容</span>
  10389. <el-button type="primary" size="small" @click="returnTableText"
  10390. >还原模板</el-button
  10391. >
  10392. </div>
  10393. <Table
  10394. v-model="tableJson.text"
  10395. @change="change"
  10396. v-if="dialogVisibleTable"
  10397. ></Table>
  10398. </el-form>
  10399. <span slot="footer" class="dialog-footer">
  10400. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10401. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10402. </span>
  10403. </el-dialog>
  10404. <el-dialog
  10405. title="表格"
  10406. :visible.sync="dialogVisibleTableTeacher"
  10407. :append-to-body="true"
  10408. width="95%"
  10409. :before-close="handleClose"
  10410. class="dialog_diy"
  10411. >
  10412. <el-form>
  10413. <div class="w_name">
  10414. 学生姓名:<span>{{ sStudent.student }}</span>
  10415. </div>
  10416. <div>表格内容</div>
  10417. <Table
  10418. v-model="tableJson.text"
  10419. @change="change"
  10420. v-if="dialogVisibleTableTeacher"
  10421. ></Table>
  10422. </el-form>
  10423. <span slot="footer" class="dialog-footer">
  10424. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10425. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10426. </span>
  10427. </el-dialog>
  10428. <el-dialog
  10429. title="文档"
  10430. :visible.sync="dialogVisibleWord"
  10431. :append-to-body="true"
  10432. width="95%"
  10433. :before-close="handleClose"
  10434. class="dialog_diy"
  10435. >
  10436. <el-form>
  10437. <div
  10438. style="
  10439. display: flex;
  10440. align-items: center;
  10441. justify-content: space-between;
  10442. "
  10443. >
  10444. <span>文档内容</span>
  10445. <el-button type="primary" size="small" @click="returnWordText"
  10446. >还原模板</el-button
  10447. >
  10448. </div>
  10449. <editor-bar
  10450. v-model="wordJson.text"
  10451. v-if="dialogVisibleWord"
  10452. ></editor-bar>
  10453. </el-form>
  10454. <span slot="footer" class="dialog-footer">
  10455. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10456. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10457. </span>
  10458. </el-dialog>
  10459. <el-dialog
  10460. title="文档"
  10461. :visible.sync="dialogVisibleWordTeacher"
  10462. :append-to-body="true"
  10463. width="95%"
  10464. :before-close="handleClose"
  10465. class="dialog_diy"
  10466. >
  10467. <el-form>
  10468. <div class="w_name">
  10469. 学生姓名:<span>{{ sStudent.student }}</span>
  10470. </div>
  10471. <div>文档内容</div>
  10472. <editor-bar
  10473. v-model="wordJson.text"
  10474. v-if="dialogVisibleWordTeacher"
  10475. ></editor-bar>
  10476. </el-form>
  10477. <span slot="footer" class="dialog-footer">
  10478. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10479. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10480. </span>
  10481. </el-dialog>
  10482. <el-dialog
  10483. title="表格"
  10484. :visible.sync="dialogVisibleTable2"
  10485. :append-to-body="true"
  10486. width="95%"
  10487. :before-close="handleClose"
  10488. class="dialog_diy"
  10489. >
  10490. <el-form>
  10491. <div class="cont" v-html="tableJson.text"></div>
  10492. </el-form>
  10493. <span slot="footer" class="dialog-footer">
  10494. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10495. </span>
  10496. </el-dialog>
  10497. <el-dialog
  10498. title="文档"
  10499. :visible.sync="dialogVisibleTable3"
  10500. :append-to-body="true"
  10501. width="95%"
  10502. :before-close="handleClose"
  10503. class="dialog_diy"
  10504. >
  10505. <el-form>
  10506. <div class="cont" v-html="tableJson.text"></div>
  10507. </el-form>
  10508. <span slot="footer" class="dialog-footer">
  10509. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10510. </span>
  10511. </el-dialog>
  10512. <el-dialog
  10513. title="分组设置"
  10514. :visible.sync="dialogVisibleGroup"
  10515. :append-to-body="true"
  10516. width="95%"
  10517. :before-close="handleClose"
  10518. class="dialog_diy"
  10519. >
  10520. <div v-if="dialogVisibleGroup">
  10521. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10522. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10523. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10524. </div>
  10525. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10526. @click="lockChair">
  10527. 锁定位置
  10528. </div>
  10529. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10530. 解锁位置
  10531. </div> -->
  10532. <div class="group_switch">
  10533. <span>开放选座</span>
  10534. <el-switch
  10535. v-model="islock"
  10536. active-text=""
  10537. class="switchCss"
  10538. @change="lockChair"
  10539. ></el-switch>
  10540. </div>
  10541. <div
  10542. type="primary"
  10543. @click="updateGroup"
  10544. class="returnBtn"
  10545. style="background-color: #225bc7"
  10546. >
  10547. 分组设置
  10548. </div>
  10549. </div>
  10550. <div>
  10551. <div
  10552. class="g_d_box"
  10553. v-if="groupJson.group && groupStudent[toolindex]"
  10554. >
  10555. <div
  10556. class="g_d_group"
  10557. v-for="(g, gindex) in groupJson.group"
  10558. :key="gindex"
  10559. >
  10560. <div class="g_d_group_chair">
  10561. <div v-if="groupJson.number > 1">
  10562. <span
  10563. :class="{
  10564. isChair:
  10565. groupStudent[toolindex][gindex] &&
  10566. groupStudent[toolindex][gindex][0],
  10567. updateChair:
  10568. courseDetail.userid == userid &&
  10569. groupStudent[toolindex][gindex] &&
  10570. groupStudent[toolindex][gindex][0] &&
  10571. groupJson.islock == 2,
  10572. }"
  10573. ><span
  10574. class="updateChairBtn"
  10575. @click="
  10576. updateGroupChair(
  10577. groupStudent[toolindex][gindex] &&
  10578. groupStudent[toolindex][gindex][0]
  10579. )
  10580. "
  10581. >修改</span
  10582. ></span
  10583. ><span>{{
  10584. groupStudent[toolindex][gindex] &&
  10585. groupStudent[toolindex][gindex][0]
  10586. ? groupStudent[toolindex][gindex] &&
  10587. groupStudent[toolindex][gindex][0].name
  10588. : "空位置"
  10589. }}</span>
  10590. </div>
  10591. <div v-if="groupJson.number > 4">
  10592. <span
  10593. :class="{
  10594. isChair:
  10595. groupStudent[toolindex][gindex] &&
  10596. groupStudent[toolindex][gindex][4],
  10597. updateChair:
  10598. courseDetail.userid == userid &&
  10599. groupStudent[toolindex][gindex] &&
  10600. groupStudent[toolindex][gindex][4] &&
  10601. groupJson.islock == 2,
  10602. }"
  10603. ><span
  10604. class="updateChairBtn"
  10605. @click="
  10606. updateGroupChair(
  10607. groupStudent[toolindex][gindex] &&
  10608. groupStudent[toolindex][gindex][4]
  10609. )
  10610. "
  10611. >修改</span
  10612. ></span
  10613. ><span>{{
  10614. groupStudent[toolindex][gindex] &&
  10615. groupStudent[toolindex][gindex][4]
  10616. ? groupStudent[toolindex][gindex] &&
  10617. groupStudent[toolindex][gindex][4].name
  10618. : "空位置"
  10619. }}</span>
  10620. </div>
  10621. <div v-if="groupJson.number > 8">
  10622. <span
  10623. :class="{
  10624. isChair:
  10625. groupStudent[toolindex][gindex] &&
  10626. groupStudent[toolindex][gindex][8],
  10627. updateChair:
  10628. courseDetail.userid == userid &&
  10629. groupStudent[toolindex][gindex] &&
  10630. groupStudent[toolindex][gindex][8] &&
  10631. groupJson.islock == 2,
  10632. }"
  10633. ><span
  10634. class="updateChairBtn"
  10635. @click="
  10636. updateGroupChair(
  10637. groupStudent[toolindex][gindex] &&
  10638. groupStudent[toolindex][gindex][8]
  10639. )
  10640. "
  10641. >修改</span
  10642. ></span
  10643. ><span>{{
  10644. groupStudent[toolindex][gindex] &&
  10645. groupStudent[toolindex][gindex][8]
  10646. ? groupStudent[toolindex][gindex] &&
  10647. groupStudent[toolindex][gindex][8].name
  10648. : "空位置"
  10649. }}</span>
  10650. </div>
  10651. </div>
  10652. <div class="g_d_group_tableBox">
  10653. <div class="g_d_group_chair2">
  10654. <div v-if="groupJson.number > 2">
  10655. <span
  10656. :class="{
  10657. isChair:
  10658. groupStudent[toolindex][gindex] &&
  10659. groupStudent[toolindex][gindex][2],
  10660. updateChair:
  10661. courseDetail.userid == userid &&
  10662. groupStudent[toolindex][gindex] &&
  10663. groupStudent[toolindex][gindex][2] &&
  10664. groupJson.islock == 2,
  10665. }"
  10666. ><span
  10667. class="updateChairBtn"
  10668. @click="
  10669. updateGroupChair(
  10670. groupStudent[toolindex][gindex] &&
  10671. groupStudent[toolindex][gindex][2]
  10672. )
  10673. "
  10674. >修改</span
  10675. ></span
  10676. ><span>{{
  10677. groupStudent[toolindex][gindex] &&
  10678. groupStudent[toolindex][gindex][2]
  10679. ? groupStudent[toolindex][gindex] &&
  10680. groupStudent[toolindex][gindex][2].name
  10681. : "空位置"
  10682. }}</span>
  10683. </div>
  10684. <div v-if="groupJson.number > 6">
  10685. <span
  10686. :class="{
  10687. isChair:
  10688. groupStudent[toolindex][gindex] &&
  10689. groupStudent[toolindex][gindex][6],
  10690. updateChair:
  10691. courseDetail.userid == userid &&
  10692. groupStudent[toolindex][gindex] &&
  10693. groupStudent[toolindex][gindex][6] &&
  10694. groupJson.islock == 2,
  10695. }"
  10696. ><span
  10697. class="updateChairBtn"
  10698. @click="
  10699. updateGroupChair(
  10700. groupStudent[toolindex][gindex] &&
  10701. groupStudent[toolindex][gindex][6]
  10702. )
  10703. "
  10704. >修改</span
  10705. ></span
  10706. ><span>{{
  10707. groupStudent[toolindex][gindex] &&
  10708. groupStudent[toolindex][gindex][6]
  10709. ? groupStudent[toolindex][gindex] &&
  10710. groupStudent[toolindex][gindex][6].name
  10711. : "空位置"
  10712. }}</span>
  10713. </div>
  10714. </div>
  10715. <div class="g_d_group_table">
  10716. <div>
  10717. {{ g.name }}
  10718. </div>
  10719. <div>
  10720. <div
  10721. v-if="
  10722. courseDetail.userid == userid && groupJson.islock == 2
  10723. "
  10724. @click="deleteGroupChair(gindex)"
  10725. >
  10726. 移除组员
  10727. </div>
  10728. <div
  10729. @click="selectGroup(gindex)"
  10730. v-else-if="
  10731. groupStudentUid[toolindex] &&
  10732. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10733. "
  10734. >
  10735. 加入分组
  10736. </div>
  10737. <div
  10738. @click="
  10739. exitGroup(
  10740. groupStudent[toolindex][gindex] &&
  10741. groupStudent[toolindex][gindex][
  10742. groupStudentUid[toolindex][gindex].indexOf(userid)
  10743. ].id
  10744. )
  10745. "
  10746. v-else-if="
  10747. groupStudentUid[toolindex] &&
  10748. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10749. "
  10750. >
  10751. 退出分组
  10752. </div>
  10753. </div>
  10754. </div>
  10755. <div class="g_d_group_chair2">
  10756. <div v-if="groupJson.number > 3">
  10757. <span
  10758. :class="{
  10759. isChair:
  10760. groupStudent[toolindex][gindex] &&
  10761. groupStudent[toolindex][gindex][3],
  10762. updateChair:
  10763. courseDetail.userid == userid &&
  10764. groupStudent[toolindex][gindex] &&
  10765. groupStudent[toolindex][gindex][3] &&
  10766. groupJson.islock == 2,
  10767. }"
  10768. ><span
  10769. class="updateChairBtn"
  10770. @click="
  10771. updateGroupChair(
  10772. groupStudent[toolindex][gindex] &&
  10773. groupStudent[toolindex][gindex][3]
  10774. )
  10775. "
  10776. >修改</span
  10777. ></span
  10778. ><span>{{
  10779. groupStudent[toolindex][gindex] &&
  10780. groupStudent[toolindex][gindex][3]
  10781. ? groupStudent[toolindex][gindex] &&
  10782. groupStudent[toolindex][gindex][3].name
  10783. : "空位置"
  10784. }}</span>
  10785. </div>
  10786. <div v-if="groupJson.number > 7">
  10787. <span
  10788. :class="{
  10789. isChair:
  10790. groupStudent[toolindex][gindex] &&
  10791. groupStudent[toolindex][gindex][7],
  10792. updateChair:
  10793. courseDetail.userid == userid &&
  10794. groupStudent[toolindex][gindex] &&
  10795. groupStudent[toolindex][gindex][7] &&
  10796. groupJson.islock == 2,
  10797. }"
  10798. ><span
  10799. class="updateChairBtn"
  10800. @click="
  10801. updateGroupChair(
  10802. groupStudent[toolindex][gindex] &&
  10803. groupStudent[toolindex][gindex][7]
  10804. )
  10805. "
  10806. >修改</span
  10807. ></span
  10808. ><span>{{
  10809. groupStudent[toolindex][gindex] &&
  10810. groupStudent[toolindex][gindex][7]
  10811. ? groupStudent[toolindex][gindex] &&
  10812. groupStudent[toolindex][gindex][7].name
  10813. : "空位置"
  10814. }}</span>
  10815. </div>
  10816. </div>
  10817. </div>
  10818. <div class="g_d_group_chair">
  10819. <div v-if="groupJson.number > 1">
  10820. <span
  10821. :class="{
  10822. isChair:
  10823. groupStudent[toolindex][gindex] &&
  10824. groupStudent[toolindex][gindex][1],
  10825. updateChair:
  10826. courseDetail.userid == userid &&
  10827. groupStudent[toolindex][gindex] &&
  10828. groupStudent[toolindex][gindex][1] &&
  10829. groupJson.islock == 2,
  10830. }"
  10831. ><span
  10832. class="updateChairBtn"
  10833. @click="
  10834. updateGroupChair(
  10835. groupStudent[toolindex][gindex] &&
  10836. groupStudent[toolindex][gindex][1]
  10837. )
  10838. "
  10839. >修改</span
  10840. ></span
  10841. ><span>{{
  10842. groupStudent[toolindex][gindex] &&
  10843. groupStudent[toolindex][gindex][1]
  10844. ? groupStudent[toolindex][gindex] &&
  10845. groupStudent[toolindex][gindex][1].name
  10846. : "空位置"
  10847. }}</span>
  10848. </div>
  10849. <div v-if="groupJson.number > 5">
  10850. <span
  10851. :class="{
  10852. isChair:
  10853. groupStudent[toolindex][gindex] &&
  10854. groupStudent[toolindex][gindex][5],
  10855. updateChair:
  10856. courseDetail.userid == userid &&
  10857. groupStudent[toolindex][gindex] &&
  10858. groupStudent[toolindex][gindex][5] &&
  10859. groupJson.islock == 2,
  10860. }"
  10861. ><span
  10862. class="updateChairBtn"
  10863. @click="
  10864. updateGroupChair(
  10865. groupStudent[toolindex][gindex] &&
  10866. groupStudent[toolindex][gindex][5]
  10867. )
  10868. "
  10869. >修改</span
  10870. ></span
  10871. ><span>{{
  10872. groupStudent[toolindex][gindex] &&
  10873. groupStudent[toolindex][gindex][5]
  10874. ? groupStudent[toolindex][gindex] &&
  10875. groupStudent[toolindex][gindex][5].name
  10876. : "空位置"
  10877. }}</span>
  10878. </div>
  10879. <div v-if="groupJson.number > 9">
  10880. <span
  10881. :class="{
  10882. isChair:
  10883. groupStudent[toolindex][gindex] &&
  10884. groupStudent[toolindex][gindex][9],
  10885. updateChair:
  10886. courseDetail.userid == userid &&
  10887. groupStudent[toolindex][gindex] &&
  10888. groupStudent[toolindex][gindex][9] &&
  10889. groupJson.islock == 2,
  10890. }"
  10891. ><span
  10892. class="updateChairBtn"
  10893. @click="
  10894. updateGroupChair(
  10895. groupStudent[toolindex][gindex] &&
  10896. groupStudent[toolindex][gindex][9]
  10897. )
  10898. "
  10899. >修改</span
  10900. ></span
  10901. ><span>{{
  10902. groupStudent[toolindex][gindex] &&
  10903. groupStudent[toolindex][gindex][9]
  10904. ? groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][9].name
  10906. : "空位置"
  10907. }}</span>
  10908. </div>
  10909. </div>
  10910. </div>
  10911. </div>
  10912. </div>
  10913. </div>
  10914. <span slot="footer" class="dialog-footer">
  10915. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10916. </span>
  10917. </el-dialog>
  10918. <el-dialog
  10919. title="分组设置"
  10920. :visible.sync="dialogVisibleGroup2"
  10921. :append-to-body="true"
  10922. width="650px"
  10923. :before-close="handleClose"
  10924. class="dialog_diy"
  10925. >
  10926. <div class="groupBox">
  10927. <div v-if="groupJson2.group" class="groupContent">
  10928. <div class="groupTitle">请设置小组数量及名称</div>
  10929. <div
  10930. v-for="(item, index) in groupJson2.group"
  10931. :key="index"
  10932. class="groupName"
  10933. >
  10934. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10935. <el-input
  10936. v-model="item.name"
  10937. placeholder="请输入名称..."
  10938. style="width: 250px"
  10939. ></el-input>
  10940. <!-- <div class="groupBtn">
  10941. <el-button type="primary" size="small" @click="addGroup(index)">
  10942. 添加</el-button>
  10943. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10944. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10945. </div> -->
  10946. </div>
  10947. </div>
  10948. <div class="groupContent">
  10949. <div class="groupTitle">请设置每组人数</div>
  10950. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10951. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10952. <el-input
  10953. v-model="groupJson.number"
  10954. style="width: 150px"
  10955. placeholder="请输入2-10的数字"
  10956. @change="numberPan"
  10957. ></el-input>
  10958. </div>
  10959. </div>
  10960. <span slot="footer" class="dialog-footer">
  10961. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10962. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10963. </span>
  10964. </el-dialog>
  10965. <el-dialog
  10966. title="作业提交"
  10967. :visible.sync="dialogVisibleGroupWork"
  10968. :append-to-body="true"
  10969. width="500px"
  10970. :before-close="handleClose"
  10971. class="dialog_change"
  10972. >
  10973. <div class="marginT">
  10974. <div>上传文件</div>
  10975. <div
  10976. class="chapter_add"
  10977. @click="addImg($event)"
  10978. v-if="studyJuri[0].cover.length == 0"
  10979. >
  10980. <div class="up_photo">
  10981. <img src="../assets/icon/uploadImg.png" alt />
  10982. </div>
  10983. <!-- <input
  10984. type="file"
  10985. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10986. style="display: none"
  10987. @change="beforeUpload1($event, 1)"
  10988. /> -->
  10989. <input
  10990. type="file"
  10991. accept="*"
  10992. style="display: none"
  10993. @change="beforeUpload1($event, 1)"
  10994. />
  10995. </div>
  10996. <!-- capture="camera" -->
  10997. <div
  10998. class="chapter_add"
  10999. style="
  11000. display: flex;
  11001. width: 100%;
  11002. flex-direction: row;
  11003. flex-wrap: wrap;
  11004. justify-content: flex-start;
  11005. padding: 15px 0;
  11006. "
  11007. v-if="studyJuri[0].cover.length > 0"
  11008. >
  11009. <div class="upCover">
  11010. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11011. <img :src="word" alt v-else-if="fileType == 1" />
  11012. <img :src="video" alt v-else-if="fileType == 2" />
  11013. <img :src="word2" alt v-else-if="fileType == 3" />
  11014. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11015. <div class="deleteWord" @click="clean(1)">
  11016. <img src="../assets/icon/deleteWorks.png" alt />
  11017. </div>
  11018. </div>
  11019. </div>
  11020. </div>
  11021. <div
  11022. class="upload_send"
  11023. @click="addCourseWorks2(taskCount)"
  11024. v-if="!proVisible"
  11025. >
  11026. 提交
  11027. </div>
  11028. </el-dialog>
  11029. <el-dialog
  11030. title="修改分组"
  11031. :visible.sync="dialogVisibleUpdateGroup"
  11032. :append-to-body="true"
  11033. width="350px"
  11034. :before-close="handleClose"
  11035. class="dialog_diy"
  11036. >
  11037. <div>
  11038. <h2>
  11039. {{ this.updateGroupUser.name }}
  11040. </h2>
  11041. <div style="color: rgb(171 171 171); margin-top: 10px">
  11042. 请选择要进入的分组
  11043. </div>
  11044. <el-radio-group v-model="checkChair">
  11045. <el-radio
  11046. style="display: block; margin-top: 20px"
  11047. v-for="(item, index) in updateGroupArray"
  11048. :label="item.label"
  11049. :key="index"
  11050. >{{ item.name }}</el-radio
  11051. >
  11052. </el-radio-group>
  11053. </div>
  11054. <span slot="footer" class="dialog-footer">
  11055. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11056. <el-button type="primary" @click="updateChair">确定</el-button>
  11057. </span>
  11058. </el-dialog>
  11059. <el-dialog
  11060. title="移除组员"
  11061. :visible.sync="dialogVisibleDeleteGroup"
  11062. :append-to-body="true"
  11063. width="350px"
  11064. :before-close="handleClose"
  11065. class="dialog_diy"
  11066. >
  11067. <div>
  11068. <h2>
  11069. {{ this.deleteGroupArray.name }}
  11070. </h2>
  11071. <div style="color: rgb(171 171 171); margin-top: 10px">
  11072. 请选择要删除的组员
  11073. </div>
  11074. <el-checkbox-group v-model="checkDeleteGroup">
  11075. <el-checkbox
  11076. style="display: flex; margin-top: 20px"
  11077. v-for="(item, index) in deleteGroupUser"
  11078. :label="item.userid"
  11079. :key="index"
  11080. >{{ item.name }}</el-checkbox
  11081. >
  11082. </el-checkbox-group>
  11083. </div>
  11084. <span slot="footer" class="dialog-footer">
  11085. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11086. <el-button type="primary" @click="deleteChair">确定</el-button>
  11087. </span>
  11088. </el-dialog>
  11089. <el-dialog
  11090. title="批量上传"
  11091. :visible.sync="dialogVisiblePl"
  11092. :append-to-body="true"
  11093. width="700px"
  11094. :before-close="handleClose"
  11095. class="dialog_change"
  11096. >
  11097. <div class="marginT">
  11098. <div class="plworkBox">
  11099. <div
  11100. class="chapter_add"
  11101. style="
  11102. display: flex;
  11103. width: 150px;
  11104. flex-direction: row;
  11105. flex-wrap: wrap;
  11106. justify-content: flex-start;
  11107. margin: 0 10px 10px 0;
  11108. "
  11109. v-for="(item, index) in plworkFile"
  11110. :key="index"
  11111. >
  11112. <div class="upCover2">
  11113. <img
  11114. :src="item.url"
  11115. alt
  11116. v-if="item.fileType == 1"
  11117. @click="previewImg(item.url)"
  11118. />
  11119. <img :src="word" alt v-else-if="item.fileType == 4" />
  11120. <img :src="video" alt v-else />
  11121. <!-- <span class="picName">{{ item.name }}</span> -->
  11122. <!-- <el-input
  11123. v-model="item.username"
  11124. placeholder="请输入学生名字"
  11125. style="margin-top: 10px"
  11126. ></el-input> -->
  11127. <div
  11128. class="pl_select_box"
  11129. @click="
  11130. getUpdateMore(true, checkUpload(), item.username, index)
  11131. "
  11132. >
  11133. {{ getSName(item.username) }}
  11134. </div>
  11135. <!-- <el-select
  11136. style="margin-top: 10px"
  11137. v-model="item.username"
  11138. filterable
  11139. allow-create
  11140. placeholder="请选择学生"
  11141. >
  11142. <el-option
  11143. v-for="item1 in checkUpload()"
  11144. :key="item1.userid"
  11145. :label="item1.name ? item1.name : item1.username"
  11146. :value="item1.userid"
  11147. >
  11148. </el-option>
  11149. </el-select> -->
  11150. <div class="deleteWord" @click="clean2(index)">
  11151. <img src="../assets/icon/deleteWorks.png" alt />
  11152. </div>
  11153. </div>
  11154. </div>
  11155. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11156. <div class="up_photo2">
  11157. <img src="../assets/icon/plwork.png" alt />
  11158. <span>点击上传文件</span>
  11159. </div>
  11160. <input
  11161. type="file"
  11162. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11163. multiple="multiple"
  11164. style="display: none"
  11165. @change="beforeUpload3($event, 6)"
  11166. />
  11167. </div>
  11168. </div>
  11169. </div>
  11170. <!-- capture="camera" -->
  11171. <div
  11172. class="upload_send"
  11173. @click="addCourseWorksPl(taskCount)"
  11174. v-if="!proVisible2"
  11175. >
  11176. 提交
  11177. </div>
  11178. </el-dialog>
  11179. <el-dialog
  11180. title="修改名称"
  11181. :visible.sync="dialogVisibleSname"
  11182. width="500px"
  11183. :before-close="handleClose"
  11184. class="dialog_diy"
  11185. center
  11186. >
  11187. <div
  11188. style="
  11189. text-align: center;
  11190. display: flex;
  11191. align-items: center;
  11192. justify-content: center;
  11193. "
  11194. >
  11195. <span class="tian1">名称</span>
  11196. <div
  11197. class="pl_select_box"
  11198. style="margin-left: 10px; width: 200px"
  11199. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11200. >
  11201. {{ getSName(worksSName) }}
  11202. </div>
  11203. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11204. placeholder="请选择学生">
  11205. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11206. :value="item.userid">
  11207. </el-option>
  11208. </el-select> -->
  11209. <!-- <el-input
  11210. v-model="worksSName"
  11211. style="width: 250px; margin: 15px 0px"
  11212. ></el-input> -->
  11213. </div>
  11214. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11215. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11216. <el-button type="primary" @click="updateName">确 定</el-button>
  11217. </span>
  11218. </el-dialog>
  11219. <el-dialog
  11220. title="英语写作"
  11221. :visible.sync="engDialogVisible"
  11222. :append-to-body="true"
  11223. width="800px"
  11224. :before-close="handleClose"
  11225. class="dialog_diy"
  11226. >
  11227. <onlineWrite
  11228. v-if="engDialogVisible"
  11229. @setEnglish="setEnglishList"
  11230. :englishList="englishList"
  11231. :myAnswerList1="myAnswerList1"
  11232. ></onlineWrite>
  11233. <span slot="footer" class="dialog-footer">
  11234. <el-button @click="engDialogVisible = false">取 消</el-button>
  11235. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11236. </span>
  11237. </el-dialog>
  11238. <el-dialog
  11239. title="英语写作"
  11240. :visible.sync="engUpdateDialogVisible"
  11241. :append-to-body="true"
  11242. width="800px"
  11243. :before-close="handleClose"
  11244. class="dialog_diy fullStyle"
  11245. >
  11246. <div class="engUpBox">
  11247. <div class="engUpTop">
  11248. <div class="engTitle">
  11249. <div>作文题目:</div>
  11250. <div>{{ englishList1.engTitle }}</div>
  11251. </div>
  11252. <div class="engText">
  11253. <div>作文题目:</div>
  11254. <div class="cont" v-html="englishList1.englishText" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11255. </div>
  11256. </div>
  11257. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11258. <div class="oldBox">
  11259. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11260. <div class="oldText">
  11261. <div class="detailBox">
  11262. <div class="oldDetail">
  11263. <div>标题:</div>
  11264. <div>{{ oldEnglishJson.engTitle }} </div>
  11265. </div>
  11266. <div class="oldDetail1">
  11267. <div>正文:</div>
  11268. <div v-html="oldEnglishJson.engText"></div>
  11269. </div>
  11270. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11271. <div>图片:</div>
  11272. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11273. </div>
  11274. </div>
  11275. </div>
  11276. </div>
  11277. <div class="oldBox" v-if="userMes[0].type == 2">
  11278. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11279. <div class="oldText">
  11280. <div class="detailBox">
  11281. <div class="oldDetail">
  11282. <div>标题:</div>
  11283. <el-input v-model="newEnglishList.engTitle" />
  11284. </div>
  11285. <div class="oldDetail">
  11286. <div>正文:</div>
  11287. <el-input type="textarea"
  11288. :rows="10"
  11289. resize="none" v-model="newEnglishList.engText" />
  11290. </div>
  11291. </div>
  11292. </div>
  11293. </div>
  11294. <div class="oldBox" v-else-if="userMes[0].type == 1">
  11295. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  11296. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11297. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  11298. </div>
  11299. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11300. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11301. <div class="detailBox">
  11302. <div class="oldDetail">
  11303. <div>标题:</div>
  11304. <el-input v-model="oldEnglishJson1.engTitle" />
  11305. </div>
  11306. <div class="oldDetail">
  11307. <div>正文:</div>
  11308. <el-input type="textarea"
  11309. :rows="10"
  11310. resize="none" v-model="oldEnglishJson1.engText" />
  11311. </div>
  11312. </div>
  11313. </div>
  11314. <div class="oldText" v-else-if="newEngIndex == -1">
  11315. <div class="detailBox">
  11316. <div class="oldDetail">
  11317. <div>标题:</div>
  11318. <el-input v-model="newEnglishList.engTitle" />
  11319. </div>
  11320. <div class="oldDetail">
  11321. <div>正文:</div>
  11322. <el-input type="textarea"
  11323. :rows="10"
  11324. resize="none" v-model="newEnglishList.engText" />
  11325. </div>
  11326. </div>
  11327. </div>
  11328. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11329. <div class="detailBox">
  11330. <div class="oldDetail">
  11331. <div>标题:</div>
  11332. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle"></div>
  11333. <el-input v-else v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engTitle" />
  11334. </div>
  11335. <div class="oldDetail">
  11336. <div>正文:</div>
  11337. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="JSON.parse(newEnglishList1[newEngIndex].cWork).engText"></div>
  11338. <el-input v-else type="textarea"
  11339. :rows="10"
  11340. resize="none" v-model="JSON.parse(newEnglishList1[newEngIndex].cWork).engText" />
  11341. </div>
  11342. </div>
  11343. </div>
  11344. </div>
  11345. </div>
  11346. </div>
  11347. <span slot="footer" class="dialog-footer">
  11348. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11349. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11350. </span>
  11351. </el-dialog>
  11352. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible"></englishEva>
  11353. <interVideo
  11354. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11355. :videoJson="videoJson"
  11356. :userid="userid"
  11357. :id="id"
  11358. :courseType="courseType"
  11359. :taskCount="taskCount"
  11360. :toolindex="toolindex"
  11361. ></interVideo>
  11362. <UpdateMore
  11363. :dialogVisibleMember.sync="dialogVisibleMember"
  11364. :cList="uploadStudentJuri"
  11365. :userid="userid"
  11366. :searchTN="worksSName2"
  11367. @setPlname="setPlname"
  11368. ></UpdateMore>
  11369. <wordCloud
  11370. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11371. :data="wordCloudData"
  11372. ></wordCloud>
  11373. <el-dialog
  11374. title="挑人"
  11375. :visible.sync="dialogVisiblePickPeople"
  11376. width="650px"
  11377. :before-close="handleClose"
  11378. class="dialog_diy"
  11379. center
  11380. >
  11381. <div class="pick_box">
  11382. <div
  11383. class="noWorksName"
  11384. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11385. v-for="(item, index) in uploadStudentJuri"
  11386. :key="index"
  11387. @click="pickStudent(item)"
  11388. >
  11389. {{ item.name }}
  11390. </div>
  11391. </div>
  11392. </el-dialog>
  11393. </div>
  11394. </template>
  11395. <script>
  11396. import "../common/aws-sdk-2.235.1.min.js";
  11397. // import pdf from "./components/pdf3";
  11398. import pdf from "./components/vpdf";
  11399. import AskStatic from "./components/askStatic";
  11400. import AskStatic2 from "./components/askStatic2";
  11401. import AnswerData2 from "./components/answerData2";
  11402. import AnswerData from "./components/answerData";
  11403. import EditorBar from "./tools/wangEnduit.vue";
  11404. import Table from "./tools/table.vue";
  11405. import Time from "./tools/time.vue";
  11406. import Mind from "./tools/jsmind.vue";
  11407. import Sunburst from "./tools/sunburst";
  11408. import SeeBoard from "./tools/seeBoard";
  11409. import * as imageConversion from "image-conversion";
  11410. import Audio from "./components/audio.vue";
  11411. import ImgDraw from "./tools/imgDraw/imgDraw";
  11412. import { Empty } from "element-ui";
  11413. import RecordRTC from "recordrtc";
  11414. import interVideo from "./interVideo/index.vue";
  11415. import UpdateMore from "./updateMore/updateMore.vue";
  11416. import wordCloud from "./wordCloud/index.vue";
  11417. import axios from "axios";
  11418. import JSZip from "jszip";
  11419. import FileSaver from "file-saver";
  11420. import onlineWrite from "./components/onlineWrite";
  11421. import englishEva from "./components/englishEva";
  11422. const getFile = (url) => {
  11423. return new Promise((resolve, reject) => {
  11424. axios({
  11425. method: "get",
  11426. url,
  11427. responseType: "blob",
  11428. })
  11429. .then((data) => {
  11430. resolve({ data: data.data });
  11431. })
  11432. .catch((error) => {
  11433. resolve({ data: 1 });
  11434. // reject(error.toString());
  11435. });
  11436. });
  11437. };
  11438. export default {
  11439. components: {
  11440. EditorBar,
  11441. Time,
  11442. pdf,
  11443. AskStatic,
  11444. AskStatic2,
  11445. Mind,
  11446. Sunburst,
  11447. SeeBoard,
  11448. AnswerData2,
  11449. AnswerData,
  11450. Audio,
  11451. ImgDraw,
  11452. Table,
  11453. interVideo,
  11454. UpdateMore,
  11455. wordCloud,
  11456. onlineWrite,
  11457. englishEva,
  11458. },
  11459. data() {
  11460. return {
  11461. bg: null,
  11462. drawShow: false,
  11463. dialogVisible: false,
  11464. dialogVisiblePl: false,
  11465. commentDialogVisible: false,
  11466. dialogVisibleMember: false,
  11467. dialogVisibleWordCloud: false,
  11468. videoVisible: false,
  11469. isStar: false,
  11470. studentEvalDialogVisible: false,
  11471. studentEvalDialogVisibleTeacher: false,
  11472. dialogVisibleSelect: false,
  11473. dialogVisibleSelectTeacher: false,
  11474. dialogVisibleScore: false,
  11475. dialogVisibleSentence: false,
  11476. dialogVisibleSentenceTeacher: false,
  11477. dialogVisibleSentence1: false,
  11478. dialogVisibleWorks: false,
  11479. dialogVisibleTable: false,
  11480. dialogVisibleTableTeacher: false,
  11481. dialogVisibleWord: false,
  11482. dialogVisibleWordTeacher: false,
  11483. dialogVisibleTable2: false,
  11484. dialogVisibleTable3: false,
  11485. dialogVisibleGroupWork: false,
  11486. dialogVisibleUpdateGroup: false,
  11487. dialogVisibleDeleteGroup: false,
  11488. dialogVisibleSname: false,
  11489. dialogVisibleVideo: false,
  11490. dialogVisiblePickPeople: false,
  11491. engDialogVisible: false,
  11492. engUpdateDialogVisible: false,
  11493. engEvaDialogVisible: false,
  11494. evaEngJson: {
  11495. username: "",
  11496. teacherJson: {},
  11497. studentJson: {},
  11498. },
  11499. isNoUserid:false,
  11500. engListLength:0,
  11501. engWid:"",
  11502. newEnglishList:{
  11503. engTitle:"",
  11504. engText:"",
  11505. },
  11506. newEnglishList1:[],
  11507. oldEnglishJson:{},
  11508. oldEnglishJson1:{},
  11509. englishList1:{},
  11510. englishList:{},
  11511. myAnswerList1:{},
  11512. topHeight:0,
  11513. newEngIndex:-1,
  11514. englishToolIndex:0,
  11515. worksSName: "",
  11516. classJuri: [],
  11517. uploadStudentJuri: [],
  11518. uploadCid: "",
  11519. snameWid: "",
  11520. sStudent: {},
  11521. sTool: "",
  11522. bzText: "",
  11523. commentDetail: [],
  11524. selectAnswer: [],
  11525. videoDetail: {},
  11526. selectJson: {},
  11527. eScore: { eBzText: "", eStar: [] },
  11528. id: this.$route.query.courseId,
  11529. userid: this.$route.query.userid,
  11530. classId: this.$route.query.cid,
  11531. // courseTypeLine: this.$route.query.type,
  11532. oid: this.$route.query.oid,
  11533. org: this.$route.query.org,
  11534. tType: this.$route.query.tType,
  11535. courseType: this.$route.query.type,
  11536. screenType: this.$route.query.screenType,
  11537. tcid2: this.$route.query.tcid,
  11538. tcid: "",
  11539. pptImgUrl: "",
  11540. pptImgUrl1: "",
  11541. commentText: "",
  11542. full: false,
  11543. sIsOpen: false,
  11544. IsLookOpen: false,
  11545. IsFollow: false,
  11546. pzDialog: false,
  11547. contentDialog: false,
  11548. mlDialog: false,
  11549. type: 1,
  11550. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11551. sentenceList1: [],
  11552. tableJson: [],
  11553. tableJsonO: [],
  11554. wordJson: [],
  11555. wordJsonO: [],
  11556. vedio: [],
  11557. text: [],
  11558. textList: [],
  11559. line: [],
  11560. lineList: [],
  11561. chapTools: [],
  11562. chapToolList: [],
  11563. file: [],
  11564. fileC: [],
  11565. vedioTime: [],
  11566. upToolImg: "",
  11567. preTime: 0,
  11568. rateList: {
  11569. ca: 0,
  11570. },
  11571. rateParams: [],
  11572. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11573. studyJuri: [
  11574. {
  11575. content: "",
  11576. cover: [],
  11577. upVedio: [],
  11578. upFile: [],
  11579. },
  11580. ],
  11581. isClose: 0,
  11582. plworkFile: [],
  11583. mr: require("../assets/vedioPic.png"),
  11584. word: require("../assets/icon/isWord.png"),
  11585. word2: require("../assets/icon/word2.png"),
  11586. video: require("../assets/icon/isVideo.png"),
  11587. noLikes: require("../assets/icon/comment/noLikes.png"),
  11588. likes: require("../assets/icon/comment/likes.png"),
  11589. scoreImg: require("../assets/score.png"),
  11590. courseDetail: {},
  11591. reply: "",
  11592. isSelect: false,
  11593. chapInfo: [],
  11594. chapInfoList: [],
  11595. taskCount: 0,
  11596. imgList: [],
  11597. noImgList: [],
  11598. pzList: [],
  11599. timeWorkList: [],
  11600. PlTextList: [
  11601. "Excellent!",
  11602. "nice!",
  11603. "很有创意!",
  11604. "还不错哦~",
  11605. "继续努力哦~",
  11606. ],
  11607. isClickNav: "",
  11608. navId: "",
  11609. playerOptions: {
  11610. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11611. autoplay: false, //如果true,浏览器准备好时开始回放。
  11612. muted: false, // 默认情况下将会消除任何音频。
  11613. loop: false, // 导致视频一结束就重新开始。
  11614. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11615. language: "zh-CN",
  11616. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11617. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11618. sources: [
  11619. {
  11620. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11621. src: "", //url地址require("../../assets/media/aaa.mp4")
  11622. },
  11623. ],
  11624. // poster: require("../../assets/tu31.png"), //你的封面地址
  11625. // poster: dataRes.imgUrl, //你的封面地址
  11626. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11627. controlBar: {
  11628. timeDivider: true, //当前时间和持续时间的分隔符
  11629. durationDisplay: true, //显示持续时间
  11630. remainingTimeDisplay: false, //是否显示剩余时间功能
  11631. fullscreenToggle: true, //全屏按钮
  11632. },
  11633. },
  11634. playerOptions1: {
  11635. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11636. autoplay: false, //如果true,浏览器准备好时开始回放。
  11637. muted: false, // 默认情况下将会消除任何音频。
  11638. loop: false, // 导致视频一结束就重新开始。
  11639. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11640. language: "zh-CN",
  11641. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11642. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11643. sources: [
  11644. {
  11645. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11646. src: "", //url地址require("../../assets/media/aaa.mp4")
  11647. },
  11648. ],
  11649. // poster: require("../../assets/tu31.png"), //你的封面地址
  11650. // poster: dataRes.imgUrl, //你的封面地址
  11651. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11652. controlBar: {
  11653. timeDivider: true, //当前时间和持续时间的分隔符
  11654. durationDisplay: true, //显示持续时间
  11655. remainingTimeDisplay: false, //是否显示剩余时间功能
  11656. fullscreenToggle: true, //全屏按钮
  11657. },
  11658. },
  11659. playerO: {},
  11660. noneBtnImg: false,
  11661. proVisible: false,
  11662. proVisible2: false,
  11663. progress: 0,
  11664. isFinishSize: 0,
  11665. isAllSize: 0,
  11666. questionAnswer: "",
  11667. answerQ: "", //问答标题
  11668. rateJson: [],
  11669. wbCount: 0,
  11670. wordCount: 0,
  11671. mindCount: 0,
  11672. askCount: 0,
  11673. noteCount: 0,
  11674. mindNetWorkCount: 0,
  11675. libraryCount: 0,
  11676. workCount: 0,
  11677. timeCount: 0,
  11678. answerCount: 0,
  11679. trainCount: 0,
  11680. evalCount: 0,
  11681. dialogImageUrl: "",
  11682. pictureDialog: false,
  11683. toolTypeList: [],
  11684. dialogVisible1: false,
  11685. dialogVisible2: false,
  11686. dialogVisible3: false,
  11687. dialogVisible6: false,
  11688. dialogVisible4: false,
  11689. isNoHomeWork: false,
  11690. dialogVisible5: false,
  11691. dialogVisible5Teacher: false,
  11692. dialogVisibleChoice: false,
  11693. dialogVisibleChoiceTeacher: false,
  11694. answerDialogVisible: false,
  11695. answerDialogVisibleTeacher: false,
  11696. juriVisible: false,
  11697. timeDialogVisible: false,
  11698. replyDialogVisible: false,
  11699. toolDialogVisible: false,
  11700. replyIndex: 0,
  11701. replyPid: "",
  11702. radio: [],
  11703. isAsk: false,
  11704. askJson: {
  11705. askCount: 1,
  11706. askTitle: "",
  11707. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11708. },
  11709. testJson: {},
  11710. checkJson: [],
  11711. askList: [],
  11712. answerList: [],
  11713. navList: [],
  11714. addPzDialog: false,
  11715. pzConText: "",
  11716. worksStudent: [],
  11717. isCloseList: [],
  11718. workStudent: [],
  11719. groupStudent: [],
  11720. groupStudentUid: [],
  11721. noWorksS: [],
  11722. isWorksS: [],
  11723. noWorksStudent: [],
  11724. toolindex: 0,
  11725. toolDetailIndex: null,
  11726. groupIndex: 0,
  11727. workTypeB: false,
  11728. workTypeC: false,
  11729. isAnswer: false,
  11730. isHovered: false,
  11731. isHovered1: false,
  11732. isHovered2: false,
  11733. timer: null,
  11734. opertimer: null,
  11735. showType: 0,
  11736. fileType: 0,
  11737. showPDF: false,
  11738. noteName: "",
  11739. evaJuri: [],
  11740. evalua: "",
  11741. eTitle: "",
  11742. eName: "",
  11743. eJson: {},
  11744. fid: "", //一级
  11745. sid: "", //二级
  11746. tid: "", //二级
  11747. typeMode: 1,
  11748. eJSONNum: 0,
  11749. Etype: 1,
  11750. data: {
  11751. meta: {
  11752. name: "example",
  11753. author: "dd@163.com",
  11754. version: "0.2",
  11755. },
  11756. format: "node_array",
  11757. data: [{ id: "root", isroot: true, topic: "" }],
  11758. },
  11759. fullDialogVisible: false,
  11760. fulltype: "",
  11761. fullUrl: "",
  11762. commentIndexJson: {},
  11763. Stbodywidth: 0,
  11764. ispzType: 0,
  11765. pzType: 1,
  11766. wScore: 0,
  11767. scoreDetail: "",
  11768. videoStart: false,
  11769. recorder: null,
  11770. groupJson: {},
  11771. islock: false,
  11772. groupJson2: {},
  11773. dialogVisibleGroup: false,
  11774. dialogVisibleGroup2: false,
  11775. updateGroupArray: [],
  11776. updateGroupUser: {},
  11777. deleteGroupUser: [],
  11778. deleteGroupArray: {},
  11779. checkChair: "",
  11780. checkDeleteGroup: [],
  11781. inviteCode: "",
  11782. courseGroupStudent: [],
  11783. courseGroupStudentUid: [],
  11784. courseGroup: {},
  11785. isGroup: false,
  11786. // toolIndex: null,
  11787. tool: {},
  11788. isWorkTool: [
  11789. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11790. ], //, 40
  11791. videoJson: {},
  11792. toolType: 0,
  11793. checktoolArray: [],
  11794. vChapterData: [],
  11795. isUpdateToolDetail: false,
  11796. isUpdateToolDetail1: false,
  11797. updateToolDetailInner: "",
  11798. checkboxList: [],
  11799. plIndex: "",
  11800. worksSName2: "",
  11801. worksSid: "",
  11802. wordCloudData: [],
  11803. isPickStudent: [],
  11804. pzStype: 1,
  11805. myAnList: {},
  11806. userMes:{},
  11807. };
  11808. },
  11809. methods: {
  11810. setEnglishList(engList) {
  11811. this.myAnList = engList;
  11812. },
  11813. addToolChoose() {
  11814. if (!this.checktoolArray.length) {
  11815. this.$message.error("请选择要添加的任务");
  11816. return;
  11817. }
  11818. if (
  11819. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11820. this.taskCount
  11821. ].toolChoose[0].tool.length
  11822. ) {
  11823. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11824. this.taskCount
  11825. ].toolChoose[0].tool = this.checktoolArray;
  11826. } else {
  11827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11828. this.taskCount
  11829. ].toolChoose.push({
  11830. tool: this.checktoolArray,
  11831. toolDetail: "",
  11832. toolType: 0,
  11833. askCount: 1,
  11834. askTitle: "",
  11835. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11836. });
  11837. }
  11838. let params = [
  11839. {
  11840. cid: this.id,
  11841. chapters: JSON.stringify(this.chapInfoList),
  11842. uid: this.userid,
  11843. unitIndex: this.courseType,
  11844. },
  11845. ];
  11846. this.ajax
  11847. .post(this.$store.state.api + "updateWorkNew4", params)
  11848. .then((res) => {
  11849. this.$message({
  11850. message: "添加成功",
  11851. type: "success",
  11852. });
  11853. this.checktoolArray = [];
  11854. this.getCourseDetail(2);
  11855. this.checkBz(
  11856. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11857. this.taskCount
  11858. ].toolChoose.length - 1
  11859. );
  11860. this.toolDialogVisible = false;
  11861. this.refreshCourse();
  11862. this.$forceUpdate();
  11863. })
  11864. .catch((err) => {
  11865. console.error(err);
  11866. });
  11867. },
  11868. checkBz(index) {
  11869. this.isUpdateToolDetail = false;
  11870. this.$forceUpdate();
  11871. setTimeout(() => {
  11872. document.scrollingElement.scrollTop =
  11873. document.querySelectorAll(".filebox")[index].offsetTop +
  11874. document.querySelector(".student_body").offsetTop;
  11875. }, 500);
  11876. },
  11877. updateToolDetail(i) {
  11878. this.toolDetailIndex = i;
  11879. if (!this.isUpdateToolDetail1) {
  11880. this.isUpdateToolDetail1 = true;
  11881. this.updateToolDetailInner = JSON.parse(
  11882. JSON.stringify(
  11883. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11884. this.taskCount
  11885. ].toolChoose[i].toolDetail
  11886. )
  11887. );
  11888. } else {
  11889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11890. this.taskCount
  11891. ].toolChoose[i].toolDetail = JSON.parse(
  11892. JSON.stringify(this.updateToolDetailInner)
  11893. );
  11894. let params = [
  11895. {
  11896. cid: this.id,
  11897. chapters: JSON.stringify(this.chapInfoList),
  11898. uid: this.userid,
  11899. unitIndex: this.courseType,
  11900. },
  11901. ];
  11902. this.ajax
  11903. .post(this.$store.state.api + "updateWorkNew4", params)
  11904. .then((res) => {
  11905. this.isUpdateToolDetail1 = false;
  11906. this.$message({
  11907. message: "修改成功",
  11908. type: "success",
  11909. });
  11910. this.toolDetailIndex = null;
  11911. this.updateToolDetailInner = "";
  11912. this.getCourseDetail(2);
  11913. this.$forceUpdate();
  11914. })
  11915. .catch((err) => {
  11916. console.error(err);
  11917. });
  11918. }
  11919. },
  11920. jumpGj(i, j, k, l) {
  11921. for (var z = 0; z < this.navList.length; z++) {
  11922. for (var q = 0; q < this.navList[z].task.length; q++) {
  11923. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11924. this.navList[z].task[q].tool[w].isTool = false;
  11925. }
  11926. }
  11927. }
  11928. this.navList[i].task[j].tool[k].isTool =
  11929. !this.navList[i].task[j].tool[k].isTool;
  11930. var a = document.scrollingElement;
  11931. let target = document.querySelector(`#gj${k}`);
  11932. if (target) {
  11933. target.scrollIntoView(true);
  11934. setTimeout(() => {
  11935. a.scrollTop = a.scrollTop - 150;
  11936. }, 0);
  11937. }
  11938. if (l) {
  11939. this.courseType = i;
  11940. this.navId = l;
  11941. this.taskCount = j;
  11942. this.selectPz();
  11943. this.getHomeWork();
  11944. this.getCourseDetail(2);
  11945. }
  11946. // var b = this.$refs["bz" + k][0];
  11947. // a.scrollTop = b.offsetTop;
  11948. },
  11949. addTools2(i) {
  11950. if (i == 4) {
  11951. // this.openTools2(4);
  11952. this.$message.error("暂未开放");
  11953. return;
  11954. }
  11955. if (i == 45) {
  11956. // this.openTools2(45);
  11957. this.$message.error("暂未开放");
  11958. return;
  11959. }
  11960. if (i == 47) {
  11961. // this.openTools2(47);
  11962. this.$message.error("暂未开放");
  11963. return;
  11964. }
  11965. if (i == 49) {
  11966. // this.openTools2(49);
  11967. this.$message.error("暂未开放");
  11968. return;
  11969. }
  11970. if (i == 62) {
  11971. // this.openTools(itemTaskIndex, 62, toolIndex);
  11972. this.$message.error("暂未开放");
  11973. return;
  11974. }
  11975. if (i == 15) {
  11976. // this.openTools(itemTaskIndex, 15, toolIndex);
  11977. this.$message.error("暂未开放");
  11978. return;
  11979. }
  11980. if (i == 40) {
  11981. // this.openTools(itemTaskIndex, 40, toolIndex);
  11982. this.$message.error("暂未开放");
  11983. return;
  11984. }
  11985. if (i == 41) {
  11986. // this.openTools(itemTaskIndex, 41, toolIndex);
  11987. this.$message.error("暂未开放");
  11988. return;
  11989. }
  11990. if (i == 42) {
  11991. // this.openTools(itemTaskIndex, 42, toolIndex);
  11992. this.$message.error("暂未开放");
  11993. return;
  11994. }
  11995. if (this.checktoolArray.length > 0) {
  11996. if (this.checktoolArray.indexOf(i) != -1) {
  11997. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11998. } else {
  11999. this.checktoolArray = [];
  12000. this.checktoolArray.push(i);
  12001. }
  12002. } else {
  12003. this.checktoolArray.push(i);
  12004. }
  12005. this.$forceUpdate();
  12006. },
  12007. jump() {
  12008. window.parent.postMessage({ tools: "43" }, "*");
  12009. },
  12010. getUpdateMore(f, checkboxList, searchTN, index) {
  12011. this.dialogVisibleMember = f;
  12012. this.checkboxList = checkboxList;
  12013. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12014. this.plIndex = index;
  12015. },
  12016. setPlname(a) {
  12017. if (this.plworkFile.length) {
  12018. this.plworkFile[this.plIndex].username = a;
  12019. } else {
  12020. this.worksSName = a;
  12021. }
  12022. this.dialogVisibleMember = false;
  12023. },
  12024. previewImg(url) {
  12025. this.$hevueImgPreview(url);
  12026. },
  12027. checkImg(list) {
  12028. if (!list.length) {
  12029. return;
  12030. }
  12031. this.$hevueImgPreview({
  12032. multiple: true, // 开启多图预览模式
  12033. imgList: list, // 需要预览的多图数组
  12034. });
  12035. },
  12036. change(val) {
  12037. console.log(val);
  12038. },
  12039. goTo(path) {
  12040. this.$router.push(path);
  12041. },
  12042. handlePictureCardPreview(url) {
  12043. this.dialogImageUrl = url;
  12044. this.pictureDialog = true;
  12045. },
  12046. clean(type) {
  12047. if (type == 1) {
  12048. this.studyJuri[0].cover.splice(0, 1);
  12049. } else if (type == 2) {
  12050. this.studyJuri[0].upVedio.splice(0, 1);
  12051. } else {
  12052. this.studyJuri[0].upFile.splice(0, 1);
  12053. }
  12054. },
  12055. clean2(index) {
  12056. this.plworkFile.splice(index, 1);
  12057. },
  12058. handleClose(done) {
  12059. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12060. this.videoDetail.sources[0].src = "";
  12061. }
  12062. this.commentIndexJson = {};
  12063. done();
  12064. },
  12065. fullTools() {
  12066. this.full = !this.full;
  12067. },
  12068. imgChange(file, fileList, type) {
  12069. if (type == 1) {
  12070. var _tmp = this.studyJuri[0].cover;
  12071. } else if (type == 2) {
  12072. var _tmp = this.studyJuri[0].upVedio;
  12073. } else {
  12074. var _tmp = this.studyJuri[0].upFile;
  12075. }
  12076. this.noneBtnImg = _tmp.length >= 1;
  12077. },
  12078. setContent(bool) {
  12079. this.contentDialog = bool;
  12080. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12081. document.querySelector(".workd_media").style.height = "650px";
  12082. } else if (document.querySelector(".workd_media")) {
  12083. document.querySelector(".workd_media").style.height = "auto";
  12084. }
  12085. },
  12086. setContent2(bool) {
  12087. this.mlDialog = bool;
  12088. if (
  12089. bool &&
  12090. this.contentDialog &&
  12091. document.querySelector(".workd_media")
  12092. ) {
  12093. document.querySelector(".workd_media").style.height = "650px";
  12094. } else if (document.querySelector(".workd_media")) {
  12095. document.querySelector(".workd_media").style.height = "auto";
  12096. }
  12097. },
  12098. openToolAll() {
  12099. this.toolDialogVisible = true;
  12100. },
  12101. addImg(e) {
  12102. var el = e.currentTarget;
  12103. // this.$message.success('触发上传')
  12104. el.getElementsByTagName("input")[0].click();
  12105. e.target.value = "";
  12106. },
  12107. addSelectAnswer() {
  12108. let params = [
  12109. {
  12110. uid: this.userid,
  12111. cid: this.id,
  12112. stage: this.courseType,
  12113. task: this.taskCount,
  12114. tool: this.toolindex,
  12115. content: this.selectAnswer.answer,
  12116. type: 7,
  12117. },
  12118. ];
  12119. this.ajax
  12120. .post(this.$store.state.api + "addCourseWorks", params)
  12121. .then((res) => {
  12122. this.$message({
  12123. message: "提交成功",
  12124. type: "success",
  12125. });
  12126. this.dialogVisibleSelect = false;
  12127. // this.selectAnswer = {};
  12128. this.selectSWorks();
  12129. this.selectStudent();
  12130. })
  12131. .catch((err) => {
  12132. this.$message.error("提交失败");
  12133. console.error(err);
  12134. });
  12135. },
  12136. addSelectAnswerTeacher() {
  12137. let params = [
  12138. {
  12139. uid: this.sStudent.userid,
  12140. cid: this.id,
  12141. stage: this.courseType,
  12142. task: this.taskCount,
  12143. tool: this.toolindex,
  12144. content: this.selectAnswer.answer,
  12145. type: 7,
  12146. },
  12147. ];
  12148. this.ajax
  12149. .post(this.$store.state.api + "addCourseWorks", params)
  12150. .then((res) => {
  12151. this.$message({
  12152. message: "提交成功",
  12153. type: "success",
  12154. });
  12155. this.dialogVisibleSelectTeacher = false;
  12156. // this.selectAnswer = {};
  12157. this.selectSWorks();
  12158. this.selectStudent();
  12159. })
  12160. .catch((err) => {
  12161. this.$message.error("提交失败");
  12162. console.error(err);
  12163. });
  12164. },
  12165. addSenWorks() {
  12166. for (var i = 0; i < this.sentenceList.length; i++) {
  12167. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12168. if (
  12169. this.sentenceList[i].chooseSenList[j] == undefined ||
  12170. this.sentenceList[i].chooseSenList[j] == ""
  12171. ) {
  12172. this.$message.error("请将答案填写完整!");
  12173. return;
  12174. }
  12175. }
  12176. }
  12177. let params = [
  12178. {
  12179. uid: this.userid,
  12180. cid: this.id,
  12181. stage: this.courseType,
  12182. task: this.taskCount,
  12183. tool: this.toolindex,
  12184. content: JSON.stringify(this.sentenceList),
  12185. type: 9,
  12186. },
  12187. ];
  12188. this.ajax
  12189. .post(this.$store.state.api + "addCourseWorks", params)
  12190. .then((res) => {
  12191. this.$message({
  12192. message: "提交成功",
  12193. type: "success",
  12194. });
  12195. this.dialogVisibleSentence = false;
  12196. // this.selectAnswer = {};
  12197. this.selectSWorks();
  12198. this.selectStudent();
  12199. })
  12200. .catch((err) => {
  12201. this.$message.error("提交失败");
  12202. console.error(err);
  12203. });
  12204. },
  12205. addSenWorksTeacher() {
  12206. for (var i = 0; i < this.sentenceList.length; i++) {
  12207. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12208. if (
  12209. this.sentenceList[i].chooseSenList[j] == undefined ||
  12210. this.sentenceList[i].chooseSenList[j] == ""
  12211. ) {
  12212. this.$message.error("请将答案填写完整!");
  12213. return;
  12214. }
  12215. }
  12216. }
  12217. let params = [
  12218. {
  12219. uid: this.sStudent.userid,
  12220. cid: this.id,
  12221. stage: this.courseType,
  12222. task: this.taskCount,
  12223. tool: this.toolindex,
  12224. content: JSON.stringify(this.sentenceList),
  12225. type: 9,
  12226. },
  12227. ];
  12228. this.ajax
  12229. .post(this.$store.state.api + "addCourseWorks", params)
  12230. .then((res) => {
  12231. this.$message({
  12232. message: "提交成功",
  12233. type: "success",
  12234. });
  12235. this.dialogVisibleSentenceTeacher = false;
  12236. // this.selectAnswer = {};
  12237. this.selectSWorks();
  12238. this.selectStudent();
  12239. })
  12240. .catch((err) => {
  12241. this.$message.error("提交失败");
  12242. console.error(err);
  12243. });
  12244. },
  12245. returnTableText() {
  12246. this.$confirm("确定还原此模板吗?", "提示", {
  12247. confirmButtonText: "确定",
  12248. cancelButtonText: "取消",
  12249. type: "warning",
  12250. })
  12251. .then(() => {
  12252. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12253. })
  12254. .catch(() => {});
  12255. },
  12256. addTableWorks() {
  12257. let params = [
  12258. {
  12259. uid: this.userid,
  12260. cid: this.id,
  12261. stage: this.courseType,
  12262. task: this.taskCount,
  12263. tool: this.toolindex,
  12264. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12265. type: 10,
  12266. },
  12267. ];
  12268. this.ajax
  12269. .post(this.$store.state.api + "addCourseWorks", params)
  12270. .then((res) => {
  12271. this.$message({
  12272. message: "提交成功",
  12273. type: "success",
  12274. });
  12275. this.dialogVisibleTable = false;
  12276. // this.selectAnswer = {};
  12277. this.selectSWorks();
  12278. this.selectStudent();
  12279. })
  12280. .catch((err) => {
  12281. this.$message.error("提交失败");
  12282. console.error(err);
  12283. });
  12284. },
  12285. tableRowClassName({ row, rowIndex }) {
  12286. if ((rowIndex + 1) % 2 === 0) {
  12287. return "even_row";
  12288. } else {
  12289. return "";
  12290. }
  12291. },
  12292. addTableWorksTeacher() {
  12293. let params = [
  12294. {
  12295. uid: this.sStudent.userid,
  12296. cid: this.id,
  12297. stage: this.courseType,
  12298. task: this.taskCount,
  12299. tool: this.toolindex,
  12300. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12301. type: 10,
  12302. },
  12303. ];
  12304. this.ajax
  12305. .post(this.$store.state.api + "addCourseWorks", params)
  12306. .then((res) => {
  12307. this.$message({
  12308. message: "提交成功",
  12309. type: "success",
  12310. });
  12311. this.dialogVisibleTableTeacher = false;
  12312. // this.selectAnswer = {};
  12313. this.selectSWorks();
  12314. this.selectStudent();
  12315. })
  12316. .catch((err) => {
  12317. this.$message.error("提交失败");
  12318. console.error(err);
  12319. });
  12320. },
  12321. returnWordText() {
  12322. this.$confirm("确定还原此模板吗?", "提示", {
  12323. confirmButtonText: "确定",
  12324. cancelButtonText: "取消",
  12325. type: "warning",
  12326. })
  12327. .then(() => {
  12328. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12329. })
  12330. .catch(() => {});
  12331. },
  12332. addWordWorks() {
  12333. let params = [
  12334. {
  12335. uid: this.userid,
  12336. cid: this.id,
  12337. stage: this.courseType,
  12338. task: this.taskCount,
  12339. tool: this.toolindex,
  12340. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12341. type: 13,
  12342. atool: 52,
  12343. },
  12344. ];
  12345. this.ajax
  12346. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12347. .then((res) => {
  12348. this.$message({
  12349. message: "提交成功",
  12350. type: "success",
  12351. });
  12352. this.dialogVisibleWord = false;
  12353. // this.selectAnswer = {};
  12354. this.selectSWorks();
  12355. this.selectStudent();
  12356. })
  12357. .catch((err) => {
  12358. this.$message.error("提交失败");
  12359. console.error(err);
  12360. });
  12361. },
  12362. addWordWorksTeacher() {
  12363. let params = [
  12364. {
  12365. uid: this.sStudent.userid,
  12366. cid: this.id,
  12367. stage: this.courseType,
  12368. task: this.taskCount,
  12369. tool: this.toolindex,
  12370. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12371. type: 13,
  12372. atool: 52,
  12373. },
  12374. ];
  12375. this.ajax
  12376. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12377. .then((res) => {
  12378. this.$message({
  12379. message: "提交成功",
  12380. type: "success",
  12381. });
  12382. this.dialogVisibleWordTeacher = false;
  12383. // this.selectAnswer = {};
  12384. this.selectSWorks();
  12385. this.selectStudent();
  12386. })
  12387. .catch((err) => {
  12388. this.$message.error("提交失败");
  12389. console.error(err);
  12390. });
  12391. },
  12392. addCourseWorks(i) {
  12393. var typesql;
  12394. if (this.fileType === 0) {
  12395. typesql = 1;
  12396. } else if (this.fileType === 1) {
  12397. typesql = 4;
  12398. } else if (this.fileType === 2) {
  12399. typesql = 5;
  12400. } else if (this.fileType === 3) {
  12401. typesql = 12;
  12402. }
  12403. if (!this.studyJuri[0].cover[0].url) {
  12404. this.$message.error("请上传文件");
  12405. return;
  12406. }
  12407. let params = [
  12408. {
  12409. uid: this.userid,
  12410. cid: this.id,
  12411. stage: this.courseType,
  12412. task: i,
  12413. tool: this.toolindex,
  12414. content: this.studyJuri[0].cover[0].url,
  12415. type: typesql,
  12416. },
  12417. ];
  12418. this.ajax
  12419. .post(this.$store.state.api + "addCourseWorksR", params)
  12420. .then((res) => {
  12421. this.$message({
  12422. message: "提交成功",
  12423. type: "success",
  12424. });
  12425. this.studyJuri[0].cover = [];
  12426. this.dialogVisible = false;
  12427. this.getCourseDetail(2);
  12428. })
  12429. .catch((err) => {
  12430. this.$message.error("提交失败");
  12431. console.error(err);
  12432. });
  12433. },
  12434. addCourseWorksPl(i) {
  12435. let _files = this.plworkFile;
  12436. var c = 1;
  12437. for (var k = 0; k < _files.length; k++) {
  12438. if (!_files[k].username) {
  12439. c = 2;
  12440. }
  12441. }
  12442. if (c == 2) {
  12443. this.$message.error("请填写学生姓名");
  12444. return;
  12445. }
  12446. let params = [
  12447. {
  12448. ateacher: this.userid,
  12449. cid: this.id,
  12450. stage: this.courseType,
  12451. task: i,
  12452. tool: this.toolindex,
  12453. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12454. },
  12455. ];
  12456. this.ajax
  12457. .post(this.$store.state.api + "addCourseWorksPl", params)
  12458. .then((res) => {
  12459. this.$message({
  12460. message: "提交成功",
  12461. type: "success",
  12462. });
  12463. this.plworkFile = [];
  12464. this.dialogVisiblePl = false;
  12465. this.getCourseDetail(2);
  12466. })
  12467. .catch((err) => {
  12468. this.$message.error("提交失败");
  12469. console.error(err);
  12470. });
  12471. },
  12472. addCourseWorks2(i) {
  12473. var typesql;
  12474. if (this.fileType === 0) {
  12475. typesql = 0;
  12476. } else if (this.fileType === 1) {
  12477. typesql = 1;
  12478. } else if (this.fileType === 2) {
  12479. typesql = 3;
  12480. } else if (this.fileType === 3) {
  12481. typesql = 12;
  12482. }
  12483. if (!this.studyJuri[0].cover[0].url) {
  12484. this.$message.error("请上传文件");
  12485. return;
  12486. }
  12487. let params = [
  12488. {
  12489. uid: this.userid,
  12490. cid: this.id,
  12491. stage: this.courseType,
  12492. task: i,
  12493. tool: this.toolindex,
  12494. content: JSON.stringify({
  12495. type: typesql,
  12496. groupIndex: this.groupIndex,
  12497. url: this.studyJuri[0].cover[0].url,
  12498. }).replaceAll(/%/g, "%25"),
  12499. type: 11,
  12500. atool: 49,
  12501. text: "",
  12502. },
  12503. ];
  12504. this.ajax
  12505. .post(this.$store.state.api + "addCourseWorks5", params)
  12506. .then((res) => {
  12507. this.$message({
  12508. message: "提交成功",
  12509. type: "success",
  12510. });
  12511. this.studyJuri[0].cover = [];
  12512. this.dialogVisibleGroupWork = false;
  12513. this.getCourseDetail(2);
  12514. })
  12515. .catch((err) => {
  12516. this.$message.error("提交失败");
  12517. console.error(err);
  12518. });
  12519. },
  12520. addEnglishWork() {
  12521. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12522. this.$message.error("请输入作文标题和正文!");
  12523. return;
  12524. }
  12525. let params = [
  12526. {
  12527. uid: this.userid,
  12528. cid: this.id,
  12529. stage: this.courseType,
  12530. task: this.taskCount,
  12531. tool: this.englishToolIndex,
  12532. content: JSON.stringify(this.myAnList),
  12533. type: 16,
  12534. atool: 69,
  12535. text: "",
  12536. },
  12537. ];
  12538. this.ajax
  12539. .post(this.$store.state.api + "addCourseWorks5", params)
  12540. .then((res) => {
  12541. this.$message({
  12542. message: "提交成功",
  12543. type: "success",
  12544. });
  12545. this.myAnList = {};
  12546. this.englishList = {};
  12547. this.englishToolIndex = 0;
  12548. this.engDialogVisible = false;
  12549. this.selectSWorks();
  12550. this.selectStudent();
  12551. })
  12552. .catch((err) => {
  12553. this.$message.error("提交失败");
  12554. console.error(err);
  12555. });
  12556. },
  12557. addCourseWorksGong(i, data, tool) {
  12558. let params = [
  12559. {
  12560. uid: this.userid,
  12561. cid: this.id,
  12562. stage: this.courseType,
  12563. task: this.taskCount,
  12564. tool: i,
  12565. content: data,
  12566. type: 12,
  12567. atool: tool,
  12568. text: "",
  12569. },
  12570. ];
  12571. this.ajax
  12572. .post(this.$store.state.api + "addCourseWorks5", params)
  12573. .then((res) => {
  12574. this.$message({
  12575. message: "提交成功",
  12576. type: "success",
  12577. });
  12578. this.studyJuri[0].cover = [];
  12579. this.selectSWorks();
  12580. this.selectStudent();
  12581. })
  12582. .catch((err) => {
  12583. this.$message.error("提交失败");
  12584. console.error(err);
  12585. });
  12586. },
  12587. addCourseWorksGongTeacher(i, data, tool) {
  12588. let params = [
  12589. {
  12590. uid: this.sStudent.userid,
  12591. cid: this.id,
  12592. stage: this.courseType,
  12593. task: this.taskCount,
  12594. tool: i,
  12595. content: data,
  12596. type: 12,
  12597. atool: tool,
  12598. text: "",
  12599. },
  12600. ];
  12601. this.ajax
  12602. .post(this.$store.state.api + "addCourseWorks5", params)
  12603. .then((res) => {
  12604. this.$message({
  12605. message: "提交成功",
  12606. type: "success",
  12607. });
  12608. this.studyJuri[0].cover = [];
  12609. this.dialogVisibleWorks = false;
  12610. this.selectSWorks();
  12611. this.selectStudent();
  12612. })
  12613. .catch((err) => {
  12614. this.$message.error("提交失败");
  12615. console.error(err);
  12616. });
  12617. },
  12618. addCourseWorksGongPl(i, data, tool, type) {
  12619. let params = [
  12620. {
  12621. uid: this.sStudent.userid,
  12622. cid: this.id,
  12623. stage: this.courseType,
  12624. task: this.taskCount,
  12625. tool: i,
  12626. content: data,
  12627. type: type,
  12628. atool: tool,
  12629. text: "",
  12630. },
  12631. ];
  12632. this.ajax
  12633. .post(this.$store.state.api + "addCourseWorks5", params)
  12634. .then((res) => {
  12635. this.$message({
  12636. message: "提交成功",
  12637. type: "success",
  12638. });
  12639. this.studyJuri[0].cover = [];
  12640. this.dialogVisibleWorks = false;
  12641. this.selectSWorks();
  12642. this.selectStudent();
  12643. })
  12644. .catch((err) => {
  12645. this.$message.error("提交失败");
  12646. console.error(err);
  12647. });
  12648. },
  12649. addCourseWorksTeacher(i) {
  12650. var typesql;
  12651. if (this.sTool == 32) {
  12652. this.addCourseWorksGongTeacher(
  12653. this.toolindex,
  12654. this.studyJuri[0].cover[0].url,
  12655. this.sTool
  12656. );
  12657. return;
  12658. }
  12659. if (this.fileType === 0) {
  12660. typesql = 1;
  12661. } else if (this.fileType === 1) {
  12662. typesql = 4;
  12663. } else if (this.fileType === 2) {
  12664. typesql = 5;
  12665. } else if (this.fileType === 3) {
  12666. typesql = 12;
  12667. }
  12668. if (this.sTool == 50) {
  12669. this.addCourseWorksGongPl(
  12670. this.toolindex,
  12671. this.studyJuri[0].cover[0].url,
  12672. this.sTool,
  12673. typesql
  12674. );
  12675. return;
  12676. }
  12677. if (!this.studyJuri[0].cover[0].url) {
  12678. this.$message.error("请上传文件");
  12679. return;
  12680. }
  12681. let params = [
  12682. {
  12683. uid: this.sStudent.userid,
  12684. cid: this.id,
  12685. stage: this.courseType,
  12686. task: i,
  12687. tool: this.toolindex,
  12688. content: this.studyJuri[0].cover[0].url,
  12689. type: typesql,
  12690. ateacher: this.userid,
  12691. },
  12692. ];
  12693. this.ajax
  12694. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12695. .then((res) => {
  12696. this.$message({
  12697. message: "提交成功",
  12698. type: "success",
  12699. });
  12700. this.studyJuri[0].cover = [];
  12701. this.dialogVisibleWorks = false;
  12702. this.getCourseDetail(2);
  12703. })
  12704. .catch((err) => {
  12705. this.$message.error("提交失败");
  12706. console.error(err);
  12707. });
  12708. },
  12709. selectUploadStudent(type) {
  12710. const loading = this.$loading.service({
  12711. background: "rgba(255, 255, 255, 0.7)",
  12712. target: document.body,
  12713. });
  12714. let params = {
  12715. cid: this.uploadCid,
  12716. oid: this.oid,
  12717. cn: "",
  12718. };
  12719. this.ajax
  12720. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12721. .then((res) => {
  12722. loading.close();
  12723. var studentK = [];
  12724. if (this.isWorksS[this.toolindex].length > 0) {
  12725. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12726. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12727. }
  12728. studentK = studentK.join(",");
  12729. }
  12730. this.uploadStudentJuri = res.data[0].filter((el) => {
  12731. return studentK.indexOf(el.userid) == -1;
  12732. });
  12733. if (this.worksSName && this.worksSid) {
  12734. this.uploadStudentJuri.push({
  12735. userid: this.worksSid,
  12736. name: this.worksSName,
  12737. });
  12738. }
  12739. if (type == 1) {
  12740. this.plworkFile = [];
  12741. this.dialogVisibleSname = true;
  12742. } else if (type == 2) {
  12743. this.dialogVisiblePl = true;
  12744. }
  12745. })
  12746. .catch((err) => {
  12747. loading.close();
  12748. console.error(err);
  12749. });
  12750. },
  12751. selectPickStudent() {
  12752. const loading = this.$loading.service({
  12753. background: "rgba(255, 255, 255, 0.7)",
  12754. target: document.body,
  12755. });
  12756. let params = {
  12757. cid: this.uploadCid,
  12758. oid: this.oid,
  12759. cn: "",
  12760. };
  12761. this.ajax
  12762. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12763. .then((res) => {
  12764. loading.close();
  12765. this.uploadStudentJuri = res.data[0];
  12766. this.dialogVisiblePickPeople = true;
  12767. })
  12768. .catch((err) => {
  12769. loading.close();
  12770. console.error(err);
  12771. });
  12772. },
  12773. arrayToArray(arrayo, arrayt) {
  12774. let array1 = arrayo;
  12775. let array2 = arrayt;
  12776. let commonElements = [];
  12777. for (let i = 0; i < array1.length; i++) {
  12778. for (let j = 0; j < array2.length; j++) {
  12779. if (array1[i] === array2[j]) {
  12780. commonElements.push(array1[i]);
  12781. }
  12782. }
  12783. }
  12784. return commonElements;
  12785. },
  12786. selectWorksStudent() {
  12787. let params = {
  12788. oid: this.oid,
  12789. cid: this.courseDetail.juri,
  12790. };
  12791. this.ajax
  12792. .get(this.$store.state.api + "selectWorksStudent", params)
  12793. .then((res) => {
  12794. var a = res.data[0];
  12795. for (var i = 0; i < this.isWorksS.length; i++) {
  12796. this.noWorksS[i] = [];
  12797. var studentK = [];
  12798. if (this.isWorksS[i].length > 0) {
  12799. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12800. studentK.push(this.isWorksS[i][z].uid);
  12801. }
  12802. studentK = studentK.join(",");
  12803. for (var j = 0; j < a.length; j++) {
  12804. if (studentK.indexOf(a[j].userid) == -1) {
  12805. if (this.tcid) {
  12806. // a[j].classid.indexOf(this.tcid) != -1
  12807. if (
  12808. this.arrayToArray(
  12809. a[j].classid.split(","),
  12810. this.tcid.split(",")
  12811. ).length
  12812. ) {
  12813. this.noWorksS[i].push({
  12814. student: a[j].name,
  12815. userid: a[j].userid,
  12816. });
  12817. }
  12818. } else {
  12819. this.noWorksS[i].push({
  12820. student: a[j].name,
  12821. userid: a[j].userid,
  12822. });
  12823. }
  12824. }
  12825. }
  12826. } else {
  12827. for (var k = 0; k < a.length; k++) {
  12828. if (this.tcid) {
  12829. if (
  12830. this.arrayToArray(
  12831. a[k].classid.split(","),
  12832. this.tcid.split(",")
  12833. ).length
  12834. ) {
  12835. this.noWorksS[i].push({
  12836. student: a[k].name,
  12837. userid: a[k].userid,
  12838. });
  12839. }
  12840. } else {
  12841. this.noWorksS[i].push({
  12842. student: a[k].name,
  12843. userid: a[k].userid,
  12844. });
  12845. }
  12846. }
  12847. }
  12848. }
  12849. this.$forceUpdate();
  12850. if (
  12851. Object.keys(this.commentDetail).length &&
  12852. Object.keys(this.commentIndexJson).length &&
  12853. !this.dialogVisibleScore
  12854. ) {
  12855. let a = 1;
  12856. let c = this.commentIndexJson;
  12857. if (
  12858. this.commentIndexJson.gindex ||
  12859. this.commentIndexJson.gindex === 0
  12860. ) {
  12861. for (
  12862. var i = 0;
  12863. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12864. i++
  12865. ) {
  12866. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12867. groupA: for (var k = 0; k < _el.length; k++) {
  12868. let el = _el[k];
  12869. if (el.wid == this.commentDetail.wid) {
  12870. a = 2;
  12871. this.commentOther(
  12872. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12873. this.commentIndexJson.toolIndex,
  12874. k,
  12875. this.commentIndexJson.gindex
  12876. );
  12877. break groupA;
  12878. }
  12879. }
  12880. }
  12881. if (a === 1) {
  12882. this.commentDetail = [];
  12883. this.commentIndexJson = {};
  12884. this.commentDialogVisible = false;
  12885. this.$message("此作业已被删除");
  12886. }
  12887. } else {
  12888. if (this.isGroup && this.commentIndexJson.gid) {
  12889. groupA: for (
  12890. var i = 0;
  12891. i < this.courseGroup.group.length;
  12892. i++
  12893. ) {
  12894. let _group = this.courseGroup.group[i];
  12895. if (_group.id == this.commentIndexJson.gid) {
  12896. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12897. for (var k = 0; k < _el2.length; k++) {
  12898. let el2 = _el2[k];
  12899. if (el2.wid == this.commentDetail.wid) {
  12900. a = 2;
  12901. this.commentOther(
  12902. _el2[k],
  12903. this.commentIndexJson.toolIndex,
  12904. k,
  12905. null,
  12906. this.commentIndexJson.gid
  12907. );
  12908. break groupA;
  12909. }
  12910. }
  12911. }
  12912. }
  12913. }
  12914. if (a == 1) {
  12915. for (
  12916. var i = 0;
  12917. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12918. i++
  12919. ) {
  12920. let el =
  12921. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12922. if (el.wid == this.commentDetail.wid) {
  12923. a = 2;
  12924. this.commentOther(
  12925. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12926. this.commentIndexJson.toolIndex,
  12927. i
  12928. );
  12929. break;
  12930. }
  12931. }
  12932. }
  12933. if (a === 1) {
  12934. this.commentDetail = [];
  12935. this.commentIndexJson = {};
  12936. this.commentDialogVisible = false;
  12937. this.$message("此作业已被删除");
  12938. }
  12939. }
  12940. }
  12941. })
  12942. .catch((err) => {
  12943. console.error(err);
  12944. });
  12945. },
  12946. selectStudent() {
  12947. //学生查看自己作业
  12948. let params = {
  12949. uid: this.userid,
  12950. cid: this.id,
  12951. s: this.courseType,
  12952. t: this.taskCount,
  12953. };
  12954. this.ajax
  12955. .get(this.$store.state.api + "selectStudentWorks", params)
  12956. .then((res) => {
  12957. var a =
  12958. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12959. this.taskCount
  12960. ].toolChoose;
  12961. var b = res.data[0];
  12962. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12963. var y = [
  12964. "AVI",
  12965. "NAVI",
  12966. "MPEG",
  12967. "ASF",
  12968. "MOV",
  12969. "WMV",
  12970. "3GP",
  12971. "RM",
  12972. "RMVB",
  12973. "FLV",
  12974. "F4V",
  12975. "H.264",
  12976. "H.265",
  12977. "REAL VIDEO",
  12978. "MKV",
  12979. "WebM",
  12980. "HDDVD",
  12981. "MP4",
  12982. "MPG",
  12983. "M4V",
  12984. "MGV",
  12985. "OGV",
  12986. "QTM",
  12987. "STR",
  12988. "AMC",
  12989. "DVX",
  12990. "EVO",
  12991. "DAT",
  12992. "OGG",
  12993. "OGM",
  12994. ];
  12995. for (var i = 0; i < a.length; i++) {
  12996. this.workStudent[i] = [];
  12997. for (var j = 0; j < b.length; j++) {
  12998. if (i == b[j].tool) {
  12999. if (
  13000. (b[j].type == 1 ||
  13001. b[j].type == 4 ||
  13002. b[j].type == 5 ||
  13003. b[j].type == 6 ||
  13004. b[j].type == 12 ||
  13005. b[j].type == 7) &&
  13006. a[i].tool[0] != 15 &&
  13007. a[i].tool[0] != 4 &&
  13008. a[i].tool[0] != 45 &&
  13009. a[i].tool[0] != 50 &&
  13010. a[i].tool[0] != 32 &&
  13011. a[i].tool[0] != 57 &&
  13012. a[i].tool[0] != 52 &&
  13013. a[i].tool[0] != 69
  13014. ) {
  13015. if (
  13016. c.indexOf(
  13017. b[j].content
  13018. .split(".")
  13019. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13020. ) != -1 &&
  13021. a[i].tool[0] == 16 &&
  13022. b[j].atool != 50
  13023. ) {
  13024. this.workStudent[i].push({
  13025. works: b[j].content,
  13026. sName: b[j].name,
  13027. score: b[j].score,
  13028. img: b[j].img,
  13029. type: 1,
  13030. time: b[j].time,
  13031. userid: b[j].userid,
  13032. wid: b[j].id,
  13033. });
  13034. } else if (
  13035. y.indexOf(
  13036. b[j].content
  13037. .split(".")
  13038. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13039. ) != -1 &&
  13040. a[i].tool[0] == 16 &&
  13041. b[j].atool != 50
  13042. ) {
  13043. this.workStudent[i].push({
  13044. userid: b[j].userid,
  13045. wid: b[j].id,
  13046. works: b[j].content,
  13047. sName: b[j].name,
  13048. score: b[j].score,
  13049. img: b[j].img,
  13050. type: 3,
  13051. time: b[j].time,
  13052. });
  13053. } else if (b[j].type == 6 && b[j].atool != 50) {
  13054. this.workStudent[i].push({
  13055. userid: b[j].userid,
  13056. wid: b[j].id,
  13057. works: b[j].content,
  13058. sName: b[j].name,
  13059. score: b[j].score,
  13060. img: b[j].img,
  13061. type: 4,
  13062. time: b[j].time,
  13063. });
  13064. } else if (b[j].type == 7 && b[j].atool != 50) {
  13065. this.workStudent[i].push({
  13066. userid: b[j].userid,
  13067. wid: b[j].id,
  13068. works: b[j].content,
  13069. sName: b[j].name,
  13070. score: b[j].score,
  13071. img: b[j].img,
  13072. type: 5,
  13073. time: b[j].time,
  13074. });
  13075. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13076. this.workStudent[i].push({
  13077. works: b[j].content,
  13078. sName: b[j].name,
  13079. score: b[j].score,
  13080. img: b[j].img,
  13081. type: 12,
  13082. time: b[j].time,
  13083. userid: b[j].userid,
  13084. wid: b[j].id,
  13085. });
  13086. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13087. this.workStudent[i].push({
  13088. works: b[j].content,
  13089. sName: b[j].name,
  13090. score: b[j].score,
  13091. img: b[j].img,
  13092. type: 0,
  13093. time: b[j].time,
  13094. userid: b[j].userid,
  13095. wid: b[j].id,
  13096. });
  13097. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13098. this.workStudent[i].push({
  13099. works: b[j].content,
  13100. sName: b[j].name,
  13101. score: b[j].score,
  13102. img: b[j].img,
  13103. type: 0,
  13104. time: b[j].time,
  13105. userid: b[j].userid,
  13106. wid: b[j].id,
  13107. });
  13108. }
  13109. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13110. this.workStudent[i].push({
  13111. works: b[j].content,
  13112. sName: b[j].name,
  13113. score: b[j].score,
  13114. img: b[j].img,
  13115. type: 2,
  13116. time: b[j].time,
  13117. userid: b[j].userid,
  13118. wid: b[j].id,
  13119. });
  13120. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13121. //问卷
  13122. this.workStudent[i].push({
  13123. works: b[j].content,
  13124. sName: b[j].name,
  13125. score: b[j].score,
  13126. img: b[j].img,
  13127. type: 2,
  13128. time: b[j].time,
  13129. userid: b[j].userid,
  13130. wid: b[j].id,
  13131. });
  13132. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13133. //选择题
  13134. this.workStudent[i].push({
  13135. works: b[j].content,
  13136. sName: b[j].name,
  13137. score: b[j].score,
  13138. img: b[j].img,
  13139. type: 8,
  13140. time: b[j].time,
  13141. userid: b[j].userid,
  13142. wid: b[j].id,
  13143. });
  13144. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13145. //选择题
  13146. this.workStudent[i].push({
  13147. works: b[j].content,
  13148. sName: b[j].name,
  13149. score: b[j].score,
  13150. img: b[j].img,
  13151. type: 9,
  13152. time: b[j].time,
  13153. userid: b[j].userid,
  13154. wid: b[j].id,
  13155. });
  13156. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13157. //选择题
  13158. this.workStudent[i].push({
  13159. works: b[j].content,
  13160. sName: b[j].name,
  13161. score: b[j].score,
  13162. img: b[j].img,
  13163. type: 10,
  13164. time: b[j].time,
  13165. userid: b[j].userid,
  13166. wid: b[j].id,
  13167. });
  13168. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13169. //选择题
  13170. this.workStudent[i].push({
  13171. works: b[j].content,
  13172. sName: b[j].name,
  13173. score: b[j].score,
  13174. img: b[j].img,
  13175. type: 13,
  13176. time: b[j].time,
  13177. userid: b[j].userid,
  13178. wid: b[j].id,
  13179. });
  13180. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13181. //选择题
  13182. this.workStudent[i].push({
  13183. works: b[j].content,
  13184. sName: b[j].name,
  13185. score: b[j].score,
  13186. img: b[j].img,
  13187. type: 12,
  13188. time: b[j].time,
  13189. userid: b[j].userid,
  13190. wid: b[j].id,
  13191. });
  13192. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13193. //选择题
  13194. this.workStudent[i].push({
  13195. works: b[j].content,
  13196. sName: b[j].name,
  13197. score: b[j].score,
  13198. img: b[j].img,
  13199. type: 12,
  13200. time: b[j].time,
  13201. userid: b[j].userid,
  13202. wid: b[j].id,
  13203. });
  13204. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13205. //选择题
  13206. this.workStudent[i].push({
  13207. works: b[j].content,
  13208. sName: b[j].name,
  13209. score: b[j].score,
  13210. img: b[j].img,
  13211. type: 15,
  13212. time: b[j].time,
  13213. userid: b[j].userid,
  13214. wid: b[j].id,
  13215. });
  13216. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13217. //英语写作
  13218. this.workStudent[i].push({
  13219. works: b[j].content,
  13220. sName: b[j].name,
  13221. score: b[j].score,
  13222. img: b[j].img,
  13223. type: 16,
  13224. time: b[j].time,
  13225. userid: b[j].userid,
  13226. wid: b[j].id,
  13227. });
  13228. }
  13229. }
  13230. }
  13231. }
  13232. })
  13233. .catch((err) => {
  13234. console.error(err);
  13235. });
  13236. },
  13237. openVideo(w) {
  13238. this.videoDetail = {};
  13239. this.playerOptions1.sources[0].src = w.works;
  13240. this.videoDetail = this.playerOptions1;
  13241. this.videoVisible = true;
  13242. },
  13243. isLikes(wid, uid, t, c, isLikes) {
  13244. if (isLikes == false) {
  13245. let params = [
  13246. {
  13247. wid: wid,
  13248. lid: uid,
  13249. t: t,
  13250. c: c,
  13251. },
  13252. ];
  13253. this.ajax
  13254. .post(this.$store.state.api + "insertComment", params)
  13255. .then((res) => {
  13256. this.$message({
  13257. message: "点赞成功",
  13258. type: "success",
  13259. });
  13260. this.selectSWorks();
  13261. this.selectStudent();
  13262. })
  13263. .catch((err) => {
  13264. this.$message.error("点赞失败");
  13265. console.error(err);
  13266. });
  13267. } else {
  13268. let params = {
  13269. wid: wid,
  13270. lid: uid,
  13271. type: t,
  13272. };
  13273. this.ajax
  13274. .get(this.$store.state.api + "deleteComment", params)
  13275. .then((res) => {
  13276. this.$message({
  13277. message: "取消点赞成功",
  13278. type: "success",
  13279. });
  13280. this.selectSWorks();
  13281. this.selectStudent();
  13282. })
  13283. .catch((err) => {
  13284. console.error(err);
  13285. });
  13286. }
  13287. },
  13288. deleteComment(wid) {
  13289. this.$confirm("确定删除此评论吗?", "提示", {
  13290. confirmButtonText: "确定",
  13291. cancelButtonText: "取消",
  13292. type: "warning",
  13293. })
  13294. .then(() => {
  13295. let params = {
  13296. id: wid,
  13297. };
  13298. this.ajax
  13299. .get(this.$store.state.api + "deleteComment2", params)
  13300. .then((res) => {
  13301. this.$message({
  13302. message: "删除评论成功",
  13303. type: "success",
  13304. });
  13305. this.selectSWorks();
  13306. this.selectStudent();
  13307. })
  13308. .catch((err) => {
  13309. console.error(err);
  13310. });
  13311. })
  13312. .catch(() => {});
  13313. },
  13314. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13315. this.commentIndexJson = {
  13316. toolIndex: toolIndex,
  13317. wIndex: wIndex,
  13318. gindex: gindex,
  13319. gid: gid,
  13320. };
  13321. this.commentDetail = [];
  13322. this.commentDialogVisible = true;
  13323. this.commentDetail = w;
  13324. if (w.works && w.type == 1) {
  13325. this.pptImgUrl = "";
  13326. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13327. if (
  13328. a.indexOf(
  13329. w.works
  13330. .split(".")
  13331. [w.works.split(".").length - 1].toLocaleUpperCase()
  13332. ) != -1
  13333. ) {
  13334. this.pptImgUrl =
  13335. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13336. this.showPDF = false;
  13337. } else if (
  13338. w.works
  13339. .split(".")
  13340. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13341. ) {
  13342. this.pptImgUrl = w.works;
  13343. this.showPDF = true;
  13344. }
  13345. } else if (w.works && w.type == 3) {
  13346. this.videoDetail = {};
  13347. this.playerOptions1.sources[0].src = w.works;
  13348. this.videoDetail = this.playerOptions1;
  13349. // this.videoVisible = true;
  13350. } else if (w.works && w.type == 4) {
  13351. this.eScore = JSON.parse(w.works);
  13352. this.rateJson =
  13353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13354. this.taskCount
  13355. ].toolChoose[toolIndex].rateJson;
  13356. } else if (w.works && w.type == 10) {
  13357. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13358. } else if (w.works && w.type == 13) {
  13359. this.wordJson =
  13360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13361. this.taskCount
  13362. ].toolChoose[toolIndex].wordJson;
  13363. }
  13364. },
  13365. openScore(w) {
  13366. this.wScore = 0;
  13367. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13368. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13369. this.commentDetail = [];
  13370. this.dialogVisibleScore = true;
  13371. this.commentDetail = w;
  13372. if (w.works && w.type == 1) {
  13373. this.pptImgUrl = "";
  13374. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13375. if (
  13376. a.indexOf(
  13377. w.works
  13378. .split(".")
  13379. [w.works.split(".").length - 1].toLocaleUpperCase()
  13380. ) != -1
  13381. ) {
  13382. this.pptImgUrl =
  13383. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13384. this.showPDF = false;
  13385. } else if (
  13386. w.works
  13387. .split(".")
  13388. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13389. ) {
  13390. this.pptImgUrl = w.works;
  13391. this.showPDF = true;
  13392. }
  13393. } else if (w.works && w.type == 3) {
  13394. this.videoDetail = {};
  13395. this.playerOptions1.sources[0].src = w.works;
  13396. this.videoDetail = this.playerOptions1;
  13397. }
  13398. },
  13399. addComment(wid, uid, t) {
  13400. if (this.commentText == "") {
  13401. this.$message.error("请输入评论");
  13402. return;
  13403. }
  13404. let params2 = [
  13405. {
  13406. wid: wid,
  13407. lid: uid,
  13408. t: t,
  13409. },
  13410. ];
  13411. this.ajax
  13412. .post(this.$store.state.api + "getComment", params2)
  13413. .then((res) => {
  13414. if (res.data[0].length > 0) {
  13415. this.$message.error("一个作业只能评论一条");
  13416. } else {
  13417. let params = [
  13418. {
  13419. wid: wid,
  13420. lid: uid,
  13421. t: t,
  13422. c: this.commentText,
  13423. },
  13424. ];
  13425. this.ajax
  13426. .post(this.$store.state.api + "insertComment", params)
  13427. .then((res) => {
  13428. this.$message({
  13429. message: "评论成功",
  13430. type: "success",
  13431. });
  13432. this.commentText = "";
  13433. this.selectSWorks();
  13434. this.selectStudent();
  13435. })
  13436. .catch((err) => {
  13437. this.$message.error("评论失败");
  13438. console.error(err);
  13439. });
  13440. }
  13441. })
  13442. .catch((err) => {
  13443. // this.$message.error("评论失败");
  13444. console.error(err);
  13445. });
  13446. },
  13447. scoreWork(wid) {
  13448. if (this.wScore == 0) {
  13449. this.$message.error("请评分");
  13450. return;
  13451. }
  13452. let params = [
  13453. {
  13454. wid: wid,
  13455. score: JSON.stringify({
  13456. wScore: this.wScore,
  13457. detail: this.scoreDetail,
  13458. }),
  13459. },
  13460. ];
  13461. this.ajax
  13462. .post(this.$store.state.api + "scoreWork", params)
  13463. .then((res) => {
  13464. this.$message({
  13465. message: "评分成功",
  13466. type: "success",
  13467. });
  13468. this.wScore = 0;
  13469. this.scoreDetail = "";
  13470. this.dialogVisibleScore = false;
  13471. this.selectSWorks();
  13472. this.selectStudent();
  13473. })
  13474. .catch((err) => {
  13475. this.$message.error("评分失败");
  13476. console.error(err);
  13477. });
  13478. },
  13479. openXz(w, i) {
  13480. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13481. .taskJson[this.taskCount].toolChoose[i].selectJson
  13482. ? JSON.parse(
  13483. JSON.stringify(
  13484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13485. this.taskCount
  13486. ].toolChoose[i].selectJson
  13487. )
  13488. )
  13489. : { url: "", select: [], answer: [] };
  13490. var a = w.works.split(",");
  13491. for (var k = 0; k < a.length; k++) {
  13492. a[k] = parseInt(a[k]);
  13493. }
  13494. this.selectAnswer = { answer: a, stu: w.sName };
  13495. this.isSelect = true;
  13496. this.dialogVisibleSelect = true;
  13497. },
  13498. openSen(w, i) {
  13499. this.sentenceList1 = JSON.parse(w.works);
  13500. this.sentenceList1.stuName = w.sName;
  13501. this.dialogVisibleSentence1 = true;
  13502. },
  13503. openPj(w, toolindex) {
  13504. this.isStar = true;
  13505. this.eScore = JSON.parse(w);
  13506. this.rateJson =
  13507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13508. this.taskCount
  13509. ].toolChoose[toolindex].rateJson;
  13510. this.studentEvalDialogVisible = true;
  13511. },
  13512. openEnglishEva(id,i){
  13513. let params = {
  13514. wid: id
  13515. };
  13516. this.ajax
  13517. .get(this.$store.state.api + "selectEngWork", params)
  13518. .then((res) => {
  13519. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13520. this.evaEngJson.username = res.data[0][0].username;
  13521. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13522. .toolChoose[i].englishList;
  13523. this.engEvaDialogVisible = true;
  13524. })
  13525. .catch((err) => {
  13526. console.error(err);
  13527. });
  13528. },
  13529. deleteWorks(id) {
  13530. this.$confirm("确定删除此作业吗?", "提示", {
  13531. confirmButtonText: "确定",
  13532. cancelButtonText: "取消",
  13533. type: "warning",
  13534. })
  13535. .then(() => {
  13536. let params = [
  13537. {
  13538. id: id,
  13539. },
  13540. ];
  13541. this.ajax
  13542. .post(this.$store.state.api + "deleteCourseWork", params)
  13543. .then((res) => {
  13544. this.$message({
  13545. message: "删除成功",
  13546. type: "success",
  13547. });
  13548. this.selectStudent();
  13549. this.selectSWorks();
  13550. this.selectSLook();
  13551. })
  13552. .catch((err) => {
  13553. this.$message.error("网络异常");
  13554. console.error(err);
  13555. });
  13556. })
  13557. .catch(() => {});
  13558. },
  13559. selectSWorks(gindex) {
  13560. //教师查看全部作业
  13561. let params = {
  13562. cid: this.id,
  13563. s: this.courseType,
  13564. t: this.taskCount,
  13565. };
  13566. this.ajax
  13567. .get(this.$store.state.api + "selectSWorks", params)
  13568. .then((res) => {
  13569. var a =
  13570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13571. this.taskCount
  13572. ].toolChoose;
  13573. var b = res.data[0];
  13574. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13575. var y = [
  13576. "AVI",
  13577. "NAVI",
  13578. "MPEG",
  13579. "ASF",
  13580. "MOV",
  13581. "WMV",
  13582. "3GP",
  13583. "RM",
  13584. "RMVB",
  13585. "FLV",
  13586. "F4V",
  13587. "H.264",
  13588. "H.265",
  13589. "REAL VIDEO",
  13590. "MKV",
  13591. "WebM",
  13592. "HDDVD",
  13593. "MP4",
  13594. "MPG",
  13595. "M4V",
  13596. "MGV",
  13597. "OGV",
  13598. "QTM",
  13599. "STR",
  13600. "AMC",
  13601. "DVX",
  13602. "EVO",
  13603. "DAT",
  13604. "OGG",
  13605. "OGM",
  13606. ];
  13607. var d = res.data[1];
  13608. var e = res.data[2];
  13609. var f = res.data[3];
  13610. let _worksStudent = [];
  13611. var _worksStudent2 = [];
  13612. for (var i = 0; i < a.length; i++) {
  13613. _worksStudent[i] = [];
  13614. _worksStudent2[i] = [];
  13615. if (
  13616. !this.isCloseList[i] ||
  13617. this.isCloseList[i].isClose == undefined
  13618. ) {
  13619. this.isCloseList[i] = { isClose: 0 };
  13620. }
  13621. this.groupStudent[i] = [];
  13622. this.groupStudentUid[i] = [];
  13623. if (this.isGroup) {
  13624. for (
  13625. var groupI = 0;
  13626. groupI < this.courseGroup.group.length;
  13627. groupI++
  13628. ) {
  13629. this.courseGroup.group[groupI].works[i] = [];
  13630. }
  13631. }
  13632. this.isWorksS[i] = [];
  13633. this.checkJson[i] = [];
  13634. if (a[i].tool[0] == 49) {
  13635. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13636. this.groupStudent[i][gA] = [];
  13637. this.groupStudentUid[i][gA] = [];
  13638. _worksStudent[i][gA] = [];
  13639. _worksStudent2[i][gA] = [];
  13640. this.isCloseList[i][gA] = [];
  13641. for (var g = 0; g < f.length; g++) {
  13642. if (
  13643. f[g].ttype == 2 &&
  13644. this.tcid &&
  13645. this.arrayToArray(
  13646. f[g].classid.split(","),
  13647. this.tcid.split(",")
  13648. ).length == 0
  13649. ) {
  13650. continue;
  13651. }
  13652. if (gA == f[g].group && f[g].tool == i) {
  13653. this.groupStudent[i][gA].push(f[g]);
  13654. this.groupStudentUid[i][gA].push(f[g].userid);
  13655. }
  13656. }
  13657. }
  13658. this.$forceUpdate();
  13659. }
  13660. for (var j = 0; j < b.length; j++) {
  13661. if (
  13662. b[j].ttype == 2 &&
  13663. this.tcid &&
  13664. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13665. .length == 0
  13666. ) {
  13667. continue;
  13668. }
  13669. var likesCount = 0;
  13670. var commentCount = 0;
  13671. var isLikes = false;
  13672. var commentJson = [];
  13673. var data = b[j];
  13674. if (i == b[j].tool) {
  13675. if (data.type == 2 && a[i].tool[0] == 4) {
  13676. // if(JSON.parse(data.content)[0].anwer){
  13677. var checkL =
  13678. JSON.parse(data.content)[0].anwer instanceof Array
  13679. ? JSON.parse(data.content)[0].anwer
  13680. : JSON.parse(data.content)[0].anwer.split(",");
  13681. for (var z = 0; z < checkL.length; z++) {
  13682. if (!this.checkJson[i][z]) {
  13683. this.checkJson[i].push({
  13684. checkCount: [],
  13685. checkPerson: [],
  13686. rightPerson: [],
  13687. });
  13688. }
  13689. if (!this.checkJson[i][z].checkCount.length) {
  13690. this.checkJson[i][z].checkCount = [];
  13691. let _askItemCount = JSON.parse(data.content)[0].askJson
  13692. .askJson[z].askItem;
  13693. for (var aic = 0; aic < _askItemCount; aic++) {
  13694. this.checkJson[i][z].checkCount.push(0);
  13695. }
  13696. }
  13697. if (checkL[z] instanceof Array) {
  13698. if (
  13699. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13700. checkL[z].sort().join(",")
  13701. ) {
  13702. this.checkJson[i][z].rightPerson.push(data.name);
  13703. }
  13704. for (var q = 0; q < checkL[z].length; q++) {
  13705. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13706. ? this.checkJson[i][z].checkPerson[
  13707. parseInt(checkL[z][q])
  13708. ].push(data.name)
  13709. : (this.checkJson[i][z].checkPerson[
  13710. parseInt(checkL[z][q])
  13711. ] = [data.name]);
  13712. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13713. ? this.checkJson[i][z].checkCount[
  13714. parseInt(checkL[z][q])
  13715. ]++
  13716. : (this.checkJson[i][z].checkCount[
  13717. parseInt(checkL[z][q])
  13718. ] = 1);
  13719. }
  13720. } else {
  13721. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13722. this.checkJson[i][z].rightPerson.push(data.name);
  13723. }
  13724. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13725. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13726. ? this.checkJson[i][z].checkPerson[
  13727. parseInt(checkL[z])
  13728. ].push(data.name)
  13729. : (this.checkJson[i][z].checkPerson[
  13730. parseInt(checkL[z])
  13731. ] = [data.name]);
  13732. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13733. ? this.checkJson[i][z].checkCount[
  13734. parseInt(checkL[z])
  13735. ]++
  13736. : (this.checkJson[i][z].checkCount[
  13737. parseInt(checkL[z])
  13738. ] = 1);
  13739. }
  13740. }
  13741. }
  13742. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13743. var checkL = JSON.parse(data.content)[0].anwer;
  13744. for (var z = 0; z < checkL.length; z++) {
  13745. if (!this.checkJson[i][z]) {
  13746. this.checkJson[i].push({
  13747. checkCount: [],
  13748. checkPerson: [],
  13749. rightPerson: [],
  13750. });
  13751. }
  13752. if (!this.checkJson[i][z].checkCount.length) {
  13753. this.checkJson[i][z].checkCount = [];
  13754. let _askItemCount = JSON.parse(data.content)[0].testJson
  13755. .testJson[z].testItem;
  13756. for (var aic = 0; aic < _askItemCount; aic++) {
  13757. this.checkJson[i][z].checkCount.push(0);
  13758. }
  13759. }
  13760. if (checkL[z] instanceof Array) {
  13761. if (
  13762. JSON.parse(data.content)[0]
  13763. .testJson.testJson[z].answer.sort()
  13764. .join(",") == checkL[z].sort().join(",")
  13765. ) {
  13766. this.checkJson[i][z].rightPerson.push(data.name);
  13767. }
  13768. for (var q = 0; q < checkL[z].length; q++) {
  13769. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13770. ? this.checkJson[i][z].checkPerson[
  13771. parseInt(checkL[z][q])
  13772. ].push(data.name)
  13773. : (this.checkJson[i][z].checkPerson[
  13774. parseInt(checkL[z][q])
  13775. ] = [data.name]);
  13776. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13777. ? this.checkJson[i][z].checkCount[
  13778. parseInt(checkL[z][q])
  13779. ]++
  13780. : (this.checkJson[i][z].checkCount[
  13781. parseInt(checkL[z][q])
  13782. ] = 1);
  13783. }
  13784. } else {
  13785. if (
  13786. JSON.parse(data.content)[0].testJson.testJson[z]
  13787. .answer == checkL[z]
  13788. ) {
  13789. this.checkJson[i][z].rightPerson.push(data.name);
  13790. }
  13791. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13792. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13793. ? this.checkJson[i][z].checkPerson[
  13794. parseInt(checkL[z])
  13795. ].push(data.name)
  13796. : (this.checkJson[i][z].checkPerson[
  13797. parseInt(checkL[z])
  13798. ] = [data.name]);
  13799. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13800. ? this.checkJson[i][z].checkCount[
  13801. parseInt(checkL[z])
  13802. ]++
  13803. : (this.checkJson[i][z].checkCount[
  13804. parseInt(checkL[z])
  13805. ] = 1);
  13806. }
  13807. }
  13808. }
  13809. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13810. var checkL = JSON.parse(data.content);
  13811. for (var z = 0; z < checkL.length; z++) {
  13812. if (!this.checkJson[i][z]) {
  13813. this.checkJson[i].push({
  13814. checkCount: [],
  13815. checkPerson: [],
  13816. rightPerson: [],
  13817. });
  13818. }
  13819. this.checkJson[i][z].checkPerson.push(data.name);
  13820. if (
  13821. checkL[z].chooseSenList.toString() ==
  13822. checkL[z].rightAnswer.toString()
  13823. ) {
  13824. this.checkJson[i][z].rightPerson.push(data.name);
  13825. }
  13826. }
  13827. }
  13828. for (var k = 0; k < d.length; k++) {
  13829. //点赞
  13830. if (d[k].workId == b[j].id) {
  13831. likesCount++;
  13832. if (d[k].likesId == this.userid) {
  13833. isLikes = true;
  13834. }
  13835. }
  13836. }
  13837. for (var l = 0; l < e.length; l++) {
  13838. //评论
  13839. if (e[l].workId == b[j].id) {
  13840. if (e[l].comment != "") {
  13841. commentCount++;
  13842. commentJson.push({
  13843. commentText: e[l].comment,
  13844. commentTime: e[l].commentTime,
  13845. commentPeople: e[l].commentPeople,
  13846. userid: e[l].userid,
  13847. wid: e[l].id,
  13848. });
  13849. }
  13850. }
  13851. }
  13852. if (
  13853. (b[j].type == 1 ||
  13854. b[j].type == 4 ||
  13855. b[j].type == 5 ||
  13856. b[j].type == 6 ||
  13857. b[j].type == 12 ||
  13858. b[j].type == 7) &&
  13859. a[i].tool[0] != 15 &&
  13860. a[i].tool[0] != 4 &&
  13861. a[i].tool[0] != 45 &&
  13862. a[i].tool[0] != 50 &&
  13863. a[i].tool[0] != 32 &&
  13864. a[i].tool[0] != 57 &&
  13865. a[i].tool[0] != 52
  13866. ) {
  13867. if (
  13868. c.indexOf(
  13869. b[j].content
  13870. .split(".")
  13871. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13872. ) != -1 &&
  13873. a[i].tool[0] == 16 &&
  13874. b[j].atool != 50
  13875. ) {
  13876. let _works = {
  13877. userid: b[j].userid,
  13878. ateacher: b[j].ateacher,
  13879. wid: b[j].id,
  13880. works: b[j].content,
  13881. sName: b[j].name,
  13882. type: 1,
  13883. time: b[j].time,
  13884. score: b[j].score,
  13885. img: b[j].img,
  13886. likesCount: likesCount,
  13887. commentCount: commentCount,
  13888. isLikes: isLikes,
  13889. commentJson: commentJson,
  13890. };
  13891. if (this.isGroup) {
  13892. let isGw = 1;
  13893. for (
  13894. var groupI = 0;
  13895. groupI < this.courseGroup.group.length;
  13896. groupI++
  13897. ) {
  13898. let gid = this.courseGroup.group[groupI].id;
  13899. if (
  13900. this.courseGroupStudentUid[gid].indexOf(
  13901. b[j].userid
  13902. ) != -1
  13903. ) {
  13904. isGw = 2;
  13905. this.courseGroup.group[groupI].works[i].push(_works);
  13906. break;
  13907. }
  13908. }
  13909. if (isGw == 1) {
  13910. _worksStudent[i].push(_works);
  13911. }
  13912. } else {
  13913. _worksStudent[i].push(_works);
  13914. }
  13915. _worksStudent2[i].push(_works);
  13916. this.isWorksS[i].push({
  13917. uid: b[j].userid,
  13918. sName: b[j].name,
  13919. });
  13920. } else if (
  13921. y.indexOf(
  13922. b[j].content
  13923. .split(".")
  13924. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13925. ) != -1 &&
  13926. a[i].tool[0] == 16 &&
  13927. b[j].atool != 50
  13928. ) {
  13929. let _works = {
  13930. userid: b[j].userid,
  13931. ateacher: b[j].ateacher,
  13932. wid: b[j].id,
  13933. works: b[j].content,
  13934. sName: b[j].name,
  13935. type: 3,
  13936. time: b[j].time,
  13937. score: b[j].score,
  13938. img: b[j].img,
  13939. likesCount: likesCount,
  13940. commentCount: commentCount,
  13941. isLikes: isLikes,
  13942. commentJson: commentJson,
  13943. };
  13944. if (this.isGroup) {
  13945. let isGw = 1;
  13946. for (
  13947. var groupI = 0;
  13948. groupI < this.courseGroup.group.length;
  13949. groupI++
  13950. ) {
  13951. let gid = this.courseGroup.group[groupI].id;
  13952. if (
  13953. this.courseGroupStudentUid[gid].indexOf(
  13954. b[j].userid
  13955. ) != -1
  13956. ) {
  13957. isGw = 2;
  13958. this.courseGroup.group[groupI].works[i].push(_works);
  13959. break;
  13960. }
  13961. }
  13962. if (isGw == 1) {
  13963. _worksStudent[i].push(_works);
  13964. }
  13965. } else {
  13966. _worksStudent[i].push(_works);
  13967. }
  13968. _worksStudent2[i].push(_works);
  13969. this.isWorksS[i].push({
  13970. uid: b[j].userid,
  13971. sName: b[j].name,
  13972. });
  13973. } else if (b[j].type == 6 && b[j].atool != 50) {
  13974. let _works = {
  13975. userid: b[j].userid,
  13976. ateacher: b[j].ateacher,
  13977. wid: b[j].id,
  13978. works: b[j].content,
  13979. sName: b[j].name,
  13980. type: 4,
  13981. time: b[j].time,
  13982. score: b[j].score,
  13983. img: b[j].img,
  13984. likesCount: likesCount,
  13985. commentCount: commentCount,
  13986. isLikes: isLikes,
  13987. commentJson: commentJson,
  13988. };
  13989. _worksStudent[i].push(_works);
  13990. _worksStudent2[i].push(_works);
  13991. this.isWorksS[i].push({
  13992. uid: b[j].userid,
  13993. sName: b[j].name,
  13994. });
  13995. } else if (b[j].type == 7 && b[j].atool != 50) {
  13996. let _work = {
  13997. userid: b[j].userid,
  13998. ateacher: b[j].ateacher,
  13999. wid: b[j].id,
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. type: 5,
  14003. time: b[j].time,
  14004. score: b[j].score,
  14005. img: b[j].img,
  14006. likesCount: likesCount,
  14007. commentCount: commentCount,
  14008. isLikes: isLikes,
  14009. commentJson: commentJson,
  14010. };
  14011. _worksStudent[i].push(_work);
  14012. _worksStudent2[i].push(_work);
  14013. this.isWorksS[i].push({
  14014. uid: b[j].userid,
  14015. sName: b[j].name,
  14016. });
  14017. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14018. let _works = {
  14019. userid: b[j].userid,
  14020. ateacher: b[j].ateacher,
  14021. wid: b[j].id,
  14022. works: b[j].content,
  14023. sName: b[j].name,
  14024. type: 12,
  14025. time: b[j].time,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. likesCount: likesCount,
  14029. commentCount: commentCount,
  14030. isLikes: isLikes,
  14031. commentJson: commentJson,
  14032. };
  14033. if (this.isGroup) {
  14034. let isGw = 1;
  14035. for (
  14036. var groupI = 0;
  14037. groupI < this.courseGroup.group.length;
  14038. groupI++
  14039. ) {
  14040. let gid = this.courseGroup.group[groupI].id;
  14041. if (
  14042. this.courseGroupStudentUid[gid].indexOf(
  14043. b[j].userid
  14044. ) != -1
  14045. ) {
  14046. isGw = 2;
  14047. this.courseGroup.group[groupI].works[i].push(_works);
  14048. break;
  14049. }
  14050. }
  14051. if (isGw == 1) {
  14052. _worksStudent[i].push(_works);
  14053. }
  14054. } else {
  14055. _worksStudent[i].push(_works);
  14056. }
  14057. _worksStudent2[i].push(_works);
  14058. this.isWorksS[i].push({
  14059. uid: b[j].userid,
  14060. sName: b[j].name,
  14061. });
  14062. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14063. let _works = {
  14064. userid: b[j].userid,
  14065. ateacher: b[j].ateacher,
  14066. wid: b[j].id,
  14067. works: b[j].content,
  14068. sName: b[j].name,
  14069. type: 0,
  14070. time: b[j].time,
  14071. score: b[j].score,
  14072. img: b[j].img,
  14073. likesCount: likesCount,
  14074. commentCount: commentCount,
  14075. isLikes: isLikes,
  14076. commentJson: commentJson,
  14077. };
  14078. if (this.isGroup) {
  14079. let isGw = 1;
  14080. for (
  14081. var groupI = 0;
  14082. groupI < this.courseGroup.group.length;
  14083. groupI++
  14084. ) {
  14085. let gid = this.courseGroup.group[groupI].id;
  14086. if (
  14087. this.courseGroupStudentUid[gid].indexOf(
  14088. b[j].userid
  14089. ) != -1
  14090. ) {
  14091. isGw = 2;
  14092. this.courseGroup.group[groupI].works[i].push(_works);
  14093. break;
  14094. }
  14095. }
  14096. if (isGw == 1) {
  14097. _worksStudent[i].push(_works);
  14098. }
  14099. } else {
  14100. _worksStudent[i].push(_works);
  14101. }
  14102. _worksStudent2[i].push(_works);
  14103. this.isWorksS[i].push({
  14104. uid: b[j].userid,
  14105. sName: b[j].name,
  14106. });
  14107. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14108. let _works = {
  14109. userid: b[j].userid,
  14110. ateacher: b[j].ateacher,
  14111. wid: b[j].id,
  14112. works: b[j].content,
  14113. sName: b[j].name,
  14114. type: 0,
  14115. time: b[j].time,
  14116. score: b[j].score,
  14117. img: b[j].img,
  14118. likesCount: likesCount,
  14119. commentCount: commentCount,
  14120. isLikes: isLikes,
  14121. commentJson: commentJson,
  14122. };
  14123. if (this.isGroup) {
  14124. let isGw = 1;
  14125. for (
  14126. var groupI = 0;
  14127. groupI < this.courseGroup.group.length;
  14128. groupI++
  14129. ) {
  14130. let gid = this.courseGroup.group[groupI].id;
  14131. if (
  14132. this.courseGroupStudentUid[gid].indexOf(
  14133. b[j].userid
  14134. ) != -1
  14135. ) {
  14136. isGw = 2;
  14137. this.courseGroup.group[groupI].works[i].push(_works);
  14138. break;
  14139. }
  14140. }
  14141. if (isGw == 1) {
  14142. _worksStudent[i].push(_works);
  14143. }
  14144. } else {
  14145. _worksStudent[i].push(_works);
  14146. }
  14147. _worksStudent2[i].push(_works);
  14148. this.isWorksS[i].push({
  14149. uid: b[j].userid,
  14150. sName: b[j].name,
  14151. });
  14152. }
  14153. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14154. let _works = {
  14155. userid: b[j].userid,
  14156. ateacher: b[j].ateacher,
  14157. wid: b[j].id,
  14158. works: b[j].content,
  14159. sName: b[j].name,
  14160. type: 2,
  14161. time: b[j].time,
  14162. score: b[j].score,
  14163. img: b[j].img,
  14164. likesCount: likesCount,
  14165. commentCount: commentCount,
  14166. isLikes: isLikes,
  14167. commentJson: commentJson,
  14168. };
  14169. if (this.isGroup) {
  14170. let isGw = 1;
  14171. for (
  14172. var groupI = 0;
  14173. groupI < this.courseGroup.group.length;
  14174. groupI++
  14175. ) {
  14176. let gid = this.courseGroup.group[groupI].id;
  14177. if (
  14178. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14179. -1
  14180. ) {
  14181. isGw = 2;
  14182. this.courseGroup.group[groupI].works[i].push(_works);
  14183. break;
  14184. }
  14185. }
  14186. if (isGw == 1) {
  14187. _worksStudent[i].push(_works);
  14188. }
  14189. } else {
  14190. _worksStudent[i].push(_works);
  14191. }
  14192. _worksStudent2[i].push(_works);
  14193. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14194. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14195. //问卷
  14196. let _work = {
  14197. userid: b[j].userid,
  14198. ateacher: b[j].ateacher,
  14199. wid: b[j].id,
  14200. works: b[j].content,
  14201. sName: b[j].name,
  14202. type: 2,
  14203. time: b[j].time,
  14204. score: b[j].score,
  14205. img: b[j].img,
  14206. likesCount: likesCount,
  14207. commentCount: commentCount,
  14208. isLikes: isLikes,
  14209. commentJson: commentJson,
  14210. };
  14211. _worksStudent[i].push(_work);
  14212. _worksStudent2[i].push(_work);
  14213. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14214. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14215. //选择题
  14216. let _work = {
  14217. userid: b[j].userid,
  14218. ateacher: b[j].ateacher,
  14219. wid: b[j].id,
  14220. works: b[j].content,
  14221. sName: b[j].name,
  14222. type: 8,
  14223. time: b[j].time,
  14224. score: b[j].score,
  14225. img: b[j].img,
  14226. likesCount: likesCount,
  14227. commentCount: commentCount,
  14228. isLikes: isLikes,
  14229. commentJson: commentJson,
  14230. };
  14231. _worksStudent[i].push(_work);
  14232. _worksStudent2[i].push(_work);
  14233. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14234. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14235. //选择题
  14236. let _work = {
  14237. userid: b[j].userid,
  14238. ateacher: b[j].ateacher,
  14239. wid: b[j].id,
  14240. works: b[j].content,
  14241. sName: b[j].name,
  14242. type: 9,
  14243. time: b[j].time,
  14244. score: b[j].score,
  14245. img: b[j].img,
  14246. likesCount: likesCount,
  14247. commentCount: commentCount,
  14248. isLikes: isLikes,
  14249. commentJson: commentJson,
  14250. };
  14251. _worksStudent[i].push(_work);
  14252. _worksStudent2[i].push(_work);
  14253. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14254. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14255. //选择题
  14256. let _work = {
  14257. userid: b[j].userid,
  14258. ateacher: b[j].ateacher,
  14259. wid: b[j].id,
  14260. works: b[j].content,
  14261. sName: b[j].name,
  14262. type: 10,
  14263. time: b[j].time,
  14264. score: b[j].score,
  14265. img: b[j].img,
  14266. likesCount: likesCount,
  14267. commentCount: commentCount,
  14268. isLikes: isLikes,
  14269. commentJson: commentJson,
  14270. };
  14271. _worksStudent[i].push(_work);
  14272. _worksStudent2[i].push(_work);
  14273. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14274. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14275. //选择题
  14276. let _work = {
  14277. userid: b[j].userid,
  14278. ateacher: b[j].ateacher,
  14279. wid: b[j].id,
  14280. works: b[j].content,
  14281. sName: b[j].name,
  14282. type: 13,
  14283. time: b[j].time,
  14284. score: b[j].score,
  14285. img: b[j].img,
  14286. likesCount: likesCount,
  14287. commentCount: commentCount,
  14288. isLikes: isLikes,
  14289. commentJson: commentJson,
  14290. };
  14291. _worksStudent[i].push(_work);
  14292. _worksStudent2[i].push(_work);
  14293. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14294. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14295. //选择题
  14296. let _work = {
  14297. userid: b[j].userid,
  14298. ateacher: b[j].ateacher,
  14299. wid: b[j].id,
  14300. works: b[j].content,
  14301. sName: b[j].name,
  14302. type: 16,
  14303. time: b[j].time,
  14304. score: b[j].score,
  14305. img: b[j].img,
  14306. likesCount: likesCount,
  14307. commentCount: commentCount,
  14308. isLikes: isLikes,
  14309. commentJson: commentJson,
  14310. };
  14311. _worksStudent[i].push(_work);
  14312. _worksStudent2[i].push(_work);
  14313. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14314. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14315. let _gindex = JSON.parse(b[j].content);
  14316. if (
  14317. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14318. b[j].userid
  14319. ) != -1
  14320. ) {
  14321. let _work = {
  14322. userid: b[j].userid,
  14323. ateacher: b[j].ateacher,
  14324. wid: b[j].id,
  14325. works: _gindex.url,
  14326. sName: b[j].name,
  14327. type: _gindex.type,
  14328. time: b[j].time,
  14329. score: b[j].score,
  14330. img: b[j].img,
  14331. likesCount: likesCount,
  14332. commentCount: commentCount,
  14333. isLikes: isLikes,
  14334. commentJson: commentJson,
  14335. };
  14336. _worksStudent[i][_gindex.groupIndex].push(_work);
  14337. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14338. }
  14339. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14340. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14341. let _work = {
  14342. userid: b[j].userid,
  14343. ateacher: b[j].ateacher,
  14344. wid: b[j].id,
  14345. works: b[j].content,
  14346. sName: b[j].name ? b[j].name : b[j].userid,
  14347. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14348. time: b[j].time,
  14349. score: b[j].score,
  14350. img: b[j].img,
  14351. likesCount: likesCount,
  14352. commentCount: commentCount,
  14353. isLikes: isLikes,
  14354. commentJson: commentJson,
  14355. };
  14356. _worksStudent[i].push(_work);
  14357. _worksStudent2[i].push(_work);
  14358. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14359. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14360. let _work = {
  14361. userid: b[j].userid,
  14362. ateacher: b[j].ateacher,
  14363. wid: b[j].id,
  14364. works: b[j].content,
  14365. sName: b[j].name ? b[j].name : b[j].userid,
  14366. type: 12,
  14367. time: b[j].time,
  14368. score: b[j].score,
  14369. img: b[j].img,
  14370. likesCount: likesCount,
  14371. commentCount: commentCount,
  14372. isLikes: isLikes,
  14373. commentJson: commentJson,
  14374. };
  14375. _worksStudent[i].push(_work);
  14376. _worksStudent2[i].push(_work);
  14377. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14378. } else if (
  14379. a[i].tool[0] == 57 &&
  14380. b[j].atool == 57 &&
  14381. b[j].type == 12
  14382. ) {
  14383. let _work = {
  14384. userid: b[j].userid,
  14385. ateacher: b[j].ateacher,
  14386. wid: b[j].id,
  14387. works: b[j].content,
  14388. sName: b[j].name ? b[j].name : b[j].userid,
  14389. type: 12,
  14390. time: b[j].time,
  14391. score: b[j].score,
  14392. img: b[j].img,
  14393. likesCount: likesCount,
  14394. commentCount: commentCount,
  14395. isLikes: isLikes,
  14396. commentJson: commentJson,
  14397. };
  14398. _worksStudent[i].push(_work);
  14399. _worksStudent2[i].push(_work);
  14400. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14401. } else if (
  14402. a[i].tool[0] == 57 &&
  14403. b[j].atool == 57 &&
  14404. b[j].type == 15
  14405. ) {
  14406. let _work = {
  14407. userid: b[j].userid,
  14408. ateacher: b[j].ateacher,
  14409. wid: b[j].id,
  14410. works: b[j].content,
  14411. sName: b[j].name ? b[j].name : b[j].userid,
  14412. type: 15,
  14413. time: b[j].time,
  14414. score: b[j].score,
  14415. img: b[j].img,
  14416. likesCount: likesCount,
  14417. commentCount: commentCount,
  14418. isLikes: isLikes,
  14419. commentJson: commentJson,
  14420. };
  14421. _worksStudent[i].push(_work);
  14422. _worksStudent2[i].push(_work);
  14423. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14424. }
  14425. }
  14426. }
  14427. if (_worksStudent[i] && _worksStudent[i].length) {
  14428. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14429. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14430. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14431. var scoreA = parseFloat(jscoreA);
  14432. var scoreB = parseFloat(jscoreB);
  14433. if (scoreA == scoreB) {
  14434. return b.likesCount - a.likesCount;
  14435. }
  14436. return scoreB - scoreA;
  14437. });
  14438. if (this.isGroup) {
  14439. for (
  14440. var groupI = 0;
  14441. groupI < this.courseGroup.group.length;
  14442. groupI++
  14443. ) {
  14444. this.courseGroup.group[groupI].works[i] =
  14445. this.courseGroup.group[groupI].works[i].sort(function (
  14446. a,
  14447. b
  14448. ) {
  14449. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14450. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14451. var scoreA = parseFloat(jscoreA);
  14452. var scoreB = parseFloat(jscoreB);
  14453. if (scoreA == scoreB) {
  14454. return b.likesCount - a.likesCount;
  14455. }
  14456. return scoreB - scoreA;
  14457. });
  14458. }
  14459. }
  14460. }
  14461. }
  14462. this.timeWorkList = _worksStudent2;
  14463. for (var i = 0; i < a.length; i++) {
  14464. for (var j = 0; j < b.length; j++) {
  14465. var data = b[j];
  14466. if (i == b[j].tool) {
  14467. if (data.type == 2 || data.type == 8) {
  14468. for (var z = 0; z < this.checkJson[i].length; z++) {
  14469. this.checkJson[i][z].checkPerent = [];
  14470. this.checkJson[i][z].right = Math.round(
  14471. (this.checkJson[i][z].rightPerson.length /
  14472. parseInt(_worksStudent[i].length)) *
  14473. 100
  14474. );
  14475. let aaaa = this.checkJson[i][z];
  14476. for (
  14477. var k = 0;
  14478. k < this.checkJson[i][z].checkCount.length;
  14479. k++
  14480. ) {
  14481. this.checkJson[i][z].checkPerent.push(
  14482. Math.round(
  14483. (this.checkJson[i][z].checkCount[k] /
  14484. parseInt(_worksStudent[i].length)) *
  14485. 100
  14486. )
  14487. );
  14488. }
  14489. }
  14490. } else if (data.type == 9) {
  14491. for (var z = 0; z < this.checkJson[i].length; z++) {
  14492. this.checkJson[i][z].checkPerent = [];
  14493. this.checkJson[i][z].right = Math.round(
  14494. (this.checkJson[i][z].rightPerson.length /
  14495. this.checkJson[i][z].checkPerson.length) *
  14496. 100
  14497. );
  14498. }
  14499. }
  14500. }
  14501. }
  14502. }
  14503. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14504. this.joinGroup(gindex);
  14505. }
  14506. this.worksStudent = _worksStudent;
  14507. this.selectWorksStudent();
  14508. })
  14509. .catch((err) => {
  14510. console.error(err);
  14511. });
  14512. },
  14513. pngToWhiteBg(file) {
  14514. const _file = file;
  14515. let read = new FileReader();
  14516. read.readAsDataURL(file); // 文件转base64
  14517. return new Promise((resolve, reject) => {
  14518. read.onload = (e) => {
  14519. let img = new Image();
  14520. img.src = e.target.result;
  14521. img.onload = async () => {
  14522. // 生成canvas
  14523. let canvas = document.createElement("canvas");
  14524. let context = canvas.getContext("2d");
  14525. // 绘制图片到canvas上
  14526. canvas.width = img.width;
  14527. canvas.height = img.height;
  14528. // 在canvas绘制前填充白色背景
  14529. context.fillStyle = "#fff";
  14530. context.fillRect(0, 0, canvas.width, canvas.height);
  14531. context.drawImage(img, 0, 0);
  14532. let base64 = canvas.toDataURL(file["type"], 1);
  14533. let newFile = this.dataUrlToFile(base64, _file);
  14534. resolve(newFile);
  14535. };
  14536. };
  14537. });
  14538. },
  14539. dataUrlToFile(dataurl, file) {
  14540. let arr = dataurl.split(","),
  14541. mime = arr[0].match(/:(.*?);/)[1],
  14542. bstr = atob(arr[1]),
  14543. n = bstr.length,
  14544. u8arr = new Uint8Array(n);
  14545. while (n--) {
  14546. u8arr[n] = bstr.charCodeAt(n);
  14547. }
  14548. // return new Blob([u8arr], { type: mime });
  14549. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14550. type: mime,
  14551. });
  14552. },
  14553. async beforeUpload1(event, type, i) {
  14554. // this.$message.success('进入上传')
  14555. var file = "";
  14556. if (type == 5) {
  14557. file = event;
  14558. } else {
  14559. file = event.target.files[0];
  14560. }
  14561. var credentials = {
  14562. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14563. secretAccessKey: "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",
  14564. }; //秘钥形式的登录上传
  14565. window.AWS.config.update(credentials);
  14566. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14567. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14568. var _this = this;
  14569. _this.progress = 0;
  14570. _this.proVisible = true;
  14571. _this.isFinishSize = 0;
  14572. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14573. var b = [
  14574. "DOC",
  14575. "DOCX",
  14576. "DOCM",
  14577. "DOTM",
  14578. "DOTX",
  14579. "PPTX",
  14580. "PPSX",
  14581. "PPT",
  14582. "PPS",
  14583. "PPTM",
  14584. "POTM",
  14585. "PPAM",
  14586. "POTX",
  14587. "PPSM",
  14588. ];
  14589. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14590. var photoA = [
  14591. "BMP",
  14592. "GIF",
  14593. "PNG",
  14594. "JPGE",
  14595. "JPEG",
  14596. "JPG",
  14597. "TIF",
  14598. "PCX",
  14599. "TGA",
  14600. "EXIF",
  14601. "FPX",
  14602. "SVG",
  14603. "APNG",
  14604. ];
  14605. // if (
  14606. // b.indexOf(
  14607. // file.name
  14608. // .split(".")
  14609. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14610. // ) != -1
  14611. // ) {
  14612. // if (file.size / 1024 / 1024 > 10) {
  14613. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14614. // return;
  14615. // }
  14616. // } else if (
  14617. // excelA.indexOf(
  14618. // file.name
  14619. // .split(".")
  14620. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14621. // ) != "-1"
  14622. // ) {
  14623. // if (file.size / 1024 / 1024 > 5) {
  14624. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14625. // return;
  14626. // }
  14627. // }
  14628. if (
  14629. photoA.indexOf(
  14630. file.name
  14631. .split(".")
  14632. [file.name.split(".").length - 1].toLocaleUpperCase()
  14633. ) != -1 &&
  14634. type != 4
  14635. ) {
  14636. // const blob = await imageConversion.compress(file, 0.8)
  14637. file = await this.pngToWhiteBg(file);
  14638. const blob = await imageConversion.compressAccurately(file, 256);
  14639. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14640. file = new File([blob], file.name, { type: file.type });
  14641. }
  14642. if (file) {
  14643. var params = {
  14644. Key:
  14645. file.name.split(".")[0] +
  14646. new Date().getTime() +
  14647. "." +
  14648. file.name.split(".")[file.name.split(".").length - 1],
  14649. ContentType: file.type,
  14650. Body: file,
  14651. "Access-Control-Allow-Credentials": "*",
  14652. ACL: "public-read",
  14653. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14654. var options = {
  14655. // partSize: 2048 * 1024 * 1024,
  14656. partSize: 1024 * 1024 * 1024,
  14657. queueSize: 2,
  14658. leavePartsOnError: true,
  14659. };
  14660. bucket
  14661. .upload(params, options)
  14662. .on("httpUploadProgress", function (evt) {
  14663. //这里可以写进度条
  14664. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14665. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14666. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14667. })
  14668. .send(function (err, data) {
  14669. _this.progress = 100;
  14670. _this.isFinishSize = _this.isAllSize;
  14671. setTimeout(() => {
  14672. _this.proVisible = false;
  14673. }, 1000);
  14674. if (err) {
  14675. var a = _this.$refs.upload1.uploadFiles;
  14676. a.splice(a.length - 1, a.length);
  14677. _this.$message.error("上传失败");
  14678. } else {
  14679. // _this.$message.success('上传成功')
  14680. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14681. var c = [
  14682. "AVI",
  14683. "NAVI",
  14684. "MPEG",
  14685. "ASF",
  14686. "MOV",
  14687. "WMV",
  14688. "3GP",
  14689. "RM",
  14690. "RMVB",
  14691. "FLV",
  14692. "F4V",
  14693. "H.264",
  14694. "H.265",
  14695. "REAL VIDEO",
  14696. "MKV",
  14697. "WebM",
  14698. "HDDVD",
  14699. "MP4",
  14700. "MPG",
  14701. "M4V",
  14702. "MGV",
  14703. "OGV",
  14704. "QTM",
  14705. "STR",
  14706. "AMC",
  14707. "DVX",
  14708. "EVO",
  14709. "DAT",
  14710. "OGG",
  14711. "OGM",
  14712. ];
  14713. if (type == 1) {
  14714. _this.studyJuri[0].cover.push({
  14715. name: file.name,
  14716. url: data.Location,
  14717. uid: file.uid,
  14718. });
  14719. if (
  14720. c.indexOf(
  14721. _this.studyJuri[0].cover[0].url
  14722. .split(".")
  14723. [
  14724. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14725. ].toLocaleUpperCase()
  14726. ) != -1
  14727. ) {
  14728. _this.fileType = 2;
  14729. } else if (
  14730. b.indexOf(
  14731. _this.studyJuri[0].cover[0].url
  14732. .split(".")
  14733. [
  14734. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14735. ].toLocaleUpperCase()
  14736. ) != -1
  14737. ) {
  14738. _this.fileType = 1;
  14739. } else if (
  14740. photoA.indexOf(
  14741. _this.studyJuri[0].cover[0].url
  14742. .split(".")
  14743. [
  14744. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14745. ].toLocaleUpperCase()
  14746. ) != -1
  14747. ) {
  14748. _this.fileType = 0;
  14749. } else {
  14750. _this.fileType = 3;
  14751. }
  14752. _this.imgChange(null, null, type);
  14753. } else if (type == 2) {
  14754. _this.upToolImg = data.Location;
  14755. _this.imgChange(null, null, type);
  14756. _this.addCourseWorks(i);
  14757. } else if (type == 4) {
  14758. _this.addPz("3", data.Location);
  14759. } else if (type == 5) {
  14760. _this.addImgDrawImG(data.Location);
  14761. } else if (type == 6) {
  14762. var _ftype = 1;
  14763. if (
  14764. c.indexOf(
  14765. data.Location.split(".")[
  14766. data.Location.split(".").length - 1
  14767. ].toLocaleUpperCase()
  14768. ) != -1
  14769. ) {
  14770. _ftype = 5;
  14771. } else if (
  14772. b.indexOf(
  14773. data.Location.split(".")[
  14774. data.Location.split(".").length - 1
  14775. ].toLocaleUpperCase()
  14776. ) != -1
  14777. ) {
  14778. _ftype = 4;
  14779. } else {
  14780. _ftype = 1;
  14781. }
  14782. _this.plworkFile.push({
  14783. name: file.name,
  14784. url: data.Location,
  14785. uid: file.uid,
  14786. fileType: _ftype,
  14787. username:
  14788. _this.plworkFile.length > 10
  14789. ? _this.plworkFile.length + 1
  14790. : "0" + (_this.plworkFile.length + 1),
  14791. });
  14792. } else if (type == 7) {
  14793. _this.addCourseWorksGong(i, data.Location, 32);
  14794. } else if (type == 8) {
  14795. _this.addCourseWorksGong(i, data.Location, 57);
  14796. }
  14797. _this.imgChange(null, null, type);
  14798. console.log(data.Location);
  14799. // _this.$message.success('上传成功'+data.Location)
  14800. }
  14801. });
  14802. }
  14803. },
  14804. async beforeUpload3(event, type, i) {
  14805. // this.$message.success('进入上传')
  14806. let file = "";
  14807. let cfindex2 = 0;
  14808. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14809. file = event.target.files[cfindex];
  14810. var credentials = {
  14811. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14812. secretAccessKey: "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",
  14813. }; //秘钥形式的登录上传
  14814. window.AWS.config.update(credentials);
  14815. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14816. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14817. var _this = this;
  14818. // _this.progress = 0;
  14819. _this.proVisible2 = true;
  14820. var b = [
  14821. "DOC",
  14822. "DOCX",
  14823. "DOCM",
  14824. "DOTM",
  14825. "DOTX",
  14826. "PPTX",
  14827. "PPSX",
  14828. "PPT",
  14829. "PPS",
  14830. "PPTM",
  14831. "POTM",
  14832. "PPAM",
  14833. "POTX",
  14834. "PPSM",
  14835. ];
  14836. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14837. var photoA = [
  14838. "BMP",
  14839. "GIF",
  14840. "PNG",
  14841. "JPGE",
  14842. "JPG",
  14843. "TIF",
  14844. "PCX",
  14845. "TGA",
  14846. "EXIF",
  14847. "FPX",
  14848. "SVG",
  14849. "APNG",
  14850. ];
  14851. if (
  14852. photoA.indexOf(
  14853. file.name
  14854. .split(".")
  14855. [file.name.split(".").length - 1].toLocaleUpperCase()
  14856. ) != -1 &&
  14857. type != 4
  14858. ) {
  14859. // const blob = await imageConversion.compress(file, 0.8)
  14860. file = await this.pngToWhiteBg(file);
  14861. const blob = await imageConversion.compressAccurately(file, 256);
  14862. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14863. file = new File([blob], file.name, { type: file.type });
  14864. }
  14865. if (file) {
  14866. var params = {
  14867. Key:
  14868. file.name.split(".")[0] +
  14869. new Date().getTime() +
  14870. "." +
  14871. file.name.split(".")[file.name.split(".").length - 1],
  14872. ContentType: file.type,
  14873. Body: file,
  14874. "Access-Control-Allow-Credentials": "*",
  14875. ACL: "public-read",
  14876. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14877. var options = {
  14878. // partSize: 2048 * 1024 * 1024,
  14879. partSize: 1024 * 1024 * 1024,
  14880. queueSize: 2,
  14881. leavePartsOnError: true,
  14882. };
  14883. bucket
  14884. .upload(params, options)
  14885. .on("httpUploadProgress", function (evt) {
  14886. //这里可以写进度条
  14887. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14888. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14889. })
  14890. .send(function (err, data) {
  14891. // _this.progress = 100;
  14892. cfindex2++;
  14893. setTimeout(() => {
  14894. if (
  14895. cfindex2 == event.target.files.length - 1 ||
  14896. cfindex2 > event.target.files.length - 1
  14897. ) {
  14898. _this.proVisible2 = false;
  14899. }
  14900. }, 1000);
  14901. if (err) {
  14902. var a = _this.$refs.upload1.uploadFiles;
  14903. a.splice(a.length - 1, a.length);
  14904. _this.$message.error("上传失败");
  14905. } else {
  14906. // _this.$message.success('上传成功')
  14907. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14908. var c = [
  14909. "AVI",
  14910. "NAVI",
  14911. "MPEG",
  14912. "ASF",
  14913. "MOV",
  14914. "WMV",
  14915. "3GP",
  14916. "RM",
  14917. "RMVB",
  14918. "FLV",
  14919. "F4V",
  14920. "H.264",
  14921. "H.265",
  14922. "REAL VIDEO",
  14923. "MKV",
  14924. "WebM",
  14925. "HDDVD",
  14926. "MP4",
  14927. "MPG",
  14928. "M4V",
  14929. "MGV",
  14930. "OGV",
  14931. "QTM",
  14932. "STR",
  14933. "AMC",
  14934. "DVX",
  14935. "EVO",
  14936. "DAT",
  14937. "OGG",
  14938. "OGM",
  14939. ];
  14940. if (type == 1) {
  14941. _this.studyJuri[0].cover.push({
  14942. name: file.name,
  14943. url: data.Location,
  14944. uid: file.uid,
  14945. });
  14946. if (
  14947. c.indexOf(
  14948. _this.studyJuri[0].cover[0].url
  14949. .split(".")
  14950. [
  14951. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14952. ].toLocaleUpperCase()
  14953. ) != -1
  14954. ) {
  14955. _this.fileType = 2;
  14956. } else if (
  14957. b.indexOf(
  14958. _this.studyJuri[0].cover[0].url
  14959. .split(".")
  14960. [
  14961. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14962. ].toLocaleUpperCase()
  14963. ) != -1
  14964. ) {
  14965. _this.fileType = 1;
  14966. } else {
  14967. _this.fileType = 0;
  14968. }
  14969. _this.imgChange(null, null, type);
  14970. } else if (type == 2) {
  14971. _this.upToolImg = data.Location;
  14972. _this.imgChange(null, null, type);
  14973. _this.addCourseWorks(i);
  14974. } else if (type == 4) {
  14975. _this.addPz("3", data.Location);
  14976. } else if (type == 5) {
  14977. _this.addImgDrawImG(data.Location);
  14978. } else if (type == 6) {
  14979. var _ftype = 1;
  14980. if (
  14981. c.indexOf(
  14982. data.Location.split(".")[
  14983. data.Location.split(".").length - 1
  14984. ].toLocaleUpperCase()
  14985. ) != -1
  14986. ) {
  14987. _ftype = 5;
  14988. } else if (
  14989. b.indexOf(
  14990. data.Location.split(".")[
  14991. data.Location.split(".").length - 1
  14992. ].toLocaleUpperCase()
  14993. ) != -1
  14994. ) {
  14995. _ftype = 4;
  14996. } else {
  14997. _ftype = 1;
  14998. }
  14999. _this.plworkFile.push({
  15000. name: file.name,
  15001. url: data.Location,
  15002. uid: file.uid,
  15003. fileType: _ftype,
  15004. username:
  15005. _this.plworkFile.length + 1 > 9
  15006. ? _this.plworkFile.length + 1
  15007. : "0" + (_this.plworkFile.length + 1),
  15008. });
  15009. }
  15010. _this.imgChange(null, null, type);
  15011. console.log(data.Location);
  15012. // _this.$message.success('上传成功'+data.Location)
  15013. }
  15014. });
  15015. }
  15016. }
  15017. },
  15018. beforeUpload2(event, type) {
  15019. var file = event.target.files[0];
  15020. var credentials = {
  15021. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15022. secretAccessKey: "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",
  15023. }; //秘钥形式的登录上传
  15024. window.AWS.config.update(credentials);
  15025. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15026. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15027. var _this = this;
  15028. _this.progress = 0;
  15029. _this.proVisible = true;
  15030. if (file) {
  15031. var params = {
  15032. Key:
  15033. file.name.split(".")[0] +
  15034. new Date().getTime() +
  15035. "." +
  15036. file.name.split(".")[file.name.split(".").length - 1],
  15037. ContentType: file.type,
  15038. Body: file,
  15039. "Access-Control-Allow-Credentials": "*",
  15040. ACL: "public-read",
  15041. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15042. var options = {
  15043. partSize: 2048 * 1024 * 1024,
  15044. queueSize: 2,
  15045. leavePartsOnError: true,
  15046. };
  15047. bucket
  15048. .upload(params, options)
  15049. .on("httpUploadProgress", function (evt) {
  15050. //这里可以写进度条
  15051. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15052. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15053. })
  15054. .send(function (err, data) {
  15055. _this.progress = 100;
  15056. setTimeout(() => {
  15057. _this.proVisible = false;
  15058. }, 1000);
  15059. if (err) {
  15060. var a = _this.$refs.upload1.uploadFiles;
  15061. a.splice(a.length - 1, a.length);
  15062. _this.$message.error("上传失败");
  15063. } else {
  15064. if (type == 2) {
  15065. _this.studyJuri[0].upVedio.push({
  15066. name: file.name,
  15067. url: data.Location,
  15068. uid: file.uid,
  15069. });
  15070. _this.imgChange(null, null, type);
  15071. } else if (type == 3) {
  15072. _this.studyJuri[0].upFile.push({
  15073. name: file.name,
  15074. url: data.Location,
  15075. uid: file.uid,
  15076. });
  15077. _this.imgChange(null, null, type);
  15078. }
  15079. console.log(data.Location);
  15080. }
  15081. });
  15082. }
  15083. },
  15084. allScrell() {
  15085. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15086. },
  15087. nextOrpreSteps(t) {
  15088. if (this.IsFollow && this.tType == 2) {
  15089. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15090. return;
  15091. }
  15092. var b = this.chapInfoList.length - 1;
  15093. if (t == 0) {
  15094. if (this.courseType == 0) {
  15095. if (this.taskCount == 0) {
  15096. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15097. if (this.IsLookOpen) {
  15098. if (
  15099. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15100. ) {
  15101. if (
  15102. this.courseDetail.userid != this.userid &&
  15103. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15104. ) {
  15105. this.$message.error("任务未解锁");
  15106. } else {
  15107. this.$message.error("上一任务未解锁");
  15108. }
  15109. return;
  15110. }
  15111. }
  15112. this.navList[this.courseType].isOpen = false;
  15113. this.courseType = b;
  15114. this.taskCount =
  15115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15116. .length - 1;
  15117. this.navList[this.courseType].isOpen = true;
  15118. } else {
  15119. this.taskCount--;
  15120. }
  15121. } else {
  15122. if (this.taskCount == 0) {
  15123. this.navList[this.courseType].isOpen = false;
  15124. this.courseType--;
  15125. this.taskCount =
  15126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15127. .length - 1;
  15128. this.navList[this.courseType].isOpen = true;
  15129. } else {
  15130. this.taskCount--;
  15131. }
  15132. }
  15133. } else {
  15134. if (this.courseType == b) {
  15135. if (
  15136. this.taskCount ==
  15137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15138. 1
  15139. ) {
  15140. this.navList[this.courseType].isOpen = false;
  15141. this.courseType = 0;
  15142. this.taskCount = 0;
  15143. this.navList[this.courseType].isOpen = true;
  15144. } else {
  15145. var bbb = parseInt(this.taskCount) + 1;
  15146. if (
  15147. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15148. .isLook &&
  15149. this.courseDetail.userid != this.userid &&
  15150. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15151. this.IsLookOpen
  15152. ) {
  15153. this.$message.error("任务未解锁");
  15154. return;
  15155. }
  15156. this.taskCount++;
  15157. if (this.IsLookOpen) {
  15158. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15159. this.taskCount
  15160. ].isLook = true;
  15161. this.addCourseState(3);
  15162. }
  15163. }
  15164. } else {
  15165. if (
  15166. this.taskCount ==
  15167. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15168. 1
  15169. ) {
  15170. var bbb = parseInt(this.courseType) + 1;
  15171. if (
  15172. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15173. this.courseDetail.userid != this.userid &&
  15174. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15175. this.IsLookOpen
  15176. ) {
  15177. this.$message.error("任务未解锁");
  15178. return;
  15179. }
  15180. this.navList[this.courseType].isOpen = false;
  15181. this.courseType++;
  15182. this.taskCount = 0;
  15183. this.navList[this.courseType].isOpen = true;
  15184. } else {
  15185. var bbb = parseInt(this.taskCount) + 1;
  15186. if (
  15187. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15188. .isLook &&
  15189. this.courseDetail.userid != this.userid &&
  15190. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15191. this.IsLookOpen
  15192. ) {
  15193. this.$message.error("任务未解锁");
  15194. return;
  15195. }
  15196. this.taskCount++;
  15197. }
  15198. if (this.IsLookOpen) {
  15199. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15200. this.taskCount
  15201. ].isLook = true;
  15202. this.addCourseState(3);
  15203. }
  15204. }
  15205. // if (
  15206. // this.taskCount ==
  15207. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15208. // ) {
  15209. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15210. // } else {
  15211. // this.taskCount++;
  15212. // }
  15213. }
  15214. document.scrollingElement.scrollTop = 0;
  15215. this.showType = 0;
  15216. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15217. // if (this.vedio[this.taskCount].length > 0) {
  15218. // var a =
  15219. // document.getElementsByClassName("box_course")[this.taskCount]
  15220. // .offsetHeight;
  15221. // document.getElementsByClassName("vedioList")[
  15222. // this.taskCount
  15223. // ].style.height = a + "px";
  15224. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15225. // a - 40 + "px";
  15226. // }
  15227. this.isNoHomeWork = false;
  15228. (this.studyJuri = [
  15229. {
  15230. content: "",
  15231. cover: [],
  15232. upVedio: [],
  15233. upFile: [],
  15234. },
  15235. ]),
  15236. (this.radio = []);
  15237. this.isClickNav = "";
  15238. this.selectPz();
  15239. this.getHomeWork();
  15240. this.getCourseDetail(2);
  15241. this.$forceUpdate();
  15242. },
  15243. openTask(s, n, i) {
  15244. if (this.IsFollow && this.tType == 2) {
  15245. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15246. return;
  15247. }
  15248. if (this.IsLookOpen) {
  15249. if (
  15250. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15251. this.courseDetail.userid != this.userid &&
  15252. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15253. ) {
  15254. this.$message.error("任务未解锁");
  15255. return;
  15256. }
  15257. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15258. if (
  15259. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15260. .isLook
  15261. ) {
  15262. this.$message.error("上一任务未解锁");
  15263. return;
  15264. }
  15265. } else if (s > this.courseType) {
  15266. if (n > 0) {
  15267. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15268. this.$message.error("上一任务未解锁");
  15269. return;
  15270. }
  15271. } else {
  15272. if (
  15273. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15274. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15275. ].isLook
  15276. ) {
  15277. this.$message.error("上一任务未解锁");
  15278. return;
  15279. }
  15280. }
  15281. }
  15282. }
  15283. if (this.navList[s].task[n].isOpen == true) {
  15284. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15285. return;
  15286. }
  15287. this.courseType = s;
  15288. this.navId = i;
  15289. this.taskCount = n;
  15290. this.navList[this.courseType].task[this.taskCount].isOpen =
  15291. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15292. if (this.IsLookOpen) {
  15293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15294. this.taskCount
  15295. ].isLook = true;
  15296. this.addCourseState(3);
  15297. }
  15298. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15299. this.isCloseList[ci].isClose = 0;
  15300. }
  15301. this.showType = 0;
  15302. this.isNoHomeWork = false;
  15303. (this.studyJuri = [
  15304. {
  15305. content: "",
  15306. cover: [],
  15307. upVedio: [],
  15308. upFile: [],
  15309. },
  15310. ]),
  15311. (this.radio = []);
  15312. document.scrollingElement.scrollTop = 0;
  15313. // setTimeout(() => {
  15314. // let a = document.getElementById(i);
  15315. // if (a.offsetTop - 110 == 0) {
  15316. // window.scrollTo(0, 0);
  15317. // } else {
  15318. // window.scrollTo(0, a.offsetTop);
  15319. // }
  15320. // }, 0);
  15321. this.selectPz();
  15322. this.getHomeWork();
  15323. this.getCourseDetail(2);
  15324. },
  15325. get(i) {
  15326. if (this.IsFollow && this.tType == 2) {
  15327. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15328. return;
  15329. }
  15330. // for(var k=0;k<this.navList.length;k++){
  15331. // this.navList[k].isOpen = false;
  15332. // }
  15333. // this.navList[i].isOpen = true;
  15334. this.navList[i].isOpen = !this.navList[i].isOpen;
  15335. if (this.navList[i].isOpen) {
  15336. this.openTask(i, 0, i + "-0");
  15337. }
  15338. },
  15339. addQuestion() {
  15340. this.answerList.push({
  15341. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15342. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15343. });
  15344. let params = [
  15345. {
  15346. uid: this.userid,
  15347. cid: this.id,
  15348. stage: this.courseType,
  15349. task: this.taskCount,
  15350. tool: this.toolindex,
  15351. content: JSON.stringify(this.answerList),
  15352. type: 3,
  15353. },
  15354. ];
  15355. this.ajax
  15356. .post(this.$store.state.api + "addCourseWorks", params)
  15357. .then((res) => {
  15358. this.$message({
  15359. message: "提交成功",
  15360. type: "success",
  15361. });
  15362. this.answerList = [];
  15363. this.answerDialogVisible = false;
  15364. this.selectStudent();
  15365. this.selectSWorks();
  15366. this.selectSLook();
  15367. })
  15368. .catch((err) => {
  15369. this.$message.error("提交失败");
  15370. console.error(err);
  15371. });
  15372. },
  15373. addQuestionTeacher() {
  15374. this.answerList.push({
  15375. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  15376. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  15377. });
  15378. let params = [
  15379. {
  15380. uid: this.sStudent.userid,
  15381. cid: this.id,
  15382. stage: this.courseType,
  15383. task: this.taskCount,
  15384. tool: this.toolindex,
  15385. content: JSON.stringify(this.answerList),
  15386. type: 3,
  15387. ateacher: this.userid,
  15388. },
  15389. ];
  15390. this.ajax
  15391. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15392. .then((res) => {
  15393. this.$message({
  15394. message: "提交成功",
  15395. type: "success",
  15396. });
  15397. this.answerList = [];
  15398. this.questionAnswer = "";
  15399. this.answerDialogVisibleTeacher = false;
  15400. this.selectStudent();
  15401. this.selectSWorks();
  15402. this.selectSLook();
  15403. })
  15404. .catch((err) => {
  15405. this.$message.error("提交失败");
  15406. console.error(err);
  15407. });
  15408. },
  15409. refreshCourse() {
  15410. // window.location.reload();
  15411. this.navList = [];
  15412. this.getCourseDetail(1);
  15413. },
  15414. getCourseDetail(type, gindex) {
  15415. let loading;
  15416. if (type != 2) {
  15417. loading = this.$loading.service({
  15418. background: "rgba(255, 255, 255, 0.7)",
  15419. target: document.querySelector(".student_table"),
  15420. });
  15421. }
  15422. // this.navList[0].isOpen = false;
  15423. // this.navList[this.courseType].isOpen = true;
  15424. // this.courseType = this.courseTypeLine;
  15425. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15426. let params = {
  15427. courseId: this.id,
  15428. };
  15429. this.ajax
  15430. .get(this.$store.state.api + "selectCourseDetail3", params)
  15431. .then((res) => {
  15432. if (type != 2) {
  15433. loading.close();
  15434. if (
  15435. this.courseType >
  15436. JSON.parse(res.data[0][0].chapters).length - 1
  15437. ) {
  15438. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15439. }
  15440. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15441. .chapterInfo[0].taskJson;
  15442. var b = [
  15443. "AVI",
  15444. "NAVI",
  15445. "MPEG",
  15446. "ASF",
  15447. "MOV",
  15448. "WMV",
  15449. "3GP",
  15450. "RM",
  15451. "RMVB",
  15452. "FLV",
  15453. "F4V",
  15454. "H.264",
  15455. "H.265",
  15456. "REAL VIDEO",
  15457. "MKV",
  15458. "WebM",
  15459. "HDDVD",
  15460. "MP4",
  15461. "MPG",
  15462. "M4V",
  15463. "MGV",
  15464. "OGV",
  15465. "QTM",
  15466. "STR",
  15467. "AMC",
  15468. "DVX",
  15469. "EVO",
  15470. "DAT",
  15471. "OGG",
  15472. "OGM",
  15473. "MP3",
  15474. ];
  15475. let _chapterData = [];
  15476. for (var i = 0; i < a.length; i++) {
  15477. var c = a[i].chapterData;
  15478. this.vedio[i] = [];
  15479. this.textList[i] = [];
  15480. this.lineList[i] = [];
  15481. this.chapToolList[i] = [];
  15482. this.file[i] = [];
  15483. this.fileC[i] = [];
  15484. _chapterData[i] = c.filter((el) => {
  15485. return el.type != 12;
  15486. });
  15487. this.fileC[i] = c.filter((el) => {
  15488. return el.type == 12;
  15489. });
  15490. // else if (c[j].type == 12) {
  15491. // this.fileC[i].push(c[j]);
  15492. // }
  15493. for (var j = 0; j < c.length; j++) {
  15494. if (c[j].type == 7) {
  15495. this.chapToolList[i].push(c[j]);
  15496. } else if (c[j].type == 8 || c[j].type == 14) {
  15497. this.lineList[i].push(c[j]);
  15498. } else if (c[j].type == 6) {
  15499. this.textList[i].push(c[j]);
  15500. } else {
  15501. if (
  15502. b.indexOf(
  15503. c[j].url
  15504. .split(".")
  15505. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15506. ) != -1
  15507. ) {
  15508. this.vedio[i].push(c[j]);
  15509. } else {
  15510. this.file[i].push(c[j]);
  15511. }
  15512. }
  15513. }
  15514. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15515. d.sources[0].src =
  15516. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15517. this.playerO[i] = d;
  15518. }
  15519. this.courseDetail = res.data[0][0];
  15520. this.tcid = this.arrayToArray(
  15521. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15522. this.tcid2 ? this.tcid2.split(",") : []
  15523. ).join(",");
  15524. this.evalua = res.data[0][0].evaId;
  15525. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15526. this.courseType
  15527. ];
  15528. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15529. if (this.tcid && res.data[1].length) {
  15530. let _inviteA = [];
  15531. for (var ik = 0; ik < res.data[1].length; ik++) {
  15532. _inviteA.push({
  15533. cid: res.data[1][ik].classid,
  15534. ic: res.data[1][ik].code,
  15535. });
  15536. }
  15537. for (var ik = 0; ik < _inviteA.length; ik++) {
  15538. if (
  15539. this.arrayToArray(
  15540. _inviteA[ik].cid.split(","),
  15541. this.tcid.split(",")
  15542. ).length
  15543. ) {
  15544. this.inviteCode = _inviteA[ik].ic;
  15545. break;
  15546. }
  15547. }
  15548. }
  15549. for (var l = 0; l < this.chapInfoList.length; l++) {
  15550. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15551. for (var m = 0; m < w.length; m++) {
  15552. w[m].id = l + "-" + m;
  15553. }
  15554. }
  15555. if (
  15556. _chapterData[this.taskCount].length &&
  15557. _chapterData[this.taskCount][0].type == 2
  15558. ) {
  15559. this.showType = 0;
  15560. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15561. } else {
  15562. if (_chapterData[this.taskCount].length > 0) {
  15563. let _url = _chapterData[this.taskCount][0].url;
  15564. if (
  15565. _chapterData[this.taskCount][0].type == 8 ||
  15566. _chapterData[this.taskCount][0].type == 14
  15567. ) {
  15568. this.showType = 2;
  15569. if (
  15570. _url.indexOf("https://") == -1 &&
  15571. _url.indexOf("http://") == -1
  15572. ) {
  15573. _url = "https://" + _url;
  15574. }
  15575. this.pptImgUrl1 = _url;
  15576. } else if (_chapterData[this.taskCount][0].type == 3) {
  15577. if (
  15578. _url
  15579. .split(".")
  15580. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15581. ) {
  15582. this.showType = 3;
  15583. this.pptImgUrl1 = _url;
  15584. } else if (
  15585. this.isAssetTypeAnImage(
  15586. _url
  15587. .split(".")
  15588. [_url.split(".").length - 1].toLocaleLowerCase()
  15589. )
  15590. ) {
  15591. this.showType = 4;
  15592. this.pptImgUrl1 = _url;
  15593. } else {
  15594. this.showType = 2;
  15595. this.pptImgUrl1 =
  15596. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15597. _url;
  15598. }
  15599. } else if (_chapterData[this.taskCount][0].type == 13) {
  15600. this.showType = 4;
  15601. this.pptImgUrl1 = _url;
  15602. } else if (_chapterData[this.taskCount][0].type == 6) {
  15603. this.showType = 1;
  15604. this.text = this.textList[this.taskCount][0];
  15605. }
  15606. }
  15607. }
  15608. this.isClickNav = 0;
  15609. if (
  15610. !_chapterData[this.taskCount].length ||
  15611. _chapterData[this.taskCount][0].type == 12
  15612. ) {
  15613. this.isClickNav = "";
  15614. this.showType = "";
  15615. }
  15616. this.vChapterData = _chapterData;
  15617. } else {
  15618. this.showType = 0;
  15619. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15620. .chapterInfo[0].taskJson;
  15621. var b = [
  15622. "AVI",
  15623. "NAVI",
  15624. "MPEG",
  15625. "ASF",
  15626. "MOV",
  15627. "WMV",
  15628. "3GP",
  15629. "RM",
  15630. "RMVB",
  15631. "FLV",
  15632. "F4V",
  15633. "H.264",
  15634. "H.265",
  15635. "REAL VIDEO",
  15636. "MKV",
  15637. "WebM",
  15638. "HDDVD",
  15639. "MP4",
  15640. "MPG",
  15641. "M4V",
  15642. "MGV",
  15643. "OGV",
  15644. "QTM",
  15645. "STR",
  15646. "AMC",
  15647. "DVX",
  15648. "EVO",
  15649. "DAT",
  15650. "OGG",
  15651. "OGM",
  15652. "MP3",
  15653. ];
  15654. let _chapterData = [];
  15655. for (var i = 0; i < a.length; i++) {
  15656. var c = a[i].chapterData;
  15657. this.vedio[i] = [];
  15658. this.textList[i] = [];
  15659. this.lineList[i] = [];
  15660. this.chapToolList[i] = [];
  15661. this.file[i] = [];
  15662. this.fileC[i] = [];
  15663. _chapterData[i] = c.filter((el) => {
  15664. return el.type != 12;
  15665. });
  15666. this.fileC[i] = c.filter((el) => {
  15667. return el.type == 12;
  15668. });
  15669. for (var j = 0; j < c.length; j++) {
  15670. if (c[j].type == 7) {
  15671. this.chapToolList[i].push(c[j]);
  15672. } else if (c[j].type == 8 || c[j].type == 14) {
  15673. this.lineList[i].push(c[j]);
  15674. } else if (c[j].type == 6) {
  15675. this.textList[i].push(c[j]);
  15676. } else {
  15677. if (
  15678. b.indexOf(
  15679. c[j].url
  15680. .split(".")
  15681. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15682. ) != -1
  15683. ) {
  15684. this.vedio[i].push(c[j]);
  15685. } else {
  15686. this.file[i].push(c[j]);
  15687. }
  15688. }
  15689. }
  15690. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15691. d.sources[0].src =
  15692. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15693. this.playerO[i] = d;
  15694. }
  15695. if (
  15696. _chapterData[this.taskCount].length &&
  15697. _chapterData[this.taskCount][0].type == 2
  15698. ) {
  15699. this.showType = 0;
  15700. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15701. } else {
  15702. if (_chapterData[this.taskCount].length > 0) {
  15703. let _url = _chapterData[this.taskCount][0].url;
  15704. if (
  15705. _chapterData[this.taskCount][0].type == 8 ||
  15706. _chapterData[this.taskCount][0].type == 14
  15707. ) {
  15708. this.showType = 2;
  15709. if (
  15710. _url.indexOf("https://") == -1 &&
  15711. _url.indexOf("http://") == -1
  15712. ) {
  15713. _url = "https://" + _url;
  15714. }
  15715. this.pptImgUrl1 = _url;
  15716. } else if (_chapterData[this.taskCount][0].type == 3) {
  15717. if (
  15718. _url
  15719. .split(".")
  15720. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15721. ) {
  15722. this.showType = 3;
  15723. this.pptImgUrl1 = _url;
  15724. } else if (
  15725. this.isAssetTypeAnImage(
  15726. _url
  15727. .split(".")
  15728. [_url.split(".").length - 1].toLocaleLowerCase()
  15729. )
  15730. ) {
  15731. this.showType = 4;
  15732. this.pptImgUrl1 = _url;
  15733. } else {
  15734. this.showType = 2;
  15735. this.pptImgUrl1 =
  15736. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15737. _url;
  15738. }
  15739. } else if (_chapterData[this.taskCount][0].type == 13) {
  15740. this.showType = 4;
  15741. this.pptImgUrl1 = _url;
  15742. } else if (_chapterData[this.taskCount][0].type == 6) {
  15743. this.showType = 1;
  15744. this.text = this.textList[this.taskCount][0];
  15745. }
  15746. }
  15747. }
  15748. this.isClickNav = 0;
  15749. if (
  15750. !_chapterData[this.taskCount].length ||
  15751. _chapterData[this.taskCount][0].type == 12
  15752. ) {
  15753. this.isClickNav = "";
  15754. this.showType = "";
  15755. }
  15756. this.vChapterData = _chapterData;
  15757. this.$forceUpdate();
  15758. }
  15759. // else {
  15760. // this.courseDetail = res.data[0][0];
  15761. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15762. // }
  15763. let _this = this;
  15764. if (_this.timer) {
  15765. clearInterval(_this.timer);
  15766. _this.timer = null;
  15767. }
  15768. if (_this.tcid) {
  15769. _this.getCourseGroup(gindex);
  15770. } else {
  15771. _this.selectSWorks(gindex);
  15772. }
  15773. _this.selectStudent();
  15774. _this.selectSLook();
  15775. _this.getPick();
  15776. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15777. _this.setCTask();
  15778. }
  15779. if (_this.dialogVisibleGroup) {
  15780. _this.groupJson =
  15781. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15782. _this.taskCount
  15783. ].toolChoose[_this.toolindex].groupJson;
  15784. }
  15785. _this.$nextTick(() => {
  15786. setTimeout(() => {
  15787. _this.checkEva();
  15788. }, 1000);
  15789. });
  15790. _this.timer = setInterval(function () {
  15791. // _this.getCourseDetail(2);
  15792. if (_this.tcid) {
  15793. _this.getCourseGroup(gindex);
  15794. } else {
  15795. _this.selectSWorks(gindex);
  15796. }
  15797. _this.selectStudent();
  15798. _this.selectSLook();
  15799. _this.getPick();
  15800. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15801. _this.setCTask();
  15802. }
  15803. if (_this.dialogVisibleGroup) {
  15804. _this.groupJson =
  15805. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15806. _this.taskCount
  15807. ].toolChoose[_this.toolindex].groupJson;
  15808. }
  15809. if (_this.tType == 4 || _this.ispzType == 4) {
  15810. _this.selectPz();
  15811. }
  15812. }, 5000);
  15813. _this.$nextTick(function () {
  15814. setTimeout(() => {
  15815. // var a =
  15816. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15817. // document.getElementsByClassName("vedioList")[0].style.height =
  15818. // a + "px";
  15819. // document.getElementsByClassName("navBox")[0].style.height =
  15820. // a - 40 + "px";
  15821. // if (_this.vedio[_this.taskCount].length > 0) {
  15822. // _this.vedioTime = [];
  15823. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15824. // _this.vedioTime[i] = document.getElementsByClassName(
  15825. // "vjs-duration-display"
  15826. // )[i].textContent;
  15827. // }
  15828. // }
  15829. }, 1000);
  15830. });
  15831. })
  15832. .catch((err) => {
  15833. loading.close();
  15834. console.error(err);
  15835. });
  15836. },
  15837. getCourseGroup(gindex) {
  15838. let params = {
  15839. cid: this.id,
  15840. classid: this.tcid ? this.tcid : "1",
  15841. };
  15842. this.ajax
  15843. .get(this.$store.state.api + "getCourseGroup", params)
  15844. .then((res) => {
  15845. if (res.data && res.data[0].length) {
  15846. if (!this.isGroup) {
  15847. let courseGroup = JSON.parse(res.data[0][0].group);
  15848. courseGroup.group = courseGroup.group.filter((el) => {
  15849. el.works = [];
  15850. return el;
  15851. });
  15852. if (courseGroup.isopen == 2) {
  15853. this.isGroup = false;
  15854. this.selectSWorks(gindex);
  15855. return;
  15856. }
  15857. this.courseGroup = courseGroup;
  15858. let groupPerson = res.data[1];
  15859. let group = JSON.parse(res.data[0][0].group).group;
  15860. let courseGroupStudent = {};
  15861. let courseGroupStudentUid = {};
  15862. for (var i = 0; i < group.length; i++) {
  15863. courseGroupStudent[group[i].id] = [];
  15864. courseGroupStudentUid[group[i].id] = [];
  15865. for (var j = 0; j < groupPerson.length; j++) {
  15866. if (groupPerson[j].groupCid == group[i].id) {
  15867. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15868. courseGroupStudentUid[group[i].id].push(
  15869. groupPerson[j].userid
  15870. );
  15871. }
  15872. }
  15873. }
  15874. this.courseGroupStudent = courseGroupStudent;
  15875. this.courseGroupStudentUid = courseGroupStudentUid;
  15876. }
  15877. if (this.courseGroup.isopen == 2) {
  15878. this.isGroup = false;
  15879. } else {
  15880. this.isGroup = true;
  15881. }
  15882. this.selectSWorks(gindex);
  15883. } else {
  15884. this.selectSWorks(gindex);
  15885. this.isGroup = false;
  15886. }
  15887. })
  15888. .catch((err) => {
  15889. // this.$message.error("网络不佳");
  15890. console.error(err);
  15891. });
  15892. },
  15893. setOperationTime() {
  15894. let _this = this;
  15895. if (_this.opertimer) {
  15896. clearInterval(_this.opertimer);
  15897. _this.opertimer = null;
  15898. }
  15899. _this.opertimer = setInterval(() => {
  15900. _this.setoTime("600");
  15901. }, 600000);
  15902. },
  15903. setoTime(time) {
  15904. let params = [
  15905. {
  15906. uid: this.userid,
  15907. cid: this.id,
  15908. type: "2",
  15909. time: time,
  15910. },
  15911. ];
  15912. this.ajax
  15913. .post(this.$store.state.api + "addOperationTimeT2", params)
  15914. .then((res) => {})
  15915. .catch((err) => {
  15916. console.error(err);
  15917. });
  15918. },
  15919. addPz(type, content) {
  15920. if (type == "1" && this.pzConText == "") {
  15921. this.$message.error("批注不能为空!");
  15922. return;
  15923. }
  15924. let params = [
  15925. {
  15926. cid: this.id,
  15927. uid: this.userid,
  15928. s: this.courseType,
  15929. t: this.taskCount,
  15930. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15931. type: type,
  15932. },
  15933. ];
  15934. this.ajax
  15935. .post(this.$store.state.api + "addPz2", params)
  15936. .then((res) => {
  15937. this.$message({
  15938. message: "添加成功",
  15939. type: "success",
  15940. });
  15941. this.pzConText = "";
  15942. this.addPzDialog = false;
  15943. this.selectPz();
  15944. })
  15945. .catch((err) => {
  15946. this.$message.error("添加失败");
  15947. console.error(err);
  15948. });
  15949. },
  15950. setReplyIndex(id, i) {
  15951. this.replyIndex = i;
  15952. this.replyPid = id;
  15953. this.replyDialogVisible = true;
  15954. },
  15955. addHf() {
  15956. if (this.reply == "") {
  15957. this.$message.error("回复不能为空!");
  15958. return;
  15959. }
  15960. let params = [
  15961. {
  15962. cid: this.id,
  15963. uid: this.userid,
  15964. s: this.courseType,
  15965. t: this.taskCount,
  15966. type: "1",
  15967. ct: 2,
  15968. pid: this.replyPid,
  15969. c: this.reply.replaceAll(/%/g, "%25"),
  15970. },
  15971. ];
  15972. this.ajax
  15973. .post(this.$store.state.api + "addHf", params)
  15974. .then((res) => {
  15975. this.reply = "";
  15976. this.$message({
  15977. message: "回复成功",
  15978. type: "success",
  15979. });
  15980. this.replyDialogVisible = false;
  15981. this.selectPz();
  15982. })
  15983. .catch((err) => {
  15984. this.$message.error("回复失败");
  15985. console.error(err);
  15986. });
  15987. },
  15988. deletePz(id) {
  15989. this.$confirm("确定删除此批注吗?", "提示", {
  15990. confirmButtonText: "确定",
  15991. cancelButtonText: "取消",
  15992. type: "warning",
  15993. })
  15994. .then(() => {
  15995. let params = [
  15996. {
  15997. id: id,
  15998. },
  15999. ];
  16000. this.ajax
  16001. .post(this.$store.state.api + "deletePz", params)
  16002. .then((res) => {
  16003. this.$message({
  16004. message: "删除成功",
  16005. type: "success",
  16006. });
  16007. this.selectPz();
  16008. })
  16009. .catch((err) => {
  16010. this.$message.error("网络异常");
  16011. console.error(err);
  16012. });
  16013. })
  16014. .catch(() => {});
  16015. },
  16016. deleteReply(id) {
  16017. this.$confirm("确定删除此回复吗?", "提示", {
  16018. confirmButtonText: "确定",
  16019. cancelButtonText: "取消",
  16020. type: "warning",
  16021. })
  16022. .then(() => {
  16023. let params = [
  16024. {
  16025. id: id,
  16026. },
  16027. ];
  16028. this.ajax
  16029. .post(this.$store.state.api + "deleteReply", params)
  16030. .then((res) => {
  16031. this.$message({
  16032. message: "删除成功",
  16033. type: "success",
  16034. });
  16035. this.selectPz();
  16036. })
  16037. .catch((err) => {
  16038. this.$message.error("网络异常");
  16039. console.error(err);
  16040. });
  16041. })
  16042. .catch(() => {});
  16043. },
  16044. setPz() {
  16045. if (this.ispzType == 4) {
  16046. this.ispzType = 0;
  16047. this.pzDialog = false;
  16048. return;
  16049. }
  16050. this.ispzType = 4;
  16051. this.pzDialog = true;
  16052. this.selectPz();
  16053. },
  16054. selectPz() {
  16055. let params = {
  16056. cid: this.id,
  16057. s: this.courseType,
  16058. t: this.taskCount,
  16059. type: this.pzStype,
  16060. uid: this.userid,
  16061. };
  16062. this.ajax
  16063. .get(this.$store.state.api + "selectPzListType", params)
  16064. .then((res) => {
  16065. this.pzList = res.data[0];
  16066. var a = res.data[1];
  16067. for (var i = 0; i < a.length; i++) {
  16068. for (var j = 0; j < this.pzList.length; j++) {
  16069. if (!this.pzList[j].hfList) {
  16070. this.pzList[j].hfList = [];
  16071. }
  16072. if (a[i].pid == this.pzList[j].id) {
  16073. this.pzList[j].hfList.push(a[i]);
  16074. }
  16075. }
  16076. }
  16077. })
  16078. .catch((err) => {
  16079. console.error(err);
  16080. });
  16081. },
  16082. // selectHf() {
  16083. // let params = {
  16084. // cid: this.id,
  16085. // s: this.courseType,
  16086. // t: this.taskCount,
  16087. // };
  16088. // this.ajax
  16089. // .get(this.$store.state.api + "selectHfList", params)
  16090. // .then((res) => {
  16091. // var a = res.data[0];
  16092. // for (var i = 0; i < a.length; i++) {
  16093. // for (var j = 0; j < this.pzList.length; j++) {
  16094. // if (!this.pzList[i].hfList) {
  16095. // this.pzList[i].hfList = [];
  16096. // }
  16097. // if (a[i].pid == this.pzList[j].id) {
  16098. // this.pzList[i].hfList.push(a[i]);
  16099. // }
  16100. // }
  16101. // }
  16102. // })
  16103. // .catch((err) => {
  16104. // console.error(err);
  16105. // });
  16106. // },
  16107. updateSLook() {
  16108. let params = {
  16109. sopen: this.sIsOpen == false ? 1 : 2,
  16110. cid: this.id,
  16111. };
  16112. this.ajax
  16113. .get(this.$store.state.api + "updateCourseSLook", params)
  16114. .then((res) => {
  16115. if (this.sIsOpen == true) {
  16116. this.$message({
  16117. message: "权限设置成功",
  16118. type: "success",
  16119. });
  16120. } else {
  16121. this.$message({
  16122. message: "权限关闭成功",
  16123. type: "success",
  16124. });
  16125. }
  16126. })
  16127. .catch((err) => {
  16128. console.error(err);
  16129. });
  16130. },
  16131. updateFollow() {
  16132. let params = [
  16133. {
  16134. sopen: this.IsFollow == false ? 1 : 2,
  16135. cid: this.id,
  16136. },
  16137. ];
  16138. this.ajax
  16139. .post(this.$store.state.api + "updateCourseFollow", params)
  16140. .then((res) => {
  16141. if (this.IsFollow == true) {
  16142. this.$message({
  16143. message: "开启成功",
  16144. type: "success",
  16145. });
  16146. } else {
  16147. this.$message({
  16148. message: "关闭成功",
  16149. type: "success",
  16150. });
  16151. }
  16152. this.setCTask();
  16153. })
  16154. .catch((err) => {
  16155. console.error(err);
  16156. });
  16157. },
  16158. setCTask() {
  16159. let params = [
  16160. {
  16161. sopen: this.courseType + "-" + this.taskCount,
  16162. cid: this.id,
  16163. },
  16164. ];
  16165. this.ajax
  16166. .post(this.$store.state.api + "updateCourseFollowC", params)
  16167. .then((res) => {})
  16168. .catch((err) => {
  16169. console.error(err);
  16170. });
  16171. },
  16172. updateLookOpen() {
  16173. let params = [
  16174. {
  16175. sopen: this.IsLookOpen == false ? 1 : 2,
  16176. cid: this.id,
  16177. },
  16178. ];
  16179. this.ajax
  16180. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16181. .then((res) => {
  16182. if (this.IsLookOpen == true) {
  16183. // if (this.courseType != 0 && this.taskCount != 0) {
  16184. // this.openTask(0, 0, "0-0");
  16185. // }
  16186. this.$message({
  16187. message: "权限设置成功",
  16188. type: "success",
  16189. });
  16190. } else {
  16191. this.$message({
  16192. message: "权限关闭成功",
  16193. type: "success",
  16194. });
  16195. }
  16196. this.getCourseState(2);
  16197. })
  16198. .catch((err) => {
  16199. console.error(err);
  16200. });
  16201. },
  16202. selectSLook() {
  16203. let params = {
  16204. cid: this.id,
  16205. };
  16206. this.ajax
  16207. .get(this.$store.state.api + "selectCourseSLook", params)
  16208. .then((res) => {
  16209. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16210. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16211. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16212. if (!this.IsLookOpen) {
  16213. this.setNavList();
  16214. } else {
  16215. this.getCourseState(1);
  16216. }
  16217. if (this.IsFollow && this.tType == 2) {
  16218. this.setContent2(false);
  16219. let _followC = res.data[0][0].followC.split("-");
  16220. if (
  16221. this.courseType != _followC[0] ||
  16222. this.taskCount != _followC[1]
  16223. ) {
  16224. this.navList[this.courseType].isOpen = false;
  16225. this.courseType = _followC[0];
  16226. this.navList[this.courseType].isOpen = true;
  16227. this.taskCount = parseInt(_followC[1]);
  16228. this.navId = res.data[0][0].followC;
  16229. document.scrollingElement.scrollTop = 0;
  16230. this.getCourseDetail(2);
  16231. }
  16232. }
  16233. })
  16234. .catch((err) => {
  16235. console.error(err);
  16236. });
  16237. },
  16238. setNavList() {
  16239. if (this.navList.length == 0) {
  16240. this.navList = [];
  16241. var copyList = [];
  16242. for (var l = 0; l < this.chapInfoList.length; l++) {
  16243. var q = this.chapInfoList[l].dyName;
  16244. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16245. var e;
  16246. copyList.push({
  16247. dyName: q,
  16248. isOpen: l === 0 ? true : false,
  16249. task: [],
  16250. });
  16251. for (var r = 0; r < w.length; r++) {
  16252. e = w[r].task;
  16253. if (this.chapInfoList[l].easy == 1) {
  16254. copyList[l].task.push({
  16255. taskName: q,
  16256. id: l + "-" + r,
  16257. isLook: w[r].isLook,
  16258. isOpen: r === 0 ? true : false,
  16259. tool: [],
  16260. });
  16261. } else {
  16262. copyList[l].task.push({
  16263. taskName: e,
  16264. id: l + "-" + r,
  16265. isLook: w[r].isLook,
  16266. isOpen: r === 0 ? true : false,
  16267. tool: [],
  16268. });
  16269. }
  16270. var t = w[r].toolChoose;
  16271. for (var k = 0; k < t.length; k++) {
  16272. var tool = t[k].tool[0];
  16273. copyList[l].task[r].tool.push({
  16274. tool: tool,
  16275. isTool: false,
  16276. });
  16277. }
  16278. // this.navId = this.navId ? this.navId : l + "-" + r;
  16279. // this.navId = l + "-" + r;
  16280. }
  16281. }
  16282. this.navList = copyList;
  16283. this.navList[0].isOpen = false;
  16284. this.navList[this.courseType].isOpen = true;
  16285. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16286. } else {
  16287. this.setNavList2();
  16288. }
  16289. },
  16290. setNavList2() {
  16291. for (var l = 0; l < this.chapInfoList.length; l++) {
  16292. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16293. for (var r = 0; r < w.length; r++) {
  16294. this.navList[l].task[r].isLook = w[r].isLook;
  16295. }
  16296. }
  16297. if (
  16298. this.IsLookOpen &&
  16299. !this.navList[this.courseType].task[this.taskCount].isLook
  16300. ) {
  16301. this.openTask(0, 0, "0-0");
  16302. }
  16303. this.$forceUpdate();
  16304. },
  16305. getCourseState(type) {
  16306. let params = {
  16307. cid: this.id,
  16308. };
  16309. this.ajax
  16310. .get(this.$store.state.api + "getCourseState", params)
  16311. .then((res) => {
  16312. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16313. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16314. this.setNavList();
  16315. this.$forceUpdate();
  16316. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16317. this.addCourseState(2);
  16318. } else {
  16319. this.addCourseState(1);
  16320. }
  16321. })
  16322. .catch((err) => {
  16323. console.error(err);
  16324. });
  16325. },
  16326. addCourseState(type) {
  16327. let _state = this.chapInfoList;
  16328. // this.courseType this.taskCount
  16329. if (type == 1 || type == 2) {
  16330. for (var i = 0; i < _state.length; i++) {
  16331. let el = _state[i].chapterInfo[0].taskJson;
  16332. for (var j = 0; j < el.length; j++) {
  16333. // if (i == 0 && j == 0) {
  16334. // el[j].isLook = true;
  16335. // } else {
  16336. // el[j].isLook = false;
  16337. // }
  16338. if (
  16339. this.courseType > i ||
  16340. (this.courseType == i && this.taskCount + 1 > j)
  16341. ) {
  16342. el[j].isLook = true;
  16343. } else {
  16344. el[j].isLook = false;
  16345. }
  16346. }
  16347. }
  16348. }
  16349. let params = [
  16350. {
  16351. cid: this.id,
  16352. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  16353. },
  16354. ];
  16355. this.ajax
  16356. .post(
  16357. this.$store.state.api +
  16358. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16359. params
  16360. )
  16361. .then((res) => {
  16362. if (this.IsLookOpen) {
  16363. this.setNavList();
  16364. }
  16365. if (type == 3 && type == 2) {
  16366. this.getCourseState(1);
  16367. }
  16368. })
  16369. .catch((err) => {
  16370. console.error(err);
  16371. });
  16372. },
  16373. getHomeWork() {
  16374. let params = {
  16375. cid: this.id,
  16376. stage: this.courseType,
  16377. task: this.taskCount,
  16378. uid: this.userid,
  16379. };
  16380. this.ajax
  16381. .get(this.$store.state.api + "selectWork", params)
  16382. .then((res) => {
  16383. if (res.data[0].length > 0) {
  16384. this.studyJuri = JSON.parse(res.data[0][0].content);
  16385. this.isNoHomeWork = true;
  16386. }
  16387. })
  16388. .catch((err) => {
  16389. console.error(err);
  16390. });
  16391. },
  16392. isAssetTypeAnImage(ext) {
  16393. return (
  16394. [
  16395. "png",
  16396. "jpg",
  16397. "jpeg",
  16398. "bmp",
  16399. "gif",
  16400. "webp",
  16401. "psd",
  16402. "svg",
  16403. "tiff",
  16404. ].indexOf(ext) !== -1
  16405. );
  16406. },
  16407. switchVideo(media) {
  16408. this.playerO = {};
  16409. this.playerOptions.poster = "";
  16410. this.playerOptions.sources[0].src = media;
  16411. this.playerO = this.playerOptions;
  16412. },
  16413. onPlayerPlay() {},
  16414. onPlayerTimeupdate(player) {
  16415. let gklog = player.cache_.currentTime; //当前播放的秒数
  16416. let a = player.cache_.duration; //视频的总时长
  16417. let gklog2 = parseInt(gklog);
  16418. // if(gklog2 == '3'){
  16419. // player.pause()
  16420. // setTimeout(()=>{
  16421. // player.currentTime(gklog2+1)
  16422. // player.play()
  16423. // },1000)
  16424. // }
  16425. console.log(" onPlayerTimeupdate!", gklog);
  16426. console.log(" onPlayerTimeupdate!", gklog2);
  16427. },
  16428. lookVedio(u, i) {
  16429. this.isClickNav = "";
  16430. // this.playerOptions.sources[0].src = u;
  16431. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16432. d.sources[0].src = u;
  16433. this.playerO[this.taskCount] = d;
  16434. this.showType = 0;
  16435. // this.isClickNav = "video" + i;
  16436. this.isClickNav = i;
  16437. this.$forceUpdate();
  16438. },
  16439. lookText(i, t) {
  16440. this.isClickNav = "";
  16441. // this.text = this.textList[i][t];
  16442. this.text = this.vChapterData[i][t];
  16443. // this.dialogVisible1 = true;
  16444. this.showType = 1;
  16445. // this.isClickNav = "text" + t;
  16446. this.isClickNav = t;
  16447. },
  16448. lookTools(i, t) {
  16449. this.chapTools = this.chapToolList[i][t];
  16450. this.dialogVisible2 = true;
  16451. },
  16452. openFile(f) {
  16453. this.pptImgUrl = "";
  16454. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16455. if (
  16456. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16457. -1
  16458. ) {
  16459. this.pptImgUrl =
  16460. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16461. this.showPDF = false;
  16462. this.dialogVisible3 = true;
  16463. } else if (
  16464. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16465. ) {
  16466. this.pptImgUrl = f;
  16467. this.showPDF = true;
  16468. this.dialogVisible3 = true;
  16469. }
  16470. },
  16471. openTable(f) {
  16472. this.tableJson = JSON.parse(f.works);
  16473. this.dialogVisibleTable2 = true;
  16474. },
  16475. openWord(f) {
  16476. this.tableJson = JSON.parse(f.works);
  16477. this.dialogVisibleTable3 = true;
  16478. },
  16479. doUrl(url, i) {
  16480. this.isClickNav = "";
  16481. this.pptImgUrl1 = "";
  16482. this.showType = 2;
  16483. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16484. url = "https://" + url;
  16485. }
  16486. this.pptImgUrl1 = "";
  16487. setTimeout(() => {
  16488. this.pptImgUrl1 = url;
  16489. }, 500);
  16490. // this.isClickNav = "line" + i;
  16491. this.isClickNav = i;
  16492. this.$forceUpdate();
  16493. },
  16494. checkPhoto(f, i) {
  16495. this.showType = 4;
  16496. this.pptImgUrl1 = f.url;
  16497. this.isClickNav = i;
  16498. this.$forceUpdate();
  16499. },
  16500. downFile(f, i) {
  16501. this.isClickNav = "";
  16502. this.pptImgUrl1 = "";
  16503. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16504. if (
  16505. a.indexOf(
  16506. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16507. ) != -1
  16508. ) {
  16509. this.pptImgUrl1 =
  16510. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16511. // this.dialogVisible3 = true;
  16512. this.showType = 2;
  16513. } else if (
  16514. this.isAssetTypeAnImage(
  16515. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16516. )
  16517. ) {
  16518. this.showType = 4;
  16519. this.pptImgUrl1 = f.url;
  16520. } else if (
  16521. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16522. "PDF"
  16523. ) {
  16524. this.pptImgUrl1 = f.url;
  16525. // this.dialogVisible3 = true;
  16526. this.showType = 3;
  16527. } else {
  16528. window.open(this.file[i].url);
  16529. }
  16530. // this.isClickNav = "word" + i;
  16531. this.isClickNav = i;
  16532. },
  16533. downFileList(i) {
  16534. window.open(this.noImgList[i].url);
  16535. },
  16536. openAddWork() {
  16537. this.dialogVisible = true;
  16538. },
  16539. addBzWorks() {
  16540. let params = [
  16541. {
  16542. uid: this.userid,
  16543. cid: this.id,
  16544. stage: this.courseType,
  16545. task: this.taskCount,
  16546. tool: this.toolindex,
  16547. content: JSON.stringify(this.eScore),
  16548. type: 6,
  16549. },
  16550. ];
  16551. this.ajax
  16552. .post(this.$store.state.api + "addCourseWorks", params)
  16553. .then((res) => {
  16554. this.$message({
  16555. message: "提交成功",
  16556. type: "success",
  16557. });
  16558. this.eScore = { eBzText: "", eStar: [] };
  16559. this.studentEvalDialogVisible = false;
  16560. this.selectSWorks();
  16561. })
  16562. .catch((err) => {
  16563. this.$message.error("提交失败");
  16564. console.error(err);
  16565. });
  16566. },
  16567. addBzWorksTeacher() {
  16568. let params = [
  16569. {
  16570. uid: this.sStudent.userid,
  16571. cid: this.id,
  16572. stage: this.courseType,
  16573. task: this.taskCount,
  16574. tool: this.toolindex,
  16575. content: JSON.stringify(this.eScore),
  16576. type: 6,
  16577. },
  16578. ];
  16579. this.ajax
  16580. .post(this.$store.state.api + "addCourseWorks", params)
  16581. .then((res) => {
  16582. this.$message({
  16583. message: "提交成功",
  16584. type: "success",
  16585. });
  16586. this.eScore = { eBzText: "", eStar: [] };
  16587. this.studentEvalDialogVisibleTeacher = false;
  16588. this.selectSWorks();
  16589. })
  16590. .catch((err) => {
  16591. this.$message.error("提交失败");
  16592. console.error(err);
  16593. });
  16594. },
  16595. addStudentAsk() {
  16596. if (!this.radio.length) {
  16597. this.$message.error("请选择选项");
  16598. return;
  16599. }
  16600. for (var i = 0; i < this.askJson.askCount; i++) {
  16601. if (
  16602. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16603. (this.radio[i] !== 0 && !this.radio[i])
  16604. ) {
  16605. this.$message.error("请选择选项");
  16606. return;
  16607. }
  16608. }
  16609. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16610. let params = [
  16611. {
  16612. uid: this.userid,
  16613. cid: this.id,
  16614. stage: this.courseType,
  16615. task: this.taskCount,
  16616. tool: this.toolindex,
  16617. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16618. type: 2,
  16619. },
  16620. ];
  16621. this.ajax
  16622. .post(this.$store.state.api + "addCourseWorks", params)
  16623. .then((res) => {
  16624. this.$message({
  16625. message: "提交成功",
  16626. type: "success",
  16627. });
  16628. this.askList = [];
  16629. this.dialogVisible5 = false;
  16630. this.selectStudent();
  16631. this.selectSWorks();
  16632. this.selectSLook();
  16633. })
  16634. .catch((err) => {
  16635. this.$message.error("提交失败");
  16636. console.error(err);
  16637. });
  16638. },
  16639. addStudentAskTeacher() {
  16640. if (!this.radio.length) {
  16641. this.$message.error("请选择选项");
  16642. return;
  16643. }
  16644. for (var i = 0; i < this.askJson.askCount; i++) {
  16645. if (
  16646. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16647. (this.radio[i] !== 0 && !this.radio[i])
  16648. ) {
  16649. this.$message.error("请选择选项");
  16650. return;
  16651. }
  16652. }
  16653. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16654. let params = [
  16655. {
  16656. uid: this.sStudent.userid,
  16657. cid: this.id,
  16658. stage: this.courseType,
  16659. task: this.taskCount,
  16660. tool: this.toolindex,
  16661. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16662. type: 2,
  16663. },
  16664. ];
  16665. this.ajax
  16666. .post(this.$store.state.api + "addCourseWorks", params)
  16667. .then((res) => {
  16668. this.$message({
  16669. message: "提交成功",
  16670. type: "success",
  16671. });
  16672. this.askList = [];
  16673. this.dialogVisible5Teacher = false;
  16674. this.selectStudent();
  16675. this.selectSWorks();
  16676. this.selectSLook();
  16677. })
  16678. .catch((err) => {
  16679. this.$message.error("提交失败");
  16680. console.error(err);
  16681. });
  16682. },
  16683. addStudentTest() {
  16684. if (!this.radio.length) {
  16685. this.$message.error("请选择选项");
  16686. return;
  16687. }
  16688. for (var i = 0; i < this.testJson.testCount; i++) {
  16689. if (
  16690. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16691. (this.radio[i] !== 0 && !this.radio[i])
  16692. ) {
  16693. this.$message.error("请选择选项");
  16694. return;
  16695. }
  16696. }
  16697. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16698. let params = [
  16699. {
  16700. uid: this.userid,
  16701. cid: this.id,
  16702. stage: this.courseType,
  16703. task: this.taskCount,
  16704. tool: this.toolindex,
  16705. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16706. type: 8,
  16707. },
  16708. ];
  16709. this.ajax
  16710. .post(this.$store.state.api + "addCourseWorks", params)
  16711. .then((res) => {
  16712. this.$message({
  16713. message: "提交成功",
  16714. type: "success",
  16715. });
  16716. this.askList = [];
  16717. this.dialogVisibleChoice = false;
  16718. this.selectStudent();
  16719. this.selectSWorks();
  16720. this.selectSLook();
  16721. })
  16722. .catch((err) => {
  16723. this.$message.error("提交失败");
  16724. console.error(err);
  16725. });
  16726. },
  16727. addStudentTestTeacher() {
  16728. if (!this.radio.length) {
  16729. this.$message.error("请选择选项");
  16730. return;
  16731. }
  16732. for (var i = 0; i < this.testJson.testCount; i++) {
  16733. if (
  16734. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16735. (this.radio[i] !== 0 && !this.radio[i])
  16736. ) {
  16737. this.$message.error("请选择选项");
  16738. return;
  16739. }
  16740. }
  16741. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16742. let params = [
  16743. {
  16744. uid: this.sStudent.userid,
  16745. cid: this.id,
  16746. stage: this.courseType,
  16747. task: this.taskCount,
  16748. tool: this.toolindex,
  16749. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16750. type: 8,
  16751. },
  16752. ];
  16753. this.ajax
  16754. .post(this.$store.state.api + "addCourseWorks", params)
  16755. .then((res) => {
  16756. this.$message({
  16757. message: "提交成功",
  16758. type: "success",
  16759. });
  16760. this.askList = [];
  16761. this.dialogVisibleChoiceTeacher = false;
  16762. this.selectStudent();
  16763. this.selectSWorks();
  16764. this.selectSLook();
  16765. })
  16766. .catch((err) => {
  16767. this.$message.error("提交失败");
  16768. console.error(err);
  16769. });
  16770. },
  16771. addWork() {
  16772. if (this.studyJuri[0].content == "") {
  16773. this.$message.error("请将信息填写完整");
  16774. return;
  16775. } else if (this.studyJuri[0].cover.length == 0) {
  16776. this.$message.error("请将信息填写完整");
  16777. return;
  16778. } else if (this.studyJuri[0].upVedio.length == 0) {
  16779. this.$message.error("请将信息填写完整");
  16780. return;
  16781. }
  16782. if (this.isNoHomeWork) {
  16783. this.$confirm(
  16784. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16785. "提示",
  16786. {
  16787. confirmButtonText: "确定",
  16788. cancelButtonText: "取消",
  16789. type: "warning",
  16790. }
  16791. )
  16792. .then(() => {
  16793. let params = [
  16794. {
  16795. uid: this.userid,
  16796. cid: this.id,
  16797. stage: this.courseType,
  16798. task: this.taskCount,
  16799. content: JSON.stringify(this.studyJuri),
  16800. },
  16801. ];
  16802. this.ajax
  16803. .post(this.$store.state.api + "addWorks", params)
  16804. .then((res) => {
  16805. this.$message({
  16806. message: "提交成功",
  16807. type: "success",
  16808. });
  16809. this.isNoHomeWork = true;
  16810. this.dialogVisible = false;
  16811. })
  16812. .catch((err) => {
  16813. this.$message.error("提交失败");
  16814. console.error(err);
  16815. });
  16816. })
  16817. .catch(() => {});
  16818. } else {
  16819. let params = [
  16820. {
  16821. uid: this.userid,
  16822. cid: this.id,
  16823. stage: this.courseType,
  16824. task: this.taskCount,
  16825. content: JSON.stringify(this.studyJuri),
  16826. },
  16827. ];
  16828. this.ajax
  16829. .post(this.$store.state.api + "addWorks", params)
  16830. .then((res) => {
  16831. this.$message({
  16832. message: "提交成功",
  16833. type: "success",
  16834. });
  16835. this.isNoHomeWork = true;
  16836. this.dialogVisible = false;
  16837. })
  16838. .catch((err) => {
  16839. this.$message.error("提交失败");
  16840. console.error(err);
  16841. });
  16842. }
  16843. },
  16844. selectCount() {
  16845. let params = {
  16846. cid: this.id,
  16847. chid: this.courseType,
  16848. uid: this.userid,
  16849. };
  16850. this.ajax
  16851. .get(this.$store.state.api + "selectToolsCount", params)
  16852. .then((res) => {
  16853. for (var i = 0; i < res.data[0].length; i++) {
  16854. if (res.data[0][i].tools == 1) {
  16855. this.wbCount = res.data[0][i].count;
  16856. } else if (res.data[0][i].tools == 2) {
  16857. this.wordCount = res.data[0][i].count;
  16858. } else if (res.data[0][i].tools == 3) {
  16859. this.mindCount = res.data[0][i].count;
  16860. } else if (res.data[0][i].tools == 4) {
  16861. this.askCount = res.data[0][i].count;
  16862. } else if (res.data[0][i].tools == 6) {
  16863. this.noteCount = res.data[0][i].count;
  16864. } else if (res.data[0][i].tools == 7) {
  16865. this.mindNetWorkCount = res.data[0][i].count;
  16866. } else if (res.data[0][i].tools == 8) {
  16867. this.libraryCount = res.data[0][i].count;
  16868. } else if (res.data[0][i].tools == 16) {
  16869. this.workCount = res.data[0][i].count;
  16870. } else if (res.data[0][i].tools == 10) {
  16871. this.timeCount = res.data[0][i].count;
  16872. } else if (res.data[0][i].tools == 15) {
  16873. this.answerCount = res.data[0][i].count;
  16874. } else if (res.data[0][i].tools == 18) {
  16875. this.trainCount = res.data[0][i].count;
  16876. }
  16877. }
  16878. })
  16879. .catch((err) => {
  16880. console.error(err);
  16881. });
  16882. },
  16883. openTools(t, i, index, c, sName,id) {
  16884. var z = JSON.parse(c);
  16885. this.noteName = sName;
  16886. if (t == 4) {
  16887. this.radio = [];
  16888. this.isAnswer = false;
  16889. let b = z[0].anwer;
  16890. this.radio = b;
  16891. this.askJson = z[0].askJson;
  16892. this.isAnswer = true;
  16893. this.dialogVisible5 = true;
  16894. } else if (t == 45) {
  16895. this.radio = [];
  16896. this.isAnswer = false;
  16897. let b = z[0].anwer;
  16898. this.radio = b;
  16899. this.testJson = z[0].testJson;
  16900. this.isAnswer = true;
  16901. this.dialogVisibleChoice = true;
  16902. }else if(t == 69){
  16903. this.oldEnglishJson1 = {}
  16904. this.oldEnglishJson = {}
  16905. this.englishList1 = {}
  16906. this.newEngIndex = -1;
  16907. this.isNoUserid = false;
  16908. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16909. .toolChoose[i].englishList;
  16910. this.oldEnglishJson = z;
  16911. this.engWid = id;
  16912. this.newEnglishList = { engTitle:"",engText:"" }
  16913. this.newEnglishList1 = []
  16914. this.selectEngC(id,z);
  16915. }
  16916. // else if (t == 15) {
  16917. // this.answerQ = "";
  16918. // this.questionAnswer = "";
  16919. // this.answerQ = z[0].answerTitle;
  16920. // this.questionAnswer = z[0].answer;
  16921. // this.answerDialogVisible = true;
  16922. // }
  16923. },
  16924. fastText(p, t) {
  16925. if (t == 1) {
  16926. this.commentText += p;
  16927. } else {
  16928. this.eScore.eBzText += p;
  16929. }
  16930. },
  16931. addTools(t, i, index) {
  16932. var a = 0;
  16933. // this.taskCount = index;
  16934. this.toolindex = i;
  16935. if (t == 1) {
  16936. if (this.wbCount > 0) {
  16937. this.updateCount(this.wbCount, t);
  16938. } else {
  16939. this.wbCount++;
  16940. a = this.wbCount;
  16941. this.toolsCount(a, t);
  16942. }
  16943. window.parent.postMessage(
  16944. {
  16945. tools: "1",
  16946. cid: this.id,
  16947. stage: this.courseType,
  16948. task: this.taskCount,
  16949. tool: i,
  16950. },
  16951. "*"
  16952. );
  16953. } else if (t == 2) {
  16954. if (this.wordCount > 0) {
  16955. this.updateCount(this.wordCount, t);
  16956. } else {
  16957. this.wordCount++;
  16958. a = this.wordCount;
  16959. this.toolsCount(a, t);
  16960. }
  16961. window.parent.postMessage({ tools: "2" }, "*");
  16962. } else if (t == 3) {
  16963. if (this.mindCount > 0) {
  16964. this.updateCount(this.mindCount, t);
  16965. } else {
  16966. this.mindCount++;
  16967. a = this.mindCount;
  16968. this.toolsCount(a, t);
  16969. }
  16970. window.parent.postMessage(
  16971. {
  16972. tools: "3",
  16973. cid: this.id,
  16974. stage: this.courseType,
  16975. task: this.taskCount,
  16976. tool: i,
  16977. },
  16978. "*"
  16979. );
  16980. } else if (t == 4) {
  16981. this.radio = [];
  16982. this.noteName = "";
  16983. this.isAnswer = false;
  16984. if (this.askCount > 0) {
  16985. this.updateCount(this.askCount, t);
  16986. } else {
  16987. this.askCount++;
  16988. a = this.askCount;
  16989. this.toolsCount(a, t);
  16990. }
  16991. if (!this.dialogVisible2) {
  16992. this.askJson.askJson =
  16993. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16994. index
  16995. ].toolChoose[i].askJson;
  16996. this.askJson.askTitle =
  16997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16998. index
  16999. ].toolChoose[i].askTitle;
  17000. this.askJson.askCount =
  17001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17002. index
  17003. ].toolChoose[i].askCount;
  17004. } else {
  17005. this.askJson.askJson = this.chapTools.askJson.askJson;
  17006. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17007. this.askJson.askCount = this.chapTools.askJson.askCount;
  17008. }
  17009. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17010. if (this.askJson.askJson[k].type == "2") {
  17011. this.radio.push([]);
  17012. } else {
  17013. this.radio.push("");
  17014. }
  17015. }
  17016. this.dialogVisible5 = true;
  17017. // window.parent.postMessage({ tools: "4" }, "*");
  17018. } else if (t == 45) {
  17019. this.noteName = "";
  17020. this.radio = [];
  17021. this.isAnswer = false;
  17022. if (this.askCount > 0) {
  17023. this.updateCount(this.askCount, t);
  17024. } else {
  17025. this.askCount++;
  17026. a = this.askCount;
  17027. this.toolsCount(a, t);
  17028. }
  17029. this.testJson =
  17030. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17031. index
  17032. ].toolChoose[i].testJson;
  17033. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17034. if (this.testJson.testJson[k].type == "2") {
  17035. this.radio.push([]);
  17036. } else {
  17037. this.radio.push("");
  17038. }
  17039. }
  17040. this.dialogVisibleChoice = true;
  17041. // window.parent.postMessage({ tools: "4" }, "*");
  17042. } else if (t == 5) {
  17043. if (this.scoreCount > 0) {
  17044. this.updateCount(this.scoreCount, t);
  17045. } else {
  17046. this.scoreCount++;
  17047. a = this.scoreCount;
  17048. this.toolsCount(a, t);
  17049. }
  17050. this.dialogVisible4 = true;
  17051. // window.parent.postMessage({ tools: "5" }, "*");
  17052. } else if (t == 6) {
  17053. if (this.noteCount > 0) {
  17054. this.updateCount(this.noteCount, t);
  17055. } else {
  17056. this.noteCount++;
  17057. a = this.noteCount;
  17058. this.toolsCount(a, t);
  17059. }
  17060. window.parent.postMessage(
  17061. {
  17062. tools: "6",
  17063. cid: this.id,
  17064. stage: this.courseType,
  17065. task: this.taskCount,
  17066. tool: i,
  17067. },
  17068. "*"
  17069. );
  17070. } else if (t == 7) {
  17071. if (this.mindNetWorkCount > 0) {
  17072. this.updateCount(this.mindNetWorkCount, t);
  17073. } else {
  17074. this.mindNetWorkCount++;
  17075. a = this.mindNetWorkCount;
  17076. this.toolsCount(a, t);
  17077. }
  17078. window.parent.postMessage(
  17079. {
  17080. tools: "7",
  17081. cid: this.id,
  17082. stage: this.courseType,
  17083. task: this.taskCount,
  17084. tool: i,
  17085. },
  17086. "*"
  17087. );
  17088. } else if (t == 16) {
  17089. if (this.workCount > 0) {
  17090. this.updateCount(this.workCount, t);
  17091. } else {
  17092. this.workCount++;
  17093. a = this.workCount;
  17094. this.toolsCount(a, t);
  17095. }
  17096. this.dialogVisible = true;
  17097. } else if (t == 50) {
  17098. if (this.tType == 2) {
  17099. this.$message.error("不支持学生使用");
  17100. return;
  17101. }
  17102. this.plworkFile = [];
  17103. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17104. if (!this.uploadCid) {
  17105. this.$message.error(
  17106. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17107. );
  17108. return;
  17109. }
  17110. // this.uploadCid =
  17111. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17112. // index
  17113. // ].toolChoose[i].uploadJson[0];
  17114. this.selectUploadStudent(2);
  17115. } else if (t == 8) {
  17116. if (this.libraryCount > 0) {
  17117. this.updateCount(this.libraryCount, t);
  17118. } else {
  17119. this.libraryCount++;
  17120. a = this.libraryCount;
  17121. this.toolsCount(a, t);
  17122. }
  17123. window.parent.postMessage({ tools: "8" }, "*");
  17124. } else if (t == 17) {
  17125. if (this.libraryCount > 0) {
  17126. this.updateCount(this.libraryCount, t);
  17127. } else {
  17128. this.libraryCount++;
  17129. a = this.libraryCount;
  17130. this.toolsCount(a, t);
  17131. }
  17132. window.parent.postMessage({ tools: "17" }, "*");
  17133. } else if (t == 18) {
  17134. if (this.trainCount > 0) {
  17135. this.updateCount(this.trainCount, t);
  17136. } else {
  17137. this.trainCount++;
  17138. a = this.trainCount;
  17139. this.toolsCount(a, t);
  17140. }
  17141. window.parent.postMessage({ tools: "18" }, "*");
  17142. } else if (t == 10) {
  17143. if (this.timeCount > 0) {
  17144. this.updateCount(this.timeCount, t);
  17145. } else {
  17146. this.timeCount++;
  17147. a = this.timeCount;
  17148. this.toolsCount(a, t);
  17149. }
  17150. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17151. .taskJson[index].toolChoose[i].preTime
  17152. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17153. .toolChoose[i].preTime
  17154. : "";
  17155. this.timeDialogVisible = true;
  17156. } else if (t == 15) {
  17157. this.answerQ = "";
  17158. this.questionAnswer = "";
  17159. if (this.answerCount > 0) {
  17160. this.updateCount(this.answerCount, t);
  17161. } else {
  17162. this.answerCount++;
  17163. a = this.answerCount;
  17164. this.toolsCount(a, t);
  17165. }
  17166. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17167. .taskJson[index].toolChoose[i].answerQ
  17168. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17169. .toolChoose[i].answerQ
  17170. : "";
  17171. this.answerDialogVisible = true;
  17172. } else if (t == 21) {
  17173. window.parent.postMessage({ tools: "21" }, "*");
  17174. } else if (t == 22) {
  17175. window.parent.postMessage({ tools: "22" }, "*");
  17176. } else if (t == 23) {
  17177. window.parent.postMessage({ tools: "23" }, "*");
  17178. } else if (t == 24) {
  17179. window.parent.postMessage({ tools: "24" }, "*");
  17180. } else if (t == 25) {
  17181. window.parent.postMessage({ tools: "25" }, "*");
  17182. } else if (t == 31) {
  17183. window.parent.postMessage({ tools: "31" }, "*");
  17184. } else if (t == 28) {
  17185. window.parent.postMessage({ tools: "28" }, "*");
  17186. } else if (t == 37) {
  17187. window.parent.postMessage({ tools: "37" }, "*");
  17188. } else if (t == 38) {
  17189. window.parent.postMessage({ tools: "38" }, "*");
  17190. } else if (t == 39) {
  17191. window.parent.postMessage({ tools: "39" }, "*");
  17192. } else if (t == 32) {
  17193. window.parent.postMessage({ tools: "32" }, "*");
  17194. } else if (t == 66) {
  17195. window.parent.postMessage({ tools: "66" }, "*");
  17196. } else if (t == 67) {
  17197. window.parent.postMessage({ tools: "67" }, "*");
  17198. } else if (t == 68) {
  17199. window.parent.postMessage({ tools: "68" }, "*");
  17200. } else if (t == 57) {
  17201. // window.parent.postMessage({ tools: "57" }, "*");
  17202. window.parent.postMessage(
  17203. {
  17204. tools: "57u",
  17205. cid: this.id,
  17206. stage: this.courseType,
  17207. task: this.taskCount,
  17208. tool: i,
  17209. },
  17210. "*"
  17211. );
  17212. } else if (t == 58) {
  17213. window.parent.postMessage({ tools: "58" }, "*");
  17214. } else if (t == 59) {
  17215. window.parent.postMessage({ tools: "59" }, "*");
  17216. } else if (t == 60) {
  17217. window.parent.postMessage({ tools: "60" }, "*");
  17218. } else if (t == 61) {
  17219. window.parent.postMessage({ tools: "61" }, "*");
  17220. } else if (t == 63) {
  17221. window.parent.postMessage({ tools: "63" }, "*");
  17222. } else if (t == 69) {
  17223. if (this.worksStudent[i].length) {
  17224. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17225. if (this.userid == this.worksStudent[i][k].userid) {
  17226. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17227. break;
  17228. } else {
  17229. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17230. }
  17231. }
  17232. } else {
  17233. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17234. }
  17235. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17236. .taskJson[index].toolChoose[i].englishList
  17237. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17238. .toolChoose[i].englishList
  17239. : {};
  17240. this.englishToolIndex = i;
  17241. this.engDialogVisible = true;
  17242. } else if (t == 65) {
  17243. if (this.tType == 2) {
  17244. this.$message.error("不支持学生使用");
  17245. return;
  17246. }
  17247. this.uploadCid = this.tcid;
  17248. if (!this.uploadCid) {
  17249. this.$message.error(
  17250. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17251. );
  17252. return;
  17253. }
  17254. this.selectPickStudent();
  17255. } else if (t == 26) {
  17256. window.parent.postMessage(
  17257. {
  17258. tools: "26",
  17259. cid: this.id,
  17260. stage: this.courseType,
  17261. task: this.taskCount,
  17262. tool: i,
  17263. },
  17264. "*"
  17265. );
  17266. } else if (t == 40) {
  17267. if (this.evalCount > 0) {
  17268. this.updateCount(this.evalCount, t);
  17269. } else {
  17270. this.evalCount++;
  17271. a = this.evalCount;
  17272. this.toolsCount(a, t);
  17273. }
  17274. this.eScore = { eBzText: "", eStar: [] };
  17275. if (this.worksStudent[i].length) {
  17276. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17277. if (this.userid == this.worksStudent[i][k].userid) {
  17278. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17279. this.rateJson =
  17280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17281. index
  17282. ].toolChoose[i].rateJson;
  17283. break;
  17284. } else {
  17285. this.rateJson =
  17286. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17287. index
  17288. ].toolChoose[i].rateJson;
  17289. }
  17290. }
  17291. } else {
  17292. this.rateJson =
  17293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17294. index
  17295. ].toolChoose[i].rateJson;
  17296. }
  17297. this.isStar = false;
  17298. this.studentEvalDialogVisible = true;
  17299. } else if (t == 41) {
  17300. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17301. .taskJson[index].toolChoose[i].selectJson
  17302. ? JSON.parse(
  17303. JSON.stringify(
  17304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17305. index
  17306. ].toolChoose[i].selectJson
  17307. )
  17308. )
  17309. : { url: "", select: [], answer: [] };
  17310. if (this.worksStudent[i].length) {
  17311. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17312. if (this.userid == this.worksStudent[i][k].userid) {
  17313. var a = this.worksStudent[i][k].works.split(",");
  17314. for (var ki = 0; ki < a.length; ki++) {
  17315. a[ki] = parseInt(a[ki]);
  17316. }
  17317. this.selectAnswer = {
  17318. answer: a,
  17319. stu: this.worksStudent[i][k].sName,
  17320. };
  17321. break;
  17322. } else {
  17323. this.selectAnswer = { answer: [], stu: "" };
  17324. }
  17325. }
  17326. } else {
  17327. this.selectAnswer = { answer: [], stu: "" };
  17328. }
  17329. this.isSelect = false;
  17330. this.dialogVisibleSelect = true;
  17331. } else if (t == 44) {
  17332. window.parent.postMessage({ tools: "44" }, "*");
  17333. } else if (t == 47) {
  17334. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17335. .taskJson[index].toolChoose[i].sentenceList
  17336. ? JSON.parse(
  17337. JSON.stringify(
  17338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17339. index
  17340. ].toolChoose[i].sentenceList
  17341. )
  17342. )
  17343. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17344. for (var q = 0; q < this.sentenceList.length; q++) {
  17345. this.sentenceList[q].chooseSenList = [];
  17346. this.sentenceList[q].addChangeSen = [];
  17347. this.sentenceList[q].addChangeSen = JSON.parse(
  17348. JSON.stringify(this.sentenceList[q].addSentence)
  17349. );
  17350. this.sentenceList[q].chooseSenList.length =
  17351. this.sentenceList[q].rightAnswer.length;
  17352. }
  17353. this.dialogVisibleSentence = true;
  17354. } else if (t == 48) {
  17355. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17356. .taskJson[index].toolChoose[i].tableJson
  17357. ? JSON.parse(
  17358. JSON.stringify(
  17359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17360. index
  17361. ].toolChoose[i].tableJson
  17362. )
  17363. )
  17364. : { text: "" };
  17365. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17366. if (this.worksStudent[i].length) {
  17367. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17368. if (this.userid == this.worksStudent[i][k].userid) {
  17369. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17370. break;
  17371. }
  17372. }
  17373. }
  17374. this.dialogVisibleTable = true;
  17375. } else if (t == 52) {
  17376. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17377. .taskJson[index].toolChoose[i].wordJson
  17378. ? JSON.parse(
  17379. JSON.stringify(
  17380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17381. index
  17382. ].toolChoose[i].wordJson
  17383. )
  17384. )
  17385. : { text: "" };
  17386. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17387. if (this.worksStudent[i].length) {
  17388. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17389. if (this.userid == this.worksStudent[i][k].userid) {
  17390. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17391. break;
  17392. }
  17393. }
  17394. }
  17395. this.dialogVisibleWord = true;
  17396. } else if (t == 49) {
  17397. this.groupJson =
  17398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17399. index
  17400. ].toolChoose[i].groupJson;
  17401. this.islock = this.groupJson.islock == 1 ? true : false;
  17402. this.dialogVisibleGroup = true;
  17403. } else if (t == 62) {
  17404. this.videoJson =
  17405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17406. index
  17407. ].toolChoose[i].videoJson;
  17408. this.dialogVisibleVideo = true;
  17409. }
  17410. },
  17411. teacherWorkSubmit(t, i, index, s) {
  17412. this.sStudent = s;
  17413. this.toolindex = i;
  17414. this.sTool = t;
  17415. if (this.tType !== "1" && this.tType !== "4") {
  17416. return;
  17417. }
  17418. if (t == 16 || t == 32 || t == 50) {
  17419. this.dialogVisibleWorks = true;
  17420. } else if (t == 15) {
  17421. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17422. .taskJson[index].toolChoose[i].answerQ
  17423. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17424. .toolChoose[i].answerQ
  17425. : "";
  17426. this.questionAnswer = "";
  17427. this.answerDialogVisibleTeacher = true; //问答
  17428. } else if (t == 52) {
  17429. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17430. .taskJson[index].toolChoose[i].wordJson
  17431. ? JSON.parse(
  17432. JSON.stringify(
  17433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17434. index
  17435. ].toolChoose[i].wordJson
  17436. )
  17437. )
  17438. : { text: "" };
  17439. if (this.worksStudent[i].length) {
  17440. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17441. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17442. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17443. break;
  17444. }
  17445. }
  17446. }
  17447. this.dialogVisibleWordTeacher = true; //文档
  17448. } else if (t == 4) {
  17449. this.radio = [];
  17450. this.noteName = "";
  17451. this.isAnswer = false;
  17452. if (this.askCount > 0) {
  17453. this.updateCount(this.askCount, t);
  17454. } else {
  17455. this.askCount++;
  17456. a = this.askCount;
  17457. this.toolsCount(a, t);
  17458. }
  17459. if (!this.dialogVisible2) {
  17460. this.askJson.askJson =
  17461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17462. index
  17463. ].toolChoose[i].askJson;
  17464. this.askJson.askTitle =
  17465. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17466. index
  17467. ].toolChoose[i].askTitle;
  17468. this.askJson.askCount =
  17469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17470. index
  17471. ].toolChoose[i].askCount;
  17472. } else {
  17473. this.askJson.askJson = this.chapTools.askJson.askJson;
  17474. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17475. this.askJson.askCount = this.chapTools.askJson.askCount;
  17476. }
  17477. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17478. if (this.askJson.askJson[k].type == "2") {
  17479. this.radio.push([]);
  17480. } else {
  17481. this.radio.push("");
  17482. }
  17483. }
  17484. this.dialogVisible5Teacher = true;
  17485. } else if (t == 45) {
  17486. this.noteName = "";
  17487. this.radio = [];
  17488. this.isAnswer = false;
  17489. if (this.askCount > 0) {
  17490. this.updateCount(this.askCount, t);
  17491. } else {
  17492. this.askCount++;
  17493. a = this.askCount;
  17494. this.toolsCount(a, t);
  17495. }
  17496. this.testJson =
  17497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17498. index
  17499. ].toolChoose[i].testJson;
  17500. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17501. if (this.testJson.testJson[k].type == "2") {
  17502. this.radio.push([]);
  17503. } else {
  17504. this.radio.push("");
  17505. }
  17506. }
  17507. this.dialogVisibleChoiceTeacher = true;
  17508. } else if (t == 41) {
  17509. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17510. .taskJson[index].toolChoose[i].selectJson
  17511. ? JSON.parse(
  17512. JSON.stringify(
  17513. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17514. index
  17515. ].toolChoose[i].selectJson
  17516. )
  17517. )
  17518. : { url: "", select: [], answer: [] };
  17519. if (this.worksStudent[i].length) {
  17520. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17521. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17522. var a = this.worksStudent[i][k].works.split(",");
  17523. for (var ki = 0; ki < a.length; ki++) {
  17524. a[ki] = parseInt(a[ki]);
  17525. }
  17526. this.selectAnswer = {
  17527. answer: a,
  17528. stu: this.worksStudent[i][k].sName,
  17529. };
  17530. break;
  17531. } else {
  17532. this.selectAnswer = { answer: [], stu: "" };
  17533. }
  17534. }
  17535. } else {
  17536. this.selectAnswer = { answer: [], stu: "" };
  17537. }
  17538. this.isSelect = false;
  17539. this.dialogVisibleSelectTeacher = true;
  17540. } else if (t == 47) {
  17541. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17542. .taskJson[index].toolChoose[i].sentenceList
  17543. ? JSON.parse(
  17544. JSON.stringify(
  17545. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17546. index
  17547. ].toolChoose[i].sentenceList
  17548. )
  17549. )
  17550. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17551. for (var q = 0; q < this.sentenceList.length; q++) {
  17552. this.sentenceList[q].chooseSenList = [];
  17553. this.sentenceList[q].addChangeSen = [];
  17554. this.sentenceList[q].addChangeSen = JSON.parse(
  17555. JSON.stringify(this.sentenceList[q].addSentence)
  17556. );
  17557. this.sentenceList[q].chooseSenList.length =
  17558. this.sentenceList[q].rightAnswer.length;
  17559. }
  17560. this.dialogVisibleSentenceTeacher = true;
  17561. } else if (t == 48) {
  17562. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17563. .taskJson[index].toolChoose[i].tableJson
  17564. ? JSON.parse(
  17565. JSON.stringify(
  17566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17567. index
  17568. ].toolChoose[i].tableJson
  17569. )
  17570. )
  17571. : { text: "" };
  17572. if (this.worksStudent[i].length) {
  17573. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17574. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17575. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17576. break;
  17577. }
  17578. }
  17579. }
  17580. this.dialogVisibleTableTeacher = true;
  17581. } else if (t == 40) {
  17582. if (this.evalCount > 0) {
  17583. this.updateCount(this.evalCount, t);
  17584. } else {
  17585. this.evalCount++;
  17586. a = this.evalCount;
  17587. this.toolsCount(a, t);
  17588. }
  17589. this.eScore = { eBzText: "", eStar: [] };
  17590. if (this.worksStudent[i].length) {
  17591. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17592. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17593. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17594. this.rateJson =
  17595. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17596. index
  17597. ].toolChoose[i].rateJson;
  17598. break;
  17599. } else {
  17600. this.rateJson =
  17601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17602. index
  17603. ].toolChoose[i].rateJson;
  17604. }
  17605. }
  17606. } else {
  17607. this.rateJson =
  17608. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17609. index
  17610. ].toolChoose[i].rateJson;
  17611. }
  17612. this.isStar = false;
  17613. this.studentEvalDialogVisibleTeacher = true;
  17614. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17615. window.parent.postMessage(
  17616. {
  17617. tools: t + "teacher",
  17618. cid: this.id,
  17619. stage: this.courseType,
  17620. task: this.taskCount,
  17621. tool: i,
  17622. student: this.sStudent,
  17623. },
  17624. "*"
  17625. );
  17626. }
  17627. },
  17628. openCocoPi(tool, i, uid, uname) {
  17629. let student = {
  17630. userid: uid,
  17631. student: uname,
  17632. };
  17633. if (tool == 57) {
  17634. window.parent.postMessage(
  17635. {
  17636. tools: tool + "teacher",
  17637. cid: this.id,
  17638. stage: this.courseType,
  17639. task: this.taskCount,
  17640. tool: i,
  17641. student: student,
  17642. },
  17643. "*"
  17644. );
  17645. }
  17646. },
  17647. setRightAnswer(s, i, j) {
  17648. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17649. if (
  17650. this.sentenceList[i].chooseSenList[q] == undefined ||
  17651. this.sentenceList[i].chooseSenList[q] == ""
  17652. ) {
  17653. this.sentenceList[i].chooseSenList[q] = s;
  17654. this.sentenceList[i].addChangeSen[j] = "";
  17655. break;
  17656. }
  17657. }
  17658. this.$forceUpdate();
  17659. },
  17660. returnCard(r, i, j) {
  17661. var a = this.sentenceList[i].addSentence.indexOf(r);
  17662. this.sentenceList[i].chooseSenList[j] = "";
  17663. this.sentenceList[i].addChangeSen[a] = r;
  17664. this.$forceUpdate();
  17665. },
  17666. // addSentenceTool() {
  17667. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17668. // this.taskCount
  17669. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17670. // this.sentenceList = [
  17671. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17672. // ];
  17673. // this.dialogVisibleSentence = false;
  17674. // },
  17675. toolsCount(a, t) {
  17676. let params = {
  17677. cid: this.id,
  17678. chid: this.courseType,
  17679. uid: this.userid,
  17680. tid: t,
  17681. count: a,
  17682. };
  17683. this.ajax
  17684. .get(this.$store.state.api + "insertToolsCount", params)
  17685. .then((res) => {
  17686. this.selectCount();
  17687. })
  17688. .catch((err) => {
  17689. console.error(err);
  17690. });
  17691. },
  17692. updateCount(c, t) {
  17693. c++;
  17694. let params = {
  17695. cid: this.id,
  17696. chid: this.courseType,
  17697. uid: this.userid,
  17698. tid: t,
  17699. count: c,
  17700. };
  17701. this.ajax
  17702. .get(this.$store.state.api + "updateToolsCount", params)
  17703. .then((res) => {
  17704. this.selectCount();
  17705. })
  17706. .catch((err) => {
  17707. console.error(err);
  17708. });
  17709. },
  17710. checkEva() {
  17711. if (this.evalua != "") {
  17712. for (var i = 0; i < this.evaJuri.length; i++) {
  17713. if (this.evalua == this.evaJuri[i].id) {
  17714. this.eTitle = this.evaJuri[i].title;
  17715. this.eJson = JSON.parse(this.evaJuri[i].content);
  17716. }
  17717. }
  17718. this.$forceUpdate();
  17719. setTimeout(() => {
  17720. this.setMindData();
  17721. }, 0);
  17722. }
  17723. },
  17724. selectEva() {
  17725. let params = {
  17726. oid: this.oid,
  17727. };
  17728. this.ajax
  17729. .get(this.$store.state.api + "selectAllEvaluation", params)
  17730. .then((res) => {
  17731. this.evaJuri = res.data[0];
  17732. })
  17733. .catch((err) => {
  17734. console.error(err);
  17735. });
  17736. },
  17737. setMindData() {
  17738. this.data.data = [];
  17739. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17740. let _eJson = Object.keys(this.eJson);
  17741. let _e = this.eJson;
  17742. for (let i = 0; i < _eJson.length; i++) {
  17743. let element = _e[_eJson[i]];
  17744. this.data.data.push({
  17745. id: element.id,
  17746. parentid: "root",
  17747. topic: element.name,
  17748. });
  17749. let _eJsonc = Object.keys(element.child);
  17750. let _e2 = element.child;
  17751. for (let j = 0; j < _eJsonc.length; j++) {
  17752. let _ec = _e2[_eJsonc[j]];
  17753. this.data.data.push({
  17754. id: _ec.id,
  17755. parentid: element.id,
  17756. topic: _ec.name,
  17757. });
  17758. let _eJsonz = Object.keys(_ec.child);
  17759. let _e3 = _ec.child;
  17760. for (let z = 0; z < _eJsonz.length; z++) {
  17761. let _ez = _e3[_eJsonz[z]];
  17762. this.data.data.push({
  17763. id: _ez.id,
  17764. parentid: _ec.id,
  17765. topic: _ez.name,
  17766. });
  17767. }
  17768. }
  17769. }
  17770. this.$forceUpdate();
  17771. },
  17772. checkFileFull(type, url) {
  17773. this.fullDialogVisible = true;
  17774. this.fulltype = type;
  17775. this.fullUrl = url;
  17776. },
  17777. checkFileFull1(t, f) {
  17778. this.fullDialogVisible = true;
  17779. if (t == 6) {
  17780. this.fulltype = 1;
  17781. this.fullUrl = JSON.parse(JSON.stringify(f));
  17782. } else if (t == 8) {
  17783. this.fulltype = 2;
  17784. this.fullUrl = f.url;
  17785. } else if (
  17786. t == 3 &&
  17787. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17788. "PDF"
  17789. ) {
  17790. this.fulltype = 3;
  17791. this.fullUrl = f.url;
  17792. } else if (t == 3) {
  17793. this.fulltype = 2;
  17794. this.fullUrl =
  17795. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17796. }
  17797. },
  17798. openSname(n, id, i, uid) {
  17799. this.snameWid = id;
  17800. this.worksSName = n;
  17801. this.worksSid = uid == n ? "" : uid;
  17802. this.toolindex = i;
  17803. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17804. if (!this.uploadCid) {
  17805. this.$message.error(
  17806. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17807. );
  17808. return;
  17809. }
  17810. this.selectUploadStudent(1);
  17811. },
  17812. updateName() {
  17813. let params = {
  17814. n: this.worksSName,
  17815. cid: this.snameWid,
  17816. };
  17817. this.ajax
  17818. .get(this.$store.state.api + "updateCourseWorksName", params)
  17819. .then((res) => {
  17820. this.$message({
  17821. message: "修改成功",
  17822. type: "success",
  17823. });
  17824. this.dialogVisibleSname = false;
  17825. this.getCourseDetail(2);
  17826. this.snameWid = "";
  17827. this.worksSName = "";
  17828. })
  17829. .catch((err) => {
  17830. console.error(err);
  17831. });
  17832. },
  17833. downloadFile2(f) {
  17834. // const loading = this.$loading.service({
  17835. // background: "rgba(255, 255, 255, 0.7)",
  17836. // target: document.body,
  17837. // text: "文件加载中...",
  17838. // });
  17839. // let url2 = f.url;
  17840. // let _url2 = "";
  17841. // if (
  17842. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17843. // ) {
  17844. // _url2 = url2.split(
  17845. // "https://view.officeapps.live.com/op/view.aspx?src="
  17846. // )[1];
  17847. // } else {
  17848. // _url2 = url2;
  17849. // }
  17850. // let params = {
  17851. // url: _url2,
  17852. // name: f.name,
  17853. // };
  17854. // this.ajax
  17855. // .get(this.$store.state.api + "download", params)
  17856. // .then((res) => {
  17857. // loading.close();
  17858. // let content = res.data.data.data;
  17859. // let ab = new ArrayBuffer(content.length);
  17860. // let view = new Uint8Array(ab);
  17861. // for (var i = 0; i < content.length; ++i) {
  17862. // view[i] = content[i];
  17863. // }
  17864. // let elink = document.createElement("a");
  17865. // elink.download = f.name;
  17866. // elink.style.display = "none";
  17867. // let blob = new Blob([ab], {
  17868. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17869. // });
  17870. // elink.href = URL.createObjectURL(blob);
  17871. // document.body.appendChild(elink);
  17872. // elink.click();
  17873. // document.body.removeChild(elink);
  17874. // })
  17875. // .catch((err) => {
  17876. // loading.close();
  17877. // console.error(err);
  17878. // });
  17879. let url = f.url;
  17880. let _this = this;
  17881. let _url = "";
  17882. if (
  17883. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17884. ) {
  17885. _url = url.split(
  17886. "https://view.officeapps.live.com/op/view.aspx?src="
  17887. )[1];
  17888. } else {
  17889. _url = url;
  17890. }
  17891. const loading = _this.$loading.service({
  17892. background: "rgba(255, 255, 255, 0.7)",
  17893. target: document.body,
  17894. text: "文件加载中...",
  17895. });
  17896. let x = new XMLHttpRequest();
  17897. x.open("GET", _url, true);
  17898. x.responseType = "blob";
  17899. x.onload = function () {
  17900. loading.close();
  17901. let url = window.URL.createObjectURL(new Blob([x.response]));
  17902. let a = document.createElement("a");
  17903. a.name = f.name;
  17904. a.href = url;
  17905. a.download = f.name;
  17906. a.click();
  17907. };
  17908. x.send();
  17909. },
  17910. downloadFile(url) {
  17911. let _this = this;
  17912. let _url = "";
  17913. if (
  17914. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17915. ) {
  17916. _url = url.split(
  17917. "https://view.officeapps.live.com/op/view.aspx?src="
  17918. )[1];
  17919. } else {
  17920. _url = url;
  17921. }
  17922. const x = new XMLHttpRequest();
  17923. x.open("GET", _url, true);
  17924. x.responseType = "blob";
  17925. const loading = _this.$loading.service({
  17926. background: "rgba(255, 255, 255, 0.7)",
  17927. target: document.body,
  17928. text: "文件加载中...",
  17929. });
  17930. // _this.$message.success("文件下载中...");
  17931. x.onload = function (e) {
  17932. loading.close();
  17933. let content = x.response;
  17934. let elink = document.createElement("a");
  17935. elink.download = decodeURI(
  17936. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17937. );
  17938. elink.style.display = "none";
  17939. let blob = new Blob([content]);
  17940. elink.href = URL.createObjectURL(blob);
  17941. document.body.appendChild(elink);
  17942. elink.click();
  17943. document.body.removeChild(elink);
  17944. };
  17945. x.send();
  17946. },
  17947. openLine(url) {
  17948. window.open(url);
  17949. },
  17950. resize() {
  17951. if (document.getElementsByClassName("box_course").length) {
  17952. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17953. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17954. if (this.showType == 2 || this.showType == 3) {
  17955. document.getElementsByClassName("navBox")[0].style.height =
  17956. a - 40 + 46 + "px";
  17957. } else {
  17958. document.getElementsByClassName("navBox")[0].style.height =
  17959. a - 40 + "px";
  17960. }
  17961. }
  17962. this.Stbodywidth =
  17963. document.getElementsByClassName("student_body").length &&
  17964. document.getElementsByClassName("student_body")[0].offsetWidth;
  17965. },
  17966. closeDraw() {
  17967. this.bg = null;
  17968. this.drawShow = false;
  17969. },
  17970. showPicturePaint(url) {
  17971. let params = {
  17972. img: url,
  17973. };
  17974. this.ajax
  17975. .get(this.$store.state.api + "imgToBase64", params)
  17976. .then((res) => {
  17977. this.drawShow = true;
  17978. this.bg = res.data[0].img;
  17979. })
  17980. .catch((err) => {
  17981. console.error(err);
  17982. });
  17983. },
  17984. addImgDraw(base64) {
  17985. let file = { name: "批注图.png" };
  17986. let img = this.dataUrlToFile(base64, file);
  17987. this.beforeUpload1(img, 5);
  17988. },
  17989. addImgDrawImG(url) {
  17990. // console.log(url);
  17991. let params = [
  17992. {
  17993. wid: this.commentDetail.wid,
  17994. img: url,
  17995. },
  17996. ];
  17997. this.ajax
  17998. .post(this.$store.state.api + "updateCourseWorks", params)
  17999. .then((res) => {
  18000. this.$message({
  18001. message: "提交成功",
  18002. type: "success",
  18003. });
  18004. this.drawShow = false;
  18005. this.bg = "";
  18006. this.selectSWorks();
  18007. this.selectStudent();
  18008. })
  18009. .catch((err) => {
  18010. this.$message.error("提交失败");
  18011. console.error(err);
  18012. });
  18013. },
  18014. deletePicturePaint() {
  18015. this.$confirm("确定删除此批注吗?", "提示", {
  18016. confirmButtonText: "确定",
  18017. cancelButtonText: "取消",
  18018. type: "warning",
  18019. })
  18020. .then(() => {
  18021. let params = [
  18022. {
  18023. wid: this.commentDetail.wid,
  18024. img: "",
  18025. },
  18026. ];
  18027. this.ajax
  18028. .post(this.$store.state.api + "updateCourseWorks", params)
  18029. .then((res) => {
  18030. this.$message({
  18031. message: "删除成功",
  18032. type: "success",
  18033. });
  18034. this.selectSWorks();
  18035. this.selectStudent();
  18036. })
  18037. .catch((err) => {
  18038. this.$message.error("删除失败");
  18039. console.error(err);
  18040. });
  18041. })
  18042. .catch(() => {});
  18043. },
  18044. getAudioVideo(constraintsData) {
  18045. if (navigator.mediaDevices === undefined) {
  18046. navigator.mediaDevices = {};
  18047. }
  18048. if (navigator.mediaDevices.getUserMedia === undefined) {
  18049. navigator.mediaDevices.getUserMedia = function (constraints) {
  18050. // 首先,如果有getUserMedia的话,就获得它
  18051. var getUserMedia =
  18052. navigator.getUserMedia ||
  18053. navigator.webkitGetUserMedia ||
  18054. navigator.mozGetUserMedia ||
  18055. navigator.msGetUserMedia;
  18056. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18057. if (!getUserMedia) {
  18058. return Promise.reject({ code: 404 });
  18059. }
  18060. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18061. return new Promise(function (resolve, reject) {
  18062. getUserMedia.call(navigator, constraints, resolve, reject);
  18063. });
  18064. };
  18065. }
  18066. return navigator.mediaDevices.getUserMedia(constraintsData);
  18067. },
  18068. /**
  18069. * 开始录制
  18070. */
  18071. startRecording(callback) {
  18072. let _function = (screenStream) => {
  18073. this.addStreamStopListener(screenStream, () => {
  18074. console.log("流停止监听");
  18075. this.stopRecording();
  18076. this.$emit("streamStop", {});
  18077. // this.stopRecording();
  18078. });
  18079. var options = {
  18080. type: "video",
  18081. mimeType: "video/webm",
  18082. disableLogs: false,
  18083. getNativeBlob: false, // enable it for longer recordings
  18084. ignoreMutedMedia: false,
  18085. };
  18086. // this.video.srcObject = screenStream;
  18087. this.recorder = RecordRTC(screenStream, options);
  18088. this.recorder.startRecording();
  18089. this.recorder.screen = screenStream;
  18090. this.videoStart = true;
  18091. // callback(true);
  18092. };
  18093. this.getAudioVideo({ audio: true })
  18094. .then((res) => {
  18095. this.captureScreen(_function, true);
  18096. console.log("已点击允许,开启成功");
  18097. })
  18098. .catch((err) => {
  18099. // console.log('浏览器不支持,请更换浏览器')
  18100. // } else {
  18101. this.captureScreen(_function, false);
  18102. console.log("请检查是否存在麦克风");
  18103. });
  18104. },
  18105. /**
  18106. * 停止录制
  18107. */
  18108. stopRecording(callback) {
  18109. this.recorder.stopRecording(() => {
  18110. // this.video.src = this.video.srcObject = null;
  18111. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18112. const url = URL.createObjectURL(this.recorder.getBlob());
  18113. const a = document.createElement("a"); //this.fileName+
  18114. let videoFile = new File(
  18115. [this.recorder.getBlob()],
  18116. this.courseDetail.title + "录屏.mp4",
  18117. {
  18118. type: "video/mp4",
  18119. }
  18120. );
  18121. let downloadUrl = URL.createObjectURL(videoFile);
  18122. document.body.appendChild(a);
  18123. a.style.display = "none";
  18124. a.href = url;
  18125. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18126. a.click();
  18127. this.recorder.screen.stop();
  18128. this.recorder.destroy();
  18129. this.recorder = null;
  18130. this.videoStart = false;
  18131. // callback(false);
  18132. });
  18133. },
  18134. //初始化
  18135. captureScreen(callback, type) {
  18136. if (navigator.getDisplayMedia) {
  18137. //录制结束,文件下载
  18138. navigator
  18139. .getDisplayMedia({
  18140. video: true,
  18141. })
  18142. .then((screenStream) => {
  18143. if (type) {
  18144. navigator.mediaDevices
  18145. .getUserMedia({ audio: true })
  18146. .then((mic) => {
  18147. screenStream.addTrack(mic.getTracks()[0]);
  18148. callback(screenStream);
  18149. });
  18150. } else {
  18151. callback(screenStream);
  18152. }
  18153. })
  18154. .catch(function (error) {
  18155. console.log("error", error);
  18156. });
  18157. } else if (navigator.mediaDevices.getDisplayMedia) {
  18158. navigator.mediaDevices
  18159. .getDisplayMedia({
  18160. video: true,
  18161. })
  18162. .then((screenStream) => {
  18163. if (type) {
  18164. navigator.mediaDevices
  18165. .getUserMedia({ audio: true })
  18166. .then((mic) => {
  18167. screenStream.addTrack(mic.getTracks()[0]);
  18168. callback(screenStream);
  18169. });
  18170. } else {
  18171. callback(screenStream);
  18172. }
  18173. })
  18174. .catch(function (error) {
  18175. console.log("error", error);
  18176. });
  18177. } else {
  18178. var error = "getDisplayMedia API are not supported in this browser.";
  18179. console.log("error", error);
  18180. alert(error);
  18181. }
  18182. },
  18183. //流监听
  18184. addStreamStopListener(stream, callback) {
  18185. stream.addEventListener(
  18186. "ended",
  18187. function () {
  18188. callback();
  18189. callback = function () {};
  18190. },
  18191. false
  18192. );
  18193. stream.addEventListener(
  18194. "inactive",
  18195. function () {
  18196. callback();
  18197. callback = function () {};
  18198. },
  18199. false
  18200. );
  18201. stream.getTracks().forEach(function (track) {
  18202. track.addEventListener(
  18203. "ended",
  18204. function () {
  18205. callback();
  18206. callback = function () {};
  18207. },
  18208. false
  18209. );
  18210. track.addEventListener(
  18211. "inactive",
  18212. function () {
  18213. callback();
  18214. callback = function () {};
  18215. },
  18216. false
  18217. );
  18218. });
  18219. },
  18220. updateGroup() {
  18221. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18222. this.dialogVisibleGroup2 = true;
  18223. },
  18224. numberPan() {
  18225. if (
  18226. /[^\d]/.test(this.groupJson.number) ||
  18227. this.groupJson.number < 2 ||
  18228. this.groupJson.number > 10
  18229. ) {
  18230. this.$message.error("请输入2-10的数字");
  18231. this.groupJson.number = "";
  18232. }
  18233. },
  18234. updateGroupJson() {
  18235. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18236. if (
  18237. this.groupStudentUid[this.toolindex][i].length >
  18238. this.groupJson2.number
  18239. ) {
  18240. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18241. return;
  18242. }
  18243. }
  18244. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18245. this.islock = this.groupJson.islock == 1 ? true : false;
  18246. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18247. this.taskCount
  18248. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18249. let params = [
  18250. {
  18251. cid: this.id,
  18252. chapters: JSON.stringify(this.chapInfoList),
  18253. uid: this.userid,
  18254. unitIndex: this.courseType,
  18255. },
  18256. ];
  18257. this.ajax
  18258. .post(this.$store.state.api + "updateWorkNew4", params)
  18259. .then((res) => {
  18260. this.$message.success("设置成功");
  18261. this.getCourseDetail(2);
  18262. this.dialogVisibleGroup2 = false;
  18263. this.groupJson2 = {};
  18264. this.$forceUpdate();
  18265. })
  18266. .catch((err) => {
  18267. this.$message.error("网络不佳");
  18268. console.error(err);
  18269. });
  18270. },
  18271. lockChair() {
  18272. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18273. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18274. this.updateGroupJson();
  18275. },
  18276. selectGroup(index) {
  18277. this.getCourseDetail(2, index);
  18278. },
  18279. joinGroup(index) {
  18280. if (this.groupJson.islock == 2) {
  18281. this.$message.error("位置已被锁定,无法加入");
  18282. return;
  18283. }
  18284. if (
  18285. this.groupStudent[this.toolindex][index].length >
  18286. this.groupJson.number ||
  18287. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18288. ) {
  18289. this.$message.error("位置已满,无法加入");
  18290. return;
  18291. }
  18292. let params = [
  18293. {
  18294. cid: this.id,
  18295. stage: this.courseType,
  18296. task: this.taskCount,
  18297. tool: this.toolindex,
  18298. g: index,
  18299. uid: this.userid,
  18300. },
  18301. ];
  18302. this.ajax
  18303. .post(this.$store.state.api + "joinGroup", params)
  18304. .then((res) => {
  18305. this.$message.success("加入成功");
  18306. this.getCourseDetail(2);
  18307. })
  18308. .catch((err) => {
  18309. this.$message.error("网络不佳");
  18310. console.error(err);
  18311. });
  18312. },
  18313. exitGroup(id) {
  18314. if (this.groupJson.islock == 2) {
  18315. this.$message.error("位置已被锁定,无法退出");
  18316. return;
  18317. }
  18318. let params = [
  18319. {
  18320. gid: id,
  18321. },
  18322. ];
  18323. this.ajax
  18324. .post(this.$store.state.api + "exitGroup", params)
  18325. .then((res) => {
  18326. this.$message.success("退出成功");
  18327. this.getCourseDetail(2);
  18328. })
  18329. .catch((err) => {
  18330. this.$message.error("网络不佳");
  18331. console.error(err);
  18332. });
  18333. },
  18334. groupUpload(index, task, gindex) {
  18335. this.taskCount = task;
  18336. this.toolindex = index;
  18337. this.groupIndex = gindex;
  18338. this.dialogVisibleGroupWork = true;
  18339. },
  18340. updateGroupChair(user) {
  18341. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18342. el.label = index;
  18343. return index != user.group;
  18344. });
  18345. this.updateGroupUser = user;
  18346. this.dialogVisibleUpdateGroup = true;
  18347. },
  18348. updateChair() {
  18349. if (
  18350. this.groupStudent[this.toolindex][this.checkChair].length >
  18351. this.groupJson.number ||
  18352. this.groupStudent[this.toolindex][this.checkChair].length ==
  18353. this.groupJson.number
  18354. ) {
  18355. this.$message.error("位置已满,无法加入");
  18356. return;
  18357. }
  18358. let params = [
  18359. {
  18360. cid: this.id,
  18361. stage: this.courseType,
  18362. task: this.taskCount,
  18363. tool: this.toolindex,
  18364. g: this.checkChair,
  18365. uid: this.updateGroupUser.userid,
  18366. },
  18367. ];
  18368. this.ajax
  18369. .post(this.$store.state.api + "joinGroup", params)
  18370. .then((res) => {
  18371. this.$message.success("修改成功");
  18372. this.updateGroupUser = {};
  18373. this.checkChair = "";
  18374. this.updateGroupArray = {};
  18375. this.dialogVisibleUpdateGroup = false;
  18376. this.getCourseDetail(2);
  18377. })
  18378. .catch((err) => {
  18379. this.$message.error("网络不佳");
  18380. console.error(err);
  18381. });
  18382. },
  18383. deleteGroupChair(gindex) {
  18384. this.checkDeleteGroup = [];
  18385. this.deleteGroupUser = JSON.parse(
  18386. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18387. );
  18388. this.deleteGroupArray = this.groupJson.group[gindex];
  18389. this.groupIndex = gindex;
  18390. this.dialogVisibleDeleteGroup = true;
  18391. },
  18392. async deleteChair() {
  18393. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18394. const gid =
  18395. this.groupStudent[this.toolindex][this.groupIndex][
  18396. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18397. this.checkDeleteGroup[i]
  18398. )
  18399. ];
  18400. let params = [
  18401. {
  18402. gid: gid.id,
  18403. },
  18404. ];
  18405. var a = await this.deleteChairA(params);
  18406. if (i == this.checkDeleteGroup.length - 1) {
  18407. this.$message.success("退出成功");
  18408. this.dialogVisibleDeleteGroup = false;
  18409. this.deleteGroupUser = [];
  18410. this.deleteGroupArray = {};
  18411. this.groupIndex = "";
  18412. this.checkDeleteGroup = [];
  18413. this.getCourseDetail(2);
  18414. }
  18415. }
  18416. },
  18417. deleteChairA(params) {
  18418. return new Promise((resolve, reject) => {
  18419. this.ajax
  18420. .post(this.$store.state.api + "exitGroup", params)
  18421. .then((res) => {
  18422. resolve(1);
  18423. })
  18424. .catch((err) => {
  18425. this.$message.error("网络不佳");
  18426. console.error(err);
  18427. });
  18428. });
  18429. },
  18430. contract(i) {
  18431. if (this.isCloseList[i].isClose == 0) {
  18432. this.isCloseList[i].isClose = 1;
  18433. } else {
  18434. this.isCloseList[i].isClose = 0;
  18435. }
  18436. this.$forceUpdate();
  18437. },
  18438. openWordCloud(toolindex) {
  18439. let array = [];
  18440. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18441. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18442. array.push({ name: works });
  18443. }
  18444. if (this.isGroup) {
  18445. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18446. let works = this.courseGroup.group[i].works[toolindex];
  18447. for (var j = 0; j < works.length; j++) {
  18448. let answer = JSON.parse(works[j].works)[0].answer;
  18449. array.push({ name: answer });
  18450. }
  18451. }
  18452. }
  18453. this.wordCloudData = array;
  18454. this.dialogVisibleWordCloud = true;
  18455. },
  18456. uploadWorks(i) {
  18457. this.$confirm("确定导出作业吗?", "提示", {
  18458. confirmButtonText: "确定",
  18459. cancelButtonText: "取消",
  18460. type: "warning",
  18461. })
  18462. .then(() => {
  18463. const loading = this.$loading.service({
  18464. background: "rgba(255, 255, 255, 0.7)",
  18465. target: document.body,
  18466. text: "文件加载中...",
  18467. });
  18468. const _worksStudent = this.worksStudent;
  18469. let url = [];
  18470. var counts = {};
  18471. for (var l = 0; l < _worksStudent[i].length; l++) {
  18472. var item = _worksStudent[i][l];
  18473. var name = item.sName;
  18474. if (!counts.hasOwnProperty(name)) {
  18475. counts[name] = 0;
  18476. } else {
  18477. counts[name]++;
  18478. }
  18479. if (counts[name] > 0) {
  18480. item.sName += " (" + counts[name] + ")";
  18481. }
  18482. }
  18483. for (var l = 0; l < _worksStudent[i].length; l++) {
  18484. var item = _worksStudent[i][l];
  18485. if (
  18486. item.works.indexOf(
  18487. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18488. ) !== -1 &&
  18489. item.works.indexOf("img") === -1
  18490. ) {
  18491. url.push({ name: item.sName, url: item.works });
  18492. }
  18493. }
  18494. // var toolList = [
  18495. // { name: "电子白板", tool: 1 },
  18496. // { name: "思维导图", tool: 3 },
  18497. // { name: "协同文档", tool: 6 },
  18498. // { name: "思维网格", tool: 7 },
  18499. // { name: "素材库", tool: 8 },
  18500. // { name: "学习资料", tool: 17 },
  18501. // { name: "便签", tool: 2 },
  18502. // { name: "问卷调查", tool: 4 },
  18503. // { name: "选择题", tool: 45 },
  18504. // { name: "倒计时", tool: 10 },
  18505. // { name: "问答", tool: 15 },
  18506. // { name: "课程设计", tool: 26 },
  18507. // { name: "训练服务器", tool: 18 },
  18508. // { name: "作业提交", tool: 16 },
  18509. // { name: "批量上传", tool: 50 },
  18510. // { name: "AIoT Blockly", tool: 21 },
  18511. // { name: "AI Python", tool: 23 },
  18512. // { name: "AI Blockly", tool: 24 },
  18513. // { name: "目标管理", tool: 25 },
  18514. // { name: "数学画板", tool: 31 },
  18515. // { name: "翻译", tool: 28 },
  18516. // { name: "魔盒识字", tool: 37 },
  18517. // { name: "数学画板", tool: 31 },
  18518. // { name: "24点", tool: 38 },
  18519. // { name: "GeoGebra", tool: 39 },
  18520. // { name: "源码编辑", tool: 32 },
  18521. // { name: "个人评价", tool: 40 },
  18522. // { name: "选择匹配", tool: 41 },
  18523. // { name: "汉字宫", tool: 44 },
  18524. // { name: "排序", tool: 47 },
  18525. // { name: "表格", tool: 48 },
  18526. // { name: "文档", tool: 52 },
  18527. // { name: "学生分组", tool: 49 },
  18528. // { name: "CocoPi", tool: 57 },
  18529. // { name: "模拟驾驶", tool: 58 },
  18530. // { name: "路径搜索", tool: 59 },
  18531. // { name: "深度学习", tool: 60 },
  18532. // { name: "全历史", tool: 61 },
  18533. // { name: "交互视频", tool: 62 },
  18534. // { name: "海龟编程", tool: 63 },
  18535. // { name: "挑人", tool: 65 },
  18536. // { name: "公式编辑", tool: 66 },
  18537. // { name: "分子结构", tool: 67 },
  18538. // { name: "时间轴", tool: 68 },
  18539. // ];
  18540. // var toolName = "";
  18541. // for(var w = 0;w<toolList.length;w++){
  18542. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18543. // toolName = toolList[w].name;
  18544. // }
  18545. // }
  18546. console.log(url);
  18547. this.downLoadAll(url, loading);
  18548. })
  18549. .catch(() => {});
  18550. },
  18551. downLoadAll(url, loading) {
  18552. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18553. const zip = new JSZip();
  18554. const cache = {};
  18555. const promises = [];
  18556. data.forEach((item) => {
  18557. const promise = getFile(item.url).then((data) => {
  18558. if (data.data != 1) {
  18559. // 下载文件, 并存成ArrayBuffer对象
  18560. const file_name =
  18561. item.name +
  18562. "." +
  18563. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18564. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18565. cache[file_name] = data.data;
  18566. }
  18567. });
  18568. promises.push(promise);
  18569. });
  18570. Promise.all(promises).then(() => {
  18571. zip.generateAsync({ type: "blob" }).then((content) => {
  18572. // 生成二进制流
  18573. FileSaver.saveAs(
  18574. content,
  18575. this.courseDetail.title + "-" + "作业提交工具.zip"
  18576. ); // 利用file-saver保存文件 自定义文件名
  18577. setTimeout(() => {
  18578. loading.close();
  18579. }, 2000);
  18580. });
  18581. });
  18582. },
  18583. pickStudent(stu) {
  18584. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18585. return;
  18586. }
  18587. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18588. confirmButtonText: "确定",
  18589. cancelButtonText: "取消",
  18590. type: "warning",
  18591. })
  18592. .then(() => {
  18593. let params = [
  18594. {
  18595. uid: stu.userid,
  18596. cid: this.id,
  18597. stage: this.courseType,
  18598. task: this.taskCount,
  18599. tool: this.toolindex,
  18600. },
  18601. ];
  18602. this.ajax
  18603. .post(this.$store.state.api + "updateCoursePick", params)
  18604. .then((res) => {
  18605. this.$message.success("操作成功");
  18606. this.getPick();
  18607. })
  18608. .catch((err) => {
  18609. this.$message.error("网络不佳");
  18610. console.error(err);
  18611. });
  18612. })
  18613. .catch(() => {});
  18614. },
  18615. selectUser(){
  18616. let params = {
  18617. userid: this.userid,
  18618. };
  18619. this.ajax
  18620. .get(this.$store.state.api + "selectUser", params)
  18621. .then((res) => {
  18622. this.userMes = res.data[0];
  18623. })
  18624. .catch((err) => {
  18625. console.error(err);
  18626. });
  18627. },
  18628. setEngText(i){
  18629. this.newEngIndex = i;
  18630. this.$forceUpdate();
  18631. },
  18632. addCorrect(){
  18633. this.$confirm("你确定提交批改嘛?", "提示", {
  18634. confirmButtonText: "确定",
  18635. showCancelButton: false,
  18636. closeOnClickModal: false,
  18637. type: "warning",
  18638. })
  18639. .then(() => {
  18640. let params = {
  18641. cid: this.id,
  18642. s: parseInt(this.courseType),
  18643. t: this.taskCount,
  18644. tool: this.toolindex,
  18645. wid: this.engWid,
  18646. c: this.userid,
  18647. w: (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : JSON.stringify(this.newEnglishList),
  18648. };
  18649. this.ajax
  18650. .get(this.$store.state.api + "addEngC", params)
  18651. .then((res) => {
  18652. this.$message.success("提交成功");
  18653. this.engUpdateDialogVisible = false;
  18654. })
  18655. .catch((err) => {
  18656. console.error(err);
  18657. });
  18658. })
  18659. .catch(() => {});
  18660. },
  18661. selectEngC(id,z){
  18662. let params = {
  18663. workid: id,
  18664. };
  18665. this.ajax
  18666. .get(this.$store.state.api + "selectEngC", params)
  18667. .then((res) => {
  18668. if(res.data[0].length == 0){
  18669. this.newEnglishList.engTitle = z.engTitle;
  18670. this.newEnglishList.engText = z.engText;
  18671. }else{
  18672. var a = res.data[0];
  18673. if(this.userMes[0].type == 2){
  18674. var snum = 0;
  18675. for(var i = 0;i<a.length;i++){
  18676. if(this.userMes[0].userid == a[i].correct){
  18677. this.newEnglishList = JSON.parse(a[i].cWork);
  18678. snum = 1;
  18679. }
  18680. }
  18681. if(snum == 0){
  18682. this.newEnglishList = { engTitle:"",engText:"" };
  18683. this.newEnglishList.engTitle = z.engTitle;
  18684. this.newEnglishList.engText = z.engText;
  18685. }
  18686. }else if(this.userMes[0].type == 1){
  18687. var num = 0;
  18688. for(var w= 0;w<a.length;w++){
  18689. if(this.userMes[0].userid == a[w].correct){
  18690. num = 1;
  18691. }
  18692. }
  18693. if(num == 0){
  18694. this.isNoUserid = true;
  18695. var c = JSON.parse(JSON.stringify(z));
  18696. this.oldEnglishJson1 = c;
  18697. }else{
  18698. this.isNoUserid = false;
  18699. }
  18700. var b = a.sort((item, index) => {
  18701. if (item.correct === this.userMes[0].userid) {
  18702. return -1; // 将a移到前面
  18703. } else if (index.correct === this.userMes[0].userid) {
  18704. return 1; // 将b移到前面
  18705. } else {
  18706. return 0; // 保持默认顺序
  18707. }
  18708. });
  18709. this.newEnglishList1 = b;
  18710. }
  18711. }
  18712. this.engUpdateDialogVisible = true;
  18713. this.$forceUpdate();
  18714. setTimeout(() => {
  18715. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  18716. if(this.newEnglishList1.length > 0){
  18717. if(this.isNoUserid == true){
  18718. this.engListLength = this.newEnglishList1.length + 1;
  18719. this.newEngIndex = -1;
  18720. }else{
  18721. this.engListLength = this.newEnglishList1.length;
  18722. this.newEngIndex = 0;
  18723. }
  18724. }
  18725. }, 500);
  18726. })
  18727. .catch((err) => {
  18728. console.error(err);
  18729. });
  18730. },
  18731. getPick() {
  18732. let params = {
  18733. cid: this.id,
  18734. };
  18735. this.ajax
  18736. .get(this.$store.state.api + "getPick", params)
  18737. .then((res) => {
  18738. let array = [];
  18739. for (var i = 0; i < res.data[0].length; i++) {
  18740. array.push(res.data[0][i].userid);
  18741. }
  18742. this.isPickStudent = array;
  18743. if (array.indexOf(this.userid) !== -1) {
  18744. this.$confirm("你被老师选到啦!", "提示", {
  18745. confirmButtonText: "确定",
  18746. showCancelButton: false,
  18747. closeOnClickModal: false,
  18748. type: "warning",
  18749. })
  18750. .then(() => {
  18751. let pa = [
  18752. {
  18753. uid: this.userid,
  18754. cid: this.id,
  18755. },
  18756. ];
  18757. this.ajax
  18758. .post(this.$store.state.api + "deletePick", pa)
  18759. .then((res) => {
  18760. this.getPick();
  18761. })
  18762. .catch((err) => {
  18763. this.$message.error("网络不佳");
  18764. console.error(err);
  18765. });
  18766. })
  18767. .catch(() => {});
  18768. }
  18769. })
  18770. .catch((err) => {
  18771. this.$message.error("网络不佳");
  18772. console.error(err);
  18773. });
  18774. },
  18775. },
  18776. directives: {
  18777. // 使用局部注册指令的方式
  18778. resize: {
  18779. // 指令的名称
  18780. bind(el, binding) {
  18781. // el为绑定的元素,binding为绑定给指令的对象
  18782. let width = "",
  18783. height = "";
  18784. function isReize() {
  18785. const style = document.defaultView.getComputedStyle(el);
  18786. if (width !== style.width || height !== style.height) {
  18787. binding.value(); // 关键
  18788. }
  18789. width = style.width;
  18790. height = style.height;
  18791. }
  18792. el.__vueSetInterval__ = setInterval(isReize, 300);
  18793. },
  18794. unbind(el) {
  18795. clearInterval(el.__vueSetInterval__);
  18796. },
  18797. },
  18798. },
  18799. beforeDestroy() {
  18800. window.onresize = null;
  18801. clearInterval(this.timer);
  18802. this.timer = null;
  18803. clearInterval(this.opertimer);
  18804. this.opertimer = null;
  18805. },
  18806. computed: {
  18807. contentConvent() {
  18808. return function (c) {
  18809. return c
  18810. ? c
  18811. .replaceAll(/\r\n/g, "<br/>")
  18812. .replaceAll(/\n/g, "<br/>")
  18813. .replaceAll(/\s/g, " &nbsp")
  18814. : "";
  18815. };
  18816. },
  18817. checkUpload() {
  18818. return function () {
  18819. var studentK = [];
  18820. if (this.plworkFile.length > 0) {
  18821. for (var z = 0; z < this.plworkFile.length; z++) {
  18822. studentK.push(this.plworkFile[z].username);
  18823. }
  18824. studentK = studentK.join(",");
  18825. }
  18826. var a = this.uploadStudentJuri.filter((el) => {
  18827. return studentK.indexOf(el.userid) == -1;
  18828. });
  18829. return a;
  18830. };
  18831. },
  18832. getSName() {
  18833. return function (name) {
  18834. var check = name;
  18835. this.uploadStudentJuri.forEach((el) => {
  18836. if (el.userid == check) {
  18837. check = el.name ? el.name : el.username;
  18838. }
  18839. });
  18840. return check;
  18841. };
  18842. },
  18843. getImgList() {
  18844. return function (val) {
  18845. let srcList = []; // 定义一个数组用来接收后面的img地址
  18846. val.replace(
  18847. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18848. function (match, capture) {
  18849. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18850. srcList.push(capture);
  18851. }
  18852. );
  18853. return srcList;
  18854. };
  18855. },
  18856. },
  18857. mounted() {
  18858. document.body.addEventListener("click", (e) => {
  18859. if (this.isUpdateToolDetail1) {
  18860. this.updateToolDetail(this.toolDetailIndex);
  18861. }
  18862. });
  18863. if (this.screenType == 2) {
  18864. window.parent.postMessage({ allScreen: 4 }, "*");
  18865. } else if (this.screenType == 3) {
  18866. window.parent.postMessage({ allScreen: 5 }, "*");
  18867. } else if (this.screenType == 1) {
  18868. window.parent.postMessage({ allScreen: 6 }, "*");
  18869. }
  18870. this.setOperationTime();
  18871. this.selectEva();
  18872. this.getCourseDetail();
  18873. this.selectCount();
  18874. this.getHomeWork();
  18875. this.selectUser();
  18876. this.contentDialog = true;
  18877. this.setContent2(true);
  18878. if (this.tType == 4) {
  18879. this.pzDialog = true;
  18880. this.selectPz();
  18881. }
  18882. document.scrollingElement.scrollTop = 0;
  18883. window.addEventListener("resize", () => {
  18884. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18885. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18886. if (this.showType == 2 || this.showType == 3) {
  18887. document.getElementsByClassName("navBox")[0].style.height =
  18888. a - 40 + 46 + "px";
  18889. } else {
  18890. document.getElementsByClassName("navBox")[0].style.height =
  18891. a - 40 + "px";
  18892. }
  18893. });
  18894. let _this = this;
  18895. setTimeout(() => {
  18896. // _this.vedioTime = [];
  18897. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18898. // _this.vedioTime[i] = document.getElementsByClassName(
  18899. // "vjs-duration-display"
  18900. // )[i].textContent;
  18901. // }
  18902. }, 1000);
  18903. },
  18904. };
  18905. </script>
  18906. <style scoped>
  18907. @media screen and (max-width: 1280px) {
  18908. /* .courseIndex > div:first-child(2) {
  18909. width: 15% !important;
  18910. } */
  18911. /* .navText {
  18912. width: 120px !important;
  18913. } */
  18914. .evaCss {
  18915. flex-direction: column !important;
  18916. align-items: center !important;
  18917. }
  18918. .elist_input {
  18919. width: 90% !important;
  18920. }
  18921. .dialog_diy1 >>> .el-dialog {
  18922. width: 100% !important;
  18923. }
  18924. .rightWidthCss {
  18925. width: 100% !important;
  18926. }
  18927. .dialog_diy3 >>> .el-dialog {
  18928. width: 100% !important;
  18929. }
  18930. .addToolCss {
  18931. right: 0 !important;
  18932. width: 100% !important;
  18933. min-width: unset !important;
  18934. }
  18935. }
  18936. .evaCssMax {
  18937. flex-direction: column !important;
  18938. align-items: center !important;
  18939. }
  18940. .dialog_diy >>> .el-dialog {
  18941. margin-top: 10vh !important;
  18942. }
  18943. .body_student {
  18944. width: 77%;
  18945. height: 100%;
  18946. position: absolute;
  18947. left: 22%;
  18948. top: 0;
  18949. }
  18950. .student_head {
  18951. width: 100%;
  18952. margin: 20px auto 0;
  18953. padding-bottom: 20px;
  18954. display: flex;
  18955. flex-direction: column;
  18956. flex-wrap: nowrap;
  18957. align-items: flex-start;
  18958. justify-content: flex-start;
  18959. }
  18960. .pb_left {
  18961. width: 20%;
  18962. margin-right: 10px;
  18963. background: rgb(255, 255, 255);
  18964. position: fixed;
  18965. height: calc(100% - 40px);
  18966. border-radius: 20px;
  18967. padding-bottom: 15px;
  18968. box-sizing: border-box;
  18969. }
  18970. .wheel > img,
  18971. .project > img,
  18972. .star > img,
  18973. .evaluate > img,
  18974. .up_photo > img,
  18975. .chapter_add > img,
  18976. .deleteWord > img,
  18977. .question > img,
  18978. .homework > img {
  18979. width: 100%;
  18980. height: 100%;
  18981. }
  18982. .upCover > img {
  18983. width: 131px;
  18984. height: 69px;
  18985. object-fit: cover;
  18986. }
  18987. .upCover {
  18988. width: calc(100% / 3.5);
  18989. position: relative;
  18990. margin: 0 15px 10px 0;
  18991. display: flex;
  18992. flex-direction: column;
  18993. flex-wrap: nowrap;
  18994. justify-content: center;
  18995. align-content: center;
  18996. align-items: center;
  18997. height: fit-content;
  18998. }
  18999. .upCover2 {
  19000. width: 100%;
  19001. position: relative;
  19002. margin: 0 15px 10px 0;
  19003. display: flex;
  19004. flex-direction: column;
  19005. flex-wrap: nowrap;
  19006. justify-content: center;
  19007. align-content: center;
  19008. align-items: center;
  19009. }
  19010. .upCover2 > img {
  19011. width: 100%;
  19012. height: 90px;
  19013. object-fit: contain;
  19014. }
  19015. .chapter_add {
  19016. width: 120px;
  19017. position: relative;
  19018. text-align: center;
  19019. }
  19020. .isAddThings {
  19021. margin-top: 20px;
  19022. position: relative;
  19023. text-align: center;
  19024. background: #f7f8fa;
  19025. height: 90px;
  19026. width: 90px;
  19027. display: flex;
  19028. flex-direction: column;
  19029. justify-content: center;
  19030. }
  19031. .deleteWord {
  19032. width: 22px;
  19033. height: 22px;
  19034. position: absolute;
  19035. right: -5px;
  19036. top: -5px;
  19037. cursor: pointer;
  19038. }
  19039. .box_course {
  19040. /* width: 60%; */
  19041. width: calc(100% - 300px);
  19042. }
  19043. .wheel {
  19044. width: 100%;
  19045. /* height: 100%; */
  19046. height: 650px;
  19047. }
  19048. .right_box {
  19049. display: flex;
  19050. flex-direction: column;
  19051. margin-left: 30px;
  19052. justify-content: space-around;
  19053. }
  19054. .right_box_title {
  19055. font-size: 23px;
  19056. }
  19057. .people {
  19058. display: flex;
  19059. }
  19060. .student_body {
  19061. width: 100%;
  19062. margin: 0 auto;
  19063. margin-top: 10px;
  19064. padding: 0 0 20px;
  19065. }
  19066. .study_top {
  19067. margin-top: 100px;
  19068. width: 100%;
  19069. height: auto;
  19070. padding-bottom: 20px;
  19071. }
  19072. .study_top .checkbox {
  19073. display: flex;
  19074. align-items: center;
  19075. padding: 15px 0 15px 30px;
  19076. flex: 0 0 auto;
  19077. font-weight: bold;
  19078. border-bottom: 1px solid #eee;
  19079. }
  19080. .study_top .check {
  19081. padding-bottom: 5px;
  19082. text-align: center;
  19083. cursor: pointer;
  19084. height: 30px;
  19085. box-sizing: border-box;
  19086. display: flex;
  19087. }
  19088. .study_top .checked {
  19089. border-bottom: 4px solid #3fc6a0;
  19090. padding-bottom: 5px;
  19091. color: #3fc6a0;
  19092. display: flex;
  19093. height: 35px;
  19094. }
  19095. .study_top .checked > div,
  19096. .study_top .check > div {
  19097. margin-right: 5px;
  19098. }
  19099. .videoTop {
  19100. display: flex;
  19101. flex-direction: row;
  19102. justify-content: space-between;
  19103. background: #fff;
  19104. align-items: center;
  19105. width: 95%;
  19106. padding: 20px;
  19107. }
  19108. .filebox {
  19109. display: flex;
  19110. flex-wrap: wrap;
  19111. flex-direction: column;
  19112. padding: 0 0 5px;
  19113. position: relative;
  19114. }
  19115. .filebox:before {
  19116. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19117. position: absolute;
  19118. top: 20px;
  19119. left: 13px;
  19120. border-left: 2px dotted #cad1dc;
  19121. height: calc(100% - 15px);
  19122. }
  19123. .toolHeng2 > div:last-child::before {
  19124. height: calc(100% - 43px);
  19125. }
  19126. .filebox .tooldetail {
  19127. width: calc(100% - 280px);
  19128. margin: 0px 12px;
  19129. padding: 12px 25px 0 13px;
  19130. line-height: 30px;
  19131. word-break: break-word;
  19132. background: #ffffff;
  19133. border-radius: 8px 8px 8px 8px;
  19134. opacity: 1;
  19135. border: 1px solid #cad1dc;
  19136. }
  19137. .file {
  19138. display: flex;
  19139. flex-direction: column;
  19140. align-items: center;
  19141. justify-content: center;
  19142. cursor: pointer;
  19143. width: 200px;
  19144. }
  19145. .file div {
  19146. margin-top: 10px;
  19147. width: 150px;
  19148. text-align: center;
  19149. overflow: hidden;
  19150. white-space: nowrap;
  19151. text-overflow: ellipsis;
  19152. }
  19153. .media {
  19154. display: flex;
  19155. flex-direction: column;
  19156. align-items: center;
  19157. justify-content: center;
  19158. margin: 0 20px 20px 0;
  19159. cursor: pointer;
  19160. margin: 12px 0 5px 15px;
  19161. overflow: hidden;
  19162. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19163. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19164. box-sizing: border-box;
  19165. }
  19166. .media img {
  19167. height: 90px;
  19168. width: 160px;
  19169. object-fit: cover;
  19170. }
  19171. .media .title {
  19172. padding: 5px;
  19173. text-align: left;
  19174. width: 100%;
  19175. box-sizing: border-box;
  19176. }
  19177. .media .btn {
  19178. width: 100%;
  19179. height: 35px;
  19180. line-height: 35px;
  19181. color: #fff;
  19182. background: #606060;
  19183. text-align: center;
  19184. overflow: hidden;
  19185. white-space: nowrap;
  19186. text-overflow: ellipsis;
  19187. }
  19188. .detail_content_top {
  19189. width: 100%;
  19190. padding: 25px 0 25px 0;
  19191. }
  19192. .detail_title {
  19193. text-align: center;
  19194. font-size: 24px;
  19195. }
  19196. .detail_time {
  19197. font-size: 13px;
  19198. padding: 15px 0 0 40px;
  19199. }
  19200. .detail_content {
  19201. line-height: 2pc;
  19202. width: 90%;
  19203. margin: 0 auto;
  19204. padding-top: 30px;
  19205. text-indent: 30px;
  19206. overflow: auto;
  19207. height: 200px;
  19208. }
  19209. .score_box >>> .el-rate {
  19210. margin-left: 10px;
  19211. }
  19212. .dialog_change >>> .el-dialog {
  19213. border-radius: 5px;
  19214. }
  19215. .dialog_change >>> .el-dialog__header {
  19216. background: #f2f2f2;
  19217. text-align: center;
  19218. }
  19219. .dialog_change >>> .el-dialog__title {
  19220. line-height: 5px;
  19221. }
  19222. .dialog_change >>> .el-dialog__body {
  19223. background: #fff;
  19224. padding: 10px 20px;
  19225. }
  19226. .score_box {
  19227. display: flex;
  19228. align-items: center;
  19229. margin-bottom: 18px;
  19230. margin-top: 20px;
  19231. }
  19232. .up_photo {
  19233. width: 120px;
  19234. cursor: pointer;
  19235. margin-top: 10px;
  19236. }
  19237. .up_photo2 {
  19238. width: 180px;
  19239. box-sizing: border-box;
  19240. min-width: 180px;
  19241. height: 180px;
  19242. max-height: 180px;
  19243. min-height: 180px;
  19244. cursor: pointer;
  19245. display: flex;
  19246. flex-direction: column;
  19247. align-items: center;
  19248. justify-content: center;
  19249. background: rgb(242, 246, 255);
  19250. /* padding: 25px; */
  19251. margin-bottom: 10px;
  19252. }
  19253. .up_photo2 img {
  19254. width: 50%;
  19255. height: auto;
  19256. }
  19257. .up_photo2 span {
  19258. color: #898989;
  19259. }
  19260. .plworkBox {
  19261. display: flex;
  19262. align-items: center;
  19263. margin-top: 10px;
  19264. flex-wrap: wrap;
  19265. }
  19266. .upload_send {
  19267. margin: 30px auto 30px;
  19268. width: 60%;
  19269. background: #3681fc;
  19270. text-align: center;
  19271. height: 35px;
  19272. line-height: 35px;
  19273. color: #fff;
  19274. border-radius: 5px;
  19275. cursor: pointer;
  19276. }
  19277. .marginT {
  19278. margin-top: 20px;
  19279. }
  19280. .cd_content_steps {
  19281. display: flex;
  19282. width: 90%;
  19283. justify-content: space-around;
  19284. border-top: 1px solid #eeeeee;
  19285. }
  19286. .cd_steps_box {
  19287. display: flex;
  19288. justify-content: center;
  19289. align-items: center;
  19290. flex-direction: column;
  19291. cursor: pointer;
  19292. }
  19293. .first {
  19294. display: flex;
  19295. align-items: center;
  19296. margin: 15px 0 20px 0;
  19297. font-size: 20px;
  19298. }
  19299. .first > div:nth-child(2) {
  19300. font-size: 16px !important;
  19301. padding-left: 10px;
  19302. line-height: 26px;
  19303. box-sizing: border-box;
  19304. }
  19305. .blue_box_one {
  19306. text-align: center;
  19307. color: #fff;
  19308. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19309. border-radius: 7px;
  19310. margin: 10px;
  19311. cursor: pointer;
  19312. width: 95%;
  19313. height: 45px;
  19314. display: flex;
  19315. flex-direction: row;
  19316. justify-content: flex-start;
  19317. align-items: center;
  19318. }
  19319. .blue_box_one > div:nth-child(1) {
  19320. line-height: 30px;
  19321. margin: 0 5px 0 10px;
  19322. width: 30%;
  19323. min-width: 70px;
  19324. border-radius: 4px;
  19325. }
  19326. .blue_box_one > div:nth-child(2) {
  19327. white-space: nowrap;
  19328. text-overflow: ellipsis;
  19329. overflow: hidden;
  19330. word-break: break-all;
  19331. width: 70%;
  19332. text-align: left;
  19333. margin-right: 10px;
  19334. max-width: calc(100% - 85px);
  19335. }
  19336. .blue_box_one > div:nth-child(2):hover {
  19337. overflow: hidden;
  19338. text-overflow: ellipsis;
  19339. white-space: nowrap;
  19340. cursor: pointer;
  19341. }
  19342. .upFile {
  19343. margin: 0 auto;
  19344. width: 120px;
  19345. background: #3681fc;
  19346. color: #fff;
  19347. height: 30px;
  19348. text-align: center;
  19349. line-height: 30px;
  19350. border-radius: 5px;
  19351. font-size: 14px;
  19352. cursor: pointer;
  19353. }
  19354. .courseTitle {
  19355. width: 85%;
  19356. margin: 10px auto 20px auto;
  19357. display: flex;
  19358. flex-direction: row;
  19359. align-items: center;
  19360. justify-content: space-between;
  19361. text-align: center;
  19362. }
  19363. .courseTitle .ctitle {
  19364. font-size: 20px;
  19365. font-weight: bold;
  19366. color: #0e1e33;
  19367. white-space: nowrap;
  19368. overflow: hidden;
  19369. text-overflow: ellipsis;
  19370. }
  19371. .inviteBox {
  19372. font-size: 14px;
  19373. margin-top: 5px;
  19374. color: #a6cbff;
  19375. text-align: center;
  19376. }
  19377. .courseTitle >>> .el-tooltip {
  19378. width: 100%;
  19379. white-space: nowrap;
  19380. overflow: hidden;
  19381. text-overflow: ellipsis;
  19382. word-break: break-word;
  19383. }
  19384. .ml {
  19385. margin-left: 20px;
  19386. color: #5b7dba;
  19387. border-left: 3px solid #5b7dba;
  19388. padding-left: 5px;
  19389. font-weight: bold;
  19390. }
  19391. .return {
  19392. width: 2rem;
  19393. height: 2rem;
  19394. cursor: pointer;
  19395. }
  19396. .return > img {
  19397. width: 100%;
  19398. height: 100%;
  19399. }
  19400. .returnBtn {
  19401. width: 86px;
  19402. height: 36px;
  19403. background: #3681fc;
  19404. border-radius: 4px;
  19405. color: #fff;
  19406. text-align: center;
  19407. line-height: 36px;
  19408. margin-right: 20px;
  19409. cursor: pointer;
  19410. font-size: 14px;
  19411. font-weight: 400;
  19412. display: flex;
  19413. flex-direction: row;
  19414. flex-wrap: nowrap;
  19415. align-items: center;
  19416. justify-content: center;
  19417. }
  19418. .reBtnIcon,
  19419. .commentIcon,
  19420. .vedioIcon,
  19421. .vedioIcon1 {
  19422. /* width: 36px; */
  19423. height: 36px;
  19424. border-radius: 4px;
  19425. position: relative;
  19426. /* background: #e0eafb; */
  19427. background: #0061ff;
  19428. cursor: pointer;
  19429. margin-right: 12px;
  19430. display: flex;
  19431. align-items: center;
  19432. padding: 0 10px;
  19433. box-sizing: border-box;
  19434. font-size: 14px;
  19435. color: #fff;
  19436. }
  19437. .reBtnIcon::before,
  19438. .commentIcon::before,
  19439. .vedioIcon::before,
  19440. .vedioIcon1::before {
  19441. content: "";
  19442. display: block;
  19443. background-size: 100% 100%;
  19444. background-repeat: no-repeat;
  19445. width: 20px;
  19446. height: 20px;
  19447. margin-right: 5px;
  19448. /* position: absolute; */
  19449. /* top: 8px;
  19450. left: 8px; */
  19451. }
  19452. .vedioIcon1 {
  19453. background: #f63564;
  19454. }
  19455. .reBtnIcon::before {
  19456. background-image: url("../assets/icon/newIcons/refresh.png");
  19457. }
  19458. .commentIcon::before {
  19459. background-image: url("../assets/icon/newIcons/comment.png");
  19460. }
  19461. .vedioIcon::before {
  19462. background-image: url("../assets/icon/newIcons/transcribe.png");
  19463. }
  19464. .vedioIcon1::before {
  19465. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  19466. background-image: url("../assets/icon/newIcons/transcribe.png");
  19467. }
  19468. .tool {
  19469. display: flex;
  19470. flex-direction: column;
  19471. flex-wrap: nowrap;
  19472. width: 13%;
  19473. margin: 0 30px;
  19474. align-items: center;
  19475. position: relative;
  19476. padding: 10px 25px;
  19477. cursor: pointer;
  19478. }
  19479. .whiteBIcon {
  19480. width: 150px;
  19481. }
  19482. .whiteBIcon > img {
  19483. width: 100%;
  19484. height: 100%;
  19485. }
  19486. .mask {
  19487. background-color: rgba(0, 0, 0, 0);
  19488. position: fixed;
  19489. top: 0;
  19490. left: 0;
  19491. width: 100%;
  19492. height: 100%;
  19493. z-index: 20000;
  19494. display: flex;
  19495. align-items: center;
  19496. justify-content: center;
  19497. }
  19498. .progressBox {
  19499. width: 500px;
  19500. height: 180px;
  19501. background: #fff;
  19502. border-radius: 10px;
  19503. box-shadow: 0 0 6px 1px #bfbfbf;
  19504. display: flex;
  19505. align-items: center;
  19506. justify-content: center;
  19507. flex-direction: column;
  19508. position: relative;
  19509. color: #6c6c6c;
  19510. }
  19511. .progressBox >>> .el-progress-bar__outer {
  19512. background-color: #d1dfff !important;
  19513. }
  19514. .progressBox .lbox {
  19515. height: 50px;
  19516. font-size: 19px;
  19517. display: flex;
  19518. align-items: center;
  19519. color: #747474;
  19520. }
  19521. .progressBox .lbox img {
  19522. width: 40px;
  19523. margin-right: 20px;
  19524. }
  19525. .closeCss {
  19526. position: absolute;
  19527. top: 8px;
  19528. right: 8px;
  19529. cursor: pointer;
  19530. width: 20px;
  19531. height: 20px;
  19532. }
  19533. .closeCss > img {
  19534. width: 100%;
  19535. height: 100%;
  19536. }
  19537. .uploadVedio {
  19538. display: flex;
  19539. flex-direction: column;
  19540. flex-wrap: nowrap;
  19541. justify-content: center;
  19542. align-items: center;
  19543. margin: 0 15px 10px 0;
  19544. }
  19545. .uploadVedio > img {
  19546. width: 30px;
  19547. height: 30px;
  19548. }
  19549. .uploadVedio > span {
  19550. white-space: nowrap;
  19551. overflow: hidden;
  19552. text-overflow: ellipsis;
  19553. width: 75px;
  19554. margin-top: 7px;
  19555. }
  19556. .picName {
  19557. white-space: nowrap;
  19558. overflow: hidden;
  19559. text-overflow: ellipsis;
  19560. width: 75px;
  19561. margin-top: 7px;
  19562. }
  19563. .new_top {
  19564. display: flex;
  19565. background: #fff;
  19566. flex-direction: row;
  19567. justify-content: flex-start;
  19568. align-items: center;
  19569. height: 60px;
  19570. position: fixed;
  19571. top: 20px;
  19572. left: 22%;
  19573. width: 77%;
  19574. z-index: 999;
  19575. border-radius: 12px 12px 0 0;
  19576. border-bottom: 1px solid #cad1dc;
  19577. padding: 10px 0;
  19578. }
  19579. .new_topFixed {
  19580. width: 100%;
  19581. height: 40px;
  19582. position: fixed;
  19583. top: 0px;
  19584. display: block;
  19585. background: #f2f2f2;
  19586. z-index: 998;
  19587. }
  19588. .before {
  19589. position: absolute;
  19590. background: #c3dad4;
  19591. width: 6px;
  19592. height: 100%;
  19593. }
  19594. .courseIndex {
  19595. display: flex;
  19596. flex-direction: row;
  19597. align-items: center;
  19598. width: calc(100% - 745px);
  19599. }
  19600. .courseIndex > div:nth-child(1) {
  19601. margin: 0 0 0 10px;
  19602. font-size: 20px;
  19603. min-width: 100px;
  19604. font-weight: bold;
  19605. border-left: 4px solid #3363b9;
  19606. height: 32px;
  19607. text-align: center;
  19608. line-height: 35px;
  19609. }
  19610. .courseIndex > div:nth-child(2) {
  19611. font-size: 20px;
  19612. /* width: 300px; */
  19613. max-width: calc(100% - 105px);
  19614. white-space: nowrap;
  19615. overflow: hidden;
  19616. text-overflow: ellipsis;
  19617. }
  19618. .courseIndex > div:nth-child(3) {
  19619. border-bottom: 1px solid #d7d7d7;
  19620. padding-bottom: 5px;
  19621. background: #3681fc;
  19622. width: 55px;
  19623. min-width: 55px;
  19624. border-radius: 5px;
  19625. color: #fff;
  19626. text-align: center;
  19627. height: 20px;
  19628. line-height: 26px;
  19629. font-size: 14px;
  19630. margin: 0 0 0 10px;
  19631. }
  19632. .course_text {
  19633. padding: 20px 0 0 15px;
  19634. text-indent: 30px;
  19635. width: 80%;
  19636. min-height: 20px;
  19637. }
  19638. .vedioList {
  19639. background: #f2f2f2;
  19640. border: 1px solid #ececec;
  19641. /* width: 38.8%; */
  19642. width: 300px;
  19643. height: 445px;
  19644. border-radius: 10px;
  19645. overflow: hidden;
  19646. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19647. }
  19648. .vedioNav {
  19649. margin: 10px 0 0 15px;
  19650. border-bottom: 1px solid #d7d7d7;
  19651. padding-bottom: 5px;
  19652. background: #3681fc;
  19653. width: 55px;
  19654. min-width: 55px;
  19655. border-radius: 5px;
  19656. color: #fff;
  19657. text-align: center;
  19658. height: 20px;
  19659. line-height: 26px;
  19660. font-size: 14px;
  19661. }
  19662. .queTop {
  19663. display: flex;
  19664. padding: 20px 0 20px 30px;
  19665. width: 100%;
  19666. flex-direction: row;
  19667. justify-content: flex-start;
  19668. align-items: center;
  19669. box-sizing: border-box;
  19670. }
  19671. .queTopTitle {
  19672. display: flex;
  19673. flex-direction: row;
  19674. flex-wrap: nowrap;
  19675. align-items: center;
  19676. font-weight: bold;
  19677. font-size: 20px;
  19678. color: rgb(14, 30, 51);
  19679. }
  19680. .queTopTitle::before {
  19681. content: "";
  19682. width: 2px;
  19683. height: 22px;
  19684. background: #3681fc;
  19685. border-radius: 3px;
  19686. display: block;
  19687. margin: 2px 6px 0 0;
  19688. }
  19689. .queTopRight {
  19690. display: flex;
  19691. flex-direction: row;
  19692. flex-wrap: nowrap;
  19693. align-items: center;
  19694. }
  19695. .queTopClose {
  19696. margin-right: 20px;
  19697. cursor: pointer;
  19698. position: relative;
  19699. display: flex;
  19700. }
  19701. .closeImg,
  19702. .openImg {
  19703. width: 25px;
  19704. height: 25px;
  19705. position: absolute;
  19706. left: -20px;
  19707. top: -1px;
  19708. }
  19709. .closeImg > img,
  19710. .openImg > img {
  19711. width: 100%;
  19712. height: 100%;
  19713. }
  19714. .question {
  19715. width: 40px;
  19716. margin-right: 10px;
  19717. margin-top: 7px;
  19718. }
  19719. .queTitle {
  19720. margin-left: 5px;
  19721. font-size: 25px;
  19722. display: flex;
  19723. align-items: center;
  19724. }
  19725. .addEditor {
  19726. width: 100px;
  19727. height: 30px;
  19728. background: #42cda6;
  19729. color: #fff;
  19730. border-radius: 5px;
  19731. text-align: center;
  19732. line-height: 30px;
  19733. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19734. cursor: pointer;
  19735. }
  19736. /* .vedioName {
  19737. cursor: pointer;
  19738. margin: 0px 0px 10px 5px;
  19739. white-space: nowrap;
  19740. overflow: hidden;
  19741. text-overflow: ellipsis;
  19742. width: 100%;
  19743. } */
  19744. .vedioTime {
  19745. width: 35px;
  19746. position: absolute;
  19747. color: #fff;
  19748. bottom: 0px;
  19749. right: 0px;
  19750. text-align: center;
  19751. background: #46411f;
  19752. height: 20px;
  19753. font-size: 14px;
  19754. line-height: 20px;
  19755. }
  19756. .homework {
  19757. width: 200px;
  19758. display: flex;
  19759. flex-direction: column;
  19760. flex-wrap: nowrap;
  19761. align-items: center;
  19762. cursor: pointer;
  19763. }
  19764. .homebox {
  19765. display: flex;
  19766. flex-wrap: wrap;
  19767. flex-direction: row;
  19768. justify-content: flex-start;
  19769. align-items: center;
  19770. padding: 15px 0;
  19771. }
  19772. .isChooseActive {
  19773. color: #3681fc !important;
  19774. font-weight: bold !important;
  19775. }
  19776. .chooseWho {
  19777. display: flex;
  19778. width: 100%;
  19779. flex-direction: row;
  19780. flex-wrap: nowrap;
  19781. justify-content: flex-start;
  19782. padding-bottom: 10px;
  19783. }
  19784. .chooseWho > div {
  19785. cursor: pointer;
  19786. padding-bottom: 10px;
  19787. margin: 0 30px 0 0;
  19788. font-weight: 400;
  19789. color: #0e1e33;
  19790. }
  19791. .addPoint > div > img {
  19792. cursor: pointer;
  19793. width: 85px;
  19794. border-radius: 15px;
  19795. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19796. }
  19797. .addPoint > div {
  19798. display: flex;
  19799. flex-direction: column;
  19800. flex-wrap: nowrap;
  19801. align-items: center;
  19802. }
  19803. .isBorder > div {
  19804. margin: 0 0 10px 0;
  19805. align-items: flex-start !important;
  19806. }
  19807. .noiframeBox {
  19808. display: flex;
  19809. flex-wrap: wrap;
  19810. }
  19811. .iframeBox iframe {
  19812. width: 100%;
  19813. height: 800px;
  19814. border: none;
  19815. margin-bottom: 20px;
  19816. border: 1px solid #ccc;
  19817. }
  19818. .upload_toolBtn {
  19819. background: #3681fc;
  19820. color: #fff;
  19821. width: 110px;
  19822. text-align: center;
  19823. height: 35px;
  19824. line-height: 35px;
  19825. font-size: 14px;
  19826. border-radius: 5px;
  19827. cursor: pointer;
  19828. position: absolute;
  19829. right: 10px;
  19830. bottom: 0;
  19831. }
  19832. .binfo_input,
  19833. .pj {
  19834. font: inherit;
  19835. color: currentColor;
  19836. width: 100%;
  19837. margin: 0;
  19838. padding: 15px 14px;
  19839. display: block;
  19840. min-width: 0;
  19841. outline: none;
  19842. box-sizing: content-box;
  19843. background: none;
  19844. -webkit-tap-highlight-color: transparent;
  19845. border: 1px solid rgba(0, 0, 0, 0.23);
  19846. border-radius: 4px;
  19847. box-sizing: border-box;
  19848. resize: none;
  19849. }
  19850. .binfo_input:focus-visible {
  19851. border: 1px solid rgba(61, 103, 188);
  19852. }
  19853. .dialog_diy >>> .el-dialog__header,
  19854. .dialog_diy1 >>> .el-dialog__header {
  19855. background: #454545 !important;
  19856. padding: 15px 20px;
  19857. }
  19858. .dialog_diy >>> .el-dialog__title,
  19859. .dialog_diy1 >>> .el-dialog__title {
  19860. color: #fff;
  19861. }
  19862. .dialog_diy >>> .el-dialog__headerbtn,
  19863. .dialog_diy1 >>> .el-dialog__headerbtn {
  19864. top: 19px;
  19865. }
  19866. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19867. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19868. color: #fff;
  19869. }
  19870. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19871. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19872. color: #fff;
  19873. }
  19874. .dialog_diy1 >>> .el-dialog__body {
  19875. padding: 0;
  19876. }
  19877. .dialog_diy >>> .el-dialog__body,
  19878. .dialog_diy >>> .el-dialog__footer,
  19879. .dialog_diy1 >>> .el-dialog__footer {
  19880. background: #fafafa;
  19881. }
  19882. .a_addBox {
  19883. padding: 0 0 0 15px;
  19884. }
  19885. .a_add_box {
  19886. padding: 10px;
  19887. background: #fff;
  19888. margin-bottom: 10px;
  19889. border-radius: 5px;
  19890. box-shadow: 0 0 5px 0 #d5d5d5;
  19891. }
  19892. .a_add_head {
  19893. display: flex;
  19894. align-items: flex-start;
  19895. /* justify-content: space-between; */
  19896. flex-direction: column;
  19897. /* flex-direction: row; */
  19898. margin: 10px 0 20px 0;
  19899. font-size: 18px;
  19900. width: 100%;
  19901. }
  19902. .askIndex {
  19903. background: #3681fc;
  19904. border-radius: 50%;
  19905. color: #fff;
  19906. width: 25px;
  19907. height: 25px;
  19908. min-width: 25px;
  19909. min-height: 25px;
  19910. text-align: center;
  19911. line-height: 25px;
  19912. margin-right: 5px;
  19913. }
  19914. .a_add_head .a_add_head_input {
  19915. width: 300px;
  19916. }
  19917. .a_add_head .a_add_head_div {
  19918. display: flex;
  19919. align-items: center;
  19920. justify-content: space-between;
  19921. }
  19922. .a_add_body {
  19923. display: flex;
  19924. align-items: center;
  19925. }
  19926. .a_add_input {
  19927. display: flex;
  19928. align-items: center;
  19929. flex-wrap: wrap;
  19930. width: 100%;
  19931. }
  19932. .a_add_input >>> .el-radio-group,
  19933. .a_add_input >>> .el-checkbox-group {
  19934. width: 100%;
  19935. }
  19936. .a_add_input >>> .el-radio,
  19937. .a_add_input >>> .el-checkbox {
  19938. display: flex;
  19939. flex-direction: row;
  19940. flex-wrap: nowrap;
  19941. align-items: center;
  19942. padding: 15px 0;
  19943. }
  19944. .a_add_input >>> .el-radio:not(:last-child),
  19945. .a_add_input >>> .el-checkbox:not(:last-child) {
  19946. width: 100%;
  19947. border-bottom: 1px solid #efefef;
  19948. }
  19949. .redioStyle >>> .el-radio__label {
  19950. font-size: 18px;
  19951. }
  19952. .redioStyle >>> .el-radio__label > span,
  19953. .redioStyle >>> .el-checkbox__label > span {
  19954. word-break: break-all;
  19955. white-space: normal;
  19956. }
  19957. .redioStyle >>> .el-checkbox__label {
  19958. font-size: 18px;
  19959. }
  19960. .toolHeng2 {
  19961. width: 100%;
  19962. padding-left: 37px;
  19963. box-sizing: border-box;
  19964. }
  19965. .workNav {
  19966. font-size: 20px;
  19967. font-weight: bold;
  19968. color: #0e1e33;
  19969. display: flex;
  19970. flex-direction: row;
  19971. flex-wrap: nowrap;
  19972. align-items: center;
  19973. padding: 15px 0 15px 0;
  19974. }
  19975. .workNav::before {
  19976. content: "";
  19977. width: 2px;
  19978. height: 22px;
  19979. background: #3681fc;
  19980. border-radius: 3px;
  19981. display: block;
  19982. margin: 2px 6px 0 0;
  19983. }
  19984. .toolHeng {
  19985. display: flex;
  19986. flex-direction: row;
  19987. flex-wrap: wrap;
  19988. justify-content: flex-start;
  19989. align-items: center;
  19990. width: 100%;
  19991. }
  19992. .toolHeng > div {
  19993. padding-left: 20px;
  19994. }
  19995. .isWidth {
  19996. width: 20%;
  19997. }
  19998. .textTitle {
  19999. display: flex;
  20000. flex-direction: row;
  20001. flex-wrap: nowrap;
  20002. align-items: center;
  20003. width: 95%;
  20004. }
  20005. .textTitle >>> .el-form-item__label {
  20006. font-size: 22px;
  20007. color: #918f8f;
  20008. width: 100px;
  20009. }
  20010. .textTitle >>> .el-form-item__content {
  20011. width: calc(100% - 100px);
  20012. }
  20013. .textCss >>> .el-dialog {
  20014. width: 800px !important;
  20015. height: 400px;
  20016. background: #fafafa;
  20017. }
  20018. .textCss >>> .el-dialog__body {
  20019. margin: 55px 8% 0 8%;
  20020. padding: 0 !important;
  20021. }
  20022. .textCss >>> .el-dialog__footer {
  20023. padding-top: 38px;
  20024. }
  20025. .toolsCss >>> .el-dialog__body {
  20026. padding: 20px;
  20027. }
  20028. .lineCss >>> .el-dialog__body {
  20029. display: flex;
  20030. flex-direction: row;
  20031. align-items: center;
  20032. justify-content: center;
  20033. }
  20034. .newNav {
  20035. display: flex;
  20036. flex-direction: row;
  20037. align-items: baseline;
  20038. justify-content: flex-start;
  20039. }
  20040. .navListItem {
  20041. width: 280px;
  20042. height: 50px;
  20043. margin: 0px auto 10px;
  20044. display: flex;
  20045. flex-direction: row;
  20046. flex-wrap: nowrap;
  20047. align-items: center;
  20048. justify-content: space-between;
  20049. background: #f0f4fa;
  20050. border-radius: 6px 6px 6px 6px;
  20051. }
  20052. .navText {
  20053. cursor: pointer;
  20054. white-space: nowrap;
  20055. overflow: hidden;
  20056. text-overflow: ellipsis;
  20057. width: 220px;
  20058. padding: 0 10px;
  20059. font-weight: 400;
  20060. color: #0e1e33;
  20061. }
  20062. .downIcon {
  20063. width: 20px;
  20064. min-width: 20px;
  20065. height: 20px;
  20066. margin-right: 15px;
  20067. cursor: pointer;
  20068. }
  20069. .downIcon > img {
  20070. width: 100%;
  20071. height: 100%;
  20072. }
  20073. .noVedio {
  20074. display: flex;
  20075. flex-direction: row;
  20076. justify-content: center;
  20077. align-content: center;
  20078. }
  20079. .noNavText {
  20080. cursor: pointer;
  20081. margin: 0px 0px 10px 5px;
  20082. width: 112px;
  20083. }
  20084. .listNoVedio {
  20085. margin: 0 0 0 30px;
  20086. width: 97%;
  20087. }
  20088. .video-player >>> .video-js {
  20089. height: 100%;
  20090. }
  20091. .hangVedioList {
  20092. width: 90% !important;
  20093. height: 150px !important;
  20094. margin: 20px 0 0 30px;
  20095. }
  20096. .hangVedio {
  20097. width: 100%;
  20098. height: 170px !important;
  20099. align-items: flex-start !important;
  20100. }
  20101. .hangHand {
  20102. height: 150px !important;
  20103. }
  20104. .twoChild {
  20105. width: 95%;
  20106. margin: 10px;
  20107. border-radius: 5px;
  20108. background: #f2f2f2;
  20109. display: flex;
  20110. flex-direction: column;
  20111. flex-wrap: nowrap;
  20112. justify-content: flex-start;
  20113. align-items: flex-start;
  20114. transition: all 0.5s;
  20115. overflow: hidden;
  20116. height: 0;
  20117. background: #e7f3ff;
  20118. }
  20119. .twoChild > div:nth-child(1) {
  20120. margin-top: 5px;
  20121. }
  20122. .navChild {
  20123. width: 100%;
  20124. cursor: pointer;
  20125. margin-bottom: 10px;
  20126. position: relative;
  20127. }
  20128. .navChild img {
  20129. position: absolute;
  20130. right: 11px;
  20131. width: 15px;
  20132. top: 50%;
  20133. transform: translateY(-50%);
  20134. }
  20135. .navActive,
  20136. .toolActive {
  20137. height: auto !important;
  20138. overflow: auto !important;
  20139. /* padding-bottom: 16px; */
  20140. }
  20141. .toolActive {
  20142. padding: 0;
  20143. }
  20144. .navTask {
  20145. display: flex;
  20146. flex-direction: row;
  20147. flex-wrap: nowrap;
  20148. align-items: center;
  20149. align-content: flex-start;
  20150. height: 40px;
  20151. justify-content: flex-start;
  20152. padding: 0 10px;
  20153. width: 100%;
  20154. box-sizing: border-box;
  20155. }
  20156. .navTaskname {
  20157. white-space: nowrap;
  20158. text-overflow: ellipsis;
  20159. overflow: hidden;
  20160. word-break: break-all;
  20161. padding-left: 5px;
  20162. }
  20163. .openTaskActive {
  20164. background-color: #e0eafb !important;
  20165. color: #0061ff;
  20166. }
  20167. .iframeName {
  20168. margin: 5px 0;
  20169. border-left: 4px solid #41c4a4;
  20170. padding-left: 4px;
  20171. }
  20172. .toolTitle {
  20173. margin: 0px 0px 20px;
  20174. font-size: 20px;
  20175. font-weight: 500;
  20176. border-left: 4px solid #41c4a4;
  20177. padding-left: 4px;
  20178. }
  20179. .cru_selectBox {
  20180. overflow: auto;
  20181. width: 95%;
  20182. margin: 17px auto 0;
  20183. height: calc(100% - 40px - 21px - 20px - 17px);
  20184. background: #fff;
  20185. border-radius: 8px;
  20186. }
  20187. .cru_selectBox::-webkit-scrollbar,
  20188. .study_top::-webkit-scrollbar,
  20189. .textContent::-webkit-scrollbar {
  20190. /*滚动条整体样式*/
  20191. width: 6px;
  20192. /*高宽分别对应横竖滚动条的尺寸*/
  20193. height: 6px;
  20194. }
  20195. /*定义滚动条轨道 内阴影+圆角*/
  20196. .cru_selectBox::-webkit-scrollbar-track,
  20197. .study_top::-webkit-scrollbar-track,
  20198. .textContent::-webkit-scrollbar {
  20199. border-radius: 10px;
  20200. background-color: #b8bdc9;
  20201. }
  20202. /*定义滑块 内阴影+圆角*/
  20203. .cru_selectBox::-webkit-scrollbar-thumb,
  20204. .study_top::-webkit-scrollbar-thumb,
  20205. .textContent::-webkit-scrollbar-thumb {
  20206. border-radius: 10px;
  20207. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20208. background-color: #2c5ab3;
  20209. }
  20210. .vedioBox {
  20211. border-radius: 0 0 20px 20px;
  20212. background: #fff;
  20213. overflow: auto;
  20214. }
  20215. .taskBox {
  20216. width: 98%;
  20217. background: #f0f4fa;
  20218. margin: 10px auto;
  20219. padding: 0 10px;
  20220. border-radius: 4px;
  20221. box-sizing: border-box;
  20222. }
  20223. .vedioTaskBox {
  20224. width: 100%;
  20225. display: flex;
  20226. flex-direction: row;
  20227. flex-wrap: nowrap;
  20228. align-items: flex-start;
  20229. position: relative;
  20230. }
  20231. .toolBox {
  20232. margin: 15px 0 0 25px;
  20233. display: flex;
  20234. position: relative;
  20235. padding: 18px 20px;
  20236. border-top-left-radius: 5px;
  20237. border-top-right-radius: 5px;
  20238. width: 90%;
  20239. }
  20240. .btnAll {
  20241. position: absolute;
  20242. right: 0;
  20243. display: flex;
  20244. flex-direction: row;
  20245. flex-wrap: nowrap;
  20246. align-items: center;
  20247. }
  20248. .btnLeft,
  20249. .btnRight {
  20250. display: flex;
  20251. flex-direction: row;
  20252. flex-wrap: nowrap;
  20253. align-items: center;
  20254. padding: 5px 0;
  20255. }
  20256. .btnLeft {
  20257. border-right: 1px solid #cad1dc;
  20258. }
  20259. .btnLeft > .custom-tooltip {
  20260. background: #3681fc;
  20261. color: #fff;
  20262. }
  20263. .last:hover {
  20264. background: #3383fa !important;
  20265. color: #fff;
  20266. border: 1px solid #3383fa !important;
  20267. }
  20268. .last,
  20269. .returnBtn1 {
  20270. width: 90px;
  20271. height: 36px;
  20272. background: #ffffff;
  20273. border-radius: 4px;
  20274. border: 1px solid #0061ff;
  20275. color: #0061ff;
  20276. cursor: pointer;
  20277. display: flex;
  20278. flex-direction: row;
  20279. flex-wrap: nowrap;
  20280. align-items: center;
  20281. justify-content: center;
  20282. margin-left: 12px;
  20283. }
  20284. .returnBtn1 {
  20285. background: #f0f4fa;
  20286. border-radius: 4px;
  20287. border: 1px solid #cad1dc;
  20288. margin: 0 12px;
  20289. }
  20290. .lastImg {
  20291. min-width: 15px;
  20292. width: 15px;
  20293. height: 15px;
  20294. }
  20295. .lastText {
  20296. padding: 0 5px 2px 5px;
  20297. box-sizing: border-box;
  20298. font-size: 14px;
  20299. }
  20300. .lastImg > img {
  20301. width: 100%;
  20302. height: 100%;
  20303. }
  20304. /* .vedioTimeBox {
  20305. display: flex;
  20306. flex-direction: row;
  20307. align-items: center;
  20308. flex-wrap: nowrap;
  20309. position: relative;
  20310. } */
  20311. .navBox {
  20312. background: #fff;
  20313. height: calc(100% - 40px);
  20314. overflow-y: auto;
  20315. overflow-x: hidden;
  20316. }
  20317. .worksBox {
  20318. margin: 0 0 10px 25px;
  20319. border-bottom: 1px solid #eeeeee;
  20320. padding: 18px 20px;
  20321. border-radius: 4px;
  20322. width: 90%;
  20323. }
  20324. .worksBTitle {
  20325. font-size: 20px;
  20326. padding-bottom: 15px;
  20327. border-bottom: 1px solid #eeeeee;
  20328. display: flex;
  20329. align-items: center;
  20330. }
  20331. .greenBox {
  20332. width: 5px;
  20333. height: 30px;
  20334. background: #63b6fa;
  20335. margin-right: 5px;
  20336. }
  20337. .worksDetailBox {
  20338. display: flex;
  20339. width: 100%;
  20340. flex-direction: row;
  20341. flex-wrap: wrap;
  20342. align-items: flex-end;
  20343. justify-content: flex-start;
  20344. padding: 15px 0;
  20345. }
  20346. .works {
  20347. display: flex;
  20348. flex-direction: column;
  20349. flex-wrap: nowrap;
  20350. align-items: flex-start;
  20351. justify-content: flex-start;
  20352. align-content: center;
  20353. max-width: 240px;
  20354. width: calc(100% / 3 - 10px);
  20355. height: auto;
  20356. margin-right: 10px;
  20357. margin-bottom: 10px;
  20358. overflow: hidden;
  20359. height: 140px;
  20360. box-shadow: 0 0 6px 1px #dfdada;
  20361. border-radius: 15px;
  20362. }
  20363. .workImg {
  20364. width: 100%;
  20365. /* height: calc(100% - 40px); */
  20366. height: 105px;
  20367. position: relative;
  20368. }
  20369. .workImg > img {
  20370. width: 100%;
  20371. height: 100%;
  20372. object-fit: contain;
  20373. cursor: pointer;
  20374. }
  20375. .worksName {
  20376. height: 40px;
  20377. line-height: 40px;
  20378. display: flex;
  20379. width: 100%;
  20380. flex-direction: row;
  20381. flex-wrap: nowrap;
  20382. justify-content: space-between;
  20383. align-items: center;
  20384. margin: 0 0 0 10px;
  20385. }
  20386. .worksName > div:nth-child(1) {
  20387. width: 110px;
  20388. white-space: nowrap;
  20389. overflow: hidden;
  20390. text-overflow: ellipsis;
  20391. }
  20392. .worksName > div:nth-child(2) {
  20393. color: #b7b4b5;
  20394. }
  20395. .noWorksS {
  20396. padding: 15px 0;
  20397. display: flex;
  20398. flex-direction: row;
  20399. flex-wrap: wrap;
  20400. align-items: center;
  20401. justify-content: flex-start;
  20402. }
  20403. .noWorksName,
  20404. .isWorksName,
  20405. .isWorksName2 {
  20406. background: #ddebf8;
  20407. color: #000;
  20408. width: 90px;
  20409. height: 25px;
  20410. text-align: center;
  20411. line-height: 25px;
  20412. border-radius: 4px;
  20413. margin: 10px 15px 10px 0;
  20414. white-space: nowrap;
  20415. overflow: hidden;
  20416. padding: 5px;
  20417. text-overflow: ellipsis;
  20418. cursor: pointer;
  20419. border: 1px solid #ddebf8;
  20420. }
  20421. .noWorksName {
  20422. background: #fff;
  20423. color: #0061ff;
  20424. border: 1px solid #0061ff;
  20425. }
  20426. .isWorksName2 {
  20427. width: 100px;
  20428. height: 40px;
  20429. line-height: 40px;
  20430. position: relative;
  20431. background: #dae6f9;
  20432. }
  20433. .isWorksName {
  20434. background: #e7ebf1 !important;
  20435. width: 100px;
  20436. height: 40px;
  20437. line-height: 40px;
  20438. position: relative;
  20439. color: #acb4bf;
  20440. border: 1px solid #cad1dc !important;
  20441. }
  20442. .isSelectName,
  20443. .noWorksName:hover {
  20444. background: #3383fa !important;
  20445. color: #fff !important;
  20446. border: 1px solid #3383fa !important;
  20447. }
  20448. .title {
  20449. background: #1e5cc9;
  20450. /* width: 98%; */
  20451. height: 45px;
  20452. color: #fff;
  20453. line-height: 45px;
  20454. padding-left: 20px;
  20455. box-sizing: border-box;
  20456. }
  20457. .textBox {
  20458. font-size: 20px;
  20459. width: 90%;
  20460. display: flex;
  20461. flex-direction: column;
  20462. align-items: center;
  20463. margin: 20px auto 0;
  20464. max-height: calc(100% - 75px);
  20465. overflow: auto;
  20466. }
  20467. .textContent {
  20468. font-size: 18px;
  20469. width: 95%;
  20470. max-width: 95%;
  20471. }
  20472. .answerBg {
  20473. background: url("../assets/icon/answerBgNew.png") no-repeat;
  20474. background-size: 100% 100%;
  20475. width: 100%;
  20476. height: 100%;
  20477. color: #fff;
  20478. text-align: center;
  20479. display: flex;
  20480. flex-direction: column;
  20481. flex-wrap: nowrap;
  20482. align-items: center;
  20483. position: relative;
  20484. justify-content: center;
  20485. }
  20486. .answerBg > div:nth-child(1) {
  20487. /* font-size: 22px;
  20488. padding: 25px 0 10px; */
  20489. }
  20490. .answerContent {
  20491. width: 215px;
  20492. max-height: 60px;
  20493. word-break: break-all;
  20494. text-align: center;
  20495. /* white-space: nowrap; */
  20496. overflow: hidden;
  20497. text-overflow: ellipsis;
  20498. /* padding: 23px 0 0; */
  20499. -webkit-line-clamp: 3;
  20500. -webkit-box-orient: vertical;
  20501. display: -webkit-box;
  20502. font-size: 15px;
  20503. cursor: pointer;
  20504. }
  20505. .elist_input_box {
  20506. display: flex;
  20507. align-items: flex-start;
  20508. flex-wrap: nowrap;
  20509. padding: 10px 0 15px 30px;
  20510. flex-direction: column;
  20511. }
  20512. .elist_input {
  20513. /* width: 40%; */
  20514. width: 45%;
  20515. margin: 20px;
  20516. }
  20517. .elist_input .elist_input_box input {
  20518. font: inherit;
  20519. color: currentColor;
  20520. width: 200px;
  20521. padding: 8px 14px;
  20522. display: block;
  20523. min-width: 0;
  20524. outline: none;
  20525. border: 1px solid rgba(0, 0, 0, 0.23);
  20526. border-radius: 4px;
  20527. box-sizing: border-box;
  20528. background: #fff;
  20529. margin: 0 20px 0 0;
  20530. }
  20531. .elist_input .elist_input_box span {
  20532. height: 36px;
  20533. line-height: 36px;
  20534. color: rgb(82, 82, 82);
  20535. }
  20536. .elist_input .elist_input_box .remove {
  20537. height: 20px;
  20538. width: 20px;
  20539. background-size: 100% 100%;
  20540. background-position: unset;
  20541. margin-left: 5px;
  20542. }
  20543. .elist_input_box >>> .el-rate {
  20544. display: flex;
  20545. height: 36px;
  20546. align-items: center;
  20547. }
  20548. .elist_input_box .elist_inptu_text {
  20549. min-height: 50px;
  20550. /* width: 500px;
  20551. max-height: 150px; */
  20552. width: 100%;
  20553. line-height: 50px;
  20554. color: rgb(82, 82, 82);
  20555. overflow: auto;
  20556. text-indent: 5px;
  20557. background: #f7f6f9;
  20558. border-radius: 10px;
  20559. }
  20560. .elist_input_box .elist_inptu_text input {
  20561. width: 500px;
  20562. }
  20563. .elist_input_box >>> .el-rate__icon {
  20564. font-size: 24px;
  20565. }
  20566. .isClick {
  20567. background: #4d9def;
  20568. }
  20569. .bzBox {
  20570. display: flex;
  20571. flex-direction: row;
  20572. align-items: center;
  20573. }
  20574. .bzBox .yCss {
  20575. width: 7px;
  20576. height: 7px;
  20577. background: #fff;
  20578. margin: 0 16px 0 6px;
  20579. border-radius: 50%;
  20580. border: 5px solid #3681fc;
  20581. z-index: 99;
  20582. }
  20583. .bzBox > div:nth-child(2) {
  20584. font-size: 18px;
  20585. font-weight: bold;
  20586. color: #0e1e33;
  20587. }
  20588. .navTitile {
  20589. padding: 0 0px 0 15px;
  20590. font-size: 16px;
  20591. font-weight: bold;
  20592. color: #0e1e33;
  20593. height: 40px;
  20594. line-height: 40px;
  20595. }
  20596. .isTypeOne {
  20597. width: 240px;
  20598. height: 170px;
  20599. /* border: 1px solid #f8f8f8; */
  20600. border-radius: 10px;
  20601. box-shadow: 0 0 6px 1px #dfdada;
  20602. }
  20603. .e_add_top {
  20604. display: flex;
  20605. justify-content: space-between;
  20606. padding: 20px 20px 0 20px;
  20607. border-radius: 3px;
  20608. background: #fff;
  20609. }
  20610. .e_add_title2 {
  20611. display: flex;
  20612. align-items: center;
  20613. }
  20614. .e_add_title2 span {
  20615. width: 40px;
  20616. }
  20617. .e_add_title {
  20618. display: flex;
  20619. align-items: center;
  20620. color: #b8b8b8;
  20621. font-size: 18px;
  20622. position: relative;
  20623. height: 40px;
  20624. }
  20625. .e_add_title span {
  20626. margin-right: 10px;
  20627. }
  20628. .e_add_title .el_input {
  20629. width: 300px;
  20630. }
  20631. .e_add_title >>> .el-input__inner {
  20632. width: 400px;
  20633. }
  20634. .e_add_btn {
  20635. }
  20636. .e_add_content {
  20637. display: flex;
  20638. width: 100%;
  20639. max-width: 650px;
  20640. height: 550px;
  20641. }
  20642. .e_add_list {
  20643. background: #fff;
  20644. height: 500px;
  20645. width: 210px;
  20646. position: relative;
  20647. margin: 15px 5px 0 0;
  20648. flex-shrink: 0;
  20649. display: flex;
  20650. flex-direction: column;
  20651. }
  20652. .e_add_list_title {
  20653. font-size: 20px;
  20654. width: 100%;
  20655. box-sizing: border-box;
  20656. padding: 15px 40px;
  20657. text-align: center;
  20658. border-bottom: 1px solid #eaeaea;
  20659. position: relative;
  20660. display: flex;
  20661. align-items: center;
  20662. justify-content: center;
  20663. height: 57px;
  20664. background: #f6f6f6;
  20665. }
  20666. .e_add_list_title span {
  20667. overflow: hidden;
  20668. white-space: nowrap;
  20669. text-overflow: ellipsis;
  20670. }
  20671. .e_add_list_title img {
  20672. position: absolute;
  20673. right: 15px;
  20674. width: 25px;
  20675. cursor: pointer;
  20676. top: 50%;
  20677. transform: translateY(-50%);
  20678. }
  20679. .e_add_list_body {
  20680. height: calc(100% - 187px);
  20681. overflow: auto;
  20682. }
  20683. .e_add_list_child {
  20684. width: 100%;
  20685. display: flex;
  20686. align-items: center;
  20687. justify-content: center;
  20688. position: relative;
  20689. box-sizing: border-box;
  20690. padding: 15px 40px;
  20691. text-align: center;
  20692. }
  20693. .e_add_list_child span {
  20694. overflow: hidden;
  20695. white-space: nowrap;
  20696. text-overflow: ellipsis;
  20697. cursor: pointer;
  20698. }
  20699. .e_add_list_child img {
  20700. position: absolute;
  20701. right: 10px;
  20702. width: 21px;
  20703. cursor: pointer;
  20704. top: 50%;
  20705. transform: translateY(-50%);
  20706. }
  20707. .e_add_list_child + .e_add_list_child {
  20708. border-top: 1px solid #eaeaea;
  20709. }
  20710. .e_add_list_child .active {
  20711. color: #409eff;
  20712. }
  20713. .e_add_list_btn {
  20714. position: absolute;
  20715. bottom: 0;
  20716. height: 50px;
  20717. background: rgb(120, 120, 254);
  20718. width: 100%;
  20719. color: #fff;
  20720. font-size: 16px;
  20721. text-align: center;
  20722. line-height: 50px;
  20723. cursor: pointer;
  20724. }
  20725. .e_add_list_detail {
  20726. position: absolute;
  20727. bottom: 0;
  20728. height: 130px;
  20729. background: rgb(120, 120, 254);
  20730. width: 100%;
  20731. color: #fff;
  20732. font-size: 16px;
  20733. display: flex;
  20734. align-items: center;
  20735. justify-content: center;
  20736. }
  20737. .e_add_list_detail textarea {
  20738. height: 90%;
  20739. width: 95%;
  20740. border: none;
  20741. resize: none;
  20742. outline: none;
  20743. padding: 5px;
  20744. box-sizing: border-box;
  20745. }
  20746. .e_add_list_pbox {
  20747. width: 100%;
  20748. max-width: 650px;
  20749. /* height: 600px; */
  20750. }
  20751. .e_add_list_pbox_title {
  20752. height: 50px;
  20753. background: #fff;
  20754. display: flex;
  20755. align-items: center;
  20756. width: 100%;
  20757. box-sizing: border-box;
  20758. padding: 0 20px;
  20759. }
  20760. .type_title {
  20761. font-size: 18px;
  20762. font-weight: 700;
  20763. }
  20764. .type_content {
  20765. font-size: 16px;
  20766. margin-left: 30px;
  20767. }
  20768. .type_content span + span {
  20769. margin-left: 20px;
  20770. }
  20771. .type_content span {
  20772. cursor: pointer;
  20773. padding-bottom: 5px;
  20774. box-sizing: border-box;
  20775. }
  20776. .type_content .active {
  20777. color: #409eff;
  20778. border-bottom: 2px solid #409eff;
  20779. }
  20780. .e_add_list_pbox_content {
  20781. height: calc(100% - 50px);
  20782. display: flex;
  20783. align-items: center;
  20784. width: 100%;
  20785. background: #fff;
  20786. }
  20787. .evaCss {
  20788. display: flex;
  20789. flex-direction: row;
  20790. flex-wrap: nowrap;
  20791. align-items: flex-start;
  20792. padding: 0 0 20px;
  20793. }
  20794. .cru_line {
  20795. position: absolute;
  20796. bottom: 0px;
  20797. transition: all 0.5s;
  20798. left: 0px;
  20799. width: 125px;
  20800. margin-left: -25px;
  20801. }
  20802. .isNoMessage {
  20803. width: 20%;
  20804. margin: 25% auto 0;
  20805. }
  20806. .isNoMessage > img {
  20807. width: 100%;
  20808. height: 100%;
  20809. }
  20810. .fullStyle >>> .el-dialog__body {
  20811. height: 100% !important;
  20812. }
  20813. .fullStyle >>> .el-dialog,
  20814. .fullStyle {
  20815. width: 100% !important;
  20816. max-width: 100% !important;
  20817. height: 100% !important;
  20818. margin: 0 !important;
  20819. }
  20820. .full_diy >>> .el-dialog {
  20821. margin: 0 !important;
  20822. height: 100%;
  20823. padding: 4px;
  20824. }
  20825. .full_diy >>> .el-dialog__body {
  20826. height: calc(100% - 100px);
  20827. }
  20828. .full_diy2 >>> .el-dialog__body {
  20829. height: calc(100% - 50px);
  20830. padding: 0;
  20831. }
  20832. .switchCss {
  20833. /* width: 100%; */
  20834. display: flex;
  20835. flex-direction: row;
  20836. flex-wrap: nowrap;
  20837. align-items: center;
  20838. /* justify-content: center; */
  20839. }
  20840. .isClickNav {
  20841. /* color: #499eef; */
  20842. color: #000;
  20843. }
  20844. .commentImg {
  20845. width: 25px;
  20846. height: 25px;
  20847. cursor: pointer;
  20848. }
  20849. .commentImg > img {
  20850. width: 100%;
  20851. height: 100%;
  20852. }
  20853. .comment {
  20854. background: #f9f9f9;
  20855. border-radius: 0 0 4px 4px;
  20856. display: flex;
  20857. flex-direction: row;
  20858. flex-wrap: nowrap;
  20859. align-items: center;
  20860. justify-content: flex-end;
  20861. height: 35px;
  20862. }
  20863. .commentList {
  20864. display: flex;
  20865. flex-direction: row;
  20866. flex-wrap: nowrap;
  20867. align-items: center;
  20868. justify-content: center;
  20869. align-content: center;
  20870. /* margin-left: 15px; */
  20871. /* margin-left: 8px; */
  20872. }
  20873. .scoreImg {
  20874. width: 17px;
  20875. height: 17px;
  20876. }
  20877. .studentDetail {
  20878. display: flex;
  20879. flex-direction: row;
  20880. flex-wrap: nowrap;
  20881. /* align-items: center; */
  20882. align-items: flex-start;
  20883. }
  20884. .tx {
  20885. width: 50px;
  20886. }
  20887. .tx > img {
  20888. width: 100%;
  20889. height: 100%;
  20890. }
  20891. .nameAndTime {
  20892. display: flex;
  20893. flex-direction: column;
  20894. flex-wrap: nowrap;
  20895. align-items: flex-start;
  20896. margin-left: 10px;
  20897. }
  20898. .worksAnswer {
  20899. color: #4078dd;
  20900. margin: 10px 0;
  20901. font-size: 16px;
  20902. position: relative;
  20903. }
  20904. .worksAnswer > img {
  20905. width: 500px;
  20906. height: 300px;
  20907. object-fit: contain;
  20908. margin: 0 auto;
  20909. display: block;
  20910. }
  20911. .commentTop {
  20912. border-bottom: 1px solid #eaeaea;
  20913. padding-bottom: 10px;
  20914. }
  20915. .commentBox {
  20916. padding-top: 15px;
  20917. }
  20918. .pl {
  20919. font-size: 18px;
  20920. }
  20921. .plPerson {
  20922. width: 100%;
  20923. }
  20924. .plName {
  20925. display: flex;
  20926. flex-direction: row;
  20927. flex-wrap: nowrap;
  20928. align-items: baseline;
  20929. color: #78787a;
  20930. width: 100%;
  20931. }
  20932. .deleteComment {
  20933. cursor: pointer;
  20934. margin-left: auto;
  20935. color: #237ade;
  20936. }
  20937. .plContent {
  20938. margin-top: 5px;
  20939. }
  20940. .evalCss {
  20941. background: #fff;
  20942. font-size: 18px;
  20943. }
  20944. .nav {
  20945. color: #9d9d9d;
  20946. padding: 5px 0 15px 20px;
  20947. }
  20948. .middleBox {
  20949. padding: 5px 0 15px 20px;
  20950. }
  20951. .pfBox {
  20952. padding-bottom: 30px;
  20953. }
  20954. .nameAndrate {
  20955. display: flex;
  20956. flex-direction: row;
  20957. flex-wrap: nowrap;
  20958. align-items: center;
  20959. padding-bottom: 10px;
  20960. height: 30px;
  20961. line-height: 30px;
  20962. }
  20963. .nameAndrate > div {
  20964. margin-left: 10px;
  20965. color: #000;
  20966. height: 30px;
  20967. }
  20968. .nameAndrate >>> .el-rate__icon {
  20969. font-size: 28px !important;
  20970. }
  20971. .pfBox > div:nth-child(2) {
  20972. background: #f7f6f9;
  20973. width: 400px;
  20974. min-height: 45px;
  20975. border-radius: 10px;
  20976. font-size: 16px;
  20977. display: flex;
  20978. flex-wrap: wrap;
  20979. align-items: center;
  20980. padding: 10px 20px;
  20981. box-sizing: border-box;
  20982. color: #000;
  20983. }
  20984. .bz {
  20985. display: flex;
  20986. flex-direction: row;
  20987. flex-wrap: nowrap;
  20988. align-items: flex-start;
  20989. }
  20990. .bz > div {
  20991. padding: 0 10px;
  20992. }
  20993. .select_box2_title {
  20994. background: #fff;
  20995. border-radius: 5px;
  20996. padding: 15px 10px;
  20997. box-sizing: border-box;
  20998. margin-bottom: 10px;
  20999. display: flex;
  21000. flex-direction: row;
  21001. flex-wrap: nowrap;
  21002. align-items: center;
  21003. }
  21004. .select_box2_title > div:nth-child(2) {
  21005. margin-left: 10px;
  21006. color: #c4c4c4;
  21007. }
  21008. .select_box2_box {
  21009. display: flex;
  21010. height: 500px;
  21011. }
  21012. .select_box2_img {
  21013. width: calc(100% - 310px);
  21014. height: 100%;
  21015. overflow: auto;
  21016. background: #fff;
  21017. border-radius: 5px;
  21018. }
  21019. .select_box2_img img {
  21020. width: 100%;
  21021. }
  21022. .select_box2_answer {
  21023. background: #fff;
  21024. margin-left: 10px;
  21025. border-radius: 5px;
  21026. width: 300px;
  21027. overflow: auto;
  21028. height: 90%;
  21029. display: flex;
  21030. flex-direction: column;
  21031. align-items: flex-start;
  21032. padding-top: 10px;
  21033. box-sizing: border-box;
  21034. position: relative;
  21035. }
  21036. .select_answer_title {
  21037. padding: 0 0 15px 20px;
  21038. color: #c4c4c4;
  21039. }
  21040. .select_box2_answer_box {
  21041. margin: 0 0 10px 20px;
  21042. width: 85%;
  21043. display: flex;
  21044. flex-direction: row;
  21045. flex-wrap: nowrap;
  21046. align-items: center;
  21047. }
  21048. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21049. color: #000;
  21050. }
  21051. .upAnswerCss {
  21052. position: absolute;
  21053. bottom: 15px;
  21054. right: 15px;
  21055. }
  21056. .upAnswerCss >>> .el-button {
  21057. width: 95px;
  21058. height: 35px;
  21059. line-height: 35px;
  21060. padding: 0;
  21061. }
  21062. .rightWidthCss {
  21063. width: 60%;
  21064. display: flex;
  21065. flex-direction: row;
  21066. align-items: flex-start;
  21067. }
  21068. .rightAnswer {
  21069. display: flex;
  21070. flex-direction: row;
  21071. flex-wrap: nowrap;
  21072. align-items: center;
  21073. color: red;
  21074. margin-bottom: 31px;
  21075. }
  21076. .rightAnswerCss {
  21077. display: flex;
  21078. flex-direction: column;
  21079. flex-wrap: nowrap;
  21080. padding-top: 60px;
  21081. }
  21082. .blueCss {
  21083. color: #767de1;
  21084. margin-left: 10px;
  21085. }
  21086. .redCss {
  21087. color: red;
  21088. }
  21089. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21090. color: rgb(0 123 255) !important;
  21091. }
  21092. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21093. color: rgb(0 123 255) !important;
  21094. }
  21095. .zuoyeYulan {
  21096. padding-top: 0;
  21097. font-size: 18px;
  21098. display: flex;
  21099. align-items: flex-end;
  21100. }
  21101. .buttonA {
  21102. margin-left: 10px;
  21103. padding: 0;
  21104. }
  21105. .displayBox {
  21106. margin-bottom: 10px;
  21107. display: block;
  21108. border-bottom: 3px solid #eee;
  21109. display: flex;
  21110. align-items: center;
  21111. }
  21112. .easy_comment {
  21113. width: calc(100% - 90px);
  21114. margin-left: 10px;
  21115. display: flex;
  21116. flex-wrap: wrap;
  21117. }
  21118. .easy_comment > div {
  21119. border: 1px solid #4a4a4a;
  21120. color: #666;
  21121. border-radius: 15px;
  21122. padding: 5px 10px;
  21123. font-size: 16px;
  21124. margin-bottom: 10px;
  21125. margin-right: 5px;
  21126. cursor: pointer;
  21127. }
  21128. .easy_comment div:hover {
  21129. border: 1px solid #f7ba2a;
  21130. color: #c69217;
  21131. }
  21132. .xuan_right_box {
  21133. padding: 10px 0;
  21134. background: #f0f4fa;
  21135. margin: 0 15px 0 25px;
  21136. border-bottom-left-radius: 5px;
  21137. border-bottom-right-radius: 5px;
  21138. width: 91.5%;
  21139. }
  21140. .tool_right_box {
  21141. display: flex;
  21142. align-items: center;
  21143. }
  21144. .tool_right_box + .tool_right_box {
  21145. margin-top: 10px;
  21146. }
  21147. .right_box_xuan {
  21148. background: rgb(0 123 255);
  21149. color: #fff;
  21150. border-radius: 5px;
  21151. padding: 5px;
  21152. margin-left: 10px;
  21153. min-width: 95px;
  21154. }
  21155. .pButton:hover {
  21156. opacity: 1 !important;
  21157. }
  21158. .pButton {
  21159. position: fixed;
  21160. text-align: center;
  21161. cursor: pointer;
  21162. z-index: 999;
  21163. right: 20px;
  21164. top: 110px;
  21165. width: 50px;
  21166. height: 50px;
  21167. display: flex;
  21168. align-items: center;
  21169. justify-content: center;
  21170. border-radius: 5px;
  21171. }
  21172. .pzClass {
  21173. width: calc(100% - 340px);
  21174. }
  21175. .newDialogCss {
  21176. /* position: fixed;
  21177. right: 5%;
  21178. top: 50%;
  21179. width: 340px;
  21180. transform: translateY(-50%);
  21181. height: 60%;
  21182. box-shadow: 0px 0 8px 0px #555555;
  21183. border-radius: 15px;
  21184. z-index: 999; */
  21185. position: fixed;
  21186. right: 20px;
  21187. top: 101px;
  21188. width: 330px;
  21189. height: calc(100% - 80px);
  21190. z-index: 999;
  21191. background: #fff;
  21192. border-top-right-radius: 0px;
  21193. border-bottom-right-radius: 0px;
  21194. overflow: hidden;
  21195. }
  21196. .pzTop {
  21197. color: #fff;
  21198. background: #000;
  21199. display: flex;
  21200. flex-direction: row;
  21201. flex-wrap: nowrap;
  21202. align-items: center;
  21203. justify-content: space-between;
  21204. height: 40px;
  21205. border-radius: 15px 15px 0 0;
  21206. user-select: none;
  21207. }
  21208. .pzTop2 .checkbox {
  21209. display: flex;
  21210. align-items: center;
  21211. padding: 5px 30px;
  21212. flex: 0 0 auto;
  21213. font-weight: bold;
  21214. border-bottom: 1px solid #eee;
  21215. justify-content: space-between;
  21216. }
  21217. .pzTop2 .check {
  21218. text-align: center;
  21219. cursor: pointer;
  21220. box-sizing: border-box;
  21221. display: flex;
  21222. }
  21223. .pzTop2 img {
  21224. width: 25px;
  21225. cursor: pointer;
  21226. }
  21227. .pzTop > div:nth-child(1) {
  21228. padding-left: 10px;
  21229. }
  21230. .pzTop > div:nth-child(2) {
  21231. width: 15px;
  21232. height: 15px;
  21233. padding-right: 10px;
  21234. cursor: pointer;
  21235. }
  21236. .pzTop > div:nth-child(2) > img {
  21237. width: 100%;
  21238. height: 100%;
  21239. }
  21240. .pzBox,
  21241. .noPzBox {
  21242. height: calc(100% - 60px);
  21243. /* background: #ededed; */
  21244. background: #fff;
  21245. /* border-radius: 0 0 15px 15px; */
  21246. }
  21247. .noPzBox {
  21248. display: flex;
  21249. flex-direction: column;
  21250. flex-wrap: nowrap;
  21251. justify-content: center;
  21252. align-items: center;
  21253. }
  21254. .pzList {
  21255. background: #f7f7f7;
  21256. width: 90%;
  21257. margin: 0 auto 15px;
  21258. border-radius: 5px;
  21259. }
  21260. .pzNavTop {
  21261. display: flex;
  21262. flex-direction: row;
  21263. flex-wrap: nowrap;
  21264. padding: 10px 10px 0 10px;
  21265. align-items: center;
  21266. }
  21267. .pzDelete {
  21268. cursor: pointer;
  21269. margin-left: auto;
  21270. font-size: 14px;
  21271. color: #afafaf;
  21272. }
  21273. .pzNavTop > div:nth-child(1) {
  21274. background: #3760af;
  21275. width: 35px;
  21276. height: 35px;
  21277. color: #fff;
  21278. text-align: center;
  21279. line-height: 35px;
  21280. border-radius: 50%;
  21281. font-size: 14px;
  21282. }
  21283. .pzNavTop > div:nth-child(2) {
  21284. font-size: 18px;
  21285. color: #959595;
  21286. margin-left: 5px;
  21287. }
  21288. .pzContent {
  21289. padding: 10px;
  21290. word-break: break-word;
  21291. }
  21292. .pzContent audio {
  21293. width: 100%;
  21294. }
  21295. .pzContent audio::-webkit-media-controls-panel {
  21296. background: #fff;
  21297. }
  21298. .pzContent >>> img {
  21299. max-width: 100%;
  21300. }
  21301. .pzListBox {
  21302. padding-top: 15px;
  21303. height: calc(100% - 110px);
  21304. overflow: auto;
  21305. }
  21306. .addPzButton {
  21307. position: relative;
  21308. margin-top: 3px;
  21309. width: 100%;
  21310. }
  21311. .addPzButton .img1 {
  21312. position: absolute;
  21313. top: 50%;
  21314. right: 25px;
  21315. transform: translateY(-50%);
  21316. height: 100%;
  21317. display: flex;
  21318. align-items: center;
  21319. }
  21320. .addPzButton .img1 div {
  21321. display: flex;
  21322. }
  21323. .addPzButton .img1 div img {
  21324. width: 28px;
  21325. margin-left: 10px;
  21326. cursor: pointer;
  21327. }
  21328. .addPzButton .img1 div span {
  21329. font-size: 14px;
  21330. margin: 4px 0 0 3px;
  21331. color: #afafaf;
  21332. }
  21333. .addPz {
  21334. background: #4b79ce;
  21335. width: 100px;
  21336. color: #fff;
  21337. font-size: 12px;
  21338. height: 30px;
  21339. margin: 0 auto;
  21340. text-align: center;
  21341. line-height: 30px;
  21342. border-radius: 10px;
  21343. cursor: pointer;
  21344. }
  21345. .addDialogCss {
  21346. position: fixed;
  21347. width: 600px;
  21348. height: 70%;
  21349. min-height: 450px;
  21350. box-shadow: 0px 0 8px 0px #555555;
  21351. border-radius: 15px;
  21352. z-index: 999;
  21353. left: 50%;
  21354. top: 50%;
  21355. margin: -18% 0 0 -300px;
  21356. }
  21357. .teacherPz {
  21358. display: flex;
  21359. flex-direction: row;
  21360. align-items: center;
  21361. flex-wrap: nowrap;
  21362. }
  21363. .teacherPzImg {
  21364. width: 30px;
  21365. height: 30px;
  21366. }
  21367. .teacherPzImg > img {
  21368. width: 100%;
  21369. height: 100%;
  21370. }
  21371. .addPzBox {
  21372. height: calc(100% - 40px);
  21373. background: #ededed;
  21374. border-bottom-left-radius: 15px;
  21375. border-bottom-right-radius: 15px;
  21376. }
  21377. .pzAudioClass {
  21378. margin: 15px 14px;
  21379. background: #fff;
  21380. height: 100%;
  21381. display: flex;
  21382. justify-content: center;
  21383. align-items: center;
  21384. }
  21385. .pzConText {
  21386. width: 95%;
  21387. height: 100%;
  21388. margin: 10px auto 0;
  21389. border: none;
  21390. background: #fff;
  21391. border-radius: 0px;
  21392. }
  21393. .pzConText >>> .text {
  21394. height: calc(100% - 82px);
  21395. }
  21396. .addTextCss {
  21397. background: #4b79ce;
  21398. width: 80px;
  21399. height: 30px;
  21400. text-align: center;
  21401. color: #fff;
  21402. line-height: 30px;
  21403. border-radius: 10px;
  21404. margin: 10px auto 0;
  21405. cursor: pointer;
  21406. }
  21407. .pzConText:focus-visible {
  21408. border: none !important;
  21409. }
  21410. .maxWidth {
  21411. width: 1000px;
  21412. }
  21413. .noPz {
  21414. width: 150px;
  21415. margin: 0 auto 20%;
  21416. }
  21417. .noPz > img {
  21418. width: 100%;
  21419. height: 100%;
  21420. }
  21421. .timeAndReply {
  21422. display: flex;
  21423. flex-direction: row;
  21424. flex-wrap: nowrap;
  21425. justify-content: space-between;
  21426. align-items: center;
  21427. font-size: 14px;
  21428. box-sizing: border-box;
  21429. padding: 0 10px 10px 0px;
  21430. }
  21431. .timeAndReply .time {
  21432. color: #bfbfbf;
  21433. padding: 0 0 0 10px;
  21434. box-sizing: border-box;
  21435. }
  21436. .timeAndReply > div:last-child {
  21437. cursor: pointer;
  21438. color: #777;
  21439. }
  21440. /* table 样式 */
  21441. .cont >>> table {
  21442. border-top: 1px solid #ccc;
  21443. border-left: 1px solid #ccc;
  21444. }
  21445. .cont >>> table td,
  21446. .cont >>> table th {
  21447. border-bottom: 1px solid #ccc;
  21448. border-right: 1px solid #ccc;
  21449. /* padding: 20px 5px; */
  21450. padding: 5px 10px;
  21451. max-width: 0px;
  21452. height: 30px;
  21453. vertical-align: baseline;
  21454. box-sizing: border-box;
  21455. }
  21456. .cont >>> table th {
  21457. border-bottom: 2px solid #ccc;
  21458. text-align: center;
  21459. }
  21460. /* blockquote 样式 */
  21461. .cont >>> blockquote {
  21462. display: block;
  21463. border-left: 8px solid #d0e5f2;
  21464. padding: 5px 10px;
  21465. margin: 10px 0;
  21466. line-height: 1.4;
  21467. font-size: 100%;
  21468. background-color: #f1f1f1;
  21469. }
  21470. /* code 样式 */
  21471. .cont >>> code {
  21472. display: inline-block;
  21473. /* *display: inline; */
  21474. zoom: 1;
  21475. background-color: #f1f1f1;
  21476. border-radius: 3px;
  21477. padding: 3px 5px;
  21478. margin: 0 3px;
  21479. }
  21480. .cont >>> pre code {
  21481. display: block;
  21482. }
  21483. /* ul ol 样式 */
  21484. .cont >>> ul,
  21485. ol {
  21486. margin: 10px 0 10px 20px;
  21487. }
  21488. .addPzCheck {
  21489. display: flex;
  21490. flex-direction: row;
  21491. flex-wrap: nowrap;
  21492. padding: 10px 15px 0;
  21493. }
  21494. .addPzCheck span {
  21495. cursor: pointer;
  21496. padding-bottom: 5px;
  21497. font-weight: bold;
  21498. }
  21499. .addPzCheck span + span {
  21500. margin-left: 10px;
  21501. }
  21502. .addPzCheck .isChooseActive {
  21503. color: #3e88f4;
  21504. border-bottom: 2px solid #2f80f3;
  21505. }
  21506. /* code 样式 */
  21507. .cont {
  21508. /* -webkit-user-modify: read-write; */
  21509. overflow-wrap: break-word;
  21510. -webkit-line-break: after-white-space;
  21511. }
  21512. .scoreBox,
  21513. .scoreDetailBox {
  21514. display: flex;
  21515. align-items: center;
  21516. justify-content: flex-start;
  21517. margin-top: 20px;
  21518. font-size: 18px;
  21519. width: 100%;
  21520. }
  21521. .scoreBox .t,
  21522. .scoreDetailBox .t {
  21523. margin-right: 10px;
  21524. width: 100px;
  21525. text-align: right;
  21526. }
  21527. .scoreDetailBox {
  21528. align-items: flex-start;
  21529. }
  21530. .scoreDetailBox >>> .el-textarea {
  21531. width: calc(100% - 200px);
  21532. }
  21533. .scoreBox >>> .el-input {
  21534. width: 130px;
  21535. font-size: 38px;
  21536. }
  21537. .scoreBox >>> .el-input__inner {
  21538. height: 60px;
  21539. }
  21540. .answerScore {
  21541. position: absolute;
  21542. top: 10px;
  21543. right: 10px;
  21544. background: #0000008f;
  21545. border-radius: 5px;
  21546. padding: 3px 5px;
  21547. font-size: 14px;
  21548. color: #fff;
  21549. cursor: pointer;
  21550. }
  21551. .open_box .switch_box {
  21552. width: 100%;
  21553. margin: 0 auto;
  21554. display: flex;
  21555. justify-content: space-between;
  21556. }
  21557. .open_box .switch_box + .switch_box {
  21558. margin-top: 10px;
  21559. }
  21560. .deleteImg,.deleteImg1 {
  21561. width: 25px !important;
  21562. height: 25px !important;
  21563. cursor: pointer;
  21564. position: absolute;
  21565. top: 10px;
  21566. right: 10px;
  21567. }
  21568. .deleteImg2 {
  21569. width: 23px !important;
  21570. height: 23px !important;
  21571. top: 5px;
  21572. right: 5px;
  21573. }
  21574. .deleteImg1{
  21575. width: 23px !important;
  21576. height: 23px !important;
  21577. top: 5px !important;
  21578. right: 30px !important;
  21579. }
  21580. .rightW {
  21581. right: 40px;
  21582. }
  21583. .drawPBox {
  21584. display: flex;
  21585. flex-direction: column;
  21586. position: relative;
  21587. }
  21588. .drawPBox span {
  21589. font-size: 18px;
  21590. color: #606266;
  21591. padding-bottom: 10px;
  21592. margin: 10px 0;
  21593. border-bottom: 1px solid #eaeaea;
  21594. }
  21595. .drawPBox img {
  21596. width: 500px;
  21597. height: 300px;
  21598. object-fit: contain;
  21599. cursor: pointer;
  21600. margin: 0 auto;
  21601. }
  21602. .sentenBox {
  21603. background: #fff;
  21604. height: 450px;
  21605. overflow: auto;
  21606. background-image: url("../assets/icon/conSentences/stuBg.png");
  21607. background-position: 102%;
  21608. background-repeat: no-repeat;
  21609. background-size: 60%;
  21610. }
  21611. .addSen {
  21612. background: #409efe;
  21613. width: 90px;
  21614. color: #fff;
  21615. height: 35px;
  21616. text-align: center;
  21617. line-height: 35px;
  21618. border-radius: 5px;
  21619. float: right;
  21620. margin: 10px 20px 0 0;
  21621. cursor: pointer;
  21622. }
  21623. .sentenTop {
  21624. display: flex;
  21625. flex-direction: row;
  21626. flex-wrap: nowrap;
  21627. align-items: center;
  21628. padding: 55px 0 0 20px;
  21629. box-sizing: border-box;
  21630. }
  21631. .sentenTop > div:nth-child(2) {
  21632. width: 300px;
  21633. margin: 0 15px;
  21634. }
  21635. .sentenTop > div:nth-child(3) {
  21636. background: #409efe;
  21637. color: #fff;
  21638. width: 65px;
  21639. height: 35px;
  21640. text-align: center;
  21641. line-height: 35px;
  21642. border-radius: 5px;
  21643. cursor: pointer;
  21644. }
  21645. .cardList,
  21646. .cardList1 {
  21647. padding: 10px 0 10px 0;
  21648. display: flex;
  21649. flex-direction: row;
  21650. flex-wrap: wrap;
  21651. align-items: center;
  21652. box-sizing: border-box;
  21653. border-bottom: 1px solid #f4f4f4;
  21654. width: 98%;
  21655. margin: 0 auto;
  21656. min-width: 60%;
  21657. max-width: 85%;
  21658. }
  21659. .cardList1 {
  21660. padding: 10px 0 10px 10px !important;
  21661. margin: 0 !important;
  21662. }
  21663. .cardBox {
  21664. display: flex;
  21665. flex-direction: row;
  21666. flex-wrap: wrap;
  21667. align-items: center;
  21668. align-content: center;
  21669. }
  21670. .cardBox > div {
  21671. margin-bottom: 10px;
  21672. }
  21673. .isCard,
  21674. .isChooseCard,
  21675. .noCard,
  21676. .isCard1 {
  21677. width: 130px;
  21678. height: 60px;
  21679. text-align: center;
  21680. line-height: 60px;
  21681. font-size: 20px;
  21682. cursor: pointer;
  21683. background-image: url("../assets/icon/conSentences/titleBorder.png");
  21684. background-size: cover;
  21685. transition: all 2s;
  21686. margin-right: 20px;
  21687. }
  21688. .isCard > div,
  21689. .noCard > div,
  21690. .isCard1 > div {
  21691. white-space: nowrap;
  21692. overflow: hidden;
  21693. text-overflow: ellipsis;
  21694. width: 75%;
  21695. margin: 0 auto;
  21696. }
  21697. .noCard {
  21698. background-image: none;
  21699. }
  21700. .isCard1 {
  21701. background-image: url("../assets/icon/conSentences/answerBorder.png");
  21702. }
  21703. .isChooseCard {
  21704. background-image: none;
  21705. border: 1px dashed #b9b9b9;
  21706. border-radius: 10px;
  21707. }
  21708. .card {
  21709. width: 130px;
  21710. height: 60px;
  21711. }
  21712. .card > img {
  21713. width: 100%;
  21714. height: 100%;
  21715. }
  21716. .rightCardBox {
  21717. margin: 10px 0 0 10px;
  21718. }
  21719. .rightCardBox > div:nth-child(1) {
  21720. margin-bottom: 10px;
  21721. }
  21722. .cardCss {
  21723. display: flex;
  21724. flex-direction: column;
  21725. flex-wrap: nowrap;
  21726. align-items: center;
  21727. border-bottom: 3px solid #b4c3d3;
  21728. padding: 0 0 5px 0;
  21729. margin-right: 10px;
  21730. }
  21731. .cardCss > div:nth-child(2) {
  21732. background: #5b7b9d;
  21733. color: #fff;
  21734. width: 20px;
  21735. height: 20px;
  21736. border-radius: 50%;
  21737. text-align: center;
  21738. line-height: 20px;
  21739. }
  21740. .isWrong {
  21741. display: flex;
  21742. flex-direction: row;
  21743. flex-wrap: nowrap;
  21744. align-content: center;
  21745. align-items: center;
  21746. }
  21747. .answerRight {
  21748. width: 25%;
  21749. }
  21750. .isTj {
  21751. display: flex;
  21752. flex-direction: row;
  21753. flex-wrap: nowrap;
  21754. align-items: center;
  21755. }
  21756. .isTj > div:nth-child(2) {
  21757. color: #727070;
  21758. margin-left: 10px;
  21759. }
  21760. .isTjImg {
  21761. width: 30px;
  21762. height: 30px;
  21763. }
  21764. .isTjImg > img {
  21765. width: 100%;
  21766. height: 100%;
  21767. }
  21768. .cardAnswerBox {
  21769. font-size: 18px;
  21770. width: 97%;
  21771. border: 5px;
  21772. padding: 0;
  21773. border-radius: 5px;
  21774. margin: 10px auto;
  21775. word-break: break-word;
  21776. }
  21777. .w_name {
  21778. margin-bottom: 10px;
  21779. }
  21780. .w_name span {
  21781. font-size: 16px;
  21782. }
  21783. .w_teachert {
  21784. width: 50px !important;
  21785. position: absolute;
  21786. height: auto !important;
  21787. z-index: 10;
  21788. right: 25px;
  21789. top: -25px;
  21790. }
  21791. .group_workBox {
  21792. }
  21793. .group_workBox + .group_workBox {
  21794. margin-top: 20px;
  21795. }
  21796. .group_box {
  21797. padding-bottom: 20px;
  21798. border-bottom: 2px solid #f0f0f0;
  21799. margin-top: 10px;
  21800. }
  21801. .group_title {
  21802. display: flex;
  21803. align-items: center;
  21804. justify-content: space-between;
  21805. width: 95%;
  21806. }
  21807. .group_name {
  21808. background-image: url(../assets/icon/groupN.png);
  21809. width: 220px;
  21810. background-size: 100% 100%;
  21811. height: 67px;
  21812. padding: 0 20px 0 43px;
  21813. box-sizing: border-box;
  21814. line-height: 63px;
  21815. color: #fff;
  21816. overflow: hidden;
  21817. white-space: nowrap;
  21818. text-overflow: ellipsis;
  21819. }
  21820. .group_work {
  21821. width: 100%;
  21822. padding: 0 10px;
  21823. box-sizing: border-box;
  21824. display: flex;
  21825. flex-wrap: wrap;
  21826. }
  21827. .g_d_box {
  21828. display: flex;
  21829. flex-flow: wrap;
  21830. justify-content: space-around;
  21831. }
  21832. .g_d_box .isChair {
  21833. background-image: url(../assets/avatar.png) !important;
  21834. }
  21835. .g_d_group {
  21836. width: 500px;
  21837. margin-bottom: 80px;
  21838. }
  21839. .g_d_group_chair {
  21840. display: flex;
  21841. align-items: center;
  21842. justify-content: center;
  21843. }
  21844. .g_d_group_chair > div + div {
  21845. margin-left: 30px;
  21846. }
  21847. .g_d_group_chair > div,
  21848. .g_d_group_chair2 > div {
  21849. display: flex;
  21850. flex-direction: column;
  21851. align-items: center;
  21852. }
  21853. .g_d_group_chair > div > span:nth-child(1),
  21854. .g_d_group_chair2 > div > span:nth-child(1) {
  21855. background-image: url(../assets/icon/chair.png);
  21856. width: 50px;
  21857. height: 50px;
  21858. display: block;
  21859. background-size: 100% 100%;
  21860. }
  21861. .g_d_group_tableBox {
  21862. display: flex;
  21863. align-items: center;
  21864. justify-content: center;
  21865. }
  21866. .g_d_group_chair2 {
  21867. display: flex;
  21868. flex-direction: column;
  21869. align-items: center;
  21870. justify-content: center;
  21871. }
  21872. .g_d_group_chair2 > div + div {
  21873. margin-top: 10px;
  21874. }
  21875. .g_d_group_table {
  21876. background-image: url(../assets/icon/groupBg.png);
  21877. width: 354px;
  21878. height: 196px;
  21879. background-size: 100% 100%;
  21880. display: flex;
  21881. align-items: center;
  21882. justify-content: center;
  21883. flex-direction: column;
  21884. color: #fff;
  21885. }
  21886. .g_d_group_table > div:nth-child(1) {
  21887. font-size: 24px;
  21888. margin-bottom: 5px;
  21889. }
  21890. .g_d_group_table > div:nth-child(2) div {
  21891. cursor: pointer;
  21892. background: #2e77bf;
  21893. padding: 4px 10px;
  21894. border-radius: 5px;
  21895. }
  21896. .groupBox {
  21897. }
  21898. .groupContent + .groupContent {
  21899. margin-top: 30px;
  21900. }
  21901. .groupTitle {
  21902. font-size: 24px;
  21903. color: rgb(80, 80, 80);
  21904. margin-bottom: 20px;
  21905. }
  21906. .groupName {
  21907. display: flex;
  21908. align-items: center;
  21909. }
  21910. .groupn {
  21911. font-size: 15px;
  21912. margin-right: 10px;
  21913. }
  21914. .groupName + .groupName {
  21915. margin-top: 15px;
  21916. }
  21917. .groupBtn {
  21918. margin-left: 10px;
  21919. }
  21920. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21921. text-align: left;
  21922. }
  21923. .g_d_btnBox {
  21924. display: flex;
  21925. justify-content: flex-end;
  21926. align-items: center;
  21927. margin-bottom: 20px;
  21928. }
  21929. .updateChair {
  21930. position: relative;
  21931. }
  21932. .updateChairBtn {
  21933. position: absolute;
  21934. width: 50px;
  21935. height: 50px;
  21936. overflow: hidden;
  21937. /* display: flex; */
  21938. align-items: center;
  21939. justify-content: center;
  21940. background: #00000087;
  21941. color: #fff;
  21942. border-radius: 50px;
  21943. display: none;
  21944. cursor: pointer;
  21945. }
  21946. .updateChair:hover .updateChairBtn {
  21947. display: flex;
  21948. }
  21949. .group_staic_box {
  21950. display: flex;
  21951. padding: 30px 40px 10px;
  21952. flex-wrap: wrap;
  21953. }
  21954. .group_staic {
  21955. /* width: 50%; */
  21956. margin-bottom: 20px;
  21957. display: flex;
  21958. align-items: center;
  21959. }
  21960. .group_staic span:nth-child(1) {
  21961. width: 150px;
  21962. text-align: right;
  21963. margin-right: 15px;
  21964. }
  21965. .group_staic span:nth-child(2) {
  21966. background: rgb(0 123 255);
  21967. color: #fff;
  21968. border-radius: 5px;
  21969. padding: 5px;
  21970. }
  21971. .codeFileBox {
  21972. height: 300px;
  21973. background: #fff;
  21974. display: flex;
  21975. align-items: center;
  21976. justify-content: center;
  21977. }
  21978. .codeFileBox img {
  21979. width: 200px;
  21980. margin: 0;
  21981. height: auto;
  21982. }
  21983. .codeFileBox div {
  21984. background: rgb(80, 142, 226);
  21985. color: #fff;
  21986. padding: 10px 20px;
  21987. border-radius: 25px;
  21988. cursor: pointer;
  21989. margin-left: 15px;
  21990. }
  21991. .radioBox {
  21992. display: flex;
  21993. flex-direction: column;
  21994. flex-wrap: nowrap;
  21995. align-items: flex-start;
  21996. }
  21997. .radioBox > div {
  21998. margin: 10px 0 0 10px;
  21999. }
  22000. /* .radioBox >>> .el-radio__input,
  22001. .radioBox >>> .el-checkbox__inner {
  22002. margin-left: 10px;
  22003. } */
  22004. .radioBox >>> .el-radio__label,
  22005. .radioBox >>> .el-checkbox__label {
  22006. display: flex;
  22007. align-items: center;
  22008. width: 100%;
  22009. }
  22010. .radioBox >>> .el-radio__label > span {
  22011. width: 100%;
  22012. display: -webkit-box;
  22013. overflow: hidden;
  22014. white-space: normal !important;
  22015. text-overflow: ellipsis;
  22016. word-wrap: break-word;
  22017. }
  22018. .inImg {
  22019. width: 100px;
  22020. cursor: pointer;
  22021. }
  22022. .inImg > img {
  22023. width: 100%;
  22024. height: 100%;
  22025. object-fit: cover;
  22026. }
  22027. .timuImgBox {
  22028. margin: 10px 0;
  22029. display: flex;
  22030. flex-direction: column;
  22031. flex-wrap: wrap;
  22032. align-items: flex-start;
  22033. }
  22034. .timuImg {
  22035. width: 150px;
  22036. margin: 5px 0;
  22037. cursor: pointer;
  22038. }
  22039. .timuImg > img {
  22040. width: 100%;
  22041. height: 100%;
  22042. object-fit: cover;
  22043. }
  22044. .worksTop {
  22045. display: flex;
  22046. flex-direction: row;
  22047. align-items: flex-end;
  22048. }
  22049. .worksTitle{
  22050. display: flex;
  22051. flex-direction: row;
  22052. flex-wrap: nowrap;
  22053. align-items: center;
  22054. }
  22055. .worksTitle::before,.worksTop::before{
  22056. content: '';
  22057. display: block;
  22058. width: 3px;
  22059. height: 20px;
  22060. background: #0061FF;
  22061. border-radius: 3px;
  22062. margin: 0 5px 0 0;
  22063. }
  22064. .corOpen {
  22065. margin: 0 0 0 10px;
  22066. font-size: 14px;
  22067. cursor: pointer;
  22068. color: #505050;
  22069. }
  22070. .corOpen:hover {
  22071. color: #499eef;
  22072. }
  22073. .navCorOpenBox {
  22074. display: flex;
  22075. flex-direction: row;
  22076. align-items: center;
  22077. justify-content: space-between;
  22078. height: 55px;
  22079. background: #ffffff;
  22080. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22081. border-radius: 8px 8px 0px 0px;
  22082. z-index: 9;
  22083. position: relative;
  22084. }
  22085. .navCorOpen {
  22086. padding-right: 15px;
  22087. cursor: pointer;
  22088. width: 45px;
  22089. display: flex;
  22090. }
  22091. .navCorOpen > img {
  22092. width: 100%;
  22093. height: 100%;
  22094. }
  22095. .mlImg {
  22096. width: 45px !important;
  22097. min-width: 45px;
  22098. cursor: pointer;
  22099. transform: rotate(180deg);
  22100. }
  22101. .mlImg > img {
  22102. width: 100%;
  22103. height: 100%;
  22104. }
  22105. .navLeftCss {
  22106. width: 100% !important;
  22107. left: 0 !important;
  22108. }
  22109. .isContentCss {
  22110. width: 100% !important;
  22111. }
  22112. .isAllWidth {
  22113. width: 100% !important;
  22114. }
  22115. .group_switch {
  22116. margin-right: 10px;
  22117. height: 30px;
  22118. display: flex;
  22119. align-items: center;
  22120. }
  22121. .group_switch > span {
  22122. margin-right: 5px;
  22123. }
  22124. .fileC_box {
  22125. padding-top: 15px;
  22126. }
  22127. .fileC_box > .fileC_title {
  22128. padding: 10px 5px 14px 11px;
  22129. border-top: 1px solid #cad1dc;
  22130. font-size: 14px;
  22131. font-weight: 400;
  22132. color: #cad1dc;
  22133. width: 88%;
  22134. margin: 0 auto;
  22135. }
  22136. .pl_select_box {
  22137. height: 40px;
  22138. line-height: 40px;
  22139. width: 100%;
  22140. cursor: pointer;
  22141. padding: 0 20px;
  22142. box-sizing: border-box;
  22143. border-radius: 5px;
  22144. border: 1px solid #d6d6d6;
  22145. white-space: nowrap;
  22146. overflow: hidden;
  22147. text-overflow: ellipsis;
  22148. background: #fff;
  22149. text-align: left;
  22150. }
  22151. .newButton {
  22152. width: 102px;
  22153. height: 36px;
  22154. background: #e7ebf1;
  22155. border-radius: 4px;
  22156. color: #0e1e33;
  22157. font-weight: 400;
  22158. font-size: 14px;
  22159. border: none;
  22160. float: right;
  22161. margin-left: 10px;
  22162. }
  22163. .el-table >>> .even_row {
  22164. background-color: #f0f4fa;
  22165. }
  22166. .stageBoxCss,
  22167. .stageBoxIsCss {
  22168. display: flex;
  22169. flex-direction: row;
  22170. flex-wrap: nowrap;
  22171. align-items: center;
  22172. height: 50px;
  22173. border-bottom: 1px solid #e2f5fc;
  22174. cursor: pointer;
  22175. width: 100%;
  22176. }
  22177. .stageBoxIsCss {
  22178. background: #0061ff;
  22179. color: #fff;
  22180. border-radius: 8px;
  22181. }
  22182. .stageItemTitle {
  22183. display: flex;
  22184. flex-direction: row;
  22185. flex-wrap: nowrap;
  22186. align-items: center;
  22187. margin-left: 15px;
  22188. width: calc(100% - 50px);
  22189. }
  22190. .stageNav{
  22191. /* font-weight: bold; */
  22192. }
  22193. .stageItemTitle > div:first-child {
  22194. min-width: 55px;
  22195. }
  22196. .stageItemTitle > div:last-child {
  22197. max-width: 242px;
  22198. white-space: nowrap;
  22199. overflow: hidden;
  22200. text-overflow: ellipsis;
  22201. word-break: break-word;
  22202. width: calc(100% - 55px);
  22203. }
  22204. .closeTri,
  22205. .closeTri1 {
  22206. min-width: 15px;
  22207. width: 15px;
  22208. height: 15px;
  22209. }
  22210. .closeTri1 {
  22211. padding-left: 10px;
  22212. cursor: pointer;
  22213. }
  22214. .closeTri > img,
  22215. .closeTri1 > img {
  22216. width: 100%;
  22217. height: 100%;
  22218. }
  22219. .noToolBlue {
  22220. min-width: 10px;
  22221. width: 10px;
  22222. height: 10px;
  22223. background: #0061ff;
  22224. border-radius: 50%;
  22225. margin-left: 13px;
  22226. }
  22227. .stageChild,
  22228. .toolChild {
  22229. height: 0;
  22230. overflow: hidden;
  22231. transition: all 0.5s;
  22232. }
  22233. .toolChild {
  22234. margin: 0 0 0 17px;
  22235. padding: 0 0 0 20px;
  22236. border-left: 1px solid #d7d7d7;
  22237. }
  22238. .gjCss {
  22239. display: flex;
  22240. flex-direction: row;
  22241. flex-wrap: nowrap;
  22242. align-items: center;
  22243. padding: 15px 0;
  22244. box-sizing: border-box;
  22245. font-size: 14px;
  22246. cursor: pointer;
  22247. }
  22248. .toolChild > div {
  22249. position: relative;
  22250. }
  22251. .toolChild > div::before {
  22252. content: "";
  22253. width: 15px;
  22254. height: 1px;
  22255. background: #cad1dc;
  22256. position: absolute;
  22257. top: 24px;
  22258. left: -20px;
  22259. display: block;
  22260. }
  22261. .isGjCss {
  22262. color: #0061ff;
  22263. }
  22264. .navItem {
  22265. background: #ffffff;
  22266. border-radius: 4px;
  22267. width: 100%;
  22268. margin: 10px auto;
  22269. position: relative;
  22270. height: 40px;
  22271. display: flex;
  22272. flex-direction: row;
  22273. flex-wrap: nowrap;
  22274. align-items: center;
  22275. }
  22276. .navItemList {
  22277. display: flex;
  22278. flex-direction: row;
  22279. flex-wrap: nowrap;
  22280. align-items: center;
  22281. padding: 0 13px;
  22282. cursor: pointer;
  22283. width: calc(100% - 60px);
  22284. height: 100%;
  22285. }
  22286. .navItemList > div:first-child {
  22287. min-width: 60px;
  22288. }
  22289. .navItemList > div:last-child {
  22290. width: calc(100% - 80px);
  22291. white-space: nowrap;
  22292. overflow: hidden;
  22293. text-overflow: ellipsis;
  22294. word-break: break-word;
  22295. }
  22296. /* .isItemList > div {
  22297. color: #fff !important;
  22298. } */
  22299. .tool_work_box {
  22300. width: 100%;
  22301. padding: 0 37px 0;
  22302. box-sizing: border-box;
  22303. }
  22304. .tool_box {
  22305. width: 100%;
  22306. padding: 0 0 0 20px;
  22307. }
  22308. .tool_type_box {
  22309. display: flex;
  22310. flex-direction: row;
  22311. align-items: baseline;
  22312. flex-wrap: nowrap;
  22313. justify-content: flex-start;
  22314. position: relative;
  22315. }
  22316. .toolSort {
  22317. display: flex;
  22318. flex-direction: row;
  22319. flex-wrap: wrap;
  22320. justify-content: flex-start;
  22321. align-items: flex-start;
  22322. padding: 0 0 15px 0;
  22323. }
  22324. .toolSort > div {
  22325. margin: 0 10px 0 0;
  22326. width: 135px;
  22327. box-sizing: border-box;
  22328. border: 2px solid transparent;
  22329. }
  22330. .tools {
  22331. width: 100%;
  22332. display: flex;
  22333. flex-direction: column;
  22334. flex-wrap: nowrap;
  22335. align-items: flex-start;
  22336. }
  22337. .whiteBIcon {
  22338. width: fit-content;
  22339. cursor: pointer;
  22340. display: flex;
  22341. flex-direction: column;
  22342. flex-wrap: nowrap;
  22343. align-items: center;
  22344. font-size: 14px;
  22345. }
  22346. .tool:hover {
  22347. border: 2px solid #a5c7ff;
  22348. border-radius: 5px;
  22349. }
  22350. .whiteBIcon > img {
  22351. width: 65px;
  22352. height: 100%;
  22353. }
  22354. .whiteBIcon > img {
  22355. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22356. border-radius: 15px;
  22357. }
  22358. .check {
  22359. /* width: 20px;
  22360. height: 20px; */
  22361. cursor: pointer;
  22362. margin: 10px 0;
  22363. position: absolute;
  22364. right: 2px;
  22365. top: -5px;
  22366. }
  22367. .noChoose,
  22368. .isChoose {
  22369. width: 15px;
  22370. height: 15px;
  22371. border-radius: 50%;
  22372. border: 1px solid #adadad;
  22373. }
  22374. .isChoose {
  22375. border: 4px solid #0363ff !important;
  22376. width: 10px;
  22377. height: 10px;
  22378. }
  22379. .isToolChoose {
  22380. border: 2px solid #5394ff !important;
  22381. border-radius: 5px;
  22382. box-shadow: 0 0 6px 0px #5394ff;
  22383. }
  22384. .checkDiv {
  22385. display: flex;
  22386. align-items: center;
  22387. }
  22388. .checkDiv span {
  22389. margin-left: 5px;
  22390. color: #858585;
  22391. }
  22392. .check img {
  22393. width: 20px;
  22394. height: 20px;
  22395. }
  22396. .lockTaskIcon {
  22397. width: 20px;
  22398. height: 20px;
  22399. position: absolute;
  22400. right: 10px;
  22401. top: 5px;
  22402. }
  22403. .lockTaskIcon > img {
  22404. width: 100%;
  22405. height: 100%;
  22406. }
  22407. .pick_box {
  22408. display: flex;
  22409. align-items: flex-start;
  22410. flex-wrap: wrap;
  22411. }
  22412. .selectBox {
  22413. width: 110px;
  22414. margin-left: 10px;
  22415. margin: 0 10px 0 auto;
  22416. }
  22417. .selectBox >>> .el-input__inner {
  22418. height: 30px;
  22419. line-height: 30px;
  22420. }
  22421. .selectBox >>> .el-input__icon {
  22422. line-height: 30px;
  22423. }
  22424. .sentenceTitle {
  22425. display: flex;
  22426. flex-direction: row;
  22427. flex-wrap: nowrap;
  22428. align-items: center;
  22429. }
  22430. .sentenceTitle::before {
  22431. content: attr(index);
  22432. background: #3681fc;
  22433. border-radius: 50%;
  22434. color: #fff;
  22435. width: 25px;
  22436. height: 25px;
  22437. min-width: 25px;
  22438. min-height: 25px;
  22439. text-align: center;
  22440. line-height: 25px;
  22441. margin-right: 5px;
  22442. }
  22443. .hfBox {
  22444. padding: 10px;
  22445. box-sizing: border-box;
  22446. }
  22447. .whoReplyWho {
  22448. display: flex;
  22449. flex-direction: row;
  22450. flex-wrap: nowrap;
  22451. align-items: baseline;
  22452. justify-content: flex-start;
  22453. }
  22454. .hfBottom {
  22455. display: flex;
  22456. flex-direction: row;
  22457. flex-wrap: nowrap;
  22458. align-items: center;
  22459. justify-content: space-between;
  22460. font-size: 14px;
  22461. }
  22462. .deleteHfItem {
  22463. cursor: pointer;
  22464. width: 20px;
  22465. height: 20px;
  22466. }
  22467. .deleteHfItem > img {
  22468. width: 100%;
  22469. height: 100%;
  22470. }
  22471. .whoReplyWho > .hfImg {
  22472. width: 12px;
  22473. height: 12px;
  22474. margin: 0 5px;
  22475. }
  22476. .whoReplyWho > .hfImg > img {
  22477. width: 100%;
  22478. height: 100%;
  22479. }
  22480. .hfContent {
  22481. padding-top: 10px;
  22482. box-sizing: border-box;
  22483. display: -webkit-box;
  22484. overflow: hidden;
  22485. white-space: normal !important;
  22486. text-overflow: ellipsis;
  22487. word-wrap: break-word;
  22488. -webkit-box-orient: vertical;
  22489. }
  22490. .hfTime {
  22491. text-align: left;
  22492. box-sizing: border-box;
  22493. padding: 10px 0 10px 0px;
  22494. color: #bfbfbf;
  22495. font-size: 14px;
  22496. }
  22497. .btnAllNT {
  22498. position: fixed;
  22499. bottom: 100px;
  22500. right: 40px;
  22501. z-index: 999;
  22502. display: flex;
  22503. flex-direction: row;
  22504. }
  22505. .btnAllNT > img {
  22506. cursor: pointer;
  22507. width: 80px;
  22508. }
  22509. .toolMask {
  22510. position: fixed;
  22511. width: 100%;
  22512. height: 100%;
  22513. background: #3f3c3c;
  22514. opacity: 0.5;
  22515. top: 0;
  22516. left: 0;
  22517. z-index: 999;
  22518. }
  22519. .addToolCss {
  22520. position: fixed;
  22521. z-index: 999;
  22522. background: #fff;
  22523. right: 5%;
  22524. bottom: 18%;
  22525. min-width: 1035px;
  22526. min-height: 300px;
  22527. border-radius: 10px;
  22528. box-shadow: 0 0 8px 1px #b2b2b2;
  22529. }
  22530. .toolTop {
  22531. display: flex;
  22532. flex-direction: row;
  22533. flex-wrap: nowrap;
  22534. justify-content: space-between;
  22535. align-items: center;
  22536. padding: 20px;
  22537. }
  22538. .toolTop > div:nth-child(2) {
  22539. width: 15px;
  22540. height: 15px;
  22541. padding-right: 10px;
  22542. cursor: pointer;
  22543. }
  22544. .toolTop > div:nth-child(2) > img {
  22545. width: 100%;
  22546. height: 100%;
  22547. }
  22548. .fullStyle>>>.el-dialog__body {
  22549. height: calc(100% - 125px) !important;
  22550. box-sizing: border-box;
  22551. padding: 30px 0 !important;
  22552. background: #fff !important;
  22553. }
  22554. .fullStyle>>>.el-dialog {
  22555. width: 100% !important;
  22556. max-width: 100% !important;
  22557. height: 100% !important;
  22558. margin: 0 !important;
  22559. }
  22560. .fullStyle {
  22561. width: 100% !important;
  22562. max-width: 100% !important;
  22563. height: 100% !important;
  22564. margin: 0 auto !important;
  22565. }
  22566. .fullStyle>>>.el-dialog__footer{
  22567. background: #fff !important;
  22568. }
  22569. .engUpBox {
  22570. width: 100%;
  22571. height: 100%;
  22572. }
  22573. .engTitle,
  22574. .engText {
  22575. display: flex;
  22576. flex-direction: row;
  22577. flex-wrap: nowrap;
  22578. align-items: flex-start;
  22579. padding: 0 20px 20px 20px;
  22580. box-sizing: border-box;
  22581. }
  22582. .engTitle > .div:first-child,
  22583. .engText > div:first-child {
  22584. min-width: 75px;
  22585. }
  22586. .correctBox{
  22587. width: 100%;
  22588. display: flex;
  22589. flex-direction: row;
  22590. flex-wrap: nowrap;
  22591. align-items: flex-start;
  22592. }
  22593. .oldBox{
  22594. width: 50%;
  22595. height: 100%;
  22596. display: flex;
  22597. flex-direction: column;
  22598. flex-wrap: nowrap;
  22599. align-items: center;
  22600. border-top: 1px solid #d9d9d9;
  22601. border-left: 1px solid #d9d9d9;
  22602. border-right: 1px solid #d9d9d9;
  22603. }
  22604. .oldBox>div:first-child{
  22605. width: 100%;
  22606. text-align: center;
  22607. background: #d9d9d9;
  22608. height: 35px;
  22609. line-height: 35px;
  22610. font-weight: bold;
  22611. }
  22612. .oldText{
  22613. width: 100%;
  22614. height: 100%;
  22615. display: flex;
  22616. flex-direction: column;
  22617. flex-wrap: nowrap;
  22618. align-content: center;
  22619. justify-content: center;
  22620. align-items: center;
  22621. }
  22622. .detailBox{
  22623. width: 50%;
  22624. padding: 10px;
  22625. background: #f6f6f6;
  22626. border-radius: 5px;
  22627. }
  22628. .oldDetail,.oldDetail1{
  22629. padding-bottom: 30px;
  22630. }
  22631. .oldDetail1>div:last-child{
  22632. max-height: 200px;
  22633. overflow: auto;
  22634. }
  22635. .oldImg{
  22636. width:30px;
  22637. height: 30px;
  22638. }
  22639. .oldImg>img{
  22640. width: 100%;
  22641. height: 100%;
  22642. }
  22643. .allName{
  22644. min-width: 200px;
  22645. white-space: nowrap;
  22646. overflow: hidden;
  22647. text-overflow: ellipsis;
  22648. word-break: break-word;
  22649. cursor: pointer;
  22650. text-align: center;
  22651. border: 1px solid #bcc2cc;
  22652. box-sizing: border-box;
  22653. }
  22654. .engUpTop{
  22655. max-height: 300px;
  22656. overflow: auto;
  22657. }
  22658. </style>